OSDN Git Service

2002-08-06 Chris Demetriou <cgd@broadcom.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
2
3         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
4         in target_flags based on ISA, if it was not set on the command
5         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
6         support Branch Likely instructions.
7         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
8         (TARGET_BRANCHLIKELY): Likewise.
9         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
10         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
11         ISA_HAS_BRANCHLIKELY.
12         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
13         * doc/invoke.texi: Document new MIPS -mbranch-likely and
14         -mno-branch-likely options.
15
16 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17
18         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
19
20         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
21         $(GCONFIG_H).
22
23 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
24
25         * c-decl.c (duplicate_decls): Error out for incompatible TLS
26         declarations.
27
28         * testsuite/gcc.dg/tls/diag-3.c: New.
29
30 2002-08-06  Jason Merrill  <jason@redhat.com>
31
32         * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
33         a VAR_DECL with RTL that matches the target, just return that RTL.
34
35 2002-08-06  Dale Johannesen  <dalej@apple.com>
36         * c-common.c (fname_decl): Use line number 0 for
37         __func__, to avoid confusing debuggers.
38
39 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
40
41         * gcov.c: Tidy.
42         (struct line_info, struct coverage): New structures.
43         (gcov_file_name, gcov_file): Remove globals.
44         (output_data): Take source file parameter. Fix memory leak. Break
45         up into ...
46         (init_line_info, output_line_info, make_gcov_file_name,
47         accumulate_branch_counts): ... here.
48         (calculate_branch_probs, function_summary): Adjust.
49         (main): Adjust.
50         (function_*): Remove global variables.
51
52 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
53
54         * dwarf2out.c: Remove unused macros.
55
56 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
57
58         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
59
60 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
61
62         * cppinit.c (struct lang_flags): Rename trigraphs std.
63         (set_lang): Update.
64         * cpplib.h (struct cpp_options): New member std.
65         * cppmacro.c (_cpp_builtin_macro_text): Use std.
66         (collect_args): Flag whether to swallow a possible future
67         comma pasted with varargs.
68         (replace_args): Use this flag.
69         * doc/cpp.texi: Update varargs extension documentation.
70
71 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
72
73         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
74
75 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
76
77         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
78         and MODE_CLASS_INT modes.
79
80 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
81
82         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
83         --{enable,disable}-threads is given to configure.
84         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
85         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
86         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
87         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
88         Remove thread_file setting here.
89
90 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
91
92         * doc/install.texi (Binaries): Update Bull Freeware URL.
93
94 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
95
96         * doc/gcc.texi (Top): Rename Index to Keyword Index.
97
98 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
99
100         * gcov.c (output_data): Round to % to nearest, tweak formatting.
101
102 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
103
104         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
105         of the operands into MINUS_EXPR if code is PLUS_EXPR.
106
107 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
108
109         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
110         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
111         drectve_section): Define.
112         * config/i386/t-interix: Replace interix.o rule with winnt.o.
113         * config/i386/interix.c: Remove.
114
115 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
116
117         * attribs.c: Don't include obstack.h.
118         * builtins.c: Likewise.
119         * cfganal.c: Likewise.
120         * cfgbuild.c: Likewise.
121         * cfgcleanup.c: Likewise.
122         * emit-rtl.c: Likewise.
123         * loop.c: Likewise.
124         * stmt.c: Likewise.
125
126         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
127
128 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
129
130         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
131
132 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
133
134         * doc/invoke.texi: Remove duplicated paragraph describing
135         TARGET_SWITCHES.
136
137 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
138
139         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
140         * collect2.h (permanent_obstack): Delete declaration.
141         * collect2.c (permanent_obstack): Delete definition.
142         (main): Don't initialise permanent_obstack.  Use xstrdup instead.
143         * expr.c: Don't include obstack.h.
144         (permanent_obstack): Delete declaration.
145         * function.c: Don't include obstack.h.
146         (permanent_obstack): Delete declaration.
147         * integrate.c: Don't include obstack.h.
148         (function_maybepermanent_obstack): Delete declaration.
149         * print-tree.c (debug_tree): Use x*alloc not permalloc.
150         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
151         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
152         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
153         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
154         of permalloc, expralloc, perm_calloc.
155         * tree.c (permanent_obstack): Delete definition.
156         (init_ttree): Rename from init_obstacks.
157         (permalloc): Delete.
158         (perm_calloc): Delete.
159         (dump_tree_statistics): Don't print information about
160         permanent_obstack.
161         * varasm.c (assemble_start_function): Use xstrdup instead of
162         permalloc/strcpy.
163         (assemble_variable): Likewise.
164         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
165         permalloc.
166         (unicosmk_add_extern): Likewise.
167         * config/c4x/c4x.c (c4x_external_ref): Likewise.
168         (c4x_global_label): Likewise.
169         * config/frv/frv.c (frv_encode_section_info): Likewise.
170         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
171         (i386_pe_record_exported_symbol): Likewise.
172         * config/mips/mips.c (mips_output_external): Likewise.
173         (mips_output_external_libcall): Likewise.
174         * config/pa/pa.c: (permanent_obstack): Delete declaration.
175         (output_call): Use ggc_strdup instead of allocating on
176         permanent_obstack.
177         * config/romp/romp.c: Include ggc.h.
178         (get_symref): Don't declare permanent_obstack, use ggc_strdup
179         intead of permanent_obstack.
180         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
181         instead of permalloc.
182         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
183         instead of permalloc
184         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
185         instead of permalloc.
186         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
187         permalloc.
188
189 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
190
191         Contribute a port developed primarily by Michael Meissner,
192         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
193         * config.gcc: Add frv-elf target.
194         * config/frv/cmovd.c: New file.
195         * config/frv/cmovh.c: New file.
196         * config/frv/cmovw.c: New file.
197         * config/frv/frv-abi.h: New file.
198         * config/frv/frv-asm.h: New file.
199         * config/frv/frv-modes.def: New file.
200         * config/frv/frv-protos.h: New file.
201         * config/frv/frv.c: New file.
202         * config/frv/frv.h: New file.
203         * config/frv/frv.md: New file.
204         * config/frv/frvbegin.c: New file.
205         * config/frv/frvend.c: New file.
206         * config/frv/lib1funcs.asm: New file.
207         * config/frv/media.h: New file.
208         * config/frv/modi.c: New file.
209         * config/frv/t-frv: New file.
210         * config/frv/uitod.c: New file.
211         * config/frv/uitof.c: New file.
212         * config/frv/ulltod.c: New file.
213         * config/frv/ulltof.c: New file.
214         * config/frv/umodi.c: New file.
215         * config/frv/xm-frv.h: New file.
216
217         * config/frv/media.h: Removed again.
218
219 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
220
221         * gcov.c (bb_file_time): New static variable.
222         (object_directory): May also be object file.
223         (preserve_paths): New static variable.
224         (print_usage): Adjust.
225         (options): Adjust.
226         (process_args): Adjust.
227         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
228         file. Find modification date on bb file.
229         (read_profile): Don't rewind a NULL file.
230         (format_hwint): New static function.
231         (function_summary): Use format_hwint.
232         (output_data): SOURCE_FILE_NAME is never relative to
233         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
234         mangling. Adjust output format to make it more machine readable.
235         * doc/gcov.texi: Document & clarify semantics.
236         
237 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
238
239         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
240
241 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
242
243         * gcc.c (cc1_options): Pass output file as auxbase when
244         appropriate.
245         * profile.c (init_branch_prob): FILENAME has already had ending
246         stripped.
247         * final.c (end_final): Likewise.
248         * toplev.c (aux_base_name): New global.
249         (compile_file): Pass aux_base_name to init init_branch_prob and
250         end_final.
251         (independent_decode_option, case 'a'): New auxinfo options.
252         (case 'd'): Protect against mising basename.
253         (do_compile): Initialize aux_base_name.
254         * toplev.h (aux_base_name): New global.
255         * doc/invoke.texi: Adjust documentation.
256
257 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
258
259         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
260         of TARGET_ALIGN_DOUBLE.
261
262 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
263         
264         * diagnostic.c (inform): New function.
265         * diagnostic.h (inform): Declare.
266         
267 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
268
269         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
270         (movhi_internal): Same.
271         (movqi_internal): Same.
272         (movdi_internal64): Same.
273
274         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
275
276         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
277         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
278         (COMMON_ASM_OP): Define.
279         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
280         Use ALIGN parameter.
281         (LOCAL_COMMON_ASM_OP): Define.
282         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
283
284 2002-08-03  Roger Sayle  <roger@eyesopen.com>
285
286         * builtins.def: Define new builtin functions exp, expf, expl,
287         log, logf and logl (and their __builtin_* variants).
288         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
289         Define exp_optab and log_optab.
290         * optabs.c (init_optans): Initialize exp_optab and log_optab.
291         * genopinit.c (optabs): Implement exp_optab and log_optab
292         using exp?f2 and log?f2 patterns.
293         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
294         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
295         (expand_builtin): Ignore the new builtins (and all cos and
296         sin variants) when not optimizing.  Expand new builtins via
297         expand_builtin_mathfn when flag_unsafe_math_optimizations.
298
299         * doc/extend.texi: Document new exp and log builtins.
300         * doc/md.texi: Document new exp?f2 and log?f2 patterns
301         (and previously undocumented cos?f2 and sin?f2 patterns).
302
303 2002-08-03  Jason Merrill  <jason@redhat.com>
304
305         * explow.c (int_expr_size): New fn.
306         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
307         * expr.h: Declare it.
308
309 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
310
311         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
312         gengtype-* dependencies.
313
314 2002-08-02  Eric Christopher  <echristo@redhat.com>
315
316         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
317         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
318         #ifndef to #undef.
319         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
320
321 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
322
323         PR optimize/7067
324         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
325         small if optimizing for size.
326
327 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
328
329         * configure.in (FORBUILD): Use $build_alias.
330         * configure: Regenerated.
331
332 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
333
334         * config.gcc: Don't include mips/abi64.h in $tm_file.
335         * hard-reg-set.h (call_really_used_regs): Declare.
336         * config/mips/abi64.h: Remove file.
337         * config/mips/linux.h,
338         * config/mips/iris6.h: Don't include it.
339         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
340         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
341         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
342         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
343         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
344         Bring across definitions from abi64.h.
345         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
346         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
347         (struct mips_args): Use it.
348         * config/mips/mips.c (mips_conditional_register_usage): Define.
349
350 2002-08-02  Jason Merrill  <jason@redhat.com>
351
352         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
353         * langhooks.c (lhd_expr_size): Define default.
354         * langhooks.h (struct lang_hooks): Add expr_size.
355         * explow.c (expr_size): Call it.
356         * expr.c (store_expr): Don't copy an expression of size zero.
357         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
358         to store.
359         * Makefile.in (builtins.o): Depend on langhooks.h.
360
361 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
362
363         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
364         * ra-debug.c: Include "tm_p.h".
365         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
366
367 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
368
369         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
370         when not honoring signalling NaNs.
371         (simplify_ternary_operation): a == b has a definite value
372         when not honoring NaNs.
373
374 2002-08-02  Jason Merrill  <jason@redhat.com>
375
376         * gdbinit.in (pct): New macro.
377
378 2002-08-01  Stan Shebs  <shebs@apple.com>
379             Andreas Tobler  <toa@pop.agri.ch>
380
381         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
382         plays nice with Darwin headers.
383         (_BSD_RUNE_T_DEFINED_): Likewise.
384
385 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
386
387         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
388         * cppinit.c (cpp_post_options): Likewise.
389
390         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
391         warning about 'LL' suffix (but not 'ULL' etc) when
392         -Wno-long-long is in effect.
393
394         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
395         Check for failing time()/localtime(), issue a warning, and
396         make __TIME__ and __DATE__ expand to fallback strings.
397
398         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
399         and __TIME__ when the date and time cannot be determined.
400
401 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
402
403         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
404
405 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
406
407         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
408
409 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
410
411         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
412         (mipsisa64sb1el-*-elf*): Likewise.
413         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
414         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
415         (TARGET_SB1, TUNE_SB1): New macros.
416         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
417         -mtune flags.
418
419 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
420
421         * varasm.c (asm_emit_uninitialized): Return false if global BSS
422         and ASM_EMIT_BSS not supported by target.
423         (assemble_variable): Do not duplicate uninitialized logic.
424         Fall through if asm_emit_uninitialized failed.
425
426 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
427
428         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
429
430 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
431
432         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
433         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
434
435         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
436         HOST_BITS_PER_WIDE_INT == 64.
437
438 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
439
440         * df.c (df_insn_table_realloc): Change parameter to unsigned.
441         * optabs.c (expand_binop): Make variable unsigned.
442         * simplify-rtx.c (simplify_subreg): Likewise.
443         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
444
445 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
446
447         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
448
449 2002-08-01  Richard Henderson  <rth@redhat.com>
450
451         * toplev.c (parse_options_and_default_flags): Don't set
452         flag_reorder_blocks for -Os.
453
454         * config/avr/avr.c (avr_optimization_options): Remove.
455         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
456         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
457         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
458
459 2002-08-01  H.J. Lu <hjl@gnu.org>
460             Richard Henderson  <rth@redhat.com>
461
462         * output.h (DECL_READONLY_SECTION): Remove.
463         (decl_readonly_section): Declare.
464         * varasm.c (decl_readonly_section): New.
465         (default_section_type_flags, default_select_section): Use it.
466         * config/arm/pe.c (arm_pe_unique_section): Likewise.
467         * config/i386/interix.c (i386_pe_unique_section): Likewise.
468         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
469         * config/mcore/mcore.c (mcore_unique_section): Likewise.
470         * config/mips/mips.c (mips_unique_section): Likewise.
471
472 2002-08-01  Richard Henderson  <rth@redhat.com>
473
474         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
475         refers to a subroutine parameter.
476
477 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
478
479         * varasm.c (assemble_visibility): Strip name encoding.
480
481 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
482
483         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
484         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
485         when there is no frame pointer.
486         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
487         registers properly.
488         * config/ns32k/__unorddf2.c: New file.
489         * config/ns32k/__unordsf2.c: New file.
490         * config/ns32k/t-ns32k: New file.
491         * config.gcc (ns32k-*-netbsd*): Use it.
492
493 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
494
495         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
496
497 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
498
499         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
500
501 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
502
503         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
504
505 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
506
507         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
508
509 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
510
511         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
512         n_sets): Removed.
513         (expr_hash_table, set_hash_table): Type changed to ...
514         (struct hash_table): New type.
515         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
516         insert_expr_in_table, insert_set_in_table, compute_hash_table,
517         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
518         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
519         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
520         (alloc_hash_table): New.
521         (free_set_hash_table, free_expr_hash_table): Merged to ...
522         (free_hash_table): New.
523         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
524         (compute_hash_table_work): New.
525         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
526         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
527         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
528         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
529         hoist_code, one_code_hoisting_pass,
530         trim_ld_motion_mems): Altered due to changed type of hash tables.
531
532 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
533
534         * final.c (output_alternate_entry_point):
535         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
536
537 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
538
539         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
540         avoid ISO C style function definition.
541
542         * expr.c (expand_assignment): Delete unused variable.
543
544 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
545
546         * c-common.c (cb_register_builtins): Set
547         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
548         is given, and to 0 otherwise.
549         * combine.c (simplify_if_then_else): HONOR_NANS
550         implies FLOAT_MODE_P.
551
552 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
553
554         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
555         (cpp_handle_option): Don't handle it.
556         (print_help): Update.
557         * doc/cppopts.texi: Update.
558
559 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
560
561         * c-common.c (cb_register_builtins): If C++, define
562         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
563         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
564 cp:
565         * lang-specs.h: Simplify in accordance with new code in
566         c-common.c.
567
568 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
569
570         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
571         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
572         * c-decl.c: Move all warning and flag variables to c-common.c.
573         * c-format.c: Move all warning variables to c-common.c.
574         * c-tree.h: Move all warning and flag declarations to c-common.h.
575         * objc/objc-act.c: Move all warning variables to c-common.c.
576         (flag_warn_protocol): Rename warn_protocol.
577
578 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
579
580         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
581
582 2002-07-31  Graham Stott  <grahams@btinternet.com>
583
584         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
585         .section prefix.
586
587 2002-07-31  Stan Shebs  <shebs@apple.com>
588
589         * config.gcc (i[34567]86-*-darwin*): New configuration.
590         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
591         defining.
592         (TARGET_ENCODE_SECTION_INFO): Ditto.
593         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
594         * config/darwin.c (machopic_indirect_data_reference): Remove
595         setting of RTX_UNCHANGING_P.
596         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
597         not to be applied to sums.
598         * config/i386/t-darwin: New file.
599         * config/i386/darwin.h: New file.
600         * config/i386/i386.h (TARGET_MACHO): Add default definition.
601         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
602         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
603         label and not the GOT add.
604         (constant_address_p): For Mach-O, seeing a CONST is enough.
605         (legitimate_pic_address_disp_p): Add a Mach-O case.
606         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
607         (legitimize_pic_address): Use generic Mach-O code to legitimize.
608         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
609         if outputting a difference.
610         (ix86_output_addr_diff_elt): Add Mach-O case.
611         (ix86_expand_move): Similarly.
612         (ix86_expand_call): Similarly.
613         (current_machopic_label_num): New global.
614         (machopic_output_stub): New function.
615         (ix86_value_regno): New function.
616         (ix86_function_value): Use it instead of VALUE_REGNO.
617         (ix86_libcall_value): Ditto.
618         * config/i386/unix.h (VALUE_REGNO): Remove.
619
620 2002-07-31  Graham Stott  <grahas@btinternet.com>
621
622         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
623         hash for LABEL_REF's.
624
625 2002-07-31  Graham Stott  <grahams@btinternet.com>
626
627         * config/rs6000/rs6000.c (spe_init_builtins,
628         altivec_init_builtins, rs6000_common_init_builtins):
629         Replace ANSI with K&R function def.
630
631 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
632
633         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
634         for CCFPmode.
635
636 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
637
638         * config/mips/crtn.asm: Don't use __mips16 to determine the
639         return-address offset.  Define RA to a suitable temporary
640         register for the return address.
641
642 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
643
644         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
645         constraints to 'd'.
646
647 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
648
649         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
650         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
651         patch on 2002-07-29.)
652         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
653
654 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
655
656         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
657         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
658         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
659         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
660         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
661         (ASM_GLOBALIZE_LABEL): Delete.
662         (GLOBAL_ASM_OP): Define.
663
664         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
665
666         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
667         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
668
669 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
670
671         * doc/extend.texi (Hints implementation): Document that GCC
672         mostly ignores `register'.
673
674 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
675
676         * flags.h: Declare flag_finite_math_only.
677         Use it in definition of HONOR_NANS and
678         HONOR_INFINITIES.
679         * c-common.c (cb_register_builtins): Emit
680         __FINITE_MATH_ONLY__ when flag_finite_math_only
681         is set.
682         * combine.c (simplify_if_then_else): If
683         flag_finite_math_only is set, a == b has a
684         definite value.
685         * toplev.c: Initialize flag_finite_math_only.
686         (set_flags_fast_math): Set it on -ffast-math.
687         (flag_fast_math_set_p): Test it.
688         * doc/invoke.texi: Document -ffinite-math-only.
689
690 2002-07-30  Richard Henderson  <rth@redhat.com>
691
692         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
693         (noce_process_if_block): Likewise.
694
695 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
696
697         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
698         Bail out early if false_expr is NULL and we'd crash due to this.
699         * genemit.c (gen_expand): Recognize return insns even if the return
700         appears in a parallel.
701         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
702         * config/fp-bit.c: Likewise.
703         * doc/tm.texi: Document it.
704
705 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
706             Zack Weinberg  <zack@codesourcery.com>
707
708         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
709         CODE_FOR_nothing.  Change switch to if.
710         (rs6000_expand_binop_builtin): Same.
711         (rs6000_expand_builtin): Expand builtin if target support enabled.
712         (rs6000_init_builtins): Init builtin if target support enabled.
713         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
714
715 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
716
717         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
718
719 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
720
721         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
722
723 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
724
725         * sh.md (cond_delay_slot): New attribute.
726         (cbranch delay): Use it for anulled-true case.
727         (stuff_delay_slot): New pattern.
728         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
729         delay slot insn.
730         (gen_far_branch): Emit stuff_delay_slot pattern.
731
732 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
733
734         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
735
736 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
737
738         * fold-const.c: Fix comment typos.
739         * gcse.c: Likewise.
740         * reload1.c: Likewise.
741
742 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
743
744         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
745         for TARGET_SPE.
746
747 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
748
749         * c-pretty-print.h (pp_c_statement): Declare.
750         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
751         (pp_c_statement): Define.
752
753 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
754
755         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
756         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
757         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
758         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
759         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
760         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
761
762         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
763         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
764
765 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
766
767         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
768         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
769         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
770         (pp_c_expression): Update.
771
772 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
773
774         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
775         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
776         * alpha/vms-ld.c (main): Likewise.
777         * dsp16xx.c (double_reg_to_memory): Likewise.
778         * mcore.c (mcore_expand_prolog): Likewise.
779         * cppfiles.c (read_name_map): Likewise.
780         * gensupport.c (process_rtx, identify_predicable_attribute,
781         alter_test_for_insn): Likewise.
782         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
783
784 2002-07-29  Roger Sayle  <roger@eyesopen.com>
785
786         * builtins.c (expand_builtin):  Change the default behavior to
787         only issue an error if the builtin function doesn't have a
788         fallback library call.  Remove several cases handled by the
789         new default.
790
791 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
792
793         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
794         floating point format of the target is IEEE.
795         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
796         format of the target is DEC.
797
798 2002-07-29  Richard Henderson  <rth@redhat.com>
799
800         * unroll.c (verify_addresses): Remove.
801         (find_splittable_givs): Never split DEST_ADDR givs.
802
803 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
804
805         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
806         is exhaustive.
807         (Files): Improve documentation on generated source files.
808
809         * doc/extend.texi (Translation implementation): Document what
810         diagnostics look like.
811         (Identifiers implementation): Document that there's normally no
812         limit on identifier names.
813         (Integers implementation): Document two's complement.
814         (Hints implementation): Document that GCC honours 'inline', mostly.
815         (Preprocessing directives implementation): Document that GCC
816         requires the current time.
817
818 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
819
820         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
821         (pp_initializer): New macro.
822         (pp_c_initializer): Declare.
823         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
824         (pp_c_initializer): Define.
825         (pp_c_initializer_list): New function.
826         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
827         VECTOR_CST, CONSTRUCTOR.
828         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
829         IMAGPART_EXPR.
830         (pp_c_cast_expression): Handle FLOAT_EXPR.
831         (pp_c_assignment_expression): Handle INIT_EXPR.
832         (pp_c_expression): Update.
833
834 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
835
836         * objc/objc-act.c (objc_init): Return immediately if filename
837         is NULL.
838
839 2002-07-29  Eric Christopher  <echristo@redhat.com>
840
841         * config/mips/elf.h: Remove ecoff.h and gofast includes.
842         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
843         (SDB_DEBUGGING_INFO): Undefine.
844         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
845         (PUT_SDB_SIZE): Remove.
846         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
847         (STARTFILE_SPEC): Add isa3264 define.
848         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
849         * config/mips/ecoff.h: Remove. and here...
850         * config/mips/iris3.h: and here...
851         * config/mips/sni-svr4.h: and here...
852         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
853         Add assembler -mmdebug options for non-dwarf debugging.
854         * config/mips/r3900.h: Remove debug info defines.
855         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
856         * config/mips/isa3264.h: Ditto.
857         * config/mips/t-isa3264: Fix up for file removal and gofast configure
858         change.
859         * config/mips/t-elf: Ditto.
860         * config/mips/t-ecoff: Ditto.
861         * config/mips/t-r3900: Ditto.
862         * config/mips/t-iris5-6: Ditto.
863         * config/mips/t-isa3264: Ditto.
864         * config/mips/t-linux: Remove.
865         * config/mips/t-netbsd: Remove.
866         * config/mips/t-mips: New file.
867         * config/mips/t-gofast: Ditto.
868         * config/mips/netbsd.h: Remove unnecessary undefines.
869         * config/mips/linux.h: Remove #include of mips.h.
870         * config.gcc: Add mips.h include for elf targets. Remove tm_file
871         for ecoff. Add gofast configure option for mips.
872
873 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
874
875         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
876         linker scripts use STARTUP directives consistently.
877         * configure: Regenerate.
878         * config.in: Regenerate.
879         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
880         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
881         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
882         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
883         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
884         will be the same.
885
886 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
887
888         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
889
890 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
891
892         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
893
894 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
895
896         * config/rs6000/rs6000.md: Move altivec patterns from here...
897
898         * config/rs6000/altivec.md: ...to here.
899
900 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
901
902         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
903
904 2002-07-29  Richard Henderson  <rth@redhat.com>
905
906         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
907         set_mem_attributes and add BITPOS argument.  Subtract it from
908         OFFSET when same is adjusted.
909         (set_mem_attributes): New wrapper function.
910         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
911         remove offset adjustment hack.
912         * expr.h (set_mem_attributes_minus_bitpos): Declare.
913
914 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
915
916         * Makefile.in (C_OBJS): Include c-pretty-print.o
917         (c-pretty-print.o): Add depency rule.
918         * pretty-print.h: Add more macros.
919         * c-pretty-print.c: New file.
920         * c-pretty-print.h: Likewise.
921
922 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
923
924         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
925         constants to __ev64_s32__.
926         (__internal_ev_mwhgsmian): Same.
927         (__internal_ev_mwhgsmfan): Same.
928         (__internal_ev_mwhgssfan): Same.
929         (__internal_ev_mwhgumiaa): Same.
930         (__internal_ev_mwhgsmiaa): Same.
931         (__internal_ev_mwhgsmfaa): Same.
932         (__internal_ev_mwhgssfaa): Same.
933
934 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
935
936         * varasm.c (assemble_variable): Narrow test for uninitialized
937         without BSS target support.
938
939 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
940
941         * profile.c: Add file comment describing the overall algorithm and
942         structures.
943         (struct edge_info): Add comments.
944         (struct bb_info): Add comments.
945         * basic-block.h (EDGE_*): Add comments.
946         * doc/gcov.texi (Gcov Data Files): Document bit flags.
947
948 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
949
950         * config/xtensa/elf.h, config/xtensa/linux.h
951         (TARGET_OS_CPP_BUILTINS): Define.
952         (CPP_PREDEFINES): Remove.
953         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
954         (CPP_SPEC): Remove.
955
956 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
957
958         * gensupport.c: Include hashtab.h.
959         (insn_elision, condition_table, hash_c_test, cmp_c_test,
960         maybe_eval_c_test): New routines and data structures to
961         support insn elision.
962         (init_md_reader): Read and initialize the condition_table.
963         (read_md_rtx): Discard insn patterns whose C test is provably
964         always false.
965         * gensupport.h: Declare new functions and data structures.
966
967         * genconditions.c, dummy-conditions.c: New files.
968         * Makefile.in: Build genconditions; run it to construct
969         insn-conditions.c; build that and link it into most gen*
970         programs.
971         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
972         (GEN): Delete, unused.
973         (STAGESTUFF): Update.
974
975         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
976         CODE_FOR_nothing for all elided patterns.
977         (main): Tweaked to support this.
978         * genflags.c (gen_proto): Emit a static inline generator
979         function here for all elided patterns, which simply returns
980         NULL_RTX.
981         (gen_insn): Do not define HAVE_xxx for elided patterns.
982         (main): Tweaked to support this.  No need to forward-declare
983         struct rtx_def.
984         * genrecog.c: Do not bother emitting the C test if it's known
985         to be true at compile time.
986
987 2002-07-29  Mike Stump  <mrs@apple.com>
988
989         * config.gcc (target_gtfiles): Initialize, as otherwise cross
990         compilers hosted on powerpc-apple-darwin6.0 won't even build.
991
992 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
993
994         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
995         remove clobber of LR.
996         (sibcall_insn, sibcall_value_insn): Update accordingly.
997         (sibcall_epilogue): Remove debugging comment from assembler stream.
998
999 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
1000
1001         * pretty-print.h: Define more macros.
1002         * diagnostic.h (output_formatted_integer): Moved from...
1003         * diagnostic.c: ... here.
1004
1005 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1006
1007         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
1008
1009 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
1010
1011         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
1012         arguments.  Always use ".-symbol" as expression argument.
1013         * doc/tm.texi: Update to match.  Document requirement for
1014         ".size symbol, .-symbol" to be acceptable to assembler.
1015
1016         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
1017         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
1018         config/i386/freebsd-aout.h, config/i386/sco5.h,
1019         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
1020         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
1021
1022 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1023
1024         * Makefile.in (gengtype-lex.c): Fix error in last change.
1025
1026         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
1027         backslash.
1028
1029         * Makefile.in (vmsdbgout.o): Depend on function.h.
1030
1031         * vmsdbgout.c: Include function.h.
1032
1033 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
1034
1035         * prefix.c (update_path): Don't strip single `.' path components
1036         unless stripping a later `..' component.  Exit loop as soon as
1037         a valid path is found.
1038
1039 2002-07-27  Roger Sayle  <roger@eyesopen.com>
1040
1041         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
1042         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
1043         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
1044         floating point unordered comparisons (e.g. __builtin_isgreater)
1045         as const, and leave the remaining GCC_BUILTINs unchanged.
1046
1047         * c-decl.c (builtin_function): No need to explicitly mark
1048         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
1049
1050 2002-07-27  Roger Sayle  <roger@eyesopen.com>
1051
1052         * Makefile.in: rtlanal.o now depends upon real.h.
1053
1054         * flags.h [flag_signaling_nans]: New flag.
1055         [HONOR_SNANS]: New macro.
1056
1057         * toplev.c [flag_signaling_nans]: Initialize to false.
1058         (f_options): Add processing for "-fsignaling-nans".
1059         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
1060         (process_options): flag_signaling_nans implies flag_trapping_math.
1061
1062         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
1063         when -fsignaling-nans.  First step to implementing WG14's N965.
1064
1065         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
1066         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
1067         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
1068
1069         * simplify-rtx.c (simplify_relational_operation): Conditionalize
1070         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
1071
1072         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
1073         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
1074         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
1075         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
1076         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
1077
1078         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
1079
1080 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1081
1082         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
1083         * gengtype-lex.l (YY_USE_PROTOS): Undef.
1084         (YY_DECL): Define.
1085
1086 2002-07-27  Roger Sayle  <roger@eyesopen.com>
1087
1088         * doc/invoke.texi: Document that both -fno-builtin-foo and
1089         -fno-builtin are supported by the g++ front-end.
1090
1091 2002-07-27  Stan Shebs  <shebs@apple.com>
1092
1093         * configure.in: Rename config_gtfiles to target_gtfiles.
1094         * configure: Regenerate.
1095         * doc/gty.texi: Update reference.
1096         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
1097         instead of appending to it.
1098
1099 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
1100
1101         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
1102         vectors are split into two registers.
1103         (function_arg): Same.
1104
1105 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
1106
1107         * pa.md (extv): Check predicates before emitting extv_32.
1108
1109 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
1110
1111         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
1112         (rs6000_traceback): New var.
1113         (rs6000_override_options): Set rs6000_traceback.
1114         (rs6000_output_function_epilogue): Implement traceback options.
1115         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
1116         (rs6000_traceback_name): Declare.
1117
1118         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
1119         label reference when NO_PROFILE_COUNTERS.
1120
1121 2002-07-26  Jason Merrill  <jason@redhat.com>
1122
1123         * function.c (assign_parms): Handle frontend-directed pass by
1124         invisible reference.
1125
1126 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
1127
1128         * doc/cppopts.texi: Update.
1129
1130 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
1131
1132         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
1133         warnings on assertions.
1134
1135 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
1136
1137         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
1138         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
1139         RID_COMPL): Remove.
1140         * c-parse.in (rid_to_yy): Similarly.
1141
1142 2002-07-26  Jason Merrill  <jason@redhat.com>
1143
1144         * c-dump.c: Resurrect.
1145         * tree-dump.c: Move C-specific stuff to c-dump.c.
1146         * c-common.h: Declare c_dump_tree.
1147         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
1148         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
1149         (c-dump.o): New rule.
1150
1151 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
1152
1153         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
1154         PowerPC64.  Replace "T" and "S" constraints with "n" when the
1155         predicate will do.  Formatting fixes.
1156         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
1157         as for extzvsi_internal1.
1158
1159 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
1160
1161         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
1162         DERIV_END_LABEL_FMT): Remove.
1163         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
1164
1165 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
1166
1167         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
1168         Remove.
1169
1170 2002-07-25  Stan Shebs  <shebs@apple.com>
1171
1172         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
1173         local var dwarfp.
1174         (output_compiler_stub): Remove unused locals.
1175         (output_call): Always initialize line number.
1176
1177 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
1178
1179         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
1180         * sh.md (truncdiqi2, movqi_media): Likewise.
1181
1182 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
1183
1184         * gcse.c (obstack_chunk_alloc): Remove.
1185         (gcse_alloc): Fix to count allocated bytes.
1186         * collect2.c (SYMBOL__MAIN): Remove.
1187
1188 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
1189
1190         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
1191         HAVE_TARGET_EXECUTABLE_SUFFIX.
1192
1193 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
1194
1195         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
1196         SIZE, EXPR and OFFSET.
1197
1198 2002-07-25  Richard Henderson  <rth@redhat.com>
1199
1200         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
1201         in ARRAY_REF of DECL_P case.
1202
1203 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
1204
1205         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
1206         description.  Document -mips32, -mips64, and the associated -march
1207         values.  Describe the "mipsN" arguments to -march.  Say that the
1208         -mipsN options are equivalent to -march.  Reword the description
1209         of default type sizes.
1210         * toplev.h (target_flags_explicit): Declare.
1211         * toplev.c (target_flags_explicit): New var.
1212         (set_target_switch): Update target_flags_explicit.
1213         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
1214         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
1215         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
1216         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
1217         * config/mips/mips.h (mips_cpu_info): New struct.
1218         (mips_cpu_string, mips_explicit_type_size_string): Remove.
1219         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
1220         (MIPS_CPP_SET_PROCESSOR): New macro.
1221         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
1222         Define _MIPS_ARCH and _MIPS_TUNE.
1223         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
1224         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
1225         MIPS_ISA_DEFAULT were already defined.
1226         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
1227         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
1228         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
1229         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
1230         (ABI_GAS_ASM_SPEC): Remove.
1231         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
1232         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
1233         Invoke %(asm_abi_default_spec) if no ABI was specified.
1234         (CC1_SPEC): Remove ISA -> register-size rules.
1235         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
1236         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
1237         (mips_cpu_string, mips_explicit_type_size_string): Remove.
1238         (mips_cpu_info_table): New array.
1239         (mips_set_architecture, mips_set_tune): New fns.
1240         (override_options): Rework to make -mipsN equivalent to -march.
1241         Detect more erroneous cases, including those removed from CC1_SPEC.
1242         Don't change the ABI based on architecture, or vice versa.
1243         Unify logic with GAS.
1244         (mips_asm_file_start): Get architecture name from mips_arch_info.
1245         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1246         (mips_parse_cpu): Take the name of the option as argument.  Handle
1247         'from-abi'.  Raise an error if the option is wrong.
1248         (mips_cpu_info_from_isa): New fn.
1249
1250 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
1251
1252         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
1253         (tablejump_mips162): Likewise.
1254
1255 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
1256
1257         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
1258         int_mode_for_mode.
1259
1260 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
1261
1262         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
1263         complaining.
1264         * c-common.h (c_sizeof): Adjust definition.
1265         (c_alignof): Likewise.
1266         * c-tree.h (c_sizeof_nowarn): Now macro.
1267         * c-typeck.c (c_sizeof_nowarn): Remove definition.
1268
1269 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
1270
1271         * c-decl.c (c_decode_option): No need to handle switches
1272         cpplib handles.
1273
1274 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
1275
1276         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
1277         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
1278         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
1279         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
1280
1281         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
1282         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
1283         config/cris/aout.h, config/i386/freebsd-aout.h,
1284         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
1285         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
1286         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
1287         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
1288         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
1289         config/xtensa/elf.h, config/xtensa/linux.h:
1290         Use the new macros.
1291         Where possible, remove redundant definitions of SIZE_ASM_OP,
1292         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
1293
1294 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
1295
1296         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
1297         TARGET_ISEL, and TARGET_FPRS.
1298
1299         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1300         -mabi=spe, -mabi=no-spe, and -misel=.
1301
1302         * config/rs6000/rs6000-protos.h: Add output_isel.
1303         Move vrsave_operation prototype here.
1304
1305         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
1306         (smaxsi3): Same.
1307         (uminsi3): Same.
1308         (umaxsi3): Same.
1309         (abssi2_nopower): Disallow when TARGET_ISEL.
1310         (*ne0): Same.
1311         (negsf2): Change to expand and rename old pattern to *negsf2.
1312         (abssf2): Change to expand and rename old pattern to *abssf2.
1313
1314         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
1315         fixunssfsi2.
1316
1317         Change patterns that check for TARGET_HARD_FLOAT or
1318         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
1319
1320         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
1321         rs6000_isel, rs6000_fprs, rs6000_isel_string.
1322         (rs6000_override_options): Add 8540 case to
1323         processor_target_table.
1324         Set rs6000_isel for the 8540.
1325         Call rs6000_parse_isel_option.
1326         (enable_mask_for_builtins): New.
1327         (rs6000_parse_isel_option): New.
1328         (rs6000_parse_abi_options): Add spe and no-spe.
1329         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
1330         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
1331         for TARGET_HARD_FLOAT.
1332         Add case for SPE_VECTOR_MODE.
1333         (rs6000_legitimize_reload_address): Handle SPE vector modes.
1334         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
1335         vector modes.
1336         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
1337         (rs6000_emit_move): Check for TARGET_FPRS.
1338         Add cases for SPE vector modes.
1339         (function_arg_boundary): Return 64 for SPE vector modes.
1340         (function_arg_advance): Check for TARGET_FPRS and
1341         Handle SPE vectors.
1342         (function_arg): Same.
1343         (setup_incoming_varargs): Check for TARGET_FPRS.
1344         (rs6000_va_arg): Same.
1345         (struct builtin_description): Un-constify mask field.  Move up in
1346         file.
1347         (bdesc_2arg): Un-constify and add SPE builtins.
1348         (bdesc_1arg): Same.
1349         (bdesc_spe_predicates): New.
1350         (bdesc_spe_evsel): New.
1351         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
1352         (rs6000_expand_binop_builtin): Same.
1353         (bdesc_2arg_spe): New.
1354         (spe_expand_builtin): New.
1355         (spe_expand_predicate_builtin): New.
1356         (spe_expand_evsel_builtin): New.
1357         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
1358         (rs6000_init_builtins): Initialize SPE builtins.  Call
1359         rs6000_common_init_builtins.
1360         (altivec_init_builtins): Move all non-altivec builtin code to...
1361         (rs6000_common_init_builtins): ...here.  New function.
1362         (branch_positive_comparison_operator): Allow NE code for SPE.
1363         (ccr_bit): Return correct ccr bit for SPE fp.
1364         (print_operand): Emit crnor in 'D' case for SPE.
1365         New case 't'.
1366         Add SPE code for 'y' case.
1367         (rs6000_generate_compare): Generate rtl for SPE fp.
1368         (output_cbranch): Handle SPE hard floats.
1369         (rs6000_emit_cmove): Handle isel.
1370         (rs6000_emit_int_cmove): New.
1371         (output_isel): New.
1372         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
1373         64-bits for SPE.
1374         (debug_stack_info): Add SPE info.
1375         (gen_frame_mem_offset): New.
1376         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
1377         Change mode of frame pointer, when saving it, to Pmode.
1378         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
1379         Misc cleanups and use gen_frame_mem_offset when appropriate.
1380
1381         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
1382         (TARGET_SPE_ABI): New.
1383         (TARGET_SPE): New.
1384         (TARGET_ISEL): New.
1385         (TARGET_FPRS): New.
1386         (FIXED_SCRATCH): New.
1387         (RTX_COSTS): Add PROCESSOR_PPC8540.
1388         (ASM_CPU_SPEC): Add case for 8540.
1389         (TARGET_OPTIONS): Add isel= case.
1390         (rs6000_spe_abi): New.
1391         (rs6000_isel): New.
1392         (rs6000_fprs): New.
1393         (rs6000_isel_string): New.
1394         (UNITS_PER_SPE_WORD): New.
1395         (LOCAL_ALIGNMENT): Adjust for SPE.
1396         (HARD_REGNO_MODE_OK): Same.
1397         (DATA_ALIGNMENT): Same.
1398         (MEMBER_TYPE_FORCES_BLK): New.
1399         (FIRST_PSEUDO_REGISTER): Set to 113.
1400         (FIXED_REGISTERS): Add SPE registers.
1401         (reg_class): Same.
1402         (REG_CLASS_NAMES): Same.
1403         (REG_CLASS_CONTENTS): Same.
1404         (REGNO_REG_CLASS): Same.
1405         (REGISTER_NAMES): Same.
1406         (DEBUG_REGISTER_NAMES): Same.
1407         (ADDITIONAL_REGISTER_NAMES): Same.
1408         (CALL_USED_REGISTERS): Same.
1409         (CALL_REALLY_USED_REGISTERS): Same.
1410         (SPE_ACC_REGNO): New.
1411         (SPEFSCR_REGNO): New.
1412         (SPE_SIMD_REGNO_P): New.
1413         (HARD_REGNO_NREGS): Adjust for SPE.
1414         (VECTOR_MODE_SUPPORTED_P): Same.
1415         (REGNO_REG_CLASS): Same.
1416         (FUNCTION_VALUE): Same.
1417         (LIBCALL_VALUE): Same.
1418         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
1419         (SPE_VECTOR_MODE): New.
1420         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
1421         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
1422         (rs6000_stack): Add spe_gp_size, spe_padding_size,
1423         spe_gp_save_offset.
1424         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
1425         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
1426         (SPE_CONST_OFFSET_OK): New.
1427         (rs6000_builtins): Add SPE builtins.
1428
1429         * testsuite/gcc.dg/ppc-spe.c: New.
1430
1431         * config/rs6000/eabispe.h: New.
1432
1433         * config/rs6000/spe.h: New.
1434
1435         * config/rs600/spe.md: New.
1436
1437         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1438         __SIMD__ for TARGET_SPE.
1439
1440         * config.gcc: Add powerpc-*-eabispe* case.
1441         Add spe.h to user headers for powerpc.
1442
1443 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
1444
1445         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
1446         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
1447         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
1448
1449 2002-07-24  Richard Henderson  <rth@redhat.com>
1450
1451         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
1452         form when not optimizing.
1453
1454 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
1455
1456         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
1457         thread_pointer_rtx as unchanging.
1458
1459 2002-07-24  Michael Matz  <matz@suse.de>
1460
1461         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
1462         (free_reg): Use it.
1463
1464 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
1465
1466         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
1467         pattern.
1468         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
1469         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
1470
1471 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
1472
1473         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
1474         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
1475         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
1476
1477 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1478
1479         * toplev.c (rest_of_compilation): Dump loops before clobbering
1480         the structure.
1481
1482 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
1483
1484         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
1485
1486 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
1487
1488         PR optimization/7291
1489         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
1490         problem on x86_64.
1491
1492 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
1493
1494         * pretty-print.h: Add macros from cp/error.c
1495
1496 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
1497
1498         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
1499         (mask64_2_operand): Declare.
1500         (build_mask64_2_operands): Declare.
1501         (and64_2_operand): Declare.
1502         (extract_MB): Declare.
1503         (extract_ME): Declare.
1504         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
1505         CONST_DOUBLE code.
1506         (mask_operand_wrap): New insn predicate.
1507         (mask64_2_operand): Likewise.
1508         (and64_2_operand): Likewise.
1509         (build_mask64_2_operands): New function.
1510         (extract_MB): New function.
1511         (extract_ME): New function.
1512         (print_operand <case m,M>): Use extract_MB and extract_ME.
1513         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
1514         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
1515         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
1516         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
1517         * config/rs6000/rs6000.md (andsi3_internal3): New
1518         (andsi3_internal3+1): Enable split for powerpc64.
1519         (andsi3_internal3+2): New split.
1520         (andsi3_internal4): Renamed old andsi3_internal3.
1521         (andsi3_internal5): New.
1522         (andsi3_internal5+1): Enable split for powerpc64.
1523         (andsi3_internal5+2): New split.
1524         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
1525         (anddi3): Handle 't' constraint.
1526         (anddi3+1): New split.
1527         (anddi3_internal2): Handle 't' constraint.
1528         (anddi3_internal2+1): New split.
1529         (anddi3_internal3): Handle 't' constraint.
1530         (anddi3_internal3+1): New split.
1531
1532 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
1533
1534         * config/rs6000/rs6000.md: Remove scratch reg on insns using
1535         addze and similar (plus (comparison r1 r2) r3) insns.  Add
1536         missing scratch reg in one case.  Formatting fixes.
1537
1538 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
1539
1540         * cppexp.c (parse_defined): Mark macro used.
1541         * cpphash.h (struct cpp_macro): New member "used".
1542         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
1543         (struct cpp_reader): New member.
1544         * cppinit.c (cpp_finish_options): Set first_unused_line.
1545         (cpp_finish): Warn of unused macros if requested.
1546         (OPT_TABLE): New switches.
1547         (cpp_handle_option): Handle them.
1548         * cpplib.c (do_undef): Warn if macro unused.
1549         (do_ifdef, do_ifndef): Mark macro used.
1550         * cpplib.h (struct cpp_options): New member.
1551         * cppmacro.c (_cpp_warn_if_unused_macro): New.
1552         (enter_macro_context): Mark macro used.
1553         (_cpp_create_definition): Mark macro unused; warn if unused
1554         when redefined.
1555         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
1556         Mark macros used.
1557         * doc/cppopts.texi: Update.
1558
1559 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1560
1561         * dwarf2out.c (SECTION_ASM_OP,
1562         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
1563         * system.h (SECTION_ASM_OP): Poison.
1564         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
1565         * config/alpha/alpha-interix.h, config/mips/linux.h
1566         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
1567         * config/mmix/mmix-protos.h, config/mmix/mmix.c
1568         (mmix_asm_output_define_label_difference_symbol): Remove.
1569         * config/mmix/mmix.h
1570         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
1571         * doc/tm.texi: Remove documentation.
1572
1573 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1574
1575         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
1576         (constrain_operands): Likewise.
1577         * regclass.c (record_reg_classes): Likewise.
1578         * reload.c (find_reloads): Likewise.
1579         * doc/md.texi: Likewise.
1580
1581         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
1582         * simplify-rtx.c (simplify_subreg): When converting to a non-int
1583         mode, try to convert to an integer mode of matching size first.
1584
1585         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
1586         from individual subregs, check that each subreg has been generated
1587         sucessfully.
1588
1589 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1590
1591         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
1592         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
1593         FOR_EACH_BB_IN_SBITMAP): Remove.
1594         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
1595         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
1596         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
1597         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
1598         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
1599         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
1600
1601 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
1602
1603         * pretty-print.h: New file.
1604
1605 2002-07-23      Paul Koning     <pkoning@equallogic.com>
1606
1607         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
1608         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
1609         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
1610         (TARGET_G_FLOAT): Default to 0 if not defined.
1611         (ieeetoe): New, common routine to convert target format floats
1612         to internal form.
1613         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
1614         vs. others.
1615         (e113toe): Change to use ieeetoe.
1616
1617 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1618
1619         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
1620         IBM.
1621         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
1622         (e64toe): Remove special cases for DEC and IBM. Remove support for
1623         ARM_EXTENDED_IEEE_FORMAT.
1624         (e24toe): Remove special cases for DEC.
1625         (significand_size): Simplify. Indent.
1626         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
1627         (etoieee, toieee): New.
1628         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
1629         etoieee and toieee for IEEE arithmetic.
1630
1631 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
1632
1633         * doc/extend.texi: Say ISO C90, not ISO C89.
1634         * doc/invoke.texi: Likewise.
1635         * doc/standards.texi: Likewise.
1636
1637 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
1638
1639         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
1640         Fix permutation of conversion and plus/mult.
1641         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
1642         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
1643         (expand_builtin_strncpy) Ditto.
1644         (expand_builtin_memset) Ditto.
1645
1646 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
1647
1648         Fix PR/7363:
1649         * c-common.c (c_sizeof_or_alignof_type): New function.
1650         (c_alignof): Remove definition.
1651         * c-common.h (c_sizeof, c_alignof): Define as macros.
1652         (c_sizeof_or_alignof_type): Declare.
1653         (my_friendly_assert): Moved from cp/cp-tree.h
1654         * c-typeck.c (c_sizeof): Remove definition.
1655
1656 2002-07-23  Jan Hubicka  <jh@suse.cz>
1657
1658         * gcse.c (try_replace_reg): Use num_changes_pending.
1659         * recog.c (num_changes_pending): New function.
1660         (validate_replace_src): Use validate_repalce_src_group.
1661         (validate_replace_src_group): New.
1662         * recog.h (validate_repalce_src_group): New.
1663         (num_changes_pending): Likewise.
1664
1665 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
1666
1667         * calls.c (emit_library_call_value_1): If
1668         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
1669         libcall, const call nor pure call.
1670
1671 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1672
1673         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
1674
1675 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1676
1677         * vmsdbgout.c (SECTION_ASM_OP): Remove.
1678
1679 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1680
1681         * config/i386/i386.c (AT_BP): Remove.
1682
1683 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
1684
1685         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
1686         Default definition.
1687         * gcse.c: Don't define obstack_chunk_free.
1688         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
1689         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
1690         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
1691         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
1692         Don't define obstack macros.
1693
1694 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
1695
1696         PR target/6744
1697         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
1698         ASM_OPERANDS instructions.
1699
1700 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
1701
1702         PR target/7361
1703         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
1704         constant addresses only on 68HC12.
1705
1706 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
1707
1708         * cppfiles.c (stack_include_file): Correct test of whether
1709         a dependency should be output.
1710
1711 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
1712
1713         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
1714
1715 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
1716
1717         * arm.md (movqi): If optimizing and we can create pseudos, use
1718         a ZERO_EXTEND to load from memory, then copy the result into the
1719         target.
1720         (movhi): Likewise, but only for ARMv4.
1721
1722 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
1723
1724         * ssa-ccp.c (PHI_PARMS): Remove.
1725
1726 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
1727
1728         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
1729         on big-endian targets.
1730
1731 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1732
1733         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
1734         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1735         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
1736         New formatting macros.
1737
1738         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
1739
1740 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
1741
1742         * rtlanal.c (subreg_regno_offset): Return correct offset for
1743         big endian paradoxical subregs.
1744
1745         * optabs.c (expand_vector_unop): Don't expand using sub_optab
1746         if we got the wrong mode.
1747
1748         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
1749         * genrecog.c (write_switch, write_cond): Use it.
1750         * genemit.c (gen_exp): Likewise.
1751
1752 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
1753
1754         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
1755
1756 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
1757
1758         * c-decl.c (build_compound_literal): Defer compound literal decls
1759         until until file end to emit them only if they are actually used.
1760
1761 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1762
1763         * ra-build.c (check_conflict_numbers): Hide unused function.
1764         (livethrough_conflicts_bb): Avoid automatic aggregate
1765         initialization.
1766         (parts_to_webs_1): Avoid `U' integer constant modifier.
1767         (conflicts_between_webs): Wrap a variable in the macro controlling
1768         its usage.
1769         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
1770         (dump_igraph, dump_graph_cost): Avoid string concatenation
1771         (dump_static_insn_cost): Avoid automatic aggregate
1772         initialization.
1773         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
1774         initialization.
1775         (dump_cost): Avoid string concatenation
1776
1777 2002-07-21  Richard Henderson  <rth@redhat.com>
1778
1779         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
1780         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
1781
1782 2002-07-21  Richard Henderson  <rth@redhat.com>
1783
1784         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
1785         that are not unrolled completely.
1786
1787 2002-07-21  Richard Henderson  <rth@redhat.com>
1788
1789         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
1790         * loop.c (strength_reduce): Update.
1791         * toplev.c (rest_of_compilation): Do unrolling in the first
1792         loop pass, not the second.
1793
1794 2002-07-21  Richard Henderson  <rth@redhat.com>
1795
1796         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
1797         when flag_argument_noalias == 2.
1798         * alias.c (nonoverlapping_memrefs_p): Handle that.
1799         * print-rtl.c (print_mem_expr): Likewise.
1800
1801 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
1802
1803         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
1804         instead of __negdi2 directly.
1805
1806 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
1807
1808         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
1809         * function.c (SYMBOL__MAIN): Remove definition.
1810         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
1811         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
1812         * profile.c (GCOV_INDEX_TO_BB): Remove.
1813         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
1814         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
1815
1816 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
1817
1818         * c-lex.c (GET_ENVIRONMENT): Remove.
1819         * collect2.c (GET_ENV_PATH_LIST): Remove.
1820         (prefix_from_env): Use GET_ENVIRONMENT.
1821         * cppinit.c (GET_ENV_PATH_LIST): Remove.
1822         (init_standard_includes): Use GET_ENVIRONMENT.
1823         * defaults.h (GET_ENVIRONMENT): Define here if not already.
1824         * gcc.c (GET_ENV_PATH_LIST): Remove.
1825         (make_relative_prefix, process_command): Update.
1826         * protoize.c (GET_ENV_PATH_LIST): Remove.
1827         (do_processing): Update.
1828
1829 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
1830
1831         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
1832         (grokdeclarator): Likewise.
1833         * c-format.c (C_STD_NAME): Likewise.
1834         * c-lex.c (interpret_integer): Likewise.
1835         * c-typeck.c (build_array_ref): Likewise.
1836         * cpplex.c (_cpp_lex_direct): Likewise.
1837         * toplev.c (documented_lang_options): Likewise.
1838
1839 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
1840
1841         * c-format.c (T99_I, T99_UI): Remove.
1842
1843 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
1844
1845         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
1846
1847 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1848
1849         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
1850         do_local_cprop.
1851
1852 2002-07-21  Andreas Jaeger  <aj@suse.de>
1853
1854         * reload1.c (fixup_abnormal_edges): Remove unused variable.
1855
1856 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
1857
1858         Improvements for the ifcvt pass from Michael Meissner, with patches
1859         by Richard Sandiford <rsandifo@redhat.com>
1860         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
1861         * ifcvt.c (cond_exec_changed_p): New static variable.
1862         (last_active_insn): New function, renamed from last_active_insn_p
1863         and changed to return the last active insn in a basic block. All
1864         callers updated.
1865         (block_fallthru): New function.
1866         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
1867         IFCVT_MODIFY_INSN.  All callers updated.
1868         Return false if START or END are NULL.
1869         Handle case where we're processing an insn that is already
1870         conditional.
1871
1872         (noce_process_if_block): CE_INFO argument rather than
1873         multiple args containing the involved basic blocks.  All callers
1874         changed.
1875         (process_if_block, merge_if_block, find_if_block,
1876         cond_exec_process_if_block): Likewise.
1877
1878         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
1879         changed.
1880         Use new function last_active_insn to simplify some code.
1881         New code to handle multiple tests.
1882         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
1883         cond_exec_changed_p to TRUE.
1884
1885         (process_if_block): New code to handle multiple tests.
1886         (merge_if_block): Likewise.
1887         (find_if_header): New arg PASS.  Changed to return the currently
1888         processed basic block or NULL instead of true/false. All callers
1889         changed.
1890         Call IFCVT_INIT_EXTRA_FIELDS.
1891         (block_jumps_and_fallthru_p): New function.
1892         (find_if_block): Discover opportunities to convert multiple tests.
1893         Add additional debugging output.
1894         Update the ce_info structure before returning.
1895
1896         (if_convert): Run multiple passes of if-conversion.
1897         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
1898         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
1899         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
1900         these macros.
1901
1902 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1903
1904         * gcse.c: Include cselib.h
1905         (constptop_register): Break out from ...
1906         (cprop_insn): ... here; kill basic_block argument.
1907         (do_local_cprop, local_cprop_pass): New functions.
1908         (one_cprop_pass): Call local_cprop_pass.
1909
1910 2002-07-20  Roger Sayle  <roger@eyesopen.com>
1911
1912         * simplify-rtx.c (simplify_relational_operation): Optimize
1913         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
1914
1915 2002-07-20  Michae Matz  <matz@suse.de>
1916
1917         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
1918
1919 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
1920
1921         * cppexp.c (struct op): Add token pointer.
1922         (check_promotion, CHECK_PROMOTION): New.
1923         (optab): Update.
1924         (_cpp_parse_expr): Update, use token pointer of struct op.
1925         (reduce): Warn about change of sign owing to promotion.
1926         * cppinit.c (cpp_handle_option): New warning if -Wall.
1927         * cpplib.h (struct cpp_options): New member.
1928
1929 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
1930
1931         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
1932         fpu list.  Separate Power4 compare and delayed_compare.  Correct
1933         Power4 fpcompare.
1934         (fix_truncdfsi2_internal): Restore FPR preference.
1935         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
1936         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
1937
1938 2002-07-19  Momchil Velikov <velco@fadata.bg>
1939
1940         * reload1.c (reload_as_needed): Duplicate oldpat.
1941
1942 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
1943
1944         PR optimization/7130
1945         * loop.h (struct loop_info): Add "preconditioned".
1946         * unroll.c (unroll_loop): Set it.
1947         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
1948
1949 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
1950
1951         * rtl.def (CODE_LABEL): Remove slot 8.
1952         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
1953         (LABEL_ALTERNATE_NAME): Delete.
1954         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
1955         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1956
1957         * final.c (output_alternate_entry_point): New.
1958         (final_scan_insn): Use it instead of
1959         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
1960         of a case label being an alternate entry point.
1961
1962         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
1963         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
1964         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
1965         (field deleted).
1966         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
1967
1968         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
1969         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
1970         * doc/tm.texi: Delete documentation of
1971         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1972
1973 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1974
1975         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
1976         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
1977         (LINK_SPEC): Define.
1978         (STARTFILE_SPEC): Define.
1979         (ENDFILE_SPEC): Define.
1980
1981         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
1982         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
1983
1984         * config/mips/iris6-o32-gas.h: New file.
1985         * config.gcc (mips-sgi-irix6*o32): Use it.
1986
1987         * config/mips/t-iris5-gas: New file.
1988         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1989
1990 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
1991
1992         * cppexp.c (ALWAYS_EVAL): Remove.
1993         (optab, reduce): Always evaluate.
1994         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
1995         only if not skipping evaluation.
1996
1997 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1998
1999         * config/avr/avr.c (debug_hard_reg_set): Remove.
2000
2001 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
2002
2003         * gcc.c (cpp_options): Include "%1" (cc1_spec).
2004
2005 2002-07-19  Richard Henderson  <rth@redhat.com>
2006
2007         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
2008
2009 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
2010
2011         * prefix.c (update_path): Don't zap single `.' path components
2012         unless followed by another `.' and fix typo last patch.
2013
2014 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
2015
2016         * cppexp.c (cpp_num_mul): Remove unused parameter.
2017         (UNARY, BINARY, OTHER, binary_handler): Remove.
2018         (ALWAYS_EVAL): New.
2019         (optab): Update.
2020         (reduce): Refactor to a large switch, don't use a function
2021         pointer.
2022
2023 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
2024
2025         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
2026
2027 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2028
2029         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
2030         (sh_expand_binop_v2sf): Likewise.
2031         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
2032         (int_gpr_dest, trunc_hi_operand): New functions.
2033         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
2034         trunc_hi_operand.
2035         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
2036         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
2037         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
2038         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
2039         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
2040         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
2041         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
2042         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
2043         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
2044         (movsf_ie+1): Likewise.
2045         (loaddi_trunc): Use int_gpr_dest predicate.
2046         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
2047         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
2048         (casesi_worker_0+[12], casesi_worker): Likewise.
2049         (shcompact_preserve_incoming_args): Likewise.
2050         (mov_nop): Use any_register_operand predicate.
2051         (mperm_w0): Use trunc_hi_operand predicate.
2052
2053 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2054
2055         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
2056         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
2057         numbering.
2058
2059 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2060
2061         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
2062
2063 2002-07-18  Richard Henderson  <rth@redhat.com>
2064
2065         PR optimization/7147
2066         * ifcvt.c (noce_get_condition): Make certain that the condition
2067         is valid at JUMP.
2068
2069 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
2070
2071         * sh.c (barrier_align, push): Shut up compiler warnings.
2072         (initial_elimination_offset,sh_media_init_builtins): Likewise.
2073         (reg_no_subreg_operand): Delete.
2074
2075 2002-07-17  Bo Thorsen  <bo@suse.de>
2076
2077         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
2078         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
2079         (STARTFILE_SPEC): Remove hardcoded library paths.
2080         (ENDFILE_SPEC): Likewise.
2081
2082 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
2083
2084         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
2085
2086         * gcse.c (try_replace_reg): Do not return false positives.
2087
2088 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
2089
2090         * prefix.c: (update_path): Strip ".." components when prior dir
2091         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
2092
2093         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
2094         (ASM_OUTPUT_REG_POP): Likewise.
2095
2096 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
2097
2098         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
2099         adjustments to first_reg for profiling case.
2100         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
2101         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
2102         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
2103         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
2104         (ASM_OUTPUT_REG_POP): Define.
2105         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
2106         (ASM_OUTPUT_REG_POP): Undef.
2107
2108 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
2109
2110         * cpplib.c (do_sccs): Handle #sccs on all systems.
2111         * system.h (SCCS_DIRECTIVE): Poison.
2112         * config/darwin.h, config/freebsd.h, config/netbsd.h,
2113         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
2114         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
2115         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
2116         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
2117         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
2118         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
2119         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
2120         Remove all references to SCCS_DIRECTIVE.
2121         * doc/cpp.texi, doc/tm.texi: Update.
2122
2123 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
2124
2125         * regrename.c (maybe_mode_change): New function.
2126         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
2127
2128 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
2129
2130         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
2131         suppress addition when either ct or cf are zero.
2132
2133 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
2134             Glen Nakamura <glen@imodulo.com>
2135
2136         PR optimization/6713
2137         * loop.c (loop_givs_rescan): Explicitly delete the insn that
2138         sets a non-replaceable giv after issuing the new one.
2139
2140 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
2141
2142         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
2143         eval_token): Clarify and correct use of "bool" variables.
2144         * cpplib.h (struct cpp_options): Similarly.
2145         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
2146         * cpptrad.c (recursive_macro): Similarly.
2147
2148 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
2149
2150         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
2151         SHmedia code.
2152
2153         * sh.md (cmpgtudi_media): Remove spurious @.
2154
2155         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
2156         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
2157
2158         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
2159         * sh-protos.h (sh_initialize_trampoline): Declare.
2160         * sh.c (sh_initialize_trampoline): New function.
2161         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
2162         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
2163         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
2164         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
2165         * sh.md (initialize_trampoline, double_shori): New patterns.
2166         (initialize_trampoline_compact): Likewise.
2167         (shmedia32_initialize_trampoline_big): Remove.
2168         (shmedia32_initialize_trampoline_little): Likewise.
2169
2170         * sh-protos.h (binary_float_operator): Remove declaration.
2171         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
2172         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
2173         (unary_float_operator, sh_expand_unop_v2sf): New functions.
2174         (sh_expand_binop_v2sf): Likewise.
2175         (zero_vec_operand): Delete.
2176         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
2177         all non-shared ones.
2178         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
2179         Enable nsb and byterev.
2180         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
2181         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
2182         in general regs.
2183         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
2184         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
2185         immediate operands.
2186         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
2187         Add DF_HI_REGS.
2188         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
2189         lowpart fp regs - only for big endian for now.
2190         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
2191         when FPU is in use.
2192         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
2193         (LOAD_EXTEND_OP): NIL for SImode.
2194         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
2195         general and fp registers is 4.
2196         PREDICATE_CODES: Amend binary_float_operator entry.
2197         Remove zero_vec_operand.  Add unary_float_operator.
2198         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
2199         subreg SET_DEST.
2200         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
2201         (truncdiqi2): Do sign extension.
2202         (movsi_media, movdi_media): Allow to use r63 to an fp register.
2203         (movdf_media, movsf_media): Likewise.
2204         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
2205         Collapse to one define_insn_and_split.  Allow immediate sources.
2206         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
2207         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
2208         (movv4sf): Allow immediate sources.
2209         (movsf_media_nofpu+1): Don't split moves to FP registers.
2210         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
2211         (movv8qi_i+3): Check against CONST0_RTX.
2212         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
2213         for input and output operands.  Fix argument 3 to gen_mextr_rl.
2214         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
2215         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
2216         (mshf0_w, fipr, ftrv): Likewise.
2217         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
2218
2219 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2220
2221         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
2222         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
2223         * arm.c: Similarly.
2224
2225 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
2226
2227         * config/mips/mips-protos.h (mips_sign_extend): Declare.
2228         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
2229         (TARGET_SWITCHES): Remove debugh.
2230         (ISA_HAS_TRUNC_W): New macro.
2231         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
2232         (PREDICATE_CODES): Remove se_nonimmediate_operand.
2233         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
2234         any SImode move_operand.
2235         (se_nonimmediate_operand): Remove.
2236         (mips_sign_extend): New.
2237         (mips_move_2words): Use it for sign-extended source operands.
2238         (override_options): Allow integers to be put into single FPRs.
2239         (mips_secondary_reload_class): Handle integers in float registers.
2240         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
2241         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
2242         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
2243         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
2244         (fix_truncdfdi2): Provide only a single alternative, in which the
2245         integer is in a float register.  Depend on TARGET_FLOAT64 rather
2246         than TARGET_64BIT.
2247         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
2248         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
2249         (movdi_internal2): Don't allow the source operand to be sign-extended.
2250         Add alternatives for float registers.
2251         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
2252         allows sign-extension.
2253         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
2254         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
2255         float registers.  Remove TARGET_DEBUG_H_MODE test.
2256         (movhi_internal1): Rename to movhi_internal.  Don't check
2257         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
2258         (movqi_internal1): Rename to movqi_internal and remove
2259         TARGET_DEBUG_H_MODE dependency.
2260         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
2261
2262 2002-07-16  Jim Wilson  <wilson@redhat.com>
2263
2264         * toplev.c (lang_dependent_init): Create function context for
2265         init_expr_once.
2266
2267 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
2268
2269         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
2270         --gc-sections if -r.
2271         * config/cris/cris.h: Ditto.
2272
2273 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
2274
2275         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
2276         the comparison directly gives a mask suppress addition when cf is
2277         zero by complementing the mask.
2278
2279 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2280
2281         * Makefile.in: Delete references to enquire.
2282         * enquire.c: Move to contrib.
2283
2284 2002-07-16  Stan Shebs  <shebs@apple.com>
2285
2286         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
2287         config/rs6000/darwin.h.
2288         (ASM_OUTPUT_SKIP): Ditto.
2289         (TEXT_SECTION_ASM_OP): Ditto.
2290         (DATA_SECTION_ASM_OP): Ditto.
2291         (ASM_APP_ON): Define.
2292         (ASM_APP_OFF): Define.
2293         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
2294         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
2295
2296         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
2297         (machopic_function_base_name): Declare result to be const.
2298         (machopic_non_lazy_ptr_name): Ditto.
2299         (machopic_stub_name): Ditto.
2300         * config/darwin-protos.h: Ditto for the prototypes.
2301
2302 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
2303
2304         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
2305
2306 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
2307
2308         * i386.md (prefetch): Fix for 64bit mode.
2309         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
2310
2311 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2312
2313         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
2314         * i386.c (x86_machine_dependent_reorg): New function.
2315         * i386-protos.h (x86_machine_dependent_reorg): Declare.
2316
2317 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
2318
2319         * builtins.c (std_expand_builtin_va_start): Remove unused
2320         first argument.
2321         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
2322         std_expand_builtin_va_start with just two arguments.
2323         * expr.h: Update prototypes.
2324
2325         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
2326         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
2327         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
2328         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
2329         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
2330         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
2331         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
2332         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
2333         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
2334         argument from all implementations of EXPAND_BUILTIN_VA_START
2335         and all uses of std_expand_builtin_va_start.
2336
2337 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
2338
2339         * regrename.c (copy_value): Don't record high part copies.
2340
2341 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
2342
2343         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
2344         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
2345         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
2346
2347 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2348
2349         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
2350
2351         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
2352         into addsi3 using register class "x" and "y".
2353
2354         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
2355         "earlyclobber" constraint modifier for some alternative.
2356
2357         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
2358         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
2359         unordered.
2360         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
2361
2362         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
2363         (TARGET_SWITCHES): Add -mieee-compare option.
2364         (OVERRIDE_OPTIONS): 32332 is a subset of
2365         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
2366         (TARGET_SWITCHES): Fix description of bitfield option.
2367         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
2368         -mieee-compare option. Remove 32332 flag.
2369
2370 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
2371
2372         * explow.c (convert_memory_address): Remove special handling
2373         when POINTERS_EXTEND_UNSIGNED < 0.
2374         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
2375         (movedi_symbolic): Fix typo.
2376         (load_fptr): Remove mode restriction so it works for SI and DI.
2377         (load_fptr_internal1): Ditto.
2378         (load_gprel): Ditto.
2379         (load_symptr_internal1): Ditto.
2380         (call_pic): Ditto.
2381         * config/ia64.c (call_operand): Modify mode check.
2382         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
2383         (ia64_expand_move): Ditto.
2384         (ia64_assemble_integer): Handle SImode function pointers.
2385         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
2386         (ia64_expand_op_and_fetch): Ditto.
2387         (ia64_expand_compare_and_swap): Ditto.
2388         (ia64_expand_lock_test_and_set): Ditto.
2389         (ia64_expand_lock_release): Ditto.
2390
2391 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2392
2393         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
2394
2395 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2396             Richard Earnshaw  <rearnsha@arm.com>
2397
2398         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
2399         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
2400
2401 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
2402
2403         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
2404         understands to be a memory clobber.
2405         * arm.c (arm_expand_prologue): Use it.
2406
2407 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
2408
2409         * ra-rewrite.c: #include reload.h, insn-config.h
2410         * ra-build.c: #include reload.h
2411         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
2412         depend on reload.h, insn-config.h.
2413
2414 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
2415
2416         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
2417         the same size as a word.
2418
2419         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
2420         BYTES_BIG_ENDIAN into account.
2421
2422 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
2423
2424         * i386.md (prefetch): Fix for 64bit mode.
2425         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
2426
2427         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
2428
2429 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2430
2431         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
2432
2433 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
2434
2435         * ginclude/varargs.h: Replace with stub which issues #error.
2436         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
2437         __builtin_va_start.
2438
2439         * builtins.def (BUILT_IN_VARARGS_START): Delete.
2440         (BUILT_IN_VA_START): New.
2441         * builtins.c (expand_builtin_va_start): Eliminate first
2442         argument and code to implement pre-ISO varargs.
2443         (std_expand_builtin_va_start): Ignore first argument; it is
2444         always 1.
2445         (expand_builtin): Handle BUILT_IN_VA_START and
2446         BUILT_IN_STDARG_START identically.  Delete
2447         BUILT_IN_VARARGS_START case.
2448
2449         * function.c (assign_parms): Delete hide_last_arg and all
2450         its uses.
2451         (mark_varargs): Delete function.
2452         * function.h (struct function): Delete 'varargs' bit.
2453         (current_function_varargs): Delete macro.
2454         * tree.h: Don't declare mark_varargs.
2455
2456         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
2457         (c_expand_body): Don't call mark_varargs.
2458         * c-objc-common.c: Handle BUILT_IN_VA_START and
2459         BUILT_IN_STDARG_START identically.  Delete
2460         BUILT_IN_VARARGS_START case.
2461         * c-tree.h: Don't declare c_mark_varargs.
2462         * c-parse.in: Remove grammar rules for '&...' (which has been
2463         commented out since before 2.7.2) and for '...' in K+R
2464         argument declarations.
2465
2466         * builtins.c, function.c, integrate.c, sibcall.c,
2467         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
2468         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
2469         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
2470         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
2471         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
2472         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
2473         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
2474         config/stormy16/stormy16.c: Delete all references to
2475         current_function_varargs, and code predicated on that flag.
2476
2477         * config/alpha/alpha.c (alpha_va_start),
2478         config/arc/arc.c (arc_va_start),
2479         config/i386/i386.c (ix86_va_start),
2480         config/mips/mips.c (mips_va_start),
2481         config/mn10300/mn10300.c (mn10300_va_start),
2482         config/rs6000/rs6000.c (rs6000_va_start),
2483         config/s390/s390.c (s390_va_start),
2484         config/sh/sh.c (sh_va_start),
2485         Ignore first argument; it is always 1.
2486
2487         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
2488         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
2489         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
2490         Delete m68hc11_va_start.
2491         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
2492         No need to define EXPAND_BUILTIN_VA_START.
2493
2494         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
2495         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
2496
2497 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
2498
2499         PR optimization/7153
2500         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
2501         dies in more than one insn.
2502
2503 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
2504
2505         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
2506
2507 2002-07-15  Michael Matz  <matz@suse.de>,
2508             Daniel Berlin  <dberlin@dberlin.org>,
2509             Denis Chertykov  <denisc@overta.ru>
2510
2511         Add a new register allocator.
2512
2513         * ra.c: New file.
2514         * ra.h: New file.
2515         * ra-build.c: New file.
2516         * ra-colorize.c: New file.
2517         * ra-debug.c: New file.
2518         * ra-rewrite.c: New file.
2519
2520         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
2521         (ra-rewrite.o): New .o files for libbackend.a.
2522         (GTFILES): Add basic-block.h.
2523
2524         * toplev.c (flag_new_regalloc): New.
2525         (f_options): New option "new-ra".
2526         (rest_of_compilation): Call initialize_uninitialized_subregs()
2527         only for the old allocator.  If flag_new_regalloc is set, call
2528         new allocator, instead of local_alloc(), global_alloc() and
2529         friends.
2530
2531         * doc/invoke.texi: Document -fnew-ra.
2532         * basic-block.h (FOR_ALL_BB): New.
2533         * config/rs6000/rs6000.c (print_operand): Write small constants
2534         as @l+80.
2535
2536         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
2537         (df_reg_table_realloc): Make size at least as large as max_reg_num().
2538         (df_insn_table_realloc): Size argument now is absolute, not relative.
2539         Changed all callers.
2540
2541         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
2542         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
2543
2544         2002-06-20  Michael Matz  <matz@suse.de>
2545
2546         * df.h (struct ref.id): Make unsigned.
2547         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
2548
2549         2002-06-13  Michael Matz  <matz@suse.de>
2550
2551         * df.h (DF_REF_MODE_CHANGE): New flag.
2552         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
2553         involving subregs with invalid mode changes, when
2554         CLASS_CANNOT_CHANGE_MODE is defined.
2555
2556         2002-05-07  Michael Matz  <matz@suse.de>
2557
2558         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
2559
2560         2002-05-03  Michael Matz  <matz@suse.de>
2561
2562         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
2563
2564         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
2565
2566         * regclass.c (regclass): Work with all regs which have sets or
2567         refs.
2568         (reg_scan_mark_refs): Count regs inside (clobber ...).
2569
2570         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
2571
2572         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
2573         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
2574         add new refs.
2575         (df_bb_refs_update): Don't clear insns_modified here, ...
2576         (df_analyse): ... but here.
2577
2578         * sbitmap.c (dump_sbitmap_file): New.
2579         (debug_sbitmap): Use it.
2580
2581         * sbitmap.h (dump_sbitmap_file): Add prototype.
2582
2583         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
2584
2585         * df.c (df_insn_modify): Grow the UID table if necessary, rather
2586         than assume all emits go through df_insns_modify.
2587
2588         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
2589
2590         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
2591         increase REG_N_REFS (like flow does), so that regclass doesn't
2592         think a reg is useless, and thus, not calculate a class, when it
2593         really should have.
2594
2595         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
2596
2597         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
2598         dataflow analysis.
2599
2600 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
2601
2602         PR middle-end/7245
2603         * config/i386/i386.c (const_int_1_31_operand): New.
2604         * config/i386/i386.h (PREDICATE_CODES): Add it.
2605         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
2606         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
2607         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
2608
2609 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
2610
2611         PR target/7282
2612         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
2613         (floatunssidf2): Likewise.
2614         (floatsidf_ppc64): New insn_and_split.
2615         (floatunssidf_ppc64): Likewise.
2616
2617 2002-07-14  Andreas Jaeger  <aj@suse.de>
2618
2619         * config.gcc (sh64): Remove unused
2620         target_requires_64bit_host_wide_int.
2621
2622 2002-07-12  Roger Sayle  <roger@eyesopen.com>
2623
2624         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
2625         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
2626         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
2627         whether clear_by_pieces should be used to clear storage.
2628         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
2629
2630         * doc/tm.texi: Document these two new target macros.
2631
2632 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
2633
2634         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
2635         the scratch register.
2636         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
2637         of it, forbid reload to use it.
2638
2639 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2640
2641         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
2642         usage on 64-bit hosts, return value was truncated to 32 bits.
2643
2644 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
2645
2646         * simplify-rtx.c (simplify_subreg): Handle floating point
2647         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
2648         the element mode is requested, compute a subreg with an
2649         integer mode of the same size as the element mode first.
2650
2651 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2652
2653         * combine.c (try_combine): When converting a paradoxical subreg
2654         to an extension, take LOAD_EXTEND_OP into account.
2655
2656 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2657
2658         * config.gcc (mips-sgi-irix6*o32): New configuration.
2659
2660         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
2661         configurations.
2662         * configure: Regenerate.
2663
2664         * config/mips/iris6-o32-as.h: New file.
2665         * config/mips/iris6-o32.h: New file.
2666
2667         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
2668         (NM_FLAGS): Define.
2669         (HAVE_AS_SHF_MERGE): Undefine.
2670
2671         * config/mips/t-iris5-as: New file.
2672         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
2673
2674         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
2675         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
2676         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
2677         dp-bit.c, fp-bit.c): Move ...
2678         * config/mips/t-iris5-6: ... here.
2679         New file, shared by IRIX 5 and IRIX 6.
2680         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
2681         mips-sgi-irix5*): Use it.
2682
2683         * config/mips/iris6.h: Remove duplicate comment.
2684
2685         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
2686         !TARGET_IRIX6]: Define.
2687         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
2688
2689         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
2690
2691 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2692
2693         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
2694         and delete code to force constant to register.
2695         * pa-protos.h (adddi3_operand): Add prototype.
2696         * pa.c (adddi3_operand): New function.
2697
2698 2002-07-11  Roger Sayle  <roger@eyesopen.com>
2699
2700         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
2701         non-ANSI builtin functions.
2702
2703 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
2704
2705         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
2706         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
2707         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
2708         (gen_const_vector_0): Use it.
2709
2710 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2711
2712         * pa.md (adddi3): For 32-bit targets, force constants to a register
2713         if they don't fit in an 11-bit immediate.  Change insn predicate to
2714         arith11_operand.  Remove comment.
2715         * pa.c (cint_ok_for_move): Fix comment.
2716         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
2717         targets.
2718
2719 2002-07-11  Tim Josling  <tej@melbpc.org.au>
2720
2721         Remove front end hard coding from gengtype.c.
2722
2723         * Makefile.in
2724         (STAGESTUFF): add gtyp-gen.h
2725         (GTFILES): Remove front end specific files.
2726         (GTFILES_FILES_LANGS): New, from configure..
2727         (GTFILES_FILES_FILES): Likewise.
2728         (GTFILES_LANG_DIR_NAMES): Likewise.
2729         (GTFILES_SRCDIR): Likewise.
2730         (gtyp-gen.h): Build from configure information.
2731         (s-gtype): Remove command line parameters from gengtype.
2732         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
2733         (mostlyclean): Delete files generated by and for gengtype.
2734
2735         * c-config-lang.in: New file.
2736
2737         * configure.in (all_gtfiles_files_langs): New. Accumulate files
2738         for each language.
2739         (all_gtfiles_files_files): New. Accumulate language for each file
2740         accumulated.
2741         (gtfiles): Pick up value for C.
2742         (srcdir): AC-SUBST this variable.
2743         (all_gtfiles_files_langs): AC-SUBST this variable.
2744         (all_gtfiles_files_files): AC-SUBST this variable.
2745
2746         * configure: Regenerate.
2747
2748         * gengtype-lex.l (parse_file): Make parameter const.
2749
2750         * gengtype.c (toplevel): include gtyp-gen.h.
2751         (BASE_FILE_<language> unnamed enum): Delete.
2752         (lang_names): Delete (replaced by gtyp-gen.h)
2753         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
2754         all references.
2755         (NUM_GT_FILES): New.
2756         (NUM_LANG_FILES): New.
2757         (srcdir_len): New.
2758         (NUM_BASE_FILES): Change calculation.
2759         (open_base_files): Change prototype to avoid warning.
2760         (startswith): Delete.
2761         (get_file_basename): Iterate through generated language list not
2762         hard coded list.
2763         (get_base_file_bitmap): Use generated list of files and languages.
2764         (close_output_files): Add prototype to rmove warning.
2765         (main): Iterate through list of generated files from gtyp-gen.h
2766         rather than command line paramaters.  Ignore duplicated file
2767         names.
2768
2769         * gengtype.h (parse_file): Amend prototype for const parameter.
2770
2771         * doc/sourcebuild.texi: Document gtfiles variable.
2772
2773         * doc/gty.texi: Document changes to gtfiles variable for front
2774         ends.
2775
2776         * objc/config-lang.in (gtfiles): Add files needed for objc front
2777         end.
2778
2779 2002-07-10  Roger Sayle  <roger@eyesopen.com>
2780
2781         PR c/2454
2782         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
2783         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
2784
2785 2002-07-10  Roger Sayle  <roger@eyesopen.com>
2786             Zack Weinberg <zack@codesourcery.com>
2787
2788         * builtins.def: Make the argument types of abort and exit
2789         independent of the front-end.
2790
2791 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
2792
2793         * config/rs6000/linux64.h (ASM_SPEC): Define.
2794
2795 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
2796
2797         * config/rs6000/rs6000.c (emit_frame_save): New.
2798         (rs6000_frame_related): Replace reg2 before reg.
2799         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
2800         and eh_return registers.
2801
2802 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2803
2804         Revert all patches for optimization of Complex .op. Real.
2805         * complex_part_zero_p: Remove
2806         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
2807         with x.
2808         * expand_cmplxdiv_wide: Ditto.
2809         * expand_binop: Ditto.
2810
2811 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2812
2813         * config/avr/avr.md: Fix two 0x80000000 constants to make them
2814         negative also on 64-bit hosts.
2815
2816         Default to -fno-reorder-blocks when optimizing for size.
2817         * config/avr/avr-protos.h (avr_optimization_options): Declare.
2818         * config/avr/avr.c (avr_optimization_options): New function.
2819         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
2820
2821         Optimize returning from simple functions.
2822         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
2823         * config/avr/avr.c (avr_simple_epilogue): New function.
2824         * config/avr/avr.md (return): New insn.
2825
2826 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
2827
2828         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
2829         HAS_INIT_SECTION to protection.
2830
2831 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
2832
2833         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
2834         deprecated.
2835
2836 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
2837
2838         * combine.c (gen_lowpart_for_combine): Handle vector modes.
2839         Supply non-VOID mode to simplify_gen_subreg.
2840
2841 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
2842
2843         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
2844
2845 2002-07-10  Jeffrey A Law  <law@redhat.com>
2846
2847         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
2848         as appropriate.
2849
2850         * mn10200.c (expand_epilogue): Fix test to determine which scratch
2851         register to use.
2852
2853 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
2854
2855         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
2856         Get mode from dest.
2857         If simplify_gen_subreg fails, try next equivalent.
2858
2859 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
2860
2861         * diagnostic.h: #include location.h
2862         (location_t): Move definition to..
2863         * location.h: ... here.  New file.
2864         * tree.h: #include location.h
2865         (DECL_SOURCE_LOCATION): New macro.
2866         (DECL_SOURCE_FILE): Use.
2867         (DECL_SOURCE_LINE): Likewise.
2868         (struct tree_decl): REplace filename and linenum with locus.
2869         * Makefile.in (TREE_H): add location.h
2870         (diagnostic.o): Depends on gt-location.h
2871         (gt-location.h): Depends on s-gtype
2872
2873 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
2874
2875         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
2876         TARGET_OS_CPP_BUILTINS.
2877         * config/rs6000/aix31.h: Likewise.
2878         * config/rs6000/aix41.h: Likewise.
2879         * config/rs6000/aix43.h: Likewise.
2880         * config/rs6000/aix51.h: Likewise.
2881         * config/rs6000/beos.h: Likewise.
2882         * config/rs6000/darwin.h: Likewise.
2883         * config/rs6000/eabi.h: Likewise.
2884         * config/rs6000/eabisim.h: Likewise.
2885         * config/rs6000/linux.h: Likewise.
2886         * config/rs6000/linux64.h: Likewise.
2887         * config/rs6000/lynx.h: Likewise.
2888         * config/rs6000/mach.h: Likewise.
2889         * config/rs6000/rtems.h: Likewise.
2890         * config/rs6000/sysv4.h: Likewise.
2891         * config/rs6000/vxppc.h: Likewise.
2892
2893 2002-07-09 Devang Patel <dpatel@apple.com>
2894         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
2895         Do not allow ObjC objects as a parameter type for Objective-C methods.
2896         My previous patch restricted  'struct' also.
2897
2898 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
2899
2900         * cpperror.c (cpp_error): Default to directive_line within
2901         directives here.
2902         * cppexp.c (cpp_interpret_integer): Only use traditional
2903         number semantics in directives.
2904         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
2905         (do_include_common): Similarly.
2906         * cpptrad.c (scan_out_logical_line): Implement accurate
2907         quoting of <> in #include.
2908         * doc/cpp.texi: Update.
2909
2910 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
2911                           J"orn Rennecke <joern.rennecke@superh.com>
2912
2913         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
2914         * sh.md (attribute issues): Replace with:
2915         (attribute pipe_model).  All users changed.
2916         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
2917         All users changed.
2918         (function units sh5issue, sh5fds): New.
2919         (attribute is_mac_media): New.
2920         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
2921         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
2922         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
2923         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
2924         (call_media, call_value_media, sibcall_media): Likewise.
2925         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
2926         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
2927         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
2928         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
2929         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
2930         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
2931         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
2932         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
2933         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
2934         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
2935         (truncdfsf2_media): Likewise.
2936         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
2937         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
2938
2939 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
2940
2941         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
2942         * sh.c (general_extend_operand, inqhi_operand): New functions.
2943         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
2944         alternatives using 'N' modifier.  Add type.
2945         (adddi3z_media): Likewise.  Enable generator function generation.
2946         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
2947         exact predicates / constraints.  Add type.
2948         (subsi3): Allow 0 for SHMEDIA.
2949         (udivsi3_i4_media): Use match_operand for input values
2950         rather than hard registers.
2951         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2952         unnecessarily through hard registers.  Keep copies of pseudo
2953         registers outside of the libcall sequence.
2954         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
2955         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
2956         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
2957         (extendhidi2, extendqidi2): Likewise.
2958         (andsi3_compact): Name.
2959         (andcdi3): Enable generator function generation.
2960         (zero_extendhisi2, zero_extendqisi2): Rename to
2961         (zero_extendhisi2_compact, zero_extendqisi2_compact).
2962         (extendhisi2, extendqisi2): Rename to
2963         (extendhisi2_compact, extendqisi2_compact).
2964         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
2965         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
2966         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
2967         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
2968         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
2969         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
2970         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
2971         (shmedia32_initialize_trampoline_big): Likewise.
2972         (shmedia32_initialize_trampoline_little): Likewise.
2973         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
2974         (negdi2): Remove spurious T clobber.
2975         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
2976         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
2977         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
2978         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
2979         (ic_invalidate_line_media): Write back data cache before invalidating
2980         instruction cache.  Add type.
2981         (movsf_media): Sign-extend when the destination is a general
2982         purpose register.  Add type.
2983         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
2984         (casesi_worker_0+1): Only increment ref count for proper label.
2985         (casesi_worker_0+2): Likewise.
2986
2987 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
2988
2989         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
2990
2991 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
2992
2993         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
2994         from Pmode to ptr_mode.
2995         (get_exception_pointer): Ditto.
2996         (connect_post_landing_pads): Ditto.
2997         (dw2_build_landing_pads): Ditto.
2998
2999 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
3000         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
3001         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
3002         (handle_pragma_redefine_extname): Change to use new function.
3003
3004 2002-07-08  Roger Sayle  <roger@eyesopen.com>
3005
3006         * combine.c (combine_simplify_rtx): Add an explicit cast
3007         to avoid signed/unsigned comparison warning.
3008         (simplify_if_then_else): Likewise.
3009         (extended_count): Likewise.
3010         (simplify_shift_const): Likewise.
3011         (simplify_comparison): Likewise.
3012
3013 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
3014
3015         * config/mips/mips.md: Add imadd type.  Update scheduler description
3016         to use imadd as well as imul.
3017         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
3018         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
3019         (*mul_sub_si): Likewise for first alternative.  Change second
3020         alternative from imul to multi.
3021
3022 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
3023
3024         * c-common.c (c_common_post_options): Update prototype;
3025         don't init backends if preprocessing only.
3026         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
3027         * langhooks.h (struct lang_hooks): Update post_options to
3028         return a boolean.
3029         * toplev.c (parse_options_and_default_flags, do_compile,
3030         lang_independent_init): Update prototypes.  Allow the
3031         front end to specify that there is no need to initialize
3032         the back end.
3033         (general_init): Move call to hex_init here...
3034         (toplev_main): ...from here.  Pass flag for back end init
3035         suppression.
3036
3037 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
3038
3039         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
3040         (PREDICATE_CODES): Add entries for equality_comparison_operator,
3041         greater_comparison_operator and less_comparison_operator.
3042         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
3043         more operators.
3044         (equality_comparison_operator): New function.
3045         (greater_comparison_operator, less_comparison_operator): Likewise.
3046         * sh.md (beq_media_i): Disable generator function generation.
3047         Use match_operator to handle a whole class of comparisons.  Add
3048         modifier in output template to provide branch prediction.  Add type.
3049         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
3050         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
3051         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
3052         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
3053
3054 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
3055
3056         Emit MMIX function prologue and epilogue as rtl.
3057         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
3058         not unprototyped get_hard_reg_initial_val.
3059         ("call_value", "nonlocal_goto_receiver"): Ditto.
3060         ("return"): Make define_expand.  Move real insn to...
3061         ("*expanded_return"): New pattern.
3062         ("prologue", "epilogue"): New define_expands.
3063         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
3064         (struct machine_function): New member in_prologue.
3065         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
3066         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
3067         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
3068         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
3069         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
3070         (LOCAL_REGNO): Define.  Adjust comment.
3071         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
3072         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
3073         leaf_function_p.
3074         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
3075         the prologue.
3076         (mmix_target_asm_function_prologue): Make static.  Just mark that
3077         the prologue is being emitted.  Move guts to...
3078         (mmix_expand_prologue): New function.  Adjust for emitting
3079         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
3080         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
3081         \n.  Move guts to...
3082         (mmix_expand_epilogue): New function.  Adjust for emitting
3083         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
3084         (mmix_target_asm_function_end_prologue): Mark that the prologue
3085         has ended.
3086         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
3087         (mmix_conditional_register_usage): Improve comments.
3088         (mmix_local_regno): New function.
3089         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
3090         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
3091         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
3092         (mmix_get_hard_reg_initial_val): Ditto.
3093
3094 2002-07-06  Andreas Jaeger  <aj@suse.de>
3095
3096         * toplev.c (set_fast_math_flags): Don't use ISO C style function
3097         definitions.
3098         * gengtype.c (open_base_files): Likewise.
3099         (close_output_files): Likewise.
3100         * tracer.c (find_best_predecessor): Likewise.
3101         (find_best_successor): Likewise.
3102         (ignore_bb_p): Likewise.
3103
3104 2002-07-05  Roger Sayle  <roger@eyesopen.com>
3105
3106         PR c++/7099
3107         * builtin-attrs.def: Define new attribute lists for use in
3108         builtins.def.
3109         * builtins.def [DEF_BUILTIN]: Modify to take an additional
3110         ATTRS argument, an enumerated value defined in builtin-attrs.def
3111         that represents the attribute list for the builtins.  Modify
3112         all builtin functions to pass an appropriate attribute list.
3113         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
3114         their required noreturn attributes.
3115         * tree.h (enum_builtin_function): Ignore the additional parameter
3116         to DEF_BUILTIN.
3117         * builtins.c (built_in_names): Likewise.
3118         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
3119         argument with a tree representing the functions attribute list.
3120         Pass this "attrs" argument to builtin_function.  No longer handle
3121         the noreturn_p processing manually.
3122         (built_in_attributes): Move the definitions from builtin-attrs.def
3123         before c_common_nodes_and_builtins.
3124         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
3125         DEF_BUILTIN, passing it to both builtin_function and the changed
3126         builtin_function_2.
3127
3128         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
3129         __builtin__exit and __builtin__Exit.
3130
3131 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
3132
3133         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
3134         QI mode registers in soft registers.
3135         ("zero_extendqihi2"): Do not take into account soft registers
3136         for register allocation (use '*' constraint).
3137
3138 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
3139
3140         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
3141         it is dead.
3142         ("*ashrsi3"): Likewise.
3143         ("*lshrsi3"): Likewise.
3144
3145 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
3146
3147         * genautomata.c (output_max_insn_queue_index_def): Take latencies
3148         into account.
3149
3150 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
3151
3152         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
3153         address computation and memory moves.
3154
3155 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
3156
3157         PR c++/6706
3158         * dwarfout.c (output_reg_number): Fix warning message.
3159         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
3160         before using it.
3161
3162 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3163
3164         * gcc/gcc.c (asm_debug): Move initialization ...
3165         (init_spec): ... here.
3166
3167 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3168
3169         * c-parse.in (extdef): Append ';'.
3170         (old_style_parm_decls): Append ';'.
3171
3172 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
3173
3174         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
3175         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
3176         to gcc_cv_as_gstabs_flag.
3177         * configure: Rebuilt.
3178
3179 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
3180
3181         * ggc.h (ggc_add_root): Document as obsolete.
3182
3183 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
3184
3185         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
3186         (mshflo_w): Likewise.
3187
3188 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
3189
3190         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
3191         vector mode subregs of constants to finding integer mode
3192         subregs of constants.
3193         * cse.c (cse_insn): Use simplify_gen_subreg.
3194         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
3195         From a vector mode expression of different size than the
3196         target mode.
3197
3198 2002-07-03  Eric Christopher  <echristo@redhat.com>
3199
3200         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
3201         * config/mips/mips.h: Remove deprecated -m<processor> options
3202         and cc1_cpu_spec associated.
3203         (CONSTANT_ADDRESS_P): Fix last patch.
3204         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
3205         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
3206         sunge_sf): Remove.
3207
3208 2002-07-03  Stan Shebs  <shebs@apple.com>
3209
3210         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
3211         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
3212         (CPP_SPEC): Remove insertion of APPLE_CC definition.
3213
3214 2002-07-03  Roger Sayle  <roger@eyesopen.com>
3215
3216         * combine.c (struct_undo): Change types of recorded substitutions
3217         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
3218         (do_SUBST_INT): Change types of the substitution from unsigned int
3219         to int, to avoid compilation warning from SUBST_INT's only caller.
3220
3221         (make_extraction): Add cast to avoid compilation warning.
3222         (force_to_mode): Remove cast to avoid compilation warning.
3223
3224 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
3225             Jeff Law  <law@redhat.com>
3226
3227         * i386.md (length_immediate attribute): Fix typo.
3228         (length_address attribute): Likewise.
3229         (modrm attribute): Set it to 0 for immediate call instructions.
3230         (jcc_1 pattern): Set modrm attribute to 0.
3231         (jcc_2 pattern ): Likewise.
3232         (jump pattern): Likewise.
3233         (doloop_end_internal pattern): Explicitly set length.
3234         (leave pattern): Fix typo.
3235         (leave_rex64 pattern): Likewise.
3236
3237 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
3238
3239         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
3240         in FPR as preference.
3241         (fctiwz): Same.
3242         (floatdidf2, fix_truncdfdi2): Same.
3243         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
3244         (floatditf2): Same.
3245         (floatsitf2, fix_trunctfsi2): SImode in GPR.
3246         (ctrdi): Remove FPR alternative and splitter.
3247
3248 2002-07-03  Will Cohen  <wcohen@redhat.com>
3249
3250         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
3251
3252 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
3253
3254         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
3255         than UNITS_PER_WORD, unless this is little endian and the first unit
3256         in this word.  Let extract_bit_field decide how to load an element.
3257         Force arguments to matching mode.
3258         (expand_vector_unop): Likewise.
3259
3260         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
3261         consist of word_mode elements.
3262         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
3263         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
3264         (build_unary_op): Allow vector types for BIT_NOT_EPR.
3265         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
3266         CONST_VECTOR.
3267         * optabs.c (expand_vector_binop): Try to perform operation in
3268         smaller vector modes with same inner size.  Add handling of AND, IOR
3269         and XOR.  Reject expansion to inner-mode sized scalars when using
3270         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
3271         (expand_vector_unop): Try to perform operation in smaller vector
3272         modes with same inner size.  Add handling of one's complement.
3273         When there is no vector negate operation, try a vector subtract
3274         operation.  Use simplify_gen_subreg on constants.
3275         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
3276         constants into smaller vectors with same inner mode, and to
3277         integer CONST_DOUBLEs.
3278
3279 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3280
3281         * c-parse.in (parsing_iso_function_signature): New variable.
3282         (extdef_1): New, copied from...
3283         (extdef): ... here.  Reset parsing_iso_function_signature.
3284         (old_style_parm_decls):  Reset parsing_iso_function_signature.
3285         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
3286         Warn about ISO C style function definitions.
3287         (nested_function, notype_nested_function): Reset
3288         parsing_iso_function_signature.
3289         (parmlist_2): Set parsing_iso_function_signature.
3290
3291         * doc/invoke.texi (-Wtraditional): Document new behavior.
3292
3293 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
3294
3295         * config.gcc (mips*el-*-*): Use tm_defines to set
3296         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
3297         * config/mips/little.h: Remove.
3298
3299 2002-07-02 Devang Patel <dpatel@apple.com>
3300
3301         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
3302         object as parameter. Prevent something like 'NSObject' to be
3303         used as the type for a method argument.
3304
3305 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
3306
3307         * cpptrad.c: Update comment.
3308
3309 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
3310
3311         * doc/cpp.texi: Update for traditional preprocessing changes.
3312         * goc/cppopts.texi: Similarly.
3313
3314 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
3315
3316         * c-parse.in (designator): Enable designated initializers if ObjC.
3317         (objcmessageexpr): Remove references to objc_receiver_context.
3318         * objc/objc-act.h (objc_receiver_context): Remove decl.
3319         * objc/objc-act.c (objc_receiver_context): Remove.
3320         (lookup_objc_ivar): Test objc_method_context instead of
3321         objc_receiver_context.
3322
3323 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
3324
3325         * sh.c (print_operand, case 'N'): Allow zero vector.
3326         (arith_reg_or_0_operand): Likewise.
3327         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
3328         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
3329         IOR, XOR, PLUS and SET and take their respective constant
3330         ranges into account.
3331         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
3332         * sh.md (subdi3, subdi3_media): Allow zero operand.
3333         (movv8qi_i+3): Only vector that is not split is the zero vector.
3334         Fix operand 3 to simplify_subreg.
3335         (movv2si_i): Split alternative 1.
3336         (mshfhi_l_di_rev+1): New splitter.
3337
3338 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
3339
3340         PR preprocessor/7029
3341         * cppinit.c (cpp_handle_option):  Suppress warnings with an
3342         implicit "-w" for "-M" and "-MM".
3343         * doc/cppopts.texi: Update.
3344
3345 2002-07-01  Roger Sayle  <roger@eyesopen.com>
3346
3347         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
3348         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
3349         builtin_function.
3350
3351 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
3352
3353         * README.Portability: Fix typos.
3354
3355 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
3356
3357         PR target/7177
3358         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
3359         of indirections for register inside sign-extended mem part.
3360
3361 2002-07-01  Roger Sayle  <roger@eyesopen.com>
3362
3363         * tree.h:  Modify builtin_function interface to take an extra
3364         argument ATTRS, which is a tree representing an attribute list.
3365
3366         * c-decl.c (builtin_function): Accept additional parameter.
3367         * objc/objc-act.c (builtin_function): Likewise.
3368         * f/com.c (builtin_function): Likewise.
3369         * java/decl.c (builtin_function): Likewise.
3370         * ada/utils.c (builtin_function): Likewise.
3371         * cp/decl.c (builtin_function): Likewise.
3372         (builtin_function_1): Likewise.
3373
3374         * c-common.c (c_common_nodes_and_builtins): Pass an additional
3375         NULL_TREE argument to builtin_function.  (builtin_function_2):
3376         Likewise.
3377         * cp/call.c (build_java_interface_fn_ref): Likewise.
3378         * objc/objc-act.c (synth_module_prologue): Likewise.
3379         * java/decl.c (java_init_decl_processing): Likewise.
3380         * f/com.c (ffe_com_init_0): Likewise.
3381
3382         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
3383         NULL_TREE argument to builtin_function.
3384         * config/arm/arm.c (def_builtin): Likewise.
3385         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
3386         * config/i386/i386.c (def_builtin): Likewise.
3387         * config/ia64/ia64.c (def_builtin): Likewise.
3388         * config/rs6000/rs6000.c (def_builtin): Likewise.
3389
3390 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
3391
3392         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
3393         * config/mips/t-isa3264: Likewise.
3394         * config/mmix/t-mmix: Likewise.
3395
3396 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3397
3398         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
3399
3400 2002-07-01  Roger Sayle  <roger@eyesopen.com>
3401
3402         PR opt/4046
3403         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
3404         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
3405         B are truth values.
3406
3407 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3408
3409         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
3410
3411 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
3412
3413         * README.Portability (Function prototypes): Give an example of
3414         declaring and defining a function with no arguments.
3415
3416         * README.Portability (Function prototypes): Document new
3417         variable-argument function macros.
3418
3419 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
3420
3421         * sh.c (langhooks.h): Include.
3422         (sh_init_builtins, sh_media_init_builtins): New functions.
3423         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
3424         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
3425         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
3426         (builtin_description): New struct tag.
3427         (signature_args, bdesc): New arrays.
3428         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
3429         (print_operand): Add 'N' modifier.
3430         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
3431         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
3432         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
3433         (CONST_COSTS): Add special case for SHmedia AND.
3434         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
3435         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
3436         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
3437         target_operand can also be const or unspec.
3438         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
3439         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
3440         (attribute type): Add new types.
3441         (anddi3): Add splitter.
3442         (movdi_const_16bit+1): Add code to handle vector constants and
3443         bitmasks efficiently.
3444         (shori_media): Have generator function made.
3445         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
3446         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
3447         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
3448         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
3449         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
3450         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
3451         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
3452         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
3453         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
3454         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
3455         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
3456         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
3457         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
3458         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
3459         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
3460         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
3461         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
3462         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
3463         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
3464         (ftrv): Likewise.
3465
3466         (fpu_switch+1, fpu_switch+2): Remove constraint.
3467
3468 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
3469
3470         * tree.c (build_function_type_list): Update function comment.
3471         Rename first argument to return_type.
3472
3473 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
3474
3475         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
3476         tradcif.y and related files.
3477
3478 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
3479
3480         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
3481
3482 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3483
3484         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
3485
3486 2002-06-30  Devang Patel  <dpatel@apple.com>
3487
3488         * objc/objc-act.c (finish_file): Avoid finish_objc() if
3489         -fsyntax-only.
3490
3491 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
3492                           Frank Ch. Eigler  <fche@redhat.com>
3493                           Matthew Green  <mrg@redhat.com>
3494                           Richard Henderson <rtl@redhat.com>
3495                           Dave Hudson  <dave.hudson@ubicom.com>
3496                           Jeff Johnston  <jjohnstn@redhat.com>
3497                           Alan Lehotsky <apl@alum.mit.edu>
3498                           Bernd Schmidt  <bernds@redhat.com>
3499                           Graham Stott  <grahams@redhat.com>
3500
3501         * doc/extend.texi: Add ip2k port to description of attribute
3502         naked.
3503         * doc/install.texi (Specific): Add ip2k description.
3504         * doc/install-old.texi (Configurations): Add ip2k to possible
3505         cpu types.
3506         * doc/md.texi: Document ip2k constraints.
3507         * config/ip2k/crt0.S: New file.
3508         * config/ip2k/ip2k-protos.h: New file.
3509         * config/ip2k/ip2k.c: New file.
3510         * config/ip2k/ip2k.h: New file.
3511         * config/ip2k/ip2k.md: New file.
3512         * config/ip2k/libgcc.S: New file.
3513         * config/ip2k/t-ip2k: New file.
3514
3515 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
3516
3517         * config/mmix/mmix.md ("return"): New pattern.
3518         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
3519         (TARGET_USE_RETURN_INSN): New macros.
3520         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
3521         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
3522         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
3523         (MMIX_POP_ARGUMENT): New macro.
3524         (mmix_target_asm_function_prologue): When no epilogue is executed,
3525         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
3526         (mmix_print_operand) <case '.'>: New case.
3527         (mmix_print_operand_punct_valid_p): Match '.'.
3528         (mmix_use_simple_return): New function.
3529         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
3530         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
3531         -msingle-exit, -mno-single-exit.
3532         (MMIX Options): Ditto.
3533
3534 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
3535
3536         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
3537
3538 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3539
3540         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
3541
3542 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
3543
3544         * unroll.c (loop_iterations): Handle EQ loops.
3545
3546 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
3547
3548         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
3549         constraint in define_expand, not splitter.
3550         Formatting.
3551
3552 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
3553
3554         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
3555         build_function_type_list instead of build_function_type.
3556
3557         * config/ia64/ia64.c (ia64_init_builtins): Same.
3558
3559         * config/alpha/alpha.c (alpha_init_builtins): Same.
3560
3561         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
3562
3563         * config/arm/arm.c (arm_init_builtins): Same.
3564
3565         * tree.h: Add build_function_type_list prototype.
3566
3567         * tree.c (build_function_type_list): New.
3568
3569 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3570
3571         * collect2.c (scan_prog_file): Fix typo in message.
3572
3573 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
3574
3575         * fold-cont.c: Remove unused CHARMASK.
3576
3577 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
3578
3579         PR preprocessor/7150
3580         * cppmain.c (scan_translation_unit_trad): Simplify.
3581         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
3582
3583 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3584
3585         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
3586         Don't use CPP_PREDEFINES.
3587         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
3588         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
3589         * config/i386/djgpp.h, config/i386/i386-coff.h,
3590         config/i386/i386-interix.h, config/i386/i386-interix3.h,
3591         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
3592         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
3593         config/i386/uwin.h: Similarly.
3594
3595 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3596
3597         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
3598         flag_inline_trees to enable inlining.
3599
3600 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
3601
3602         * configure.in (gcc_gxx_include_dir):  Change to match versioned
3603         C++ headers if --enable-version-specific-runtime-libs is used.
3604         * configure:  Regenerate.
3605
3606 2002-06-28  Jan Hubicka  <jh@suse.cz>
3607
3608         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
3609
3610 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
3611
3612         * combine.c (combine_simplify_rtx): Pass the mode of the
3613         shift count, not the shift operation when trying to simplify
3614         a shift on a SHIFT_COUNT_TRUNCATED target.
3615
3616 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
3617
3618         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
3619         avoid the auto increment addressing modes.
3620         ("*subsi3"): Likewise.
3621         (split for add/sub on address): For 68HC12 push the value on
3622         the stack and do the operation with a pop.
3623
3624 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
3625
3626         * cpplib.c (_cpp_handle_directive): Move #define-specific
3627         code to the #define handler...
3628         (do_define): ...here.
3629         (lex_macro_node): No longer a need to check for comments here.
3630
3631 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
3632
3633         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
3634         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
3635         Declare.
3636         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
3637         do not reorder basic blocks at the end when optimizing for size.
3638
3639 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
3640
3641         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
3642         (m68hc11_make_autoinc_notes): New function.
3643         (m68hc11_split_move): Be very cautious when spliting a move with
3644         auto increment/decrement modes because this may result in incompatible
3645         directions; add REG_INC notes to the resulting insn for CSE reg.
3646
3647 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
3648
3649         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
3650         can be a valid address.
3651
3652 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
3653
3654         * config/rs6000/rs6000.c: Remove unusued variables from last
3655         patch.
3656
3657 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
3658
3659         Revert:
3660         * config/rs6000/rs6000.c (rs6000_override_options): Move
3661         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
3662
3663 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
3664
3665         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
3666         lvx/stv/dst builtins...
3667         (altivec_expand_ld_builtin): ...to here.
3668         (altivec_expand_st_builtin): ...here.
3669         (altivec_expand_dst_builtin): ...and here (respectively).
3670
3671 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
3672
3673         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
3674
3675 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
3676
3677         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
3678         subregs.
3679         * recog.c (general_operand, register_operand): Disallow them.
3680
3681 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
3682
3683         PR preprocessor/7138
3684         * cpplib.c (_cpp_handle_directive): Do traditional
3685         preparation after setting state.angled_headers.
3686         * cpptrad.c (scan_out_logical_line): Fix potential
3687         quote bug.
3688
3689 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
3690
3691         * config/rs6000/rs6000.c (rs6000_override_options): Move
3692         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
3693
3694 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
3695
3696         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
3697         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
3698         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
3699
3700 2002-06-27  Roger Sayle  <roger@eyesopen.com>
3701
3702         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
3703         * config/stormy16/stormy16.h: Likewise.
3704
3705         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
3706         with #define.
3707
3708 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3709
3710         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
3711         Hitachi entry.  Make punctuation more consistent.
3712
3713 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
3714
3715         * doc/install.texi: Change ` bit' to `-bit'.
3716         * doc/md.texi: Change `-bits' to `-bit'.
3717         * doc/tm.texi: Change `-bits' to ` bits'.
3718
3719 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
3720
3721         * gcse.c (hoist_code): Rewrite to only get list of dominated
3722         blocks once per BB. Also fix reversed test (by removing need for
3723         the test at all).
3724
3725 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
3726
3727         * cpphash.h (_cpp_set_trad_context): Remove.
3728         * cpplib.c (prepare_directive_trad): Do nothing for #define.
3729         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
3730         * cpptrad.c: Update comments.
3731         (_cpp_read_logical_line_trad): Let scan_logical_line handle
3732         updating the current context.
3733         (scan_logical_line): Update the current context.
3734         (_cpp_create_trad_definition): Similarly.
3735         (_cpp_set_trad_context): Remove.
3736
3737 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
3738
3739         PR preprocessor/7070
3740         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
3741
3742 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
3743
3744         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
3745         config/xtensa/xtensa.c (xtensa_return_addr): New function.
3746         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
3747         config/xtensa/xtensa.md (fix_return_addr): New pattern.
3748
3749 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3750
3751         * mips.c (coprocessor_operand, coprocessor2_operand,
3752         symbolic_operand): Move prototypes from here...
3753         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
3754         symbolic_operand): ...to here.
3755
3756 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3757
3758         * config/sh/crt1.asm: remove _stack label definition
3759         and sentinel value.
3760
3761 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3762
3763         * varasm.c: Include real.h before output.h.
3764
3765 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
3766
3767         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
3768         check for TARGET_ALTIVEC.
3769
3770 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
3771
3772         * config.gcc (vax-*-vms*): Make obselete.
3773
3774 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3775
3776         * gcc.c (warn_std): Delete.
3777
3778 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
3779
3780         * doc/extend.texi: Fix formatting of last checkin.
3781
3782 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3783
3784         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
3785         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
3786
3787 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
3788
3789         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3790         discrepancies from motorola's documentation.
3791
3792 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
3793
3794         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
3795         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
3796
3797         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
3798         produce a 32 bit result before normalization, then normalize with a
3799         left shift.  Compute approximative error of 2nd reciprocal
3800         approximation in 2's complement.  Fix mask generation from upper
3801         longword of second divide stage result.
3802         For large divisor, fix shift count used to truncate first stage
3803         divide result; make decision if to adjust upwards based on comparison
3804         of higher parts of normalized values.
3805         (udivdi): Likewise.  Undo normalization of result for large divisor
3806         case.
3807
3808 2002-06-25  David S. Miller  <davem@redhat.com>
3809
3810         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
3811
3812 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
3813
3814         * cpplib.c (do_include_common): Revert to correct line number
3815         if -traditional.
3816         * cpptrad.c (scan_out_logical_line): Treat null directive as
3817         white space.  Invlidate MI optimization for non-whitespace
3818         text outside a directive.
3819
3820 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3821
3822         * Makefile.in (SHELL): Set to @SHELL@.
3823         * fixinc/Makefile.in (SHELL): Likewise.
3824
3825         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
3826         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
3827         initialization.
3828
3829 2002-06-24  Jeff Law <law@redhat.com>
3830
3831         * flow.c (propagate_one_insn): When removing an insn
3832         with a REG_LIBCALL note but not the entire libcall sequence,
3833         delete the associated REG_RETVAL note.
3834
3835 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
3836
3837         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
3838         (udivsi3): Likewise.  Rewrite SH1 implementation.
3839         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
3840         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
3841         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
3842         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
3843         (_moddi3): Likewise.
3844
3845         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
3846
3847         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
3848         arguments into account for stack_regs.
3849
3850 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
3851
3852         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
3853         in examples.
3854
3855 2002-06-24  Art Haas  <ahaas@neosoft.com>
3856
3857         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
3858         * doc/tm.texi (Frame Layout): Likewise.
3859
3860 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
3861
3862         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
3863         Set float_format to i128.
3864
3865 2002-06-24  David S. Miller  <davem@redhat.com>
3866
3867         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
3868         32-bit ABI libfuncs to NULL.
3869
3870         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
3871         strings instead of quoted strings for code blocks.
3872
3873         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
3874         optabs if op1 is const0_rtx.
3875
3876         * Makefile.in (GTFILES): Add basic-block.h
3877         * basic-block.h (label_value_list, tail_recursion_label_list):
3878         Mark with GTY.
3879
3880 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
3881
3882         * cpptrad.c (scan_out_logical_line): Check recursing only when
3883         we know we have a macro invocation in the function-like case.
3884         Only call _cpp_handle_directive if we know we have a good
3885         directive, or we want to reject a bad directive.
3886
3887 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
3888
3889         * doloop.c (doloop_valid_p): Correct comment.
3890         (doloop_modify_runtime <abs_inc != 1>): Simplify.
3891         (doloop_modify_runtime <do-while>): Don't emit code when NE.
3892
3893 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
3894
3895         * config.gcc: Add support for ip2k.
3896
3897 2002-06-23  Jan Hubicka  <jh@suse.cz>
3898             Jeff Law <law@redhat.com>
3899
3900         * function.h (struct emit_status): Clarify potential contents
3901         of regno_reg_rtx array.
3902         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
3903         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
3904
3905         * reg-stack.c (convert_regs_exit): Push the registers to stack in
3906         proper order.
3907
3908 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
3909
3910         PR middle-end/6963
3911         * function.c (assign_stack_temp_for_type): Do not return
3912         the same MEM rtx for multiple uses of a stack slot.
3913
3914 2002-06-22  David S. Miller  <davem@redhat.com>
3915
3916         PR target/6841 target/6770 target/6719
3917         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
3918         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
3919         GENERAL_OR_EXTRA_FP_REGS.
3920
3921 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
3922
3923         * cpptrad.c (struct fun_macro): Add line number.
3924         (scan_out_logical_line): Set it, and use it to report unterminated
3925         macro invocations.
3926
3927 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3928
3929         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
3930         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
3931         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
3932         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
3933         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
3934         REGEXP_ONEOF, check_name): Const-ify.
3935
3936 2002-06-21  Matt Thomas  <matt@3am-software.com>
3937
3938         * config/vax/vax.c (vax_output_function_prologue): Use
3939         REGISTER_PREFIX.  Fix some indentation.
3940         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
3941         (VAX_ISTREAM_SYNC): Define.
3942         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
3943         i-stream sync to the end.
3944         (REGISTER_PREFIX): Define as "".
3945         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
3946
3947 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
3948
3949         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
3950         configurations.
3951
3952 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3953
3954         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
3955         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
3956
3957 2002-06-21  Matt Thomas  <matt@3am-software.com>
3958
3959         * config/vax/netbsd.h: Adjust a comment.
3960         (TARGET_DEFAULT): Redefine as 0.
3961
3962 2002-06-21  Richard Henderson  <rth@redhat.com>
3963
3964         * bb-reorder.c (make_reorder_chain_1): Search harder for the
3965         vax casesi fallthru edge.
3966         * cfglayout.c (cleanup_unconditional_jumps): Use
3967         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
3968         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
3969         block after ADDR_VEC.
3970
3971 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3972
3973         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3974
3975 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
3976
3977         * cpperror.c (cpp_error): For traditional CPP, default to
3978         diagnostics on pfile->line.
3979         * cpplib.c (prepare_directive_trad): Set line number for
3980         diagnostics for #define too.
3981         * cpptrad.c (skip_whitespace): Skip comments properly.
3982         (_cpp_expansions_different_trad): Initialize quote2.
3983
3984 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
3985
3986         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
3987         * config/mmix/mmix.h: Ditto.
3988         * config/mmix/mmix-protos.h: Ditto.
3989         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
3990         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
3991         comment.  Comment extra CC modes.
3992
3993 2002-06-20 Jan Hubicka  <jh@suse.cz>
3994
3995         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
3996         (scope_to_insns_finalize): Do not call set_block_levels; handle
3997         sequences.
3998         (choose_inner_scope): New.
3999         * rtl.h (choose_inner_scope): Declare.
4000
4001 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4002
4003         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
4004         HOST_WIDE_INT.
4005         * pa.c (pa_asm_output_mi_thunk): Likewise.
4006         (n_deferred_plabels): Change type to size_t.
4007         (output_deferred_plabels, output_call): Use size_t instead of int.
4008
4009 2002-06-20  Richard Henderson  <rth@redhat.com>
4010
4011         PR target/4041
4012         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
4013         pattern and adjust constraints for coldfire.
4014
4015 2002-06-20  Richard Henderson  <rth@redhat.com>
4016
4017         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
4018
4019 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
4020
4021         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
4022
4023 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
4024
4025         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
4026
4027 2002-06-20  Stan Shebs  <shebs@apple.com>
4028
4029         * dominance.c: Include errors.h instead of error.h.
4030
4031 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
4032
4033         * cppexp.c (cpp_interpret_integer): Don't force traditional
4034         numbers to be unsigned.
4035         * cpplib.c (prepare_directive_trad): Set line number for
4036         diagnostics.
4037         * cpptrad.c (scan_out_logical_line): Continue scanning out
4038         at start of buffer.
4039         * gcc.c (trad_capable_cpp): Use cc1 always.
4040
4041 2002-06-20  Jeffrey Law  <law@redhat.com>
4042
4043         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
4044         elimination in leaf functions by default yet.
4045
4046 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
4047
4048         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
4049
4050 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4051
4052         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
4053         multilibs.
4054         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
4055         Fixes PR other/6836.
4056
4057 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
4058                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
4059
4060         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
4061
4062         * basic-block.h: Do not include et-forest.h
4063         (dominance_info): Declare as struct dominance-info.
4064         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
4065         deleting block.
4066         * dominance.c (struct dominance_info): Define.
4067         (BB_NODE, SET_BB_NODE): New macros.
4068         (bb_hash_func, bb_eq_func): Kill.
4069         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
4070         nearest_common_dominator, dominated_by_p, recount_dominator,
4071         add_to_dominance_info, delete_from_dominance_info): update for new
4072         representation.
4073         (get_dominated_by, redirect_immediate_dominators): Rewrite using
4074         enumerate_sons.
4075         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
4076         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
4077         structure.
4078
4079         * et-forest.h: Update copyright; revamp all function to operate on
4080         nodes
4081         (et_forest_value): Kill.
4082         (et_forest_enumerate_sons, et_forest_node_value): New.
4083         * et-forest.c: Update copyright.
4084         * et-forest.h: Update copyright; revamp all function to operate on
4085         nodes
4086         (et_forest_value): Kill.
4087         (et_forest_enumerate_sons, et_forest_node_value): New.
4088
4089         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4090
4091         * basic-block.h: Inlude et-forest.h
4092         (basic_block_def): Kill dominator.
4093         (dominance_info): New type.
4094         (loops): Use dominace_info.
4095         (dominace handling functions): Take dominace_info as argument
4096         instead of bitmaps.
4097         (create_preheader): Likewise.
4098         * cfg.c (entry_exit_blocks): Kill dominator.
4099         (dump_flow_info): Do not dump dominators.
4100         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
4101         dominators.
4102         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
4103         (flow_loops_pre_header_scan, make_forwarder_block,
4104         canonicale_loop_headers, flow_loops_find): Likewise.
4105         * dominance.c: Include error.h
4106         (idoms_to_doms): Kill.
4107         (bb_hash_func, bb_eq_func): New static functions.
4108         (debug_dominace_info): New global function.
4109         (calculate_dominance_info): Use new et forest structure.
4110         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
4111         get_dominated_by, redirect_immediate_dominators,
4112         nearest_common_dominator, dominated_by_p, verify_dominators,
4113         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
4114         delete_from_dominance_info): New global functions.
4115         * gcse.c (domnators): CHange to dominance_info.
4116         (alloc_hoist_mem): Do not alloc dominators
4117         (free_code_hoist_mem): Use free_dominance_info.
4118         (compute_code_hoist_data): Use dominance_info.
4119         (hoist_code): Likewise.
4120         * ifcvt.c (post_dominators): Likewise.
4121         (find_if_case_2, if_convert): Likewise.
4122         * predict.c (process_note_predictions, process_note_prediction,
4123         estimate-probability): Likewise.
4124         * sched-rgn.c (find_rgns, init_regions): Likewise.
4125         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
4126         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
4127         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
4128         find_evaluations, convert_to_ssa): Likewise.
4129         * ssa.h (compute_dominance_frontiers): Likewise.
4130
4131         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4132
4133         * Makefile.in (et-forest.c): Add.
4134         * et-forest.c: New file.
4135         * at-forest.h: New file.
4136
4137 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4138
4139         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
4140         array size calculation.
4141         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
4142         Likewise.
4143
4144         * diagnostic.c (diagnostic_kind_text): Const-ify.
4145         * gengtype.c (lang_names): Likewise.
4146
4147 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
4148
4149         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
4150
4151 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4152
4153         * config/sol2.h: New file.
4154         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
4155         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
4156         (sparc-*-chorusos*): Likewise.
4157         (sparc-*-elf*): Likewise.
4158         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
4159         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
4160         (sparc-hal-solaris2*): Likewise.
4161         (sparc-*-solaris2*): Likewise.
4162         (sparclite-*-elf*): Likewise.
4163         (sparc86x-*-elf*): Likewise.
4164         (sparc64-*-elf*): Likewise.
4165
4166         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
4167         config/sol2.h.
4168         (ASM_SPEC): Override config/sol2.h version for now.
4169         Removed obsolete GAS_REJECTS_MINUS_S variant.
4170         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
4171         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
4172         (TARGET_OS_CPP_BUILTINS): Likewise.
4173         Assert system=unix.
4174         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
4175         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
4176         config/sol2.h.
4177         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
4178         (ASM_CPU_SPEC): Define.
4179         (SUBTARGET_EXTRA_SPECS): Define.
4180
4181         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
4182         in config/sparc/sol2.h.
4183         (ASM_SPEC): Moved to config/sol2.h.
4184         (CPP_CPU_SPEC): Simplified.
4185         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
4186         consistency.
4187         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
4188         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
4189         STARTFILE_ARCH64_SPEC.
4190         (STARTFILE_SPEC): Moved to config/sol2.h
4191         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
4192         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
4193         (LINK_ARCH64_SPEC): Simplified.
4194         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
4195         (LINK_SPEC): Moved to config/sol2.h
4196
4197         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
4198         config/sol2.h.
4199         Use BITS_PER_WORD for size.
4200         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
4201         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
4202         (CPP_PREDEFINES): Removed OS-specific part handled by
4203         TARGET_OS_CPP_BUILTINS.
4204         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
4205         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
4206         (ASM_SPEC): Moved to config/sol2.h.
4207         (PREFERRED_DEBUGGING_TYPE): Likewise.
4208         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
4209         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
4210         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
4211         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
4212
4213         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
4214         * config/i386/sol2gas.h: Removed.
4215
4216 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4217
4218         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
4219
4220 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
4221
4222         * gcc.c-torture/execute/simd-1.c: New.
4223
4224         * gcc.dg/simd-1.c: New.
4225
4226         * doc/extend.texi (Vector Extensions): Document that we can
4227         specify simd types not specifically supported by the hardware.
4228         Document that simd types can be used as function arguments.
4229         Document that signness does make a difference in SIMD types.
4230         Misc cleanups and revisions to the vector extensions section.
4231
4232         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
4233         constants.
4234
4235         * expr.c (vector_mode_valid_p): New.
4236
4237         * expr.h: Add vector_mode_valid_p.
4238
4239         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
4240
4241         * c-common.c (type_for_mode): Always build vector nodes regardless
4242         of VECTOR_MODE_SUPPORTED_P.
4243         (handle_mode_attribute): Error if we can't emulate a nonexisting
4244         vector mode.
4245         (handle_vector_size_attribute): Same.
4246
4247         * optabs.c (expand_binop): Open-code vector operations.
4248         (expand_unop): Open-code vector unops.
4249         (expand_vector_binop): New.
4250         (expand_vector_unop): New.
4251
4252         * c-typeck.c (build_binary_op): Allow vectors in binops.
4253         Allow vectors in conditional operatiors.
4254         (build_unary_op): Allow vectors in unary minus.
4255
4256         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
4257         TARGET_ALTIVEC.
4258
4259 2002-05-20  Richard Henderson  <rth@redhat.com>
4260
4261         * c-common.c (c_common_get_alias_set): Correctly handle characters.
4262         Rearrange order of expressions; don't handle vectors here.
4263         * alias.c (get_alias_set): Let vectors match their components.
4264
4265 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
4266
4267         * config/mips/mips.c (mips_emit_prefetch): Use hints which
4268         match desired locality.
4269
4270 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
4271
4272         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
4273         (h8300_insert_attributes): New.
4274
4275 2002-06-19  Akim Demaille  <akim@epita.fr>
4276
4277         * c-parse.in (initelt: identifier ':' initval): Add an empty
4278         action to fix a type clash.
4279         (aliasdecl, classdef): Add the missing closing `;'.
4280         Whitespace changes.
4281         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
4282         $$ = $1 type clashes.
4283
4284 2002-06-19  Eric Christopher  <echristo@redhat.com>
4285
4286         * config/mips/mips.c (symbol_operand): New function.
4287         (mips_emit_prefetch): Ditto.
4288         * config/mips/mips-protos.h: Define.
4289         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
4290         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
4291         (LEGITIMIZE_ADDRESS): Ditto.
4292         * config/mips/mips.md (prefetch, prefetch_si_address,
4293         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
4294
4295 2002-06-19  Eric Christopher  <echristo@redhat.com>
4296
4297         * config/fp-bit.h: Add unordered defines for gofast.
4298
4299 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
4300
4301         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
4302         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
4303         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
4304         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
4305         checking and without it.
4306         (decl_name, decl_mode_check_failed, regexp_name,
4307         regexp_mode_check_failed): New functions.
4308         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4309         gen_presence_set, gen_absence_set, gen_automaton,
4310         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4311         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
4312         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
4313         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
4314         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
4315         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
4316         (decl_hash, decl_eq_p): Use the macros.
4317         (find_decl): Ditto.  Set up mode of work_decl.
4318         (process_excls, process_presence_absence, process_decls,
4319         check_automaton_usage, process_regexp, process_regexp_decls,
4320         check_usage, loop_in_regexp, check_loops_in_regexps,
4321         process_regexp_cycles, add_advance_cycle_insn_decl,
4322         initiate_states, initiate_excl_sets,
4323         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
4324         transform_2): Use the macros.
4325         (transform_3): Ditto.  Check mode before making transformations of
4326         ALLOF.
4327         (regexp_transform_func, transform_insn_regexps,
4328         process_unit_to_form_the_same_automaton_unit_lists,
4329         form_the_same_automaton_unit_lists_from_regexp,
4330         form_the_same_automaton_unit_lists,
4331         process_seq_for_forming_states, process_alts_for_forming_states,
4332         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
4333         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
4334         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
4335         units_to_automata_heuristic_distr, create_ainsns,
4336         units_to_automata_distr, create_automata): Use the macros.
4337         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
4338         (longest_path_length, min_issue_delay_pass_states,
4339         output_dead_lock_vect, output_tables, output_insn_code_cases,
4340         output_internal_insn_latency_func, output_print_reservation_func,
4341         output_description, output_automaton_units, generate): Use the
4342         macros.
4343         (make_insn_alts_attr): Ditto.  Check case when there are not
4344         alternatives in the reservation.
4345         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
4346         make_bypass_attr, form_important_insn_automata_lists,
4347         expand_automata): Use the macros.
4348
4349 2002-06-20  Tim Josling  <tej@melbpc.org.au>
4350
4351         * Makefile.in: Clean up code to check for misspecified languages
4352         in enable-languages.
4353
4354 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
4355
4356         * cpptrad.c (_cpp_replacement_text_len): initialize len.
4357
4358 2002-06-19  Jason Merrill  <jason@redhat.com>
4359
4360         * Makefile.in (unstrap, restrap): New targets.
4361         (bootstrap): Mention restrap.
4362
4363 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
4364
4365         * except.c (ehl_free): Remove.
4366
4367         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
4368         builtin_define and builtin_define_std.
4369
4370 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4371
4372         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
4373         (sCOND): Restrict operand class so that gcc knows how to reload them.
4374         (bitfield_set): Merge two unnamed insn's using alternatives.
4375         (call_value): Remove constraint on unused uperand.
4376         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
4377         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
4378
4379         * longlong.h (count_trailing_zeros): Escape newline and beautify.
4380
4381 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
4382
4383         * Makefile.in (QMTEST_DIR): Simplify definition.
4384
4385 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
4386
4387         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
4388         #define.
4389
4390 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
4391
4392         * cpphash.h (struct cpp_reader): Make date and time strings.
4393         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
4394         _cpp_replacement_text_len): New.
4395         * cppinit.c (cpp_create_reader): Update.
4396         (init_builtins): Register appropriate builtins for -traditional-cpp.
4397         * cppmacro.c (new_number_token): Remove.
4398         (_cpp_builtin_macro_text): New.
4399         (builtin_macro): Use it.
4400         (cpp_macro_definition): Update to handle traditional macros.
4401         * cppmain.c (cb_line_change): Don't do column positioning for
4402         traditional output.
4403         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
4404         state ls_fun_close.
4405         (skip_whitespace): Fix.
4406         (maybe_start_funlike): Don't set state.parsing_args.
4407         (scan_out_logical_line): Remove duplicate error.  Use lex_state
4408         rather than state.parsing_args.
4409         (push_replacement_text): Handle builtins.
4410         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
4411
4412 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
4413             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4414
4415         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
4416         attribute __always_inline__.
4417
4418 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
4419
4420         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
4421         when generating the call to _mcount.
4422         (NO_PROFILE_COUNTERS): Define.
4423
4424 2002-06-18  Richard Henderson  <rth@redhat.com>
4425
4426         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
4427         2002-06-02 change.
4428
4429 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
4430
4431         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
4432         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
4433         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
4434         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
4435
4436         * sh-protos.h (sh_pr_interrupt): Declare.
4437         * sh.c (sh_pr_interrupt): New function.
4438         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
4439         (sh_hard_regno_rename_ok): Likewise.
4440         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
4441
4442 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
4443
4444         * rtl.def (DEFINE_AUTOMATON): Add description of new options
4445         `time' and `v'.  Fix incorrect description of option `w'.
4446
4447         * doc/md.texi: Ditto.
4448
4449         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
4450         (gen_automata_option): Process the new options.
4451         (transform_2, transform_3): Initialize some variables.
4452         (initiate_automaton_gen): Use the new macros.
4453
4454 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
4455
4456         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
4457         (mips_set_return_address, mips_restore_gp): Declare.
4458         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
4459         (current_frame_info): Remove.
4460         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
4461         * config/mips/mips.c: Remove uses of current_frame_info.
4462         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
4463         (struct machine_function): Add 'frame' and 'insns_len'.
4464         (current_frame_info, zero_frame_info): Remove.
4465         (mips_restore_gp, mips_set_return_address): New.
4466         (mips_initial_elimination_offset): New.
4467         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
4468         (eh_return define_split): Use mips_set_return_address.
4469
4470 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4471
4472         * cpplib.c (dtable): Update.
4473         (end_directive): Decrement expansion prevention count.
4474         Clear state.in_expression.
4475         (prepare_directive_trad): Set state.in_expression.
4476         Increment expansion prevention count.
4477         * cpptrad.c (enum ls): New.
4478         (_cpp_overlay_buffer): Set overlaid_buffer.
4479         (_cpp_remove_overlay): Use overlaid_buffer.
4480         (_cpp_read_logcial_line_trad): Update buffer when it might
4481         have changed.
4482         (scan_out_logical_line): Handle state transitions for assertions
4483         and defined() in #if, and for funlike invocations including the
4484         directive case.  Handle '<' and '>' as a quote mechanism in
4485         #include.  Warn about unterminated macro invocations.
4486         * cpphash.h (struct lexer_state): New member in_expression.
4487         (struct cpp_reader): New member overlaid buffer.
4488
4489 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
4490
4491         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
4492         __always_inline__.
4493
4494 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
4495
4496         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
4497
4498         * doloop.c (doloop_optimize): Extract pattern from insn.
4499
4500 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
4501
4502         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
4503
4504 2002-06-17  Jeff Law <law@redhat.com>
4505
4506         * libgcc2.c: Do not include symcat.h or machmode.h.
4507
4508 2002-06-17  Richard Henderson  <rth@redhat.com>
4509
4510         PR target/6922
4511         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
4512
4513 2002-06-17  Tom Tromey  <tromey@redhat.com>
4514
4515         * dwarfout.c: Include function.h.
4516
4517 2002-06-17  Andreas Schwab  <schwab@suse.de>
4518
4519         * print-rtl.c (print_rtx): Print space before vector, not after.
4520         (debug_rtx): Clear sawclose before printing.
4521         (debug_rtx_list): Print newline after each list element.
4522         (debug_rtx_range): Likewise.
4523
4524 2002-06-17  Richard Henderson  <rth@redhat.com>
4525
4526         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
4527         (current_function_funcdef_no): Similarly.
4528         * function.c (funcdef_no): Similarly.
4529         (prepare_function_start): Set current_function_funcdef_no.
4530         (expand_function_start): Don't set current_function_profile_label_no.
4531         * dwarf2out.h (current_funcdef_number): Remove.
4532         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
4533         current_function_funcdef_no throughout.
4534         * dwarfout.c, vmsdbgout.c: Similarly.
4535         * except.c (sjlj_funcdef_number): Remove.
4536         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
4537         (output_function_exception_table): Likewise.
4538         * final.c (profile_function): Use current_function_funcdef_no
4539         instead of current_function_profile_label_no.
4540
4541 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
4542
4543         * sched-ebb.c (init_ready_list): Check INSN_P first.
4544
4545 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
4546
4547         * sh.md (divsi3): Update way how to find insns in a sequence.
4548
4549         * reload1.c (merge_assigned_reloads): Don't change reloads
4550         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
4551         to RELOAD_OTHER when there are conflicting input reloads.
4552
4553 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
4554
4555         * function.c (epilogue_done): Correctly build a sequence of insns for
4556         a sibcall epilogue.
4557
4558 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
4559
4560         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
4561         #define.
4562
4563         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
4564
4565 2002-06-16  Richard Henderson  <rth@redhat.com>
4566
4567         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
4568         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
4569
4570 2002-06-16  Richard Henderson  <rth@redhat.com>
4571
4572         PR opt/6722
4573         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
4574
4575 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4576
4577         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
4578         * config/i386/i386-aout.h, config/i386/i386elf.h,
4579         config/i386/sysv4.h: Remove CPP_PREDEFINES.
4580         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
4581         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
4582         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
4583         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
4584         CPP_PREDEFINES and part of CPP_SPEC.
4585         * config/i386/sysv4-cpp.h: New.
4586
4587 2002-06-16  Richard Henderson  <rth@redhat.com>
4588
4589         PR c/7030
4590         * dwarf2out.c (modified_type_die): Don't assign the qualified die
4591         to the unqualified type.
4592
4593 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
4594
4595         * i386-protos.h (x86_field_alignment): Declare.
4596         * i386.c (x86_field_alignment): Define.
4597         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
4598         (BIGGEST_FIELD_ALIGNMENT): Kill.
4599
4600 2002-06-16  Richard Henderson  <rth@redhat.com>
4601
4602         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
4603
4604 2002-06-16  Richard Henderson  <rth@redhat.com>
4605
4606         * c-common.c (flag_ms_extensions): Move from c++ front end.
4607         * c-common.h (flag_ms_extensions): Declare.
4608         * c-decl.c (c_decode_option): Add -fms-extensions.
4609         (grokfield): Don't accept anonymous structures in ISO C mode;
4610         accept only unnamed anonymous structures in GNU C mode; accept
4611         Plan 9 extensions in MS mode.
4612         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
4613         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
4614         (extension): Clear flag_iso.
4615         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
4616
4617 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
4618
4619         PR target/7042
4620         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
4621         early if current_function_epilogue_delay_list is non-empty.
4622         * config/cris/cris.md ("return"): Add sanity check asserting that
4623         current_function_epilogue_delay_list is empty.
4624
4625 2002-06-16  Jeff Law <law@redhat.com>
4626
4627         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
4628         sharing of hard registers.
4629
4630         * toplev.c (rest_of_compilation): Remove redundant conditional.
4631
4632         * toplev.c (rest_of_compilation): Perform a simpler, less costly
4633         cleanup of the CFG when not optimizing.
4634
4635 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
4636
4637         * gcc.c (main): Correct startfile_prefix_spec check.
4638
4639 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
4640
4641         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
4642         include both darwin.o and rs6000-c.o.
4643
4644 2002-06-15  Roger Sayle  <roger@eyesopen.com>
4645
4646         * expr.c (compare_from_rtx): Call simplify_relational_operation
4647         on all comparisons, not just those between integer constants,
4648         with the correct (possibly unsigned) comparison code.
4649         (do_compare_rtx_and_jump): Likewise.
4650
4651 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4652
4653         * Makefile.in (tm_defines): New configuration variable.
4654         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
4655         Pass tm_defines in TM_DEFINES.
4656         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
4657         * config.gcc (tm_defines): New configuration variable.
4658         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
4659         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
4660         * configure.in: Substitute tm_defines.
4661         * configure: Rebuilt.
4662         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
4663         * doc/install.texi: Update.
4664         * pa/pa-700.h: Delete file.
4665         * pa/pa-7100.h: Delete file.
4666
4667 2002-06-15  Roger Sayle  <roger@eyesopen.com>
4668
4669         * fold-const.c (comparison_to_compcode): New function to convert
4670         an comparison TREE CODE into a bit-based representation.
4671         (compcode_to_comparison): New function to convert from this bit
4672         based representation back to a comparison TREE CODE.
4673         (fold_truthop): Simplify (x<y) && (x==y) and related composite
4674         comparisons.
4675
4676 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
4677
4678         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
4679
4680         * stor-layout.c (compute_record_mode): Remove check for
4681         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
4682         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
4683         MEMBER_TYPE_FORCES_BLK.
4684
4685         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
4686
4687         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
4688
4689 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
4690
4691         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
4692
4693 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
4694
4695         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
4696         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
4697         * configure, config.in: Regenerate.
4698
4699 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
4700
4701         * loop.c (check_final_value): Use v->always_executed
4702         instead of v->always_computable.
4703         * unroll.c (final_giv_value): Don't calculate the final
4704         value as a function of the biv if the giv is not computed
4705         for every loop iteration.
4706
4707 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
4708
4709         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
4710
4711 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
4712
4713         PR c/6677
4714         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
4715         the truncation down when the target type is signed.
4716         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
4717         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
4718         the conversion if the target type is a smaller type.
4719
4720 2002-06-14  Richard Henderson  <rth@redhat.com>
4721
4722         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
4723         earlier.  Re-factor comparisons vs extrema.
4724
4725 2002-06-14  Richard Henderson  <rth@redhat.com>
4726
4727         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
4728
4729 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4730
4731         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
4732         * sched-deps.c (add_dependence): Likewise.
4733         (group_leader): Likewise.
4734         * sched-rgn.c (init_ready_list): Likewise.
4735         * doc/rtl.texi: Adjust accordingly.
4736
4737 2002-06-13  Jeffrey Law  <law@redhat.com>
4738
4739         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
4740         null pointer checks were eliminated.  Update prototype.
4741         (delete_null_pointer_checks): Similarly.
4742         * rtl.h (delete_null_pointer_checks): Update prototype.
4743         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
4744         delete_null_pointer_checks deletes one or more null
4745         pointer checks.  Do not run cleanup_cfg before gcse, the
4746         CFG is accurate and optimized at that point..
4747
4748         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
4749         of hard registers.
4750
4751 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4752
4753         * Makefile.in (libgcc.mk): Depend on specs.
4754
4755 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
4756
4757         * sh.md (mulsi3): Update way how to find insns in a sequence.
4758
4759 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
4760
4761         * sh.h: Define HARD_REGNO_RENAME_OK
4762         * sh.c: sh_hard_regno_rename_ok: New. If current function has
4763         interrupt_handler attribute, only registers saved on stack are OK.
4764         * sh-protos.h: Declare sh_hard_regno_rename_ok.
4765
4766 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4767
4768         * config/sh/sh.md (jump): Emit jump insn.
4769         (call_pcrel): Get pattern of the result of gen_call_site.
4770         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4771
4772 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4773
4774         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
4775         * cpptrad.c: Update comments.
4776         (skip_whitespace, copy_comment): Take a new parameter.
4777         (skip_escaped_newlines): Don't duplicate escaped newline test.
4778         (copy_comment): Different location for CUR, decide here how
4779         to copy / replace the comment.
4780         (skip_whitespace): Copy whitespace.
4781         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
4782         (scan_out_logical_line): Let copy comment handle keeping or
4783         replacing comments.
4784         (scan_parameters, _cpp_create_trad_definition): Update.
4785
4786 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
4787
4788         * reload.c (get_secondary_mem,find_reloads_address,
4789         find_reloads_address_1): Pass reference to MEM to find_reloads_address
4790         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
4791
4792 2002-06-13  Jessica Han  <jessica@cup.hp.com>
4793
4794         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4795         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4796         * doc/tm.texi: Document them.
4797         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4798         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4799         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
4800         (ASM_OUTPUT_FDESC): Likewise.
4801
4802 2002-06-13  Eric Christopher  <echristo@redhat.com>
4803
4804         * diagnostic.c (output_format): Fix thinko.
4805
4806 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
4807
4808         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
4809         (DWARF2_UNWIND_INFO): Define to 0.
4810
4811         * config/sh/sh.c (calc_live_regs): Don't use initial_value
4812         optimization for PR_MEDIA_REG.
4813
4814 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
4815
4816         * cpphash.h (_cpp_lex_identifier_trad): Remove.
4817         * cpplib.c (end_directive): Don't skip, always remove overlay
4818         apart from #define.
4819         (prepare_directive_trad): Handle NULL pfile->directive.
4820         (_cpp_handle_directive): Always call prepare_directive_trad
4821         if traditional.
4822         * cppmain.c (check_multiline_token): Rename account_for_newlines,
4823         generalize inputs.
4824         (scan_translation_unit_trad): Use it.
4825         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
4826         output, get escaped newline in comment close correct.
4827         (check_output_buffer, skip_whitespace): Update.
4828         (_cpp_lex_identifier_trad): Remove.
4829         (scan_out_logical_line): Handle -C and comments in directives
4830         properly.
4831
4832 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4833
4834         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
4835         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4836         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
4837         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
4838         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
4839         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
4840         (SELECT_SH5_COMPACT_NOFPU): Likewise.
4841         (TARGET_SWITCHES): Use them.
4842         (TARGET_CPU_DEFAULT): Define if not already defined.
4843         (TARGET_DEFAULT): Use it.
4844         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
4845         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
4846         * config/sh/t-monolib: New file.
4847
4848 2002-06-13  Roger Sayle  <roger@eyesopen.com>
4849
4850         * toplev.c (rest_of_compilation): Simplify (and correct) the
4851         logic of the first delete-null-pointer-checks pass.
4852
4853 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
4854
4855         * i386.c (ix86_expand_movstr):  Fix pasto.
4856
4857 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
4858
4859         * reload.c (find_valid_class):  Fix thinko in my previous patch.
4860
4861 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
4862
4863         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
4864         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
4865         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
4866         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
4867
4868 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
4869
4870         * tree-inline.c (expand_call_inline): Don' mess with _DECL
4871         fields.
4872
4873 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
4874
4875         * diagnostic.c (output_format): Recognize "%H" as a format
4876         specifier for a location_t.
4877         (text_specifies_location): New function.
4878         (diagnostic_set_info): Use it.
4879
4880 2002-06-13  Jeffrey Law  <law@redhat.com>
4881
4882         * emit-rtl.c (static_regno_reg_rtx): Define.
4883         (init_emit_once): Initialize static_regno_reg_rtx.
4884         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
4885         of building new hard reg objects once per function.
4886         (gen_rtx_REG): Try to share hard regs.
4887         * regclass.c (init_fake_stack_mems): New function broken out from
4888         init_regs.
4889         * rtl.h (init_fake_stack_mems): Declare.
4890         * toplev.c (lang_independent_init): Call init_regs before
4891         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
4892
4893         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
4894
4895         * alias.c (argument_registers): Remove.
4896         (init_alias_once): Initialize static_reg_base_value here.  Remove
4897         initialization of argument_registers.
4898         (init_alias_once_per_function): Remove.
4899         (init_alias_analysis): Copy all the entries from static_reg_base_value
4900         into new_reg_base_value all at once.
4901         * rtl.h (init_alias_once_per_function): Remove declaration.
4902         * function.c (prepare_function_start): Do not call
4903         init_alias_once_per_function.
4904
4905         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
4906         starting a sequence and emitting an INSN.
4907
4908 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
4909
4910         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
4911
4912 2002-06-13  David S. Miller  <davem@redhat.com>
4913
4914         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
4915
4916 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
4917
4918         * cpplib.c (end_directive): Handle line skipping.  Only remove
4919         the rest of the line if the directive was valid.
4920         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
4921         expanding a traditional macro.
4922         * cpptrad.c (recursive_macro): New.
4923         (read_logical_line_trad): Handle skipping.
4924         (scan_out_logical_line): Continue after a successful directive.
4925         Don't expand macros whilst skipping, or if recursing.
4926         (_cpp_create_trad_definition): scan_out_logical_line now sets
4927         the output current position.
4928
4929 2002-06-12  Eric Christopher  <echristo@redhat.com>
4930
4931         From Chris Demetriou  <cgd@broadcom.com>
4932         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
4933         comment.
4934         (ISA_HAS_MADD_MSUB): Ditto.
4935         (ISA_HAS_NMADD_NMSUB): Ditto.
4936
4937 2002-06-12  Eric Christopher  <echristo@redhat.com>
4938
4939         * config.gcc: Consolidate little endian handling and
4940         little/big endian targets.
4941         * config/mips/elfl.h: Remove file.
4942         * config/mips/elfl64.h: Ditto.
4943         * config/mips/ecoffl.h: Ditto.
4944         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
4945
4946 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
4947
4948         * gengtype.h (xvasprintf): New prototype.
4949         (xasprintf): New prototype.
4950         (struct outf): New.
4951         (get_output_file): Return an outf_p.
4952         (header_file): Is now an outf_p.
4953         (base_files): Now are outf_p.
4954         (oprintf): New.
4955         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
4956         rather than stdio operations.  Use xasprintf in a few places,
4957         when appropriate.
4958         (xvasprintf): New.
4959         (xasprintf): New.
4960         (struct filemap): Delete.
4961         (files): Delete.
4962         (output_files): New.
4963         (oprintf): New.
4964         (create_file): Create an outf_p.  Add parameter to indicate output
4965         file name, change all callers.
4966         (open_base_files): Create gtype-desc.c here.
4967         (get_output_file_with_visibility): Rewrite.
4968         (get_output_file_name): Just look at 'name' field in struct outf.
4969         (close_output_files): Rewrite.
4970
4971 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
4972
4973         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
4974         (MASK_G_FLOAT): Define.
4975         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
4976         (TARGET_SWITCHES): Likewise.
4977         (TARGET_DEFAULT): Likewise.
4978
4979 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
4980
4981         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
4982         * config/mips/mips.c (mips_output_filename): Don't print a
4983         ".file" directive if we are using DWARF-2.
4984         (mips_output_function_prologue): Do not emit source file
4985         name for TARGET_GAS.
4986
4987 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
4988
4989         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
4990         decide whether emit the short opcode.
4991         * i386.h (x86_shift1): Declare.
4992         (TARGET_SHIFT1): New macro.
4993         * i386.c (x86_shift1): New global variable.
4994
4995         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
4996         unconditionally; make loop to rebuild CFG; kill unnecesary
4997         find_basic_block calls; kill compute_bb_for_insn call.
4998         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
4999         * haifa-sched.c (sched_init): Likewise.
5000         * ssa-ccp.c (ssa_const_prop): Likewise.
5001         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5002
5003 2002-06-11  David S. Miller  <davem@redhat.com>
5004
5005         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
5006         active_insn_p.
5007
5008 2002-06-11  Richard Henderson  <rth@redhat.com>
5009
5010         * c-common.c (builtin_define_type_max): New.
5011         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
5012         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
5013
5014         From Joseph S. Myers:
5015         * glimits.h: Rewrite to expect the double underscore definitions
5016         from the compiler.
5017
5018         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
5019         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
5020         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
5021         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5022         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
5023         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
5024         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
5025         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
5026
5027 2002-06-11  Richard Henderson  <rth@redhat.com>
5028
5029         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
5030         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
5031         (code_for_builtns): Update.
5032         (alpha_init_builtins): Add __builtin_thread_pointer and
5033         __builtin_set_thread_pointer.
5034         (alpha_expand_builtin): Handle void builtins.
5035         * doc/extend.texi (Alpha Built-in Functions): Update.
5036
5037 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
5038
5039         PR target/6997
5040         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
5041
5042 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
5043
5044         * config.gcc: Make the name of the extra-modes file adjustable
5045         by target stanzas.
5046         (s390x, strongarm, xscale stanzas): Use this facility.
5047         * configure.in: Update to match.
5048         * configure: Regenerate.
5049
5050 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
5051
5052         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
5053         max/mins as unsigned GE compares.
5054
5055 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
5056
5057         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
5058         * config/vax/bsd.h: New file.
5059         * config/vax/netbsd.h: Add missing notice.
5060         (CPP_PREDEFINES): Remove.
5061         (TARGET_OS_CPP_BUILTINS): Define.
5062         (CPP_SPEC): Use NETBSD_CPP_SPEC.
5063         * config/vax/openbsd.h: Update copyright years.
5064         (CPP_PREDEFINES): Remove.
5065         (TARGET_OS_CPP_BUILTINS): Define.
5066         * config/vax/ultrix.h: Likewise.
5067         * config/vax/vaxv.h: Likewise.
5068         * config/vax/vms.h: Likewise.
5069         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
5070         (CPP_PREDEFINES, CPP_SPEC): Remove.
5071
5072 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
5073
5074         * i386.md (addqi_1_slp, subqi_1_slp
5075         (andqi_ext0, testqi_ext0): Remove unnecesary check.
5076         (addhi*, addqi*): Simplify "dec" condition.
5077         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
5078         (and, or, xor to QImode splitters): New.
5079         (iorqi_ext*): New.
5080         (xorqi_ext_0): New.
5081         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
5082         (andqi_ext_1_rex64): New.
5083         (ashrqi*_slp): New.
5084         (ashlqi*_slp): New.
5085         (lshlqi*_slp): New.
5086         (rotrqi3*_slp): New.
5087         (rotlqi3*_slp): New.
5088
5089 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
5090
5091         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
5092         softfloat.h.
5093         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
5094         (CPP_ENDIAN_LITTLE_SPEC): Delete.
5095         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
5096         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
5097         __LONG_DOUBLE_128__ setting, _CALL_* setting.
5098         (CPP_DEFAULT_SPEC): Delete.
5099         (CPP_FLOAT_DEFAULT_SPEC): Delete.
5100         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
5101         (CPP_SYSV_DEFAULT_SPEC): Delete.
5102         (CPP_ENDIAN_BIG_SPEC): Delete.
5103         (CPP_ENDIAN_LITTLE_SPEC): Delete.
5104         (CPP_ENDIAN_SPEC): Delete.
5105         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
5106         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
5107         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
5108         cpp_longdouble_default.
5109         * config/rs6000/softfloat.h: Delete.
5110         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
5111         (EXTRA_SPECS): Delete cpp_cpu.
5112         (TARGET_CPU_CPP_BUILTINS): New.
5113         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
5114         prototype.
5115         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
5116         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
5117         (CPP_DEFAULT_SPEC): Delete.
5118         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
5119         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
5120         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
5121         (CPP_DEFAULT_SPEC): Delete.
5122         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
5123         (CPLUSPLUS_CPP_SPEC): Likewise.
5124         (CPP_CPU_SPEC): Delete.
5125         (CPP_DEFAULT_SPEC): Delete.
5126         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
5127         (CPLUSPLUS_CPP_SPEC): Likewise.
5128         (CPP_CPU_SPEC): Delete.
5129         (CPP_DEFAULT_SPEC): Delete.
5130         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
5131         (CPP_DEFAULT_SPEC): Delete.
5132         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
5133         (CPP_DEFAULT_SPEC): Delete.
5134
5135         * doc/gty.texi: Small updates.
5136
5137 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
5138
5139         * objc/objc-act.c (warn_with_ivar): Adjust calls to
5140         diagnostic_count_error.
5141         (warn_with_method): Likewise.
5142
5143         * diagnostic.h (warnings_are_errors_message): New field of
5144         diagnostic_context.
5145         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
5146         match semantics.
5147         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
5148         (diagnostic_count_diagnostic): Make aware of other kinds of
5149         diagnostics.
5150         (diagnostic_initialize): Initialize warnings_are_errors_message field.
5151
5152 2002-06-11  Tom Tromey  <tromey@redhat.com>
5153
5154         For PR java/6520:
5155         * fold-const.c (fold_convert): Don't modify existing tree's type.
5156
5157 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
5158
5159         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
5160
5161 2002-06-11  Richard Henderson  <rth@redhat.com>
5162
5163         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
5164
5165 2002-06-11  Richard Henderson  <rth@redhat.com>
5166
5167         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
5168         DWARF2_UNWIND_INFO is false.
5169
5170 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
5171
5172         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
5173
5174         * config/s390/s390.c (emit_prologue): gen_store_multiple
5175         returns an insn now, not a pattern.
5176
5177 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5178
5179         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
5180         $(TEXI2DVI) -o.
5181
5182 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
5183
5184         * i386.c (x86_promote_QImode): Set for Athlon
5185         (x86_fast_prefix): New global variable.
5186         (x86_arch_always_fancy_math_387): Fix formating.
5187         * i386.h (x86_fast_prefix): Declare
5188         (TARGET_FAST_PREFIX): define.
5189         * i386.md (and to strict_low_part, HI to SI
5190         promoting splitter): Use new macro.
5191
5192         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
5193
5194 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
5195
5196         * Makefile.in (distclean): Delete junk left in testsuite
5197         directory, too.
5198
5199 2002-06-11  Jeffrey Law <law@redhat.com>
5200
5201         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
5202         last insn created by the splitter.
5203
5204         * caller-save.c (init_caller_save): Move creation of SAVEINSN
5205         and RESTINSN into into the scope of the sequence.
5206
5207         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
5208         RETURN insns.
5209
5210         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
5211
5212         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
5213         not the pattern.  So extract the pattern from the insn.
5214
5215         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
5216
5217 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
5218
5219         * config/s390/s390.md (movsi): Only use floating point
5220         register alternatives when operands are already fprs.
5221         (movdi_31, movdi_64): Likewise.
5222
5223 2002-06-11  David S. Miller  <davem@redhat.com>
5224
5225         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
5226         Only run RTX equality checks on INSN_P rtl.
5227
5228 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
5229
5230         * config/s390/s390.md (reload_base, ltorg): Remove.
5231         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
5232         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
5233         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
5234         s390_asm_output_pool_prologue): Likewise.
5235         * s390.h (s390_pool_start_insn): Likewise.
5236
5237         * s390.c (s390_output_symbolic_const): Remove support for
5238         old-style pool chunks.
5239         (s390_function_epilogue): Likewise.
5240         (s390_output_constant_pool): Likewise.  Also, fix incorrect
5241         alignment for 64-bit literal pools.
5242         (print_operand_address): Remove 'y' and 'Y' format flags.
5243         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
5244         old-style pool chunks.
5245         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
5246         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
5247         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
5248
5249         * s390.c (consttable_operand): New function.
5250         * s390-protos.h (consttable_operand): Declare it.
5251         * s390.h (PREDICATE_CODES): Add consttable_operand.
5252         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
5253         consttable_sf, consttable_df, pool_start_31, pool_end_31,
5254         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
5255         * s390.c (struct constant, struct constant_pool): New data types.
5256         (constant_modes, gen_consttable): New variables.
5257         (s390_start_pool, s390_end_pool, s390_add_pool,
5258         s390_dump_pool, s390_free_pool): New functions.
5259         (s390_chunkify_pool): Completely reimplement literal pool
5260         overflow handling.
5261
5262         * s390.c (s390_pool_overflow): New variable.
5263         * s390.h (s390_pool_overflow): Declare it.
5264         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
5265         jumps in literal pool overflow situations.
5266
5267         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
5268         (s390_frame_info): Account for possible use of RETURN_REGNUM
5269         by new literal pool overflow code.
5270         (s390_emit_prologue): Likewise.
5271
5272 2002-06-05  David S. Miller  <davem@redhat.com>
5273
5274         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
5275         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
5276         emit_insns_before_scope, emit_insns_after,
5277         emit_insns_after_scope): Delete declaration.
5278         * ada/misc.c (insert_code_for): Use emit_insn* instead of
5279         emit_insns_foo.
5280         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
5281         (alpha_set_memflags): Fix comment.
5282         (set_frame_related_p): Use get_insns instead of gen_sequence.
5283         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
5284         emitting no insns.
5285         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
5286         gen_sequence.
5287         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
5288         * config/fr30/fr30.c (fr30_move_double): Likewise.
5289         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
5290         Likewise.
5291         * config/ia64/ia64.c (spill_restore_mem): Likewise.
5292         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
5293         no insns.
5294         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
5295         instead of gen_sequence.
5296         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
5297         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
5298         * config/sh/sh.c (sh_need_epilogue): Likewise.
5299         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
5300         attributes.
5301         (setjmp pattern and split): Use them to avoid splitter which emits
5302         no RTL.
5303         * genattrtab.c (main): Emit include of function.h
5304         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
5305         get_insns instead of gen_sequence.
5306         * config/cris/cris.c (cris_split_movdx): Likewise.
5307         * emit-rtl.c (emit_insns*): Kill.
5308         (try_split): Expect insn list instead of SEQUENCE.
5309         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
5310         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
5311         Make them abort if a SEQUENCE is given and RTL checking is
5312         enabled.
5313         (emit_*_scope): Don't forget to set scope on final insn.
5314         (gen_sequence): Move from here...
5315         * ssa.c (gen_sequence): To here as private function.
5316         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
5317         comments.
5318         (expand_builtin_return, expand_builtin_mathfn): Likewise.
5319         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
5320         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
5321         (expand_builtin_expect_jump): Use get_insns and fix comments.
5322         * calls.c (try_to_integrate): Use emit_insn_foo.
5323         (expand_call, emit_library_call_value_1): Likewise.
5324         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
5325         (emit_move_insn_1): Use get_insns instead of gen_sequence.
5326         (expand_expr): Use emit_insn_foo.
5327         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
5328         * except.c (build_post_landing_pads): Likewise.
5329         * flow.c (attempt_auto_inc): Likewise.
5330         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
5331         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
5332         * function.c (fixup_var_refs_insn): Use get_insns instead of
5333         gen_sequence.
5334         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
5335         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
5336         (fixup_stack_1, purge_addressof_1, expand_main_function,
5337         get_arg_pointer_save_area): Likewise.
5338         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
5339         expand_function_end): Use emit_insn_foo.
5340         (record_insns, keep_stack_depressed): Work with insn list instead
5341         of SEQUENCE, fix comments.
5342         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
5343         noce_try_store_flag_constants, noce_try_store_flag_inc,
5344         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
5345         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
5346         (noce_process_if_block): Use get_insns instead of gen_sequence.
5347         * optabs.c (add_equal_note): Work with insn list, fix comments.
5348         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
5349         (expand_unop, expand_complex_abs, expand_unop_insn,
5350         expand_no_conflict_block): Likewise.
5351         (gen_move_insn): Use get_insns instead of gen_sequence.
5352         (gen_cond_trap): Likewise.
5353         * integrate.c (copy_rtx_and_substitute): Likewise.
5354         (emit_initial_value_sets): Use emit_insn_foo.
5355         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
5356         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
5357         now that RTL generators give insn lists.
5358         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
5359         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
5360         instead of gen_sequence.
5361         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
5362         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
5363         instead of gen_sequence.
5364         * loop.c (move_movables, emit_prefetch_instructions,
5365         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
5366         Likewise.
5367         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
5368         (product_cheap_p): Likewise, and add commentary about RTL wastage
5369         here.
5370         * lcm.c (optimize_mode_switching): Use get_insns instead of
5371         gen_sequence.
5372         * profile.c (gen_edge_profiler): Likewise.
5373         * regmove.c (copy_src_to_dest): Likewise.
5374         * reg-stack.c (compensate_edge): Likewise and fix comment.
5375         * gcse.c (process_insert_insn): Likewise.
5376         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
5377         * jump.c (delete_prior_computation): Update comment.
5378         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
5379         of gen_sequence, update comments to match.
5380         * recog.c (peephole2_optimize): Work with insn lists instead of
5381         SEQUENCE rtl.
5382         * sched-vis.c (print_pattern): Abort on SEQUENCE.
5383         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
5384         Use get_insns instead of gen_sequence.
5385         (copy_loop_body): Likewise and don't emit dummy NOTE.
5386         * genrecog.c: Don't mention SEQUENCE rtl in comments.
5387         * combine.c (try_combine): Expect insn lists from split generator.
5388         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
5389         hand.
5390
5391 2002-06-11  Roger Sayle  <roger@eyesopen.com>
5392             Andreas Jaeger <aj@suse.de>
5393
5394         * cfgbuild.c: Update copyright years.
5395
5396 2002-06-11  Andreas Schwab  <schwab@suse.de>
5397
5398         * config/m68k/m68k.h (PREDICATE_CODES): Define.
5399
5400 2002-06-11  Eric Christopher  <echristo@redhat.com>
5401
5402         * doc/tm.texi (Run-time Target): Add comment about flag_iso
5403         and strict ANSI.
5404         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
5405         * config/mips/ecoffl.h: Ditto.
5406         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
5407         (CPP_PREDEFINES): Ditto.
5408         * config/mips/elfl64.h: Ditto.
5409         * config/mips/elfl.h: Ditto.
5410         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
5411         out until irix header consolidation.
5412         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
5413         with SUBTARGET_OS_CPP_BUILTINS.
5414         * config/mips/iris6.h: Ditto.
5415         (CPLUSPLUS_CPP_SPEC): Remove.
5416         * config/mips/linux.h: Ditto.
5417         * config/mips/netbsd.h: Ditto.
5418         * config/mips/openbsd.h: Ditto.
5419         * config/mips/rtems.h: Ditto.
5420         * config/mips/rtems64.h: Ditto.
5421         * config/mips/sni-svr4.h: Ditto.
5422         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
5423         ISA_MIPS32, ISA_MIPS64): New defines.
5424         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
5425         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
5426         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5427         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
5428         (TARGET_CPU_CPP_BUILTINS): Define.
5429         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
5430         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
5431         (movdicc): Remove check for ISA_MIPS32.
5432          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
5433         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
5434         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
5435         sunge_sf, sunle_df, sunle_sf): New patterns.
5436
5437 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5438
5439         * Makefile.in: Update cppmain.o.
5440         * cpphash.h (struct cpp_reader): Move some members to a
5441         nested structure.
5442         (trad_line): Rename saved_line.
5443         (_cpp_read_logical_line_trad): Update.
5444         (_cpp_remove_overlay): New.
5445         * cppinit.c (cpp_create_reader): No need to set saved_line.
5446         (cpp_destroy): Update.
5447         (cpp_read_main_file): Only overlay if compiling.
5448         * cpplex.c (continue_after_nul): Return false if in directive.
5449         * cpplib.c (EXPAND): New.
5450         (directive_table, SEEN_EOL): Update.
5451         (end_directive): Remove overlay if traditional; don't skip
5452         line in traditional #define.
5453         (prepare_directive_trad): New.
5454         (_cpp_handle_directive, run_directive): Update for traditional
5455         directives.
5456         (lex_macro_node): Simplify, don't use lex_identifier_trad.
5457         * cpplib.h (struct options): Add preprocess_only.
5458         * cppmain.c: Don't include intl.h.
5459         (cpp_preprocess_file): Set options->preprocess_only.
5460         (scan_translation_unit_trad): Fix, and print line numbers.
5461         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
5462         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
5463         save_replacement_text, _cpp_create_trad_definition): Update for
5464         variable renaming.
5465         (_cpp_overlay_buffer): Save line number.
5466         (_cpp_remove_overlay): Rename from restore_buff, restore line.
5467         (_cpp_read_logical_line_trad): Don't handle overlays here.
5468         (scan_out_logical_line): Process directives.
5469
5470 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
5471
5472         * gthr-win32.h: Wrap functions in extern "C".
5473         (__gthread_key_t): Typedef as unsigned long,
5474         not win32 DWORD.
5475         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
5476         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
5477         (__gthr_win32_once, __gthr_win32_key_create,
5478         __gthr_win32_key_delete, __gthr_win32_getspecific,
5479         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
5480         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
5481         __gthr_win32_mutex_unlock): Declare.
5482         (__gthread_once,__gthread_key_create,
5483         __gthread_key_delete, __gthread_getspecific,
5484         __gthread_setspecific, __gthread_mutex_init_function,
5485         __gthread_mutex_lock,__gthread_mutex_trylock,
5486         __gthread_mutex_unlock): Call corresponding
5487         __gthr_win32_* extern implementations if #defined
5488         __GTHREAD_HIDE_WIN32API.
5489         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
5490         $(srcdir)/config/i386/gthr-win32.c
5491         * config/i386/gthr-win32.c: New implementation file.
5492         (__gthr_win32_once, __gthr_win32_key_create,
5493         __gthr_win32_key_delete, __gthr_win32_getspecific,
5494         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
5495         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
5496         __gthr_win32_mutex_unlock): New functions, based on
5497         static inlines in gthr-win32.h.
5498
5499 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
5500
5501         * config/xtensa/xtensa.c (override_options): Don't warn about
5502         using -fpic or -fPIC when PIC is enabled by default.
5503
5504 2002-06-10  Roger Sayle  <roger@eyesopen.com>
5505
5506         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
5507
5508 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
5509
5510         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
5511         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
5512         exists, substitute its pathname as @extra_modes_file@, define
5513         EXTRA_MODES_FILE to be an appropriate string to #include it
5514         with, and define EXTRA_CC_MODES to 1.
5515
5516         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
5517         it's defined.  Get rid of redundancy in calling sequence for
5518         CC; don't use it to define CCmode, to avoid a warning.
5519         * libgcc2.c: Include symcat.h for the sake of machmode.def.
5520
5521         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
5522         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
5523         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
5524         New files.
5525         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
5526         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
5527
5528         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
5529         defining extra CC modes.
5530
5531 2002-06-10  Roger Sayle  <roger@eyesopen.com>
5532             Andreas Jaeger <aj@suse.de>
5533
5534         * cfgrtl.c (create_basic_block_structure):  Remove index argument
5535         and use last_basic_block++ instead.  (create_basic_block): Update.
5536         * cfgbuild.c (find_basic_blocks_1): Likewise.
5537
5538         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
5539         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
5540         * sched-ebb.c (schedule_ebbs): Likewise.
5541         * sched-rgn.c (schedule_insns): Likewise.
5542         * ssa-ccp.c (ssa_const_prop): Likewise.
5543         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
5544         * toplev.c (rest_of_compilation): Likewise.
5545         * config/ia64/ia64.c (ia64_reorg): Likewise.
5546
5547 2002-06-10  Roger Sayle  <roger@eyesopen.com>
5548
5549         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
5550         of matching registers.
5551
5552 2002-06-10  Roger Sayle  <roger@eyesopen.com>
5553
5554         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
5555         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
5556
5557 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
5558
5559         * config/mmix/mmix.h: Improve comments.
5560         (CPP_SPEC, CPP_PREDEFINES): Don't define.
5561         (TARGET_CPU_CPP_BUILTINS): Define.
5562         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
5563         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
5564         unused predicate.
5565         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
5566         compiler warning.
5567         (mmix_constant_address_p): Remove another
5568         redundant test before case.
5569         (mmix_canonicalize_comparison): Remove unused function.
5570         (mmix_print_operand_address): Don't test and adjust for operand in
5571         non-canonical format.
5572         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
5573         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
5574
5575 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
5576
5577         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
5578         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
5579         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
5580         (gen_compare): Use CCmode unconditionally.
5581
5582 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5583
5584         PR optimization/6759
5585         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
5586         the REQ_EQUAL note.
5587
5588 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5589
5590         PR c/6660
5591         * c-decl.c (grokfield): Allow user defined types if they declare
5592         structs or unions for unnamed fields.
5593
5594 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5595
5596         PR c/6809
5597         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
5598
5599 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5600
5601         PR optimization/6842
5602         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
5603         operand subreg cannot be simplified.
5604
5605 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5606
5607         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
5608         (compare_constant): Likewise.
5609         (output_addressed_constants): Likewise.
5610
5611 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
5612
5613         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
5614         merge bb with itself.
5615
5616 2002-06-10  Richard Henderson  <rth@redhat.com>
5617
5618         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
5619         (builtin_zapnot): Likewise.
5620
5621         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
5622         reservation.
5623
5624 2002-06-10  Eric Christopher  <echristo@redhat.com>
5625
5626         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
5627         prototype and function.
5628         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
5629         (call_insn_operand): Remove half pic references.
5630         (legitimate_address_p): Ditto.
5631         * config/i386/i386.h: Remove half pic defines.
5632
5633 2002-06-10  Eric Christopher  <echristo@redhat.com>
5634
5635         * doc/extend.texi (Return Address): Add note explaining the side-
5636         effects of inlining on __builtin_return_address.
5637
5638 2002-06-10  Tom Tromey  <tromey@redhat.com>
5639
5640         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
5641         (c-common.o): Depend on langhooks.h.
5642
5643 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5644
5645         * cpphash.h (_cpp_read_logical_line_trad,
5646         _cpp_expansions_different_trad): Update prototypes.
5647         * cpplex.c (continue_after_nul): New.
5648         * cppmain.c: Include cpphash.h.
5649         (scan_translation_unit_trad): New.
5650         (cpp_preprocess_file): Call it.
5651         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
5652         overlay.
5653         (_cpp_expansions_different_trad): Update prototype.
5654
5655 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5656
5657         Fix cfi generation for SH[1-4]:
5658
5659         * sh.c (frame_insn): New function.
5660         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
5661         (push): Now returns rtx.  Use frame_insn.
5662         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
5663         of a DF register.
5664         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
5665
5666 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
5667
5668         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
5669         and gtype-desc.c.
5670         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
5671         (distclean): ... not here.  But do delete all testsuite/*.log,
5672         testsuite/*.sum files here.  Delete mkheaders.  Delete
5673         po/*.gmo and the testsuite directory in a split tree build.
5674
5675 2002-06-10  Jeffrey Law  <law@redhat.com>
5676
5677         * alias.c (static_reg_base_value): New to hold RTL for
5678         items allocated once per function for the aliasing code.
5679         (init_alias_once_per_function): Initialize static_reg_base_value.
5680         (init_alias_analysis): Avoid throw-away allocations of RTL by
5681         using pre-computed values in static_reg_base_value.
5682         * function.c (prepare_function_start): Call
5683         init_alias_once_per_function appropriately.
5684         * rtl.h (init_alias_once_per_function): Declare.
5685         * caller-save (init_caller_save): Restructure slightly to
5686         avoid lots of silly RTL generation.
5687         * expr.c (init_expr_once): Likewise.
5688         * reload1.c (reload_cse_regs_1): Allocate throw-away register
5689         RTL object here.  Pass it into children.
5690         (reload_cse_simplify_operands): Use passed-in register RTL
5691         object.
5692         (reload_cse_simplify): Pass through throw-away register
5693         RTL object.
5694
5695 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
5696
5697         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
5698
5699 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
5700
5701         * gcc.c (process_command): Avoid assignment to read-only location.
5702         Fix sizeof calculation.
5703
5704 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5705
5706         * cpphash.h (struct cpp_macro): Put comments on their own lines.
5707         (_cpp_expansions_different_trad): New.
5708         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
5709         * cpptrad.c (canonicalize_text): New.
5710         (scan_out_logical_line): Handle no arguments correctly.
5711         (save_replacement_text): Commit memory when finished.
5712         (_cpp_expansions_different_trad): New.
5713
5714 2002-06-10  Tim Josling  <tej@melbpc.org.au>
5715
5716         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
5717         TREELANG and COBOL.
5718         (lang_names): Add treelang and cobol.
5719         (get_file_basename): Add code to support treelang and cobol as
5720         4th and 5th users of c-common.c.
5721
5722 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
5723
5724         * Makefile.in (install-driver): Install driver as
5725         $(target_alias)-gcc-$(version).
5726         * gcc.c (spec_version): Make const.
5727         (process_command): Handle -V and -b by using exec.
5728         * doc/invoke.texi (Target Options): Restore -V option,
5729         update docs for -b option.
5730
5731 2002-06-10  Tim Josling  <tej@melbpc.org.au>
5732
5733         * configure.in (remaining_languages_check):
5734         Added check that all languages specified were found.
5735         Exit if not found. Previous behaviour was silent failure.
5736         * configure: Regenerated.
5737
5738 2002-06-10  Tim Josling  <tej@melbpc.org.au>
5739
5740          First steps to making treelang documentation compliant, based on
5741          instructions in sourcebuild.texi. Also add to gcc.c list of
5742          default languages.
5743
5744         * doc/contrib.texi: Add self as contributor of treelang.
5745
5746         * doc/frontends.texi: Add mention of treelang.
5747
5748         * doc/invoke.texi (Overall Options): Add mention of treelang.
5749
5750         * doc/standards.texi:  Add mention of treelang.
5751
5752 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
5753
5754         * config/cris/cris.c: Include ggc.h
5755
5756 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5757
5758         * cpphash.h (_cpp_push_text_context): Update.
5759         (_cpp_arguments_ok): New.
5760         * cppmacro.c (_cpp_arguments_ok): New, split out from...
5761         (collect_args): ...here.
5762         (_cpp_push_text_context): Change inputs.
5763         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
5764         replace_args_and_push): New.
5765         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
5766         Don't use IS macros directly.
5767         (scan_out_logical_line): Handle function-like macro argument
5768         collection.
5769         (push_replacement_text): Update.
5770         (replacement_length): Remove.
5771         (_cpp_create_trad_definition): Don't skip whitespace before
5772         checking for '('.
5773
5774 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5775
5776         * config/avr/avr.c (avr_mcu_types): Update for new devices.
5777         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
5778         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
5779         * config/avr/avr.md ("type" and "length" attributes): New type
5780         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
5781         output a single "call" or "rcall" insn depending on device size.
5782         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
5783
5784 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
5785
5786         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
5787         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
5788         assembler option.
5789         (CPP_CPU_SPEC): Add power3 and power4.
5790         (PROCESSOR_DEFAULT): Change to 604e.
5791         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
5792         (CPP_CPU_SPEC): Similar additions.
5793         (enum process_type): Add POWER4.
5794         (RTX_COSTS): Add POWER4.
5795         (CPP_CPU_SPEC): Similar additions.
5796         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
5797         (PROCESSOR_DEFAULT64): Define.
5798         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
5799         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
5800         branch adjustment.
5801         (rs6000_issue_rate): Add Power4.
5802         * config/rs6000/rs6000.md (cpu attr): Add power4.
5803         (iu compare): Remove 604, 604e, 620, 630.
5804         Add basic Power4 scheduling information.
5805         (mfcr/mtcrf): Change type attribute to cr_logical.
5806
5807 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5808
5809         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
5810         ATTRIBUTE_PRINTF_2.
5811         * gengtype-lex.l: Fix format specifier warning.
5812
5813         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
5814         not isspace.
5815         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
5816         lieu of isspace/IDchar.
5817         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
5818         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
5819         ISSPACE.
5820
5821 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
5822
5823         * Makefile.in (LIBCPP_OBJS): Take out version.o.
5824         * cpphash.h (cpp_reader): Take out print_version member.
5825         * cppinit.c: (cpp_handle_option): Don't do anything with
5826         -version.  Just set help_only for --version, --target-help.
5827         Just set verbose option for -v.
5828         (cpp_post_options): Don't print a version string.
5829
5830 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5831
5832         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
5833         (avr_section_type_flags): New, handle .noinit* sections.
5834
5835 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5836
5837         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
5838         and include netbsd_entry_point.
5839         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5840         (NETBSD_ENTRY_POINT): Define.
5841
5842 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5843
5844         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5845         if not already defined.
5846         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
5847
5848 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5849
5850         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
5851         in a noreturn function.
5852         (avr_output_function_prologue, avr_output_function_epilogue):
5853         Correct function size calculation.  Do not crash on empty function.
5854         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
5855
5856 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5857
5858         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5859         netbsd_link_spec and netbsd_entry_point.
5860         (LINK_SPEC): Use %(netbsd_link_spec).
5861         (NETBSD_ENTRY_POINT): Define.
5862
5863 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5864
5865         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
5866         linker emulation.
5867         (LINK_ARCH64_SPEC): Likewise.
5868         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
5869         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
5870
5871 2002-06-08  Marc Espie  <espie@openbsd.org>
5872
5873         * lists.c (free_list):  Fix typo in comment.
5874
5875 2002-06-08  Andreas Jaeger  <aj@suse.de>
5876
5877         * lcm.c (optimize_mode_switching): Add unused attribute for
5878         variable.
5879
5880         * sched-deps.c (sched_analyze): Remove unused variable.
5881
5882 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
5883
5884         * diagnostic.def: Don't capitalize diagnostict descriptors.
5885
5886 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5887
5888         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
5889         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5890         (NETBSD_ENTRY_POINT): Define.
5891
5892 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5893
5894         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
5895         NETBSD_LINK_SPEC_ELF.
5896         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
5897         (NETBSD_ENTRY_POINT): Define.
5898         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
5899         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
5900         netbsd_entry_point.
5901         (NETBSD_ENTRY_POINT): Define.
5902
5903 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5904
5905         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5906         netbsd_link_spec and netbsd_entry_point.
5907         (LINK_SPEC): Use %(netbsd_link_spec).
5908         (NETBSD_ENTRY_POINT): Define.
5909
5910 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
5911
5912         * config/netbsd-elf.h (LINK_SPEC): Rename to...
5913         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
5914         to specify program entry point.
5915
5916 2002-06-07  Jeff Law <law@redhat.com
5917
5918         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
5919         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
5920         than creating a new register.
5921         (distribute_notes): Likewise.
5922         * df.c (df_reg_use_gen): Likewise.
5923         (df_reg_clobber_gen): Likewise.
5924         (df_ref_record): Likewise.
5925         * expr.c (use_regs): Likewise.
5926         * flow.c (propagate_one_insn): Likewise.
5927         (mark_set_1): Likewise.
5928         (mark_used_reg): Likewise.
5929         * reload.c (emit_reload_insns): Likewise.
5930
5931 2002-06-07  Roger Sayle  <roger@eyesopen.com>
5932
5933         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
5934         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
5935         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
5936         comparison code comp can be reversed.
5937
5938 2002-06-07  Roger Sayle  <roger@eyesopen.com>
5939
5940         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
5941         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
5942         equivalent x > -1.0 when -ffast-math.
5943
5944 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
5945
5946         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
5947         * config/mips/t-netbsd: New file.
5948
5949 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
5950
5951         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
5952         options their own entries.
5953         (parse_option): Clarify comment.
5954         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
5955         special case.  Replace if/strcmp chain for -W options with
5956         use of new OPT_* entries for them.
5957         (cpp_handle_options): Update to match.
5958         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
5959         * c-decl.c: Update call to cpp_handle_option.
5960
5961 2002-06-07  Akim Demaille  <akim@epita.fr>
5962
5963         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
5964         Whitespace changes.
5965
5966 2002-06-07  Jeffrey Law  <law@redhat.com>
5967
5968         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
5969         on empty lists.
5970
5971 2002-06-07  H.J. Lu  (hjl@gnu.org)
5972
5973         * configure.in: Add --enable-__cxa_atexit.
5974         * configure: Regenerated.
5975         * config.in: Likewise.
5976
5977         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
5978         not defined.
5979
5980 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
5981
5982         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
5983
5984 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
5985
5986         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
5987
5988 2002-06-07  Jason Merrill  <jason@redhat.com>
5989
5990         * cppexp.c (num_equality_op): Use a temporary variable to work
5991         around gcc 3.0.4 bug.
5992
5993 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
5994
5995         * diagnostic.c (diagnostic_build_prefix): Tidy.
5996
5997 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5998
5999         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
6000         scan_parameters, save_replacement_text, replacement_length): New.
6001         (scan_out_logical_line): Take a macro and save parameters if
6002         non-NULL.
6003         (_cpp_logical_line_trad): Update.
6004         (_cpp_create_trad_definition): Update to handle function-like
6005         macros.
6006         * cpplex.c (new_buff): Update.
6007         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
6008         * cpphash.h: ...here.
6009         (CPP_ALIGN2, _cpp_save_parameter): New.
6010         * cppmacro.c (save_parameter): Rename, export.
6011         (parse_params): Update.
6012
6013 2002-06-07  Andreas Jaeger  <aj@suse.de>
6014
6015         * config/mmix/mmix.c: Remove extra broken prototype for
6016         mmix_init_machine_status.
6017
6018 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
6019
6020         * gengtype.c: Add comments before all the routines.
6021
6022 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
6023
6024         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
6025         from and add t-sh64 to ${tmake_file}.
6026         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
6027         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
6028         * config/sh/t-netbsd-sh5-32: Remove.
6029         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
6030         MULTILIB_ENDIAN.
6031         (MULTILIB_DIRNAMES): Define.
6032
6033 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
6034
6035         * i386.md (and promoting splitters): Disable QI to SImode promoting
6036         when doing so changes immediate to be 32bit.
6037
6038         * rtl.h (emit_*_scope): Declare.
6039         * emit-rtl.c (emit_*_scope): New global functions.
6040         (try_split): Copy scope.
6041         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6042         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6043         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
6044         noce_process_if_block, find_cond_trap): Copy scopes.
6045         * recog.c (peephole2_optimize): likewise.
6046
6047 2002-06-06  Jeffrey Law  <law@redhat.com>
6048
6049         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
6050
6051 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6052
6053         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
6054
6055 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6056
6057         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
6058         ($(docdir)/gccinstall.info): New target.
6059         (info): Depend on it.
6060         (gccinstall.dvi): New target.
6061         (dvi): Depend on it.
6062         * doc/.cvsignore: Ignore new info files.
6063         * doc/install.texi (@setfilename): Reflect new info filename.
6064
6065 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
6066
6067         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
6068         on an UNSPEC.
6069
6070 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6071
6072         PR objc/6834
6073         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
6074         c_common_get_alias_set.
6075         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
6076
6077 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6078
6079         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
6080         functions.
6081         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
6082         * avr/avr.c (avr_output_function_epilogue): Use above to determine
6083         function size.
6084         * pa/pa.c (pa_output_function_prologue): Likewise.
6085
6086 2002-06-05  David S. Miller  <davem@redhat.com>
6087
6088         * integrate.c (subst_constants): Handle 'B' RTL format.
6089
6090 2002-06-05  Eric Christopher  <echristo@redhat.com>
6091
6092         * varasm.c (make_decl_rtl): Fix comment for removed
6093         halfpic.c.
6094
6095 2002-06-05  Eric Christopher  <echristo@redhat.com>
6096
6097         * Makefile.in: Remove missed halfpic bits.
6098
6099 2002-06-05  Eric Christopher  <echristo@redhat.com>
6100
6101         * toplev.c: Remove half-pic.
6102         * config/mips/mips.c: Ditto.
6103         * config/mips/mips.h: Ditto. Remove unused defines.
6104         * config/mips/openbsd.h: Update comment to reflect above.
6105         * config/mips/mips.md: Remove half-pic constraints.
6106         * halfpic.h: Delete.
6107         * halfpic.c: Ditto.
6108
6109 2002-06-05  Jeffrey Law  <law@redhat.com>
6110
6111         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
6112         rejects (mem (lo_sum (reg) (unspec))), but will allow
6113         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
6114
6115 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6116
6117         * cpphash.h (_cpp_create_definition): Update prototype.
6118         (_cpp_push_text_context, _cpp_create_trad_definition): New.
6119         ( cpp_lex_identifier_trad): New.
6120         (_cpp_set_trad_context): New.
6121         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
6122         * cpplib.c (SEEN_EOL): Update.
6123         (lex_macro_node): Update for -traditional.
6124         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
6125         * cppmacro.c (_cpp_create_definition): Split into
6126         create_iso_definition() and _cpp_create_trad_definition().
6127         (warn_of_redefinition): Update prototype; handle traditional
6128         macros.
6129         (_cpp_push_text_context): New.
6130         * cpptrad.c (skip_whitespace, push_replacement_text): New.
6131         (lex_identifier): Call ht_lookup with correct start.
6132         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
6133         _cpp_set_trad_context): New.
6134         (scan_out_logical_line): Update to handle changing contexts.
6135
6136 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
6137
6138         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
6139         (shl*-*-elf*): Add.
6140         * config/sh/t-be (MULTILIB_ENDIAN): Set.
6141         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
6142         * t-sh (MULTILIB_ENDIAN): Set.
6143         (MULTILIB_OPTIONS): Use it.
6144         * t-sh64 (MULTILIB_OPTIONS): Likewise.
6145         (MULTILIB_DIRNAMES): Likewise.
6146
6147 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
6148
6149         * toplev.h (report_error_function): Remove.
6150
6151         * diagnostic.h (location_t): New datatype.
6152         (text_info): Likewise.
6153         (diagnostic_info): Likewise.
6154         (output_prefix): New macro.
6155         (diagnostic_last_function_changed): Likewise.
6156         (diagnostic_set_last_function): Likewise.
6157         (diagnostic_last_module_changed): Likewise.
6158         (diagnostic_set_last_module): Likewise.
6159         (report_diagnostic): Now macro.
6160         (diagnostic_set_info): Declare.
6161
6162         * diagnostic.c (report_problematic_module): Rename to
6163         diagnostic_repor_current_module.
6164         (set_diagnostic_context): Remove.
6165         (count_error): Rename to diagnostic_error_count.
6166         (error_function_changed): Remove.
6167         (record_last_error_function): Likewise.
6168         (error_module_changed): Likewise.
6169         (record_last_error_module): Likewise.
6170         (context_as_prefix): Rename to diagnostic_build_prefix.
6171         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
6172         (diagnostic_set_info): New function.
6173
6174         * objc/objc-act.c: #include diagnostic.h
6175         (error_with_ivar): Adjust call to count_error.
6176         (warn_with_method): Likewise.
6177         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
6178
6179 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
6180
6181         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
6182         lang_hooks.types.make_type instead of make_node; set up
6183         __va_list_tag type decl.
6184         (xtensa_builtin_saveregs): Remove broken use of
6185         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
6186         for saved registers; add varargs alias set.
6187
6188 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6189
6190 config:
6191         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
6192         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6193         CPP_PREDEFINES and part of CPP_SPEC.
6194         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
6195         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
6196
6197 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
6198
6199         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
6200
6201 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
6202
6203         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
6204
6205 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
6206
6207         * gengtype-yacc.y: Make sure all rules end with a semicolon.
6208
6209 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
6210
6211         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
6212         typo in function prototype and include "ggc.h" header.
6213
6214 2002-06-04  Richard Henderson  <rth@redhat.com>
6215
6216         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
6217         (print_operand) ['U']: Likewise.
6218         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
6219         (alpha_expand_unaligned_store_words): Likewise.
6220         (alpha_expand_builtin_vector_binop): Fix typo.
6221         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
6222         umulh, and cix insns.
6223         (one_arg_builtins): Add cix builtins.
6224         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
6225         (alpha_expand_builtin): Fix typo in arity.
6226         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
6227         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
6228         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
6229         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
6230         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
6231         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
6232         builtin_ctlz, builtin_ctpop): New.
6233         * doc/extend.texi (Alpha Built-in Functions): Update.
6234
6235 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
6236
6237         * gengtype.c (write_gc_root): Don't unnecessarily prevent
6238         global variable-length arrays being roots.
6239
6240         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
6241         * configure.in (config_gtfiles): New variable.
6242         (all_gtfiles): Initialise from config_gtfiles.
6243         * configure: Regenerate.
6244
6245 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6246
6247 config/i386:
6248         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
6249         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
6250         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
6251         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
6252         win32.h (CPP_SPEC): Remove cpp_cpu.
6253         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
6254         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
6255
6256 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
6257
6258         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
6259
6260 2002-06-04  Jeff Law <law@redhat.com.
6261             David Edelsohn <edelsohn@gnu.org>
6262             Michael Matz <matz@kde.org>
6263
6264         * sched-int.h (struct deps): New field libcall_block_tail_insn.
6265         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
6266         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
6267         is set, then mark the current insn as being part of a libcall
6268         scheduling group.
6269         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
6270
6271         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
6272         insns against the issue rate.
6273
6274 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
6275
6276         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
6277         * final.c (final_scan_insn): Likewise.
6278         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
6279         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
6280         * haifa-sched.c (unlink_other_notes): Likeewise.
6281         (reemit_notes): Likewise.
6282         * print-rtl.c (print_rtx): Likewise.
6283         * sched-deps (sched-analyze): Likewise.
6284         * rtl.c (note_insn_name): Likewise.
6285         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
6286         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
6287         (RANGE_*): Kill.
6288
6289 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
6290
6291         * varasm.c (mark_constants): Handle RTX format 'B'.
6292
6293 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6294
6295         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
6296         (struct cpp_context): Add traditional fields.
6297         * cppmacro.c (paste_all_tokens, push_ptoken_context,
6298         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
6299         * cpptrad.c (skip_comment, lex_identifier,
6300         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
6301
6302 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
6303
6304         * gbl-ctors.h: Fix formatting.
6305         * gcc.c: Likewise.
6306         * gccspec.c: Likewise.
6307         * gcov.c: Likewise.
6308         * gcov-io.h: Likewise.
6309         * gcse.c: Likewise.
6310         * ggc-common.c: Likewise.
6311         * ggc.h: Likewise.
6312         * ggc-page.c: Likewise.
6313         * ggc-simple.c: Likewise.
6314         * global.c: Likewise.
6315         * graph.h: Likewise.
6316         * gthr-dce.h: Likewise.
6317         * gthr.h: Likewise.
6318         * gthr-posix.h: Likewise.
6319         * gthr-rtems.h: Likewise.
6320         * gthr-solaris.h: Likewise.
6321         * gthr-win32.h: Likewise.
6322
6323 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
6324
6325         Merge from pch-branch:
6326
6327         * gengtype.h (UNION_OR_STRUCT_P): New macro.
6328         * gengtype.c (write_gc_structure_fields): Use it.
6329         (write_gc_root): Use it here too.
6330
6331         * gengtype.c (write_gc_structure_fields): Assume that lengths
6332         of typenames fit into an 'int'; don't pass a size_t to "%d" in
6333         printf.
6334         (write_gc_marker_routine_for_structure): Likewise.
6335         (write_gc_types): Likewise.
6336         (write_gc_root): Likewise.
6337
6338         * varray.h (VARRAY_CLEAR): New.
6339         (varray_clear): Prototype.
6340         * varray.c (varray_clear): New.
6341         * cselib.c (reg_values_old): New.
6342         (used_regs_old): New.
6343         (cselib_init): Use cached varrays if available to avoid
6344         generating large amounts of garbage.
6345         (cselib_finish): Don't throw away old varrays.
6346
6347         * final.c (insn_addresses_): Move out of ifdef.
6348
6349         * varray.c (uses_ggc): Make more varray kinds GCable.
6350         * varray.h (union varray_data_tag): Let gengtype see
6351         fields 'generic' and 'te'.
6352         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
6353         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
6354         (reg_to_stack): Don't call VARRAY_FREE.
6355         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
6356         (insn_addresses_): Use gengtype to mark.
6357         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
6358         pointers; handle generic pointers in unused union fields.
6359         (get_output_file_with_visibility): Include cselib.h,
6360         insn-addr.h in gtype-desc.c.
6361         * function.c (prologue): Use gengtype to mark.
6362         (epilogue): Likewise.
6363         (sibcall_epilogue): Likewise.
6364         * dependence.c: Include gt-dependence.h, ggc.h.
6365         (struct def_use): Use gengtype to mark.
6366         (struct loop): Likewise.
6367         (struct induction): Likewise.
6368         (struct dependence): Likewise.
6369         (def_use_chain): Likewise.
6370         (dep_chain): Likewise.
6371         (loop_chain): Likewise.
6372         (induction_chain): Likewise.
6373         (init_dependence_analysis): Don't free anything, just clear pointers.
6374         (build_def_use): Use GGC to allocate def_use.
6375         (add_loop): Use GGC to allocate loop.
6376         (find_induction_variable): Use GGC to allocate induction.
6377         (check_node_dependence): Use GGC to allocate induction, dependence.
6378         (dump_node_dependence): Don't free varrays.
6379         (end_dependence_analysis): Likewise.
6380         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
6381         (struct elt_loc_list): Likewise.
6382         (struct elt_list): Likewise.
6383         * cselib.c: Don't include obstack.h.
6384         (hash_table): Use gengtype to mark.
6385         (reg_values): Use gengtype to mark.
6386         (used_regs): Use gengtype to mark.
6387         (cselib_obstack): Delete.
6388         (cselib_startobj): Delete.
6389         (empty_vals): Mark as deletable.
6390         (empty_elt_lists): Mark as deletable.
6391         (empty_elt_loc_lists): Mark as deletable.
6392         (new_elt_list): Use GGC to allocate struct elt_list.
6393         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
6394         (clear_table): Don't delete obstack; don't unnecessarily clear
6395         deletable variables.
6396         (new_cselib_val): Use GGC to allocate struct cselib_val.
6397         (cselib_init): Don't set up obstacks.  Use GGC to allocate
6398         hash table.
6399         (cselib_finish): Just clear variables, don't free anything.
6400         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
6401         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
6402         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
6403         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
6404         (gt-reg-stack.h): New rule.
6405         (gt-dependence.h): New rule.
6406         (gtype-desc.o): Add cselib.h, insn-addr.h.
6407
6408         * varray.c: Use only necessary headers.
6409         (element_size): New.
6410         (uses_ggc): New.
6411         (varray_init): Take type, not size.  Use GGC if appropriate.
6412         (varray_grow): Update for change to struct varray_head_tag.
6413         Use GGC if appropriate.
6414         * varray.h (struct const_equiv_data): Use gengtype.
6415         (enum varray_data_enum): New.
6416         (union varray_data_tag): Use gengtype.
6417         (struct varray_head_tag): Use gengtype.  Replace size field with
6418         enum varray_data_enum.
6419         (varray_init): Update prototype.
6420         (VARRAY_SCHED_INIT): Delete.
6421         (VARRAY_*_INIT): Update for change to varray_init.
6422         (VARRAY_SCHED): Delete.
6423         (VARRAY_PUSH_SCHED): Delete.
6424         (VARRAY_TOP_SCHED): Delete.
6425         * tree.h: Update for change to length specifier.
6426         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
6427         (clone_body): Likewise.
6428         * ssa.h (ssa_definition): Use gengtype to mark.
6429         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
6430         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
6431         * rtl.h (struct rtvec_def): Update for change to length specifier.
6432         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
6433         (struct initial_value_struct): Update for change to length specifier.
6434         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
6435         (ggc_add_tree_varray_root): Delete prototype.
6436         (ggc_mark_rtx_varray): Delete prototype.
6437         (ggc_mark_tree_varray): Delete prototype.
6438         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
6439         (ggc_add_tree_varray_root): Delete.
6440         (ggc_mark_rtx_varray): Delete.
6441         (ggc_mark_tree_varray): Delete.
6442         (ggc_mark_rtx_varray_ptr): Delete.
6443         (ggc_mark_tree_varray_ptr): Delete.
6444         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
6445         (create_varray): Delete prototype.
6446         * gengtype.c (varrays): Delete.
6447         (create_varray): Delete.
6448         (adjust_field_type): Detect array of string pointers.
6449         (process_gc_options): Remove code to handle varray_type option.
6450         (set_gc_used_type): Remove TYPE_VARRAY case.
6451         (output_escaped_param): New.
6452         (write_gc_structure_fields): Use output_escaped_param on all
6453         parameters.  Handle 'skip' with 'use_param' option.  Handle
6454         arrays of strings.  Remove TYPE_VARRAY handling.
6455         (write_gc_roots): Use boolean to detect 'length' option.
6456         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
6457         (struct_fields): Call adjust_field_type on array fields.
6458         (type): Remove VARRAY_TYPE case.
6459         (type_option): Likewise.
6460         * gengtype-lex.l: Don't consider varray_type a keyword.
6461         * function.h: Update for change to length specifier.
6462         (free_eh_status): Delete prototype.
6463         * function.c (free_after_compilation): Don't call free_eh_status.
6464         (reorder_blocks): Don't use VARRAY_FREE.
6465         * except.c (struct eh_status): Update for change to length specifier.
6466         remove varray_type specifier.
6467         (free_eh_status): Delete.
6468         * dwarf2out.c: Include gt-dwarf2out.h.
6469         (used_rtx_varray): Use gengtype to mark, move
6470         outside ifdefs.
6471         (incomplete_types): Likewise.
6472         (decl_scope_table): Likewise.
6473         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
6474         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
6475         * c-tree.h (struct lang_type): Update for change to length specifier.
6476         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
6477         * c-objc-common.c: Include gt-c-objc-common.h.
6478         (deferred_fns): Mark for gengtype.
6479         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
6480         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
6481         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
6482         (gtype-desc.o): Update dependencies.
6483         (dwarf2out.o): Add gt-dwarf2out.h.
6484         (varray.o): Update dependencies.
6485         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
6486         (gt-c-objc-common.h): New rule.
6487         (gt-dwarf2out.h): New rule.
6488         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
6489
6490         * doc/gty.texi (GTY Options): Correct spelling.
6491         (GGC Roots): Likewise.
6492         * Makefile.in (TEXI_CPP_FILES): New.
6493         (TEXI_GCC_FILES): New.
6494         (TEXI_GCCINT_FILES): New.
6495         (TEXI_CPPINT_FILES): New.
6496         ($(docdir)/cpp.info): Use new macros.
6497         ($(docdir)/gcc.info): Likewise.
6498         ($(docdir)/gccint.info): Likewise.
6499         ($(docdir)/cppinternals.info): Likewise.
6500         (cpp.dvi): Likewise.
6501         (gcc.dvi): Likewise.
6502         (gccint.dvi): Likewise.
6503         (cppinternals.dvi): Likewise.
6504
6505         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
6506         * doc/gccint.texi (Top): Include gty.texi.
6507         * doc/gty.texi: New file.
6508
6509         * bitmap.c: Include ggc.h, gt-bitmap.h.
6510         (bitmap_ggc_free): New.
6511         (bitmap_elem_to_freelist): New.
6512         (bitmap_element_free): Use bitmap_elem_to_freelist.
6513         (bitmap_element_allocate): Allow use of GGC.
6514         (bitmap_clear): Use bitmap_elem_to_freelist.
6515         (bitmap_copy): Update for change to bitmap_element_allocate.
6516         (bitmap_set_bit): Likewise.
6517         (bitmap_operation): Update for changes elsewhere.
6518         (bitmap_initialize): Allow to create bitmaps that will use GGC.
6519         * bitmap.h (struct bitmap_element_def): Use gengtype.
6520         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
6521         (bitmap_initialize): Add extra parameter.
6522         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
6523         (BITMAP_ALLOCA): Delete.
6524         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
6525         (BITMAP_GGC_ALLOC): New.
6526         * Makefile.in (gtype-desc.o): Add bitmap.h.
6527         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
6528         (GTFILES): Add bitmap.c.
6529         (gt-bitmap.h): New rule.
6530         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
6531         * basic-block.h: Update for changes to bitmap_initialize.
6532         * except.c (exception_handler_label_map): Move into...
6533         (struct eh_status): Here.
6534         (struct eh_region): Make 'aka' GCable.
6535         (free_eh_status): Don't need to specially handle
6536         exception_handler_label_map.
6537         (add_ehl_entry): Update for changes to exception_handler_label_map.
6538         (find_exception_handler_labels): Likewise.
6539         (remove_exception_handler_label): Likewise.
6540         (maybe_remove_eh_handler): Likewise.
6541         (for_each_eh_label): Likewise.
6542         (remove_eh_handler): Allocate 'aka' using GGC.
6543         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
6544         to list of includes.
6545
6546         * gengtype.c (write_gc_marker_routine_for_structure): Name
6547         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
6548         (write_gc_types): Arrange for the tests with NULL to be inlined.
6549         (write_gc_roots): Update uses of procedure pointers.
6550         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
6551
6552         * Makefile.in (explow.o): Add dependency on gt-explow.h.
6553         (sdbout.o): Add dependency on gt-sdbout.h.
6554
6555         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
6556         (mem_attrs_htab): Likewise.
6557         (init_emit_once): Don't call ggc_add_deletable_htab.
6558         * fold-const.c (size_htab): Use gengtype to clear unused entries.
6559         (size_int_type_wide): Don't call ggc_add_deletable_htab.
6560         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
6561         parameters, use them, change callers.
6562         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
6563         (write_gc_roots): Handle 'if_marked' option.
6564         (main): Don't need to call set_gc_used_type any more.
6565         * ggc.h (ggc_htab_marked_p): Delete.
6566         (ggc_htab_mark): Delete.
6567         (struct ggc_cache_tab): New.
6568         (gt_ggc_cache_rtab): New declaration.
6569         * ggc-common.c (struct d_htab_root): Delete.
6570         (d_htab_roots): Delete.
6571         (ggc_add_deletable_htab): Delete.
6572         (ggc_htab_delete): Handle new htab-deleting mechanism.
6573         (ggc_mark_roots): Use new htab-deleting mechanism.
6574         * tree.c (type_hash_table): Use gengtype to clear unused entries.
6575         Make static.
6576         (init_obstacks): Don't call ggc_add_deletable_htab.
6577
6578         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
6579         (struct hashed_entry): Likewise.
6580         (nst_method_hash_list): Likewise.
6581         (cls_method_hash_list): Likewise.
6582         (HASH_ALLOC_LIST_SIZE): Delete.
6583         (ATTR_ALLOC_LIST_SIZE): Delete.
6584         * objc/objc-act.c (hash_init): Use ggc to allocate
6585         nst_method_hash_list, cls_method_hash_list.
6586         (hash_enter): Use ggc to allocate; allocate one entry at a time.
6587         (hash_add_attr): Likewise.
6588         (ggc_mark_hash_table): Delete.
6589         (objc_act_parse_init): Delete.
6590         (objc_init): Delete reference to objc_act_parse_init.
6591         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
6592         obstack.h.  Replace references to 'struct hash_table' with htab_t.
6593         (struct symbol_hash_entry): Replace hash header with key field.
6594         (struct file_hash_entry): Replace hash header with key field.
6595         (struct demangled_hash_entry): Replace hash header with key field.
6596         (hash_string_eq): New.
6597         (hash_string_hash): New.
6598         (symbol_hash_newfunc): Delete.
6599         (symbol_hash_lookup): Modify to use htab_t.
6600         (file_hash_newfunc): Delete.
6601         (file_hash_lookup): Modify to use htab_t.
6602         (demangled_hash_newfunc): Delete.
6603         (demangled_hash_lookup): Modify to use htab_t.
6604         (tlink_init): Modify to use htab_t.
6605         * hash.h: Delete.
6606         * hash.c: Delete.
6607         * ggc.h: Delete forward structure declarations.
6608         Delete prototypes for deleted functions.
6609         * ggc-common.c: Don't include hash.h.
6610         (ggc_add_tree_hash_table_root): Delete.
6611         (ggc_mark_tree_hash_table_entry): Delete.
6612         (ggc_mark_tree_hash_table): Delete.
6613         (ggc_mark_tree_hash_table_ptr): Delete.
6614         * gengtype.c (write_gc_structure_fields): Allow param_is option.
6615         (write_gc_marker_routine_for_structure): Use visibility of
6616         the parameter if there is one.
6617         * function.c: Replace hash.h with hashtab.h.  Replace references
6618         to 'struct hash_table *' with htab_t.
6619         (struct insns_for_mem_entry): Include a plain key.
6620         (fixup_var_refs_insns_with_hash): Update to use htab_t.
6621         (insns_for_mem_newfunc): Delete.
6622         (insns_for_mem_hash): Update to use htab_t.
6623         (insns_for_mem_comp): Likewise.
6624         (insns_for_mem_walk): Likewise.
6625         * c-lang.c: Include ggc.h.
6626         * Makefile.in (OBJS): Remove hash.o.
6627         (c-lang.o): Add GGC_H.
6628         (COLLECT2_OBJS): Remove hash.o.
6629         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
6630         (ggc-common.o): Remove hash.h.
6631         (function.o): Remove hash.h, add HASHTAB_H.
6632         (genautomata.o): Remove hash.h, add HASHTAB_H.
6633
6634         * varasm.c (mark_const_str_htab_1): Delete.
6635         (mark_const_str_htab): Delete.
6636         (const_str_htab_del): Delete.
6637         (const_str_htab): Use gengtype to mark.
6638         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
6639         allocate them.
6640         * tree.c (mark_tree_hashtable_entry): Delete.
6641         (mark_tree_hashtable): Delete.
6642         * tree.h (mark_tree_hashtable): Delete prototype.
6643         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
6644         (ggc_mark): Likewise.
6645         (ggc_calloc): New.
6646         (htab_create_ggc): New.
6647         * ggc-common.c (ggc_calloc): New.
6648         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
6649         (struct type): Add param_struct structure.
6650         * gengtype.c (param_structs): New.
6651         (adjust_field_type): Handle param_is option.
6652         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
6653         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
6654         (write_gc_structure_fields): Add new PARAM parameter.  Update
6655         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
6656         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
6657         Use it to generate function name.  Update callers.
6658         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
6659         Process them.
6660         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
6661         option.
6662         (main): Define PTR as pointer-to-scalar.  Don't specially
6663         mark deferred_string or ehl_map_entry.
6664         * gengtype-yacc.y (PARAM_IS): Add new token.
6665         (externstatic): Use adjust_field_type.
6666         (type_option): Add PARAM_IS.
6667         * gengtype-lex.l: Add rule for typedef of function pointers.
6668         Add rule for PARAM_IS.
6669         (IWORD): Add size_t.
6670         * except.c (exception_handler_label_map): Use gengtype to mark.
6671         (type_to_runtime_map): Likewise.
6672         (mark_ehl_map_entry): Delete.
6673         (mark_ehl_map): Delete.
6674         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
6675         (t2r_mark_1): Delete.
6676         (t2r_mark): Delete.
6677         * Makefile.in (gtype-desc.o): Correct dependencies.
6678         (GTFILES): Add hashtab.h.
6679         (genautomata.o): Actually uses hashtab.h.
6680
6681         * Makefile.in (stringpool.o): Add $(GGC_H).
6682         (dwarf2asm.o): Likewise.
6683         (GTFILES): Add hashtable.h.
6684         * c-common.h (struct c_common_identifier): Use gengtype.
6685         * c-decl.h (c_mark_tree): Delete.
6686         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
6687         * c-tree.h (struct lang_identifier): Use gengtype.
6688         (union lang_tree_node): New.
6689         (c_mark_tree): Delete prototype.
6690         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
6691         dwarf2_debug_hooks.
6692         * gengtype-lex.l (IWORD): Allow 'bool'.
6693         (ptr_alias): Match.
6694         * gengtype-yacc.y (ALIAS): New token.
6695         (type_option): New rule.
6696         (option): Use type_option.
6697         * gengtype.c (process_gc_options): New.
6698         (set_gc_used_type): Use it.
6699         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
6700         Add new variable 't' to hold the type of the field being processed.
6701         Add more error checking.  Use UNION_P when looking at 'desc' option.
6702         Handle language-specific structures containing other
6703         language-specific structures.
6704         (write_gc_types): Handle 'ptr_alias' option.
6705         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
6706         * ggc-common.c (ggc_pending_trees): Delete.
6707         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
6708         (ggc_mark_trees): Delete.
6709         (gt_ggc_m_tree_node): Delete.
6710         * ggc.h (ggc_pending_trees): Delete.
6711         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
6712         * hashtable.h (ht_identifier): Use gengtype.
6713         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
6714         * langhooks.h (struct lang_hooks): Delete mark_tree.
6715         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
6716         anyway.
6717         * system.h: Poison LANG_HOOKS_MARK_TREE.
6718         * tree.c (tree_node_structure): New.
6719         * tree.h (struct tree_common): Use gengtype.
6720         (struct tree_int_cst): Likewise.
6721         (struct tree_real_cst): Likewise.
6722         (struct tree_string): Likewise.
6723         (struct tree_complex): Likewise.
6724         (struct tree_vector): Likewise.
6725         (struct tree_identifier): Likewise.
6726         (struct tree_list): Likewise.
6727         (struct tree_vec): Likewise.
6728         (struct tree_exp): Likewise.
6729         (struct tree_block): Likewise.
6730         (struct tree_type): Likewise.
6731         (struct tree_decl): Likewise.
6732         (enum tree_structure_enum): New.
6733         (union tree_node): Use gengtype, with an alias.
6734         (tree_node_structure): Prototype.
6735         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
6736
6737         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
6738         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
6739         to LANG_HOOKS_FUNCTION_FINAL.
6740         * Makefile.in (GTFILES): Add bitmap.h.
6741         * except.c (struct eh_region): Mark field 'aka' to be skipped.
6742
6743         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
6744         (alpha_init_machine_status): Give proper type.
6745         * Makefile.in (c-lang.o): Depend on gtype-c.h.
6746         (optabs.o): Depend on gt-optabs.h.
6747         (GTFILES): Add optabs.o.
6748         (gt-optabs.h): Add rule.
6749         * optabs.c: Include gt-optabs.h.
6750
6751         * gengtype.c (set_gc_used_type): Correct some errors in last change.
6752         (write_gc_structure_fields): If a field which should be NULL is
6753         not, abort.
6754         * c-pragma.c: Move struct align_stack and variable alignment_stack
6755         out from the ifdef.
6756
6757         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
6758         * config/xtensa/xtensa.c: Include gt-cris.h.
6759         (struct machine_function): Use gengtype to mark.
6760         * config/mmix/mmix.h (struct machine_function): Use gengtype
6761         to mark.
6762         * config/cris/t-cris: Add dependencies for gt-cris.h.
6763         * config/cris/cris.c: Include gt-cris.h.
6764         (struct machine_function): Use gengtype to mark.
6765         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
6766         to mark.
6767         * doc/tm.texi (Per-Function Data): Delete references to
6768         mark_machine_status.
6769         * config/ia64/ia64.c (ia64_override_options): Don't set
6770         mark_machine_status.
6771         * config/i386/i386.c (override_options): Likewise.
6772         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
6773         * config/arm/arm.c (arm_init_expanders): Likewise.
6774         * config/alpha/alpha.c (override_options): Likewise.
6775         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
6776         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
6777         (write_gc_structure_fields): Don't handle 'really' option.
6778         Handle 'maybe_null' option.
6779         (write_gc_types): Handle 'maybe_null' option.
6780         * function.h (struct function): Don't use "really".
6781         (mark_machine_status): Delete declaration.
6782         (mark_lang_status): Delete declaration.
6783         (gt_ggc_mr_machine_function): Delete prototype.
6784         (gt_ggc_mr_language_function): Delete prototype.
6785         * function.c (mark_machine_status): Delete.
6786         (mark_lang_status): Delete.
6787         (gt_ggc_mr_machine_function): Delete.
6788         (gt_ggc_mr_language_function): Delete.
6789         * c-tree.h (mark_c_function_context): Delete prototype.
6790         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
6791         * c-decl.c (struct language_function): Rename from struct
6792         c_language_function.  Update uses.  Use gengtype to mark.
6793         (mark_c_function_context): Delete.
6794         * c-common.h (struct c_language_function): Rename from struct
6795         language_function.
6796         (mark_stmt_tree): Delete prototype.
6797         (c_mark_lang_decl): Delete prototype.
6798         (mark_c_language_function): Delete prototype.
6799         * c-common.c (mark_stmt_tree): Delete.
6800         (c_mark_lang_decl): Delete.
6801         (mark_c_language_function): Delete.
6802
6803         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
6804         (lang_bitmap): New typedef.  Use where appropriate.
6805         (struct type): Add gc_used field, lang_struct field.
6806         (UNION_P): New macro.
6807         (new_structure): New prototype.
6808         (find_structure): Remove 'pos' parameter.  Change all callers.
6809         * gengtype-lex.l: Update for changes to find_structure.
6810         * gengtype-yacc.y (typedef_struct): Use new_structure.
6811         (yacc_ids): Suppress warning.
6812         (type): Use new_structure.
6813         * gengtype.c (string_type): Update for changes to struct type.
6814         (find_structure): Just find a structure, don't worry about
6815         creating one.
6816         (new_structure): New.
6817         (note_yacc_type): Use new_structure.
6818         (set_gc_used_type): New.
6819         (set_gc_used): New.
6820         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
6821         (write_gc_types): Handle TYPE_LANG_STRUCT.
6822         (write_gc_marker_routine_for_structure): New.
6823         (main): Call set_gc_used.  Add some calls to set_gc_used_type
6824         for places where GCC doesn't use gengtype properly yet.
6825         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
6826         (gt_ggc_m_tree_node): Likewise.
6827
6828         * varasm.c (copy_constant): Call expand_constant if we hit
6829         something we can't recognise.
6830
6831         * ggc-common.c (ggc_mark_rtvec_children): Delete.
6832         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
6833         (lang_mark_false_label_stack): Delete.
6834         * rtl.h (struct rtvec_def): Use gengtype to mark.
6835         * ggc.h (ggc_mark_rtvec): Delete.
6836         (gt_ggc_m_rtvec_def): Delete.
6837         (ggc_mark_nonnull_tree): Delete.
6838         (ggc_mark_rtvec_children): Delete prototype.
6839         (lang_mark_false_label_stack): Delete declaration.
6840
6841         * gengtype.h (note_yacc_type): Add prototype.
6842         * gengtype.c (note_yacc_type): New function.
6843         * gengtype-lex.l: Add lexer support for yacc files.
6844         * gengtype-yacc.y (start): Extract union from yacc files.
6845         (yacc_union): New rule.
6846         (yacc_typematch): New rule.
6847         (yacc_ids): New rule.
6848         (enum_items): Tweak for efficiency.
6849         (optionseq): Likewise.
6850
6851         * c-common.h (struct language_function): Use gengtype.
6852         (struct c_lang_decl): Likewise.
6853         * c-tree.h (struct lang_decl): Likewise.
6854         (struct lang_type): Likewise.
6855         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
6856         tree language substructures.
6857
6858         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
6859         ggc_mark_tree.
6860         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
6861
6862         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
6863
6864         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
6865         mark. Remove 'data.block.cleanup_ptr' field.
6866         (struct stmt_status): Use usual technique to mark struct nesting.
6867         (gt_ggc_mr_nesting_cond): Delete.
6868         (gt_ggc_mr_nesting_loop): Delete.
6869         (gt_ggc_mr_nesting_block): Delete.
6870         (gt_ggc_mr_nesting_case_stmt): Delete.
6871         (expand_start_cond): Set discriminator.
6872         (expand_start_loop): Likewise.
6873         (expand_start_null_loop): Likewise.
6874         (expand_start_bindings_and_block): Set discriminator.  Don't set
6875         deleted fields.
6876         (expand_decl_cleanup): Replace 'cleanup_ptr' with
6877         &thisblock->data.block.cleanups.
6878         (expand_start_case): Set discriminator.
6879         (expand_start_case_dummy): Set discriminator.
6880
6881         * ggc-callbacks.c: Remove.
6882
6883         * gengtype.h (struct type): Add 'u.s.bitmap' field.
6884         (find_structure): Add 'pos' parameter.
6885         * gengtype-lex.l: Update callers to find_structure.
6886         * gengtype-yacc.y: Likewise.
6887         * gengtype.c (find_structure): Allow for structures to be defined
6888         in multiple language backends.
6889         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
6890         (counter): Rename to gc_counter.
6891         (write_gc_structure_fields): Fail when writing out fields for
6892         an incomplete structure.  Ignore arrays of scalars.  Handle
6893         'tree_vec' special.
6894         (write_gc_types): Reset counter for each procedure written.
6895
6896         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
6897         (free_case_nodes): Delete.
6898         (expand_end_case_type): Delete call to free_case_nodes.
6899
6900         * Makefile.in (cselib.o): Include gt-<filename>.h.
6901         (gcse.o): Likewise.
6902         (profile.o): Likewise.
6903         (alias.o): Likewise.
6904         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
6905         alphabetize backend files.
6906         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
6907         * alias.c: Use gengtype for roots.
6908         * c-common.h (struct stmt_tree_s): Use gengtype.
6909         * c-decl.c: Use gengtype for roots.
6910         * cselib.c: Use gengtype for roots.
6911         * expr.c: Use gengtype for roots.
6912         * fold-const.c: Use gengtype for roots.
6913         * gcse.c: Use gengtype for roots.
6914         * gengtype-lex.l: Handle typedefs of function types.
6915         Allow for empty array bounds.
6916         Allow processing to stop on initialisers.
6917         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
6918         (semiequal): New rule.
6919         * gengtype.c (create_file): Tidy output files.
6920         (get_output_file_with_visibility): Fix paren warning.  Fix bug
6921         involving multiple input files mapping to one output file.
6922         (write_gc_structure_fields): Skip arrays of scalars.
6923         (write_gc_types): Tidy output files.
6924         (write_gc_root): New function.
6925         (write_gc_roots): Fix bugs, add support for roots that are
6926         structures.
6927         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
6928         (ggc_mark_tree_ptr): Delete.
6929         (ggc_add_rtx_root): Delete.
6930         (ggc_add_tree_root): Delete.
6931         (ggc_del_root): Delete.
6932         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
6933         allocate struct initial_value_struct.
6934         * profile.c: Use gengtype for roots.
6935         * sdbout.c: Use gengtype for roots.
6936         * varasm.c (mark_weak_decls): Delete unused prototype.
6937         (mark_const_hash_entry): Delete unused function.
6938         * config/darwin-protos.h: Use gengtype for roots.
6939         (machopic_add_gc_roots): Delete.
6940         * config/arm/arm.c: Use gengtype for roots.
6941         * config/arm/arm.h: Use gengtype for roots.
6942         * config/c4x/c4x-protos.h: Use gengtype for roots.
6943         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
6944         * config/d30v/d30v-protos.h: Use gengtype for roots.
6945         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
6946         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
6947         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
6948         * config/ia64/ia64-protos.h: Use gengtype for roots.
6949         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
6950         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
6951         * config/m68hc11/m68hc11.c (z_reg): Make global.
6952         (z_reg_qi): Make global.
6953         (m68hc11_add_gc_roots): Delete.
6954         * config/mcore/mcore-protos.h: Use gengtype for roots.
6955         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
6956         * config/mips/mips.c (mips_add_gc_roots): Delete.
6957         * config/mips/mips.h: Use gengtype for roots.
6958         * config/mmix/mmix.c (override_options): Use gengtype for roots.
6959         * config/mmix/mmix.h: Use gengtype for roots.
6960         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
6961         * config/mn10200/mn10200.h: Use gengtype for roots.
6962         * config/pa/pa.c: Use gengtype for roots, marking.
6963         (struct deferred_plabel): Use GGC, gengtype.
6964         (pa_add_gc_roots): Delete.
6965         (mark_deferred_plabels): Delete.
6966         * config/pj/pj-protos.h: Use gengtype for roots.
6967         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
6968         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
6969         machopic_add_gc_roots.
6970         * config/rs6000/rs6000.h: Use gengtype for roots.
6971         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
6972         (gt-darwin.h): Add rule.
6973         * config/sh/sh.c: Use gengtype for roots.
6974         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
6975         (gt-sh.h): Add rule.
6976         * config/sparc/sparc.c: Use gengtype for roots.
6977         (sparc_add_gc_roots): Delete.
6978         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
6979         (mark_ultrasparc_pipeline_state): Delete.
6980         * config/sparc/sparc.h: Use gengtype for roots.
6981
6982         * Makefile.in (c-parse.o): Update dependencies.
6983         (c-common.o): Likewise.
6984         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
6985         Add dependencies for the files they generate.
6986         * c-common.c: Replace ggc_add_* uses with GTY annotations.
6987         * c-common.h: Likewise.
6988         * c-decl.c: Likewise.
6989         (gt_ggc_mp_binding_level): Delete.
6990         * c-lang.c: Include gtype-c.h.
6991         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
6992         gt-c-parse.h.
6993         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
6994         (gt_ggc_mp_align_stack): Delete.
6995         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
6996         * function.c: Replace ggc_add_* uses with GTY annotations.
6997         (gt_ggc_mp_function): Delete.
6998         * function.h: Replace ggc_add_* uses with GTY annotations.
6999         * gengtype.c (lang_names): New.
7000         (NUM_BASE_FILES): New.
7001         (open_base_files): Create language base files.
7002         (startswith): New.
7003         (get_file_basename): New.
7004         (get_base_file_bitmap): New.
7005         (get_output_file_with_visibility): Rename from get_output_file.
7006         Add more mappings for various C/Objc filenames.
7007         (finish_root_table): New.
7008         (write_gc_roots): Handle dependencies and scoping properly.
7009         * gengtype.h: Add prototypes for new functions.
7010         * ggc-common.c (struct deletable_root): Delete.
7011         (deletables): Delete.
7012         (ggc_add_deletable_root): Delete.
7013         (ggc_mark_roots): No need to deal with deleted functionality.
7014         * ggc.h (ggc_add_deletable_root): Delete prototype.
7015         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
7016         (gtype-objc.h): Add rule to create.
7017         * objc/config-lang.in (gtfiles): New.
7018         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
7019         ggc_add_* with GTY markers.  Include gtype-objc.h.
7020         (ggc_mark_imp_list): Delete.
7021         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
7022         * objc/objc-lang.c: Random Whitespace Change.
7023
7024         * except.h (exception_handler_labels): Delete.
7025         (get_exception_handler_labels): New.
7026         * except.c (exception_handler_labels): Delete.
7027         (struct eh_status): Add exception_handler_labels field.
7028         (doing_eh): Don't add exception_handler_labels as root.
7029         (free_eh_status): Don't need to free exception_handler_labels.
7030         (get_exception_handler_labels): New.
7031         (find_exception_handler_labels): Update for move of
7032         exception_handler_labels.
7033         (remove_exception_handler_label): Likewise.
7034         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
7035         * jump.c (rebuild_jump_labels): Likewise.
7036         * loop.c (find_and_verify_loops): Likewise.
7037         * sched-rgn.c (is_cfg_nonregular): Likewise.
7038
7039         * gengtype.c (write_gc_structure_fields): Handle variable-length
7040         TYPE_ARRAYs.
7041
7042         * varasm.c (struct weak_syms): Use GGC, gengtype.
7043         (mark_weak_decls): Delete.
7044         (weak_decls): Likewise.
7045         (add_weak): Likewise.
7046         (remove_from_pending_weak_list): Likewise.
7047         (init_varasm_once): Likewise.
7048
7049         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
7050         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
7051         stor-layout.c, regclass.c, and lists.c.
7052         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
7053         gt-regclass.h and gt-lists.h on s-gtype.
7054         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
7055         * except.c: Use gengtype for roots.
7056         * explow.c: Use gengtype for roots.  Include gt-explow.h.
7057         * expr.h (init_stor_layout_once): Delete prototype.
7058         * function.c: Use gengtype for roots.
7059         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
7060         * gengtype-yacc.y (start): Can also be an externstatic.
7061         (externstatic): New production.
7062         (struct_fields): Correct array bounds inversion for 2-d arrays.
7063         * gengtype.c (variables): New variable.
7064         (note_variable): New function.
7065         (get_output_file): Include libfuncs.h into gtype-desc.c.
7066         (get_output_file_name): New function.
7067         (write_gc_structure_fields): Suppress warnings.
7068         (write_gc_types): Make static.
7069         (put_mangled_filename): New function.
7070         (write_gc_roots): New function.
7071         (main): Call write_gc_roots.
7072         * gengtype.h (note_variable): Prototype.
7073         (get_output_file_name): Prototype.
7074         (write_gc_types): Delete prototype.
7075         * ggc.h: Clean up unnecessary structure predefinitions.
7076         (struct ggc_root_tab): Define.
7077         (gt_ggc_m_rtx_def): Make function, not macro.
7078         (gt_ggc_m_tree_node): Likewise.
7079         * libfuncs.h: Use gengtype for roots.
7080         * lists.c: Use gengtype for roots.  Include gt-lists.h.
7081         (init_EXPR_INSN_LIST_cache): Delete.
7082         * optabs.c: Use gengtype for roots.
7083         (gt_ggc_mp_optab): Delete.
7084         * optabs.h: Use gengtype for roots.
7085         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
7086         * rtl.h: Use gengtype for roots.
7087         (init_EXPR_INSN_LIST_cache): Delete prototype.
7088         * stor-layout.c: Use gengtype for roots.
7089         Include gt-stor-layout.h.
7090         (init_stor_layout_once): Delete.
7091         * toplev.c: Use gengtype for roots.  Delete calls to deleted
7092         routines.
7093         * tree.c: Use gengtype for roots.
7094         * tree.h: Use gengtype for roots.
7095         * varasm.c: Use gengtype for roots.
7096
7097         * Makefile.in (GTFILES): Add @all_gtfiles@.
7098         * configure: Regenerate.
7099         * configure.in: Construct all_gtfiles from the gtfiles definitions
7100         in config-lang.in.
7101         * gengtype-yacc.y (type): Warn about duplicate structure names.
7102         * gengtype.c (get_output_file): Handle .c files in language
7103         subdirectories.
7104
7105         * Makefile.in (GTFILES): Run gengtype on all the config files
7106         and on the target .c file.
7107         * except.c (mark_eh_region): Delete.
7108         (init_eh_for_function): Use GGC on struct eh_status.
7109         (mark_eh_status): Delete.
7110         (free_eh_status): Use GGC.
7111         (expand_eh_region_start): Use GGC to
7112         (collect_eh_region_array): Allocate last_region_number using GGC.
7113         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
7114         (remove_eh_handler): Let GGC free struct eh_region.
7115         (add_call_site): Use GGC to reallocate call_site_record array.
7116         * function.c (init_machine_status): Update calling sequence.
7117         (mark_machine_status): Likewise.
7118         (mark_lang_status): Likewise.
7119         (prepare_function_start): Update init_machine_status call.
7120         (mark_function_status): Delete.
7121         (maybe_mark_struct_function): Delete.
7122         (ggc_mark_struct_function): Delete.
7123         (gt_ggc_mp_function): New.
7124         (gt_ggc_mr_machine_function): New.
7125         (gt_ggc_mr_language_function): New.
7126         (init_function_once): Use canonical names.
7127         * function.h (struct function): Use gengtype.
7128         (init_machine_status): Return the structure.
7129         (mark_machine_status): Take a 'void *'.
7130         (mark_lang_status): Likewise.
7131         * ggc-common.c (ggc_mark_trees): Use canonical name for
7132         ggc_mark_struct_function.
7133         * tree.h (ggc_mark_struct_function): Delete prototype.
7134         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
7135         (alpha_init_machine_status): Likewise.
7136         (override_options): Use canonical name for alpha_mark_machine_status.
7137         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
7138         * config/arm/arm.h (struct machine_function): Use gengtype.
7139         * config/arm/arm.c (arm_mark_machine_status): Delete.
7140         (arm_init_machine_status): Update calling sequence.
7141         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
7142         * config/cris/cris.c (cris_init_machine_status): Update
7143         calling sequence.
7144         * config/d30v/d30v.h (struct machine_function): Use gengtype.
7145         * config/d30v/d30v.c (d30v_init_machine_status): Update
7146         calling sequence.
7147         (d30v_mark_machine_status): Delete.
7148         * config/i386/i386.c: Include gt-i386.h.
7149         (struct machine_function): Use gengtype.
7150         (ix86_init_machine_status): Update calling sequence.
7151         (ix86_mark_machine_status): Delete.
7152         (override_options): Use canonical namke for ix86_mark_machine_status.
7153         * config/ia64/ia64.h (struct machine_function): Use gengtype.
7154         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
7155         sequence.
7156         (ia64_mark_machine_status): Delete.
7157         (ia64_override_options): Use canonical name for
7158         ia64_mark_machine_status.
7159         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
7160         sequence.
7161         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
7162         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7163         * gengtype.c (get_output_file): Fix warning.
7164         (main): Add prototype to suppress warning.
7165         * tree.c: Remove tree_hash_mark prototype.
7166
7167         * tree.h (init_stmt): Delete prototype.
7168         * toplev.c (lang_independent_init): Don't call init_stmt.
7169         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
7170         (stmt_obstack): Delete.
7171         (POPSTACK): No need to free 'struct nesting'.
7172         (gt_ggc_mr_nesting_cond): Use canonical names.
7173         (gt_ggc_mr_nesting_loop): Use canonical names.
7174         (gt_ggc_mr_nesting_block): Use canonical names.
7175         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
7176         (mark_stmt_status): Delete.
7177         (init_stmt): Delete.
7178         (clear_last_expr): Clear both last_expr_type and last_expr_value.
7179         Use it everywhere that last_expr_type was cleared.
7180         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
7181         (zap_lists): Delete.
7182         * ggc.h (ggc_add_deletable_root): Prototype.
7183         (mark_stmt_status): Remove prototype.
7184         * ggc-common.c (ggc_add_deletable_root): New.
7185         (ggc_mark_roots): Handle deletable roots.
7186         * function.c (ggc_mark_struct_function): Use canonical name
7187         for mark_stmt_status.
7188         * emit-rtl.c (free_sequence_stack): New.
7189         (start_sequence): Use a freelist for sequences.
7190         (end_sequence): Likewise.
7191         (init_emit_once): Add free_sequence_stack as a deleteable root.
7192         * c-pragma.c Include gt-c-pragma.h.
7193         (struct align_stack): Use gengtype.
7194         (push_alignment): Use GGC for struct align_stack.
7195         (mark_align_stack): Delete.
7196         (gt_ggc_mp_align_stack): New.
7197         (init_pragma): Use canonical name for mark_align_stack.
7198         * c-decl.c: Include gt-c-decl.h.
7199         (struct binding_level): Use gengtype.
7200         (make_binding_level): Use GGC; handle the freelist here.
7201         (pop_binding_level): New.
7202         (pushlevel): Move code into make_binding_level.
7203         (push_label_level): Likewise.
7204         (poplevel): Move code into pop_binding_level.
7205         (pop_label_level): Likewise.
7206         (mark_binding_level): Delete.
7207         (gt_ggc_mp_binding_level): New.
7208         (c_init_decl_processing): Use canonical name for mark_binding_level.
7209         Add free_binding_level as deletable root.
7210         (mark_c_function_context): Use canonical name for mark_binding_level.
7211         * Makefile.in (c-decl.o): Add gt-c-decl.h.
7212         (c-pragma.o): Add gt-c-pragma.h.
7213         (GTFILES): Add c-decl.c and c-pragma.c.
7214         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
7215
7216         * tree.c (struct type_hash): Use gengtype.
7217         (init_obstacks): Use canonical name for type_hash_mark.
7218         (type_hash_mark): Delete.
7219         Include gt-tree.h.
7220         * rtl.h (struct mem_attrs): Use gengtype.
7221         * optabs.h (struct optab): Use gengtype.
7222         * optabs.c (expand_binop): Squish signed/unsigned warning.
7223         (mark_optab): Make local, use canonical name, use autogenerated
7224         marker procedure.
7225         (init_optabs): Use canonical name for mark_optab.
7226         (new_optab): Use GGC to allocate optabs.
7227         * ggc.h: Delete mark_optab prototype.
7228         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
7229         mem_attrs marker procedure.
7230         * gengtype.c (get_output_file): Include headers in gtype-desc.c
7231         explicitly rather than deducing them from file names.
7232         (write_gc_structure_fields): Handle arrays of structures.
7233         (main): Return non-zero exit code if errors occur during output.
7234         * emit-rtl.c (mem_attrs_mark): Delete.
7235         (init_emit_once): Use canonical name for mem_attrs marker procedure.
7236         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
7237         (tree.o): Depend on gt-tree.h.
7238         (GTFILES): Add rtl.h, optabs.h, tree.c.
7239         (gt-tree.h): Add it to s-gtype rule.
7240
7241         * .cvsignore: Ignore gengtype flex/bison generated files.
7242         * Makefile.in (GGC_H): Add gtype-desc.h.
7243         (OBJS): Add gtype-desc.o.
7244         (GEN): Add gengtype.
7245         (STAGESTUFF): Add gengtype.
7246         (varasm.o): Add gt-varasm.h.
7247         (stmt.o): Add gt-stmt.h.
7248         (except.o): Add gt-except.h.
7249         (integrate.o): Add gt-integrate.h.
7250         (GTFILES): New.
7251         Add new rules for new files.
7252         * configure: Regenerate.
7253         * configure.in: Correct defaults.h paths.
7254         * emit-rtl.c (mark_sequence_stack): Delete.
7255         (mark_emit_status): Delete.
7256         (start_sequence): Allocate sequence structures using GGC.
7257         (end_sequence): Allocate sequence structures using GGC.
7258         * except.c: Use gengtype for various structures.  Include
7259         gt-except.h.
7260         * expr.c (mark_expr_status): Delete.
7261         * function.c: Use gengtype for various structures.  Include
7262         gt-function.h.
7263         (mark_function_status): Use standard gt_ggc names for marker functions.
7264         (ggc_mark_struct_function): Likewise.
7265         * function.h: Use gengtype for various structures.
7266         * gengtype-lex.l: New file.
7267         * gengtype-yacc.y: New file.
7268         * gengtype.c: New file.
7269         * gengtype.h: New file.
7270         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
7271         the standard names.  Remove some now-unnecessary prototypes.
7272         * integrate.c: Use gengtype for various structures.  Include
7273         gt-integrate.h.
7274         (mark_hard_reg_initial_vals): Delete.
7275         * integrate.h (mark_hard_reg_initial_vals): Delete.
7276         * stmt.c: Use gengtype for various structures.  Include
7277         gt-stmt.h.
7278         (mark_case_node): Delete.
7279         (mark_goto_fixup): Delete.
7280         (mark_stmt_status): Use standard gt_ggc names for marker functions.
7281         * system.h: Define GTY to empty.   In flex/bison files,
7282         don't poison malloc or realloc, instead just define them to
7283         xmalloc and xrealloc.
7284         * varasm.c: Use gengtype for various structures.  Include
7285         gt-varasm.h.  Use standard gt_ggc names for marker functions.
7286         (mark_pool_constant): Delete.
7287         (mark_varasm_status): Delete.
7288         (decode_rtx_const): #if 0 out non-typesafe hack.
7289
7290         * function.h (free_lang_status): Mark as obsolete.
7291         * function.c (free_lang_status): Mark as obsolete.
7292         * c-decl.c (push_c_function_context): Use GC to allocate and free
7293         struct language_function.
7294         (pop_c_function_context): Likewise.
7295         * c-common.c (mark_c_language_function): Mark struct
7296         language_function.
7297
7298         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
7299         Document that the machine_function structures must be allocated
7300         using GC.  Update mark_machine_status documentation.
7301         * function.h: Don't declare free_machine_status.
7302         * function.c (free_machine_status): Don't define.
7303         (free_after_compilation): Don't call free_machine_status.
7304         (ggc_mark_struct_function): Mark f->machine.  Call
7305         mark_machine_status only on non-NULL pointers.
7306         * system.h: Poison free_machine_status.
7307         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
7308         struct machine_function.
7309         (xtensa_free_machine_status): Delete.
7310         (override_options): Don't set free_machine_status.
7311         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
7312         free_machine_status.
7313         (rs6000_init_machine_status): Use GC on struct machine_function.
7314         (rs6000_free_machine_status): Delete.
7315         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
7316         machine_function.
7317         (ia64_mark_machine_status): Likewise.
7318         (ia64_free_machine_status): Delete.
7319         (ia64_override_options): Don't set free_machine_status.
7320         * config/i386/i386.c (override_options): Don't set
7321         free_machine_status.
7322         (ix86_init_machine_status): Use GC on struct machine_function.
7323         (ix86_mark_machine_status): Likewise.
7324         (ix86_free_machine_status): Delete.
7325         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
7326         machine_function.
7327         (d30v_mark_machine_status): Likewise.
7328         (d30v_free_machine_status): Delete.
7329         (d30v_init_expanders): Don't set free_machine_status.
7330         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
7331         machine_function.
7332         (arm_init_machine_status): Likewise.
7333         (arm_free_machine_status): Delete.
7334         (arm_init_expanders): Don't set free_machine_status.
7335         * config/alpha/alpha.c (override_options): Don't set
7336         free_machine_status.
7337         (alpha_init_machine_status): Use GC on struct machine_function.
7338         (alpha_mark_machine_status): Likewise.
7339         (alpha_free_machine_status): Delete.
7340
7341         * varasm.c (compare_constant): Fix typo.
7342
7343         * varasm.c: Don't include obstack.h.
7344         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
7345         (struct rtx_const): Give substructures names, improve formatting.
7346         (struct constant_descriptor): Delete.
7347         (struct constant_descriptor_tree): New, based on constant_descriptor.
7348         (const_hash_table): Is a hash table of trees.
7349         (mark_const_hash_entry): Is used for hashes of trees.  Mark
7350         constant_descriptor_tree structure.
7351         (mark_const_str_htab_1): Mark deferred_string structure.
7352         (compare_constant): Rewrite to compare trees.
7353         (compare_constant_1): Delete.
7354         (record_constant): Delete.
7355         (record_constant_1): Delete.
7356         (output_constant_def): Use struct constant_descriptor_tree.
7357         Don't duplicate trees twice.
7358         (struct constant_descriptor_rtx): New.
7359         (struct pool_constant): Used for rtx constants.
7360         (init_varasm_status): Update for change to struct varasm_status.
7361         (mark_varasm_status): Likewise.
7362         (free_varasm_status): Delete.
7363         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
7364         (record_constant_rtx): Likewise.
7365         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
7366         (force_const_mem): Likewise.
7367         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
7368         * function.c (free_after_compilation): Don't use free_varasm_status.
7369         * function.h: Don't prototype free_varasm_status.
7370
7371         * ggc-common.c (ggc_realloc): Handle X being NULL.
7372
7373         * ggc-common.c (ggc_realloc): New function.
7374         * ggc.h: Prototype it.
7375         * emit-rtl.c (free_emit_status): Delete.
7376         (init_emit): Allocate emit subarrays using GC.
7377         (gen_reg_rtx): Reallocate subarrays using GC.
7378         (init_emit): Use GC to allocate 'struct emit_status' and its
7379         subarrays.
7380         (mark_emit_status): Mark structure and its subarrays.
7381         * stmt.c (free_stmt_status): Delete.
7382         * expr.c (free_expr_status): Delete.
7383         * function.h: Remove prototypes for deleted functions.
7384         * function.c (free_after_compilation): Don't use deleted functions.
7385         Don't call free() on x_parm_reg_stack_loc.
7386         (free_after_parsing): Don't use free_stmt_status.
7387         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
7388         (mark_function_status): Mark x_parm_reg_stack_loc.
7389
7390         * varasm.c (init_varasm_status): Use GC to allocate
7391         'struct varasm_status' and its fields x_const_rtx_hash_table
7392         and x_const_rtx_sym_hash_table.
7393         (mark_varasm_status): Mark them.
7394         (free_varasm_status): Use GC to free them.
7395         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
7396         (mark_expr_status): Mark the structure itself.
7397         (free_expr_status): Use GC to free the structure.
7398         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
7399         (mark_stmt_status): Mark the 'struct stmt_status' itself.
7400         (init_stmt_for_function): Allocate the structure for GC.
7401
7402         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
7403         (equate_type_number_to_die): Likewise.
7404         * tree.h (TYPE_SYMTAB_DIE): New macro.
7405         (struct die_struct): Predeclare.
7406         (struct tree_type): Add field symtab.die.   Add a tag
7407         to the union type of field symtab.
7408
7409         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
7410         'struct rtvec_def *', not 'struct rtvec_def'.
7411
7412         * function.h (original_arg_vector): Make a real rtvec.
7413         * function.c (ggc_mark_struct_function): Adjust.
7414         * integrate.c (expand_inline_function): Adjust.
7415
7416 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
7417
7418         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
7419         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
7420         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
7421         (TARGET_VERSION_CPU): Define according to the
7422         default target.
7423         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
7424         TARGET_VERSION_CPU.
7425         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
7426         if TARGET_SHMEDIA64.
7427         (LINK_DEFAULT_CPU_EMUL): Define according to the
7428         default target.
7429         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
7430         (SUBTARGET_LINK_SPEC): Define.
7431         (LINK_SPEC): Use SH_LINK_SPEC.
7432         (ASM_SPEC): Remove.
7433         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
7434         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
7435         and TARGET_SHMEDIA64 which abort, for now.
7436         * config/sh/t-netbsd-sh5: New file.
7437         * config/sh/t-netbsd-sh5-32: New file.
7438         * config/sh/t-netbsd-sh5-64: New file.
7439
7440 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7441             Richard Henderson  <rth@redhat.com>
7442
7443         * config/alpha/alpha.c (reg_or_const_int_operand): New.
7444         (some_operand, input_operand): Accept CONST_VECTOR.
7445         (alpha_extra_constraint): Add 'W'.
7446         (alpha_expand_zap_mask): New.
7447         (alpha_expand_builtin_vector_binop): New.
7448         (enum alpha_builtin): New.
7449         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
7450         (alpha_init_builtins, alpha_expand_builtin): New.
7451         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
7452         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
7453         (PREDICATE_CODES): Update.
7454         * config/alpha/alpha-protos.h: Update.
7455         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
7456         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
7457         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
7458         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
7459         (movv2si, movv2si_fix, movv2si_nofix): New.
7460         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
7461         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
7462         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
7463         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
7464         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
7465         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
7466         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
7467         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
7468         builtin_unpkbw, unpkbw): New.
7469         * doc/extend.texi (Alpha Built-in Functions): New.
7470
7471 2002-06-03  Richard Henderson  <rth@redhat.com>
7472
7473         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
7474         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
7475
7476 2002-06-03  Richard Henderson  <rth@redhat.com>
7477
7478         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
7479
7480         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
7481         (const0_operand): New.
7482         (reg_or_fp0_operand, fp0_operand): Remove.
7483         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7484         * config/alpha/alpha-protos.h: Update.
7485         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
7486         and fp0_operand with reg_or_0_operand and const0_operand.
7487
7488 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
7489
7490         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
7491
7492 2002-06-03  Roger Sayle  <roger@eyesopen.com>
7493
7494         * gcse.c (cprop_jump): Use single_set to get the pattern
7495         from the setcc argument.
7496
7497 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
7498
7499         * diagnostic.h (diagnostic_count): Move from output_buffer to
7500         diagnostic_context.
7501         (diagnostic_kind_count): Adjust definition.
7502
7503 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
7504
7505         * except.c (except.c): Do not rebuild CFG.
7506         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
7507         optimization.
7508
7509 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
7510
7511         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
7512         * toplev.c: Include cfglahout.h
7513         * Makefile.in (toplev.c): Add dependnecy.
7514
7515 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7516
7517         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
7518         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
7519         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
7520
7521 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
7522
7523         * config/ns32k/netbsd.h: Update copyright years.
7524         (TARGET_OS_CPP_BUILTINS): Define.
7525         (CPP_PREDEFINES): Remove.
7526         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
7527         (TARGET_CPU_CPP_BUILTINS): Define.
7528
7529 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
7530
7531         * emit-rtl.c: Fix formatting.
7532         * errors.h: Likewise.
7533         * except.c: Likewise.
7534         * explow.c: Likewise.
7535         * expmed.c: Likewise.
7536         * expr.c: Likewise.
7537         * expr.h: Likewise.
7538
7539 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
7540
7541         * config/h8300/elf.h: Fix formatting.
7542         * config/h8300/rtems.h: Likewise.
7543
7544 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
7545
7546         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
7547
7548 2002-06-02  Tom Tromey  <tromey@redhat.com>
7549
7550         * fixinc/fixincl.x: Rebuilt.
7551         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
7552
7553 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7554
7555 config/i370:
7556         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
7557         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
7558         * mvs.h: Similarly.
7559         * oe.h: Similarly.
7560
7561 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
7562
7563         * final.c (final):  Allow notes to not have computed addresses;
7564         kill no longer needed STACK_REGS ifdef.
7565
7566 2002-06-02  Richard Henderson  <rth@redhat.com>
7567
7568         * gcse.c (bypass_conditional_jumps): Fix typo last change.
7569
7570 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
7571
7572         * loop.c (emit_prefetch_instructions): Properly place the address
7573         computation.
7574
7575 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
7576
7577         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
7578         (set_block_for_insn): Turn into macro.
7579         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
7580         * cfglayout.c (insn_scopes): Kill.
7581         (scope_to_insns_initialize): Do not use insn_scopes.
7582         (scope_to_insns_finalize): Likewise.
7583         (duplicate_insn_chain): Likewise.
7584         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
7585         * cfgrtl.c (basic_block_for_insn): Kill.
7586         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
7587         (create_basic_block_structure): Use reorder_insns.
7588         (compute_bb_for_insn): Do not use basic_block_for_insn.
7589         (merge_blocks_nomove): Likewise.
7590         (update_bb_for_insn): Likewise.
7591         (verify_flow_info): Likewise.
7592         (set_block_for_insn): Kill.
7593         * combine.c (try_combine): Update gen_rtx_INSN call.
7594         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
7595         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
7596         scopes and BBs.
7597         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
7598         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
7599         Clear BB.
7600         (emit_insns_after): Simplify.
7601         (emit_copy_of_insn_after): Copy scope.
7602         * final.c (final_start_function): Lower scopes.
7603         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
7604         * integrate.c (copy_insn_list): Cope scopes.
7605         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
7606         * loop.c (loop_optimize): Do not care block notes.
7607         * print-rtl.c (print_rtx): Print BB.
7608         * recog.c (apply_change_group): Simplify.
7609         * rtl.c (copy_rtx): Handle 'B'.
7610         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
7611         * rtl.h (Field accessors): Update indexes.
7612         * sched-ebb.c (schedule_ebbs): Do not lower notes.
7613         * sched-rgn.c (schedule_insns): Likewise.
7614         * toplev.c (rest_of_compilation): Lower notes.
7615         * unroll.c (unroll_loop): Do not care scoping notes.
7616         (copy_loop_body): Copy scopes.
7617
7618 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7619
7620 config/h8300:
7621         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
7622         SUBTARGET_SPEC.
7623         * rtems.h: Similarly.
7624         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
7625         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
7626         (TARGET_CPU_CPP_BUILTINS): Use.
7627
7628 2002-06-02  Richard Henderson  <rth@redhat.com>
7629
7630         * alias.c: Include target.h.
7631         (mark_constant_function): Use targetm.binds_local_p instead
7632         of checking TREE_PUBLIC ourselves.
7633         * Makefile.in (alias.o): Add TARGET_H.
7634
7635 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7636
7637         * c-lex.c: Update copyright and file description.
7638
7639 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7640
7641         * config/fr30/fr30.h: Update to new CPP macros.
7642
7643 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7644
7645         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
7646
7647 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7648             Zack Weinberg <zack@codesourcery.com>
7649
7650         * c-common.c (c_common_init): Override cpplib's default
7651         warn_long_long setting.
7652         * c-lex.c (lex_number): Replace with interpret_integer,
7653         interpret_float, narrowest_unsigned_type and
7654         narrowest_signed_type, taking advantage of the new
7655         cpplib functionality.
7656         * cpperror.c (_cpp_begin_message): If a warning is turned
7657         into an error, avoid printing "warning:".
7658         * cppexp.c (cpp_num_sign_extend): New.
7659         * cppinit.c: Update comment.
7660         * cpplib.h (cpp_num_sign_extend): New.
7661         * tree.h: Update comment.
7662
7663 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
7664
7665         * diagnostic.h (struct diagnostic_context):  Add new member
7666         internal_error.
7667         (internal_error_function): Remove declaration.
7668         * diagnostic.c (internal_error_function): Remove definition..
7669         (internal_error): Adjust use.
7670
7671 2002-06-02  Richard Henderson  <rth@redhat.com>
7672
7673         * rtl.h (CC0_P): New.
7674         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
7675         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
7676         (bypass_block): Save old dest block for dump text.
7677         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
7678         Allow only true SET insns, not single_set.
7679
7680 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
7681
7682         * diagnostic.c (diagnostic_finish): Rename to output_flush.
7683         (clear_disgnostic_info): Rename to output_clear_data.  Use false
7684         instead of 0 for boolean value.
7685         Adjust function call throughout.
7686
7687 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7688
7689         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
7690         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
7691
7692 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7693
7694         * d30v.h (CPP_PREDEFINES): Replace with
7695         (TARGET_CPU_CPP_BUILTINS): New.
7696
7697 2002-06-02  Roger Sayle  <roger@eyesopen.com>
7698
7699         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
7700
7701 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
7702
7703         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
7704
7705 2002-06-02  Richard Henderson  <rth@redhat.com>
7706
7707         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
7708
7709 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7710
7711         Support for C++ constructors/destructors.
7712         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
7713         instead of looping if main() returns.
7714         (asm_file_start): Output global symbols that cause .data and .bss
7715         initialization code to be linked in, unconditionally for now.
7716         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
7717         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
7718         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7719         (LIBSTDCXX): New.
7720         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
7721         (__tablejump__): New.
7722         (__do_copy_data, __do_clear_bss): New.
7723         (__do_global_ctors, __do_global_dtors): New.
7724         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
7725         _ctors, _dtors.
7726
7727 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7728
7729         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
7730         (CPP_SPEC, CPP_PREDEFINES): Kill.
7731         * c4x/rtems.h (CPP_PREDEFINES): Kill.
7732         (TARGET_OS_CPP_BUILTINS): New.
7733
7734 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
7735
7736         * Makefile.in (tracer.o): New.
7737         * params.def (TRACER_*): New options.
7738         * rtl.h (tracer): Declare.
7739         * timevar.def (TV_TRACER): New.
7740         * toplev.c (dump_file_index): Add DFI_tracer.
7741         (dump_file_info): Add tracer.
7742         (flag_tracer): New.
7743         (lang_indepdenent_options): Add tracer.
7744         (rest_of_compilation): Call tracer.
7745         * tracer.c: New file.
7746         * invoke.texi (-ftracer): Document.
7747         (--param tracer-*): Document.
7748
7749 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
7750
7751         * tree-inline.c (expand_call_inline): Make the statement
7752         expression we generate have a COMPOUND_STMT.
7753
7754 2002-06-01  Roger Sayle  <roger@eyesopen.com>
7755
7756         * gcse.c (cprop_cc0_jump): Function deleted.
7757         (cprop_jump): Take an additional argument which is the possibly
7758         NULL cc setting insn immediately before the conditional jump.
7759         When a MODE_CC set is present, substitute it into the JUMP_INSN
7760         before attempting the constant propagation.
7761         (cprop_insn):  Recognize cc setters followed by conditional jumps
7762         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
7763         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
7764         (find_bypass_set): New function based upon find_avail_set used by
7765         cprop, but finds constant expressions available at the end of
7766         basic blocks.
7767         (bypass_block): New function.  Given a basic block that begins
7768         with a conditional jump and multiple incoming edges, perform
7769         the jump bypass optimization.
7770         (bypass_conditional_jumps): New function.  Call bypass_block with
7771         each suitable basic block in the CFG using a simple single pass.
7772
7773 2002-06-01  Roger Sayle  <roger@eyesopen.com>
7774
7775         * tree.c (real_minus_onep): New function to test for -1.0.
7776         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
7777
7778 2002-06-01  Roger Sayle  <roger@eyesopen.com>
7779
7780         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
7781         and "!p && !q" into "(p|q) == 0" under suitable conditions.
7782
7783 2002-06-01  Andreas Jaeger  <aj@suse.de>
7784
7785         * cppexp.c (cpp_classify_number): Cast precission to int for
7786         correct printf format.
7787
7788 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7789
7790         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
7791         expected, but don't really exist: atmega83, atmega85, attiny10.
7792         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
7793         emulations for all devices.
7794         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
7795         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
7796
7797 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
7798
7799         * config/h8300/h8300-protos.h: Add a prototype for
7800         h8300_shift_needs_scratch_p.
7801         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
7802         * config/h8300/h8300.h (OK_FOR_R): New.
7803         (OK_FOR_S): Likewise.
7804         (OK_FOR_T): Likewise.
7805         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
7806         * config/h8300/h8300.md (anonymous shift patterns): Use
7807         constraints R, S, and T.
7808
7809 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7810
7811         * basic-block.h (struct basic_block_def): New field loop_father.
7812         (BB_VISITED): New flag.
7813         (struct loop): New field pred, removed field shared.
7814         (struct loops): New field parray.
7815         (LOOP_EXITS_DOMS): Removed.
7816         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
7817         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
7818         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
7819         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
7820         verify_loop_structure): Declare.
7821         * cfg.c (entry_exit_blocks): Initialize loop_father field.
7822         * cfganal.c (dfs_enumerate_from): New function.
7823         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
7824         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7825         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
7826         flow_loop_dump, flow_loops_dump, flow_loops_free,
7827         flow_loop_tree_node_add, flow_loop_level_compute,
7828         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
7829         flow_loop_outside_edge_p): Modified for new infrastructure.
7830         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
7831         redirect_edge_with_latch_update, flow_loop_free): New static functions.
7832         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
7833         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
7834         find_common_loop, verify_loop_structure, loop_latch_edge,
7835         loop_preheader_edge): New functions.
7836         (flow_loops_cfg_dump): Do not show dominators, as this information
7837         does not remain up to date long.
7838         (flow_loops_find): Store results in new format.
7839         * predict.c (propagate_freq, estimate_probability,
7840         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
7841         infrastructure.
7842
7843 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
7844
7845         * except.c (nothrow_function_p): Walk epilogue delay list
7846         checking the insn, not the chain for potential throws.
7847
7848 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
7849
7850         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
7851         (install): Refer to install-cpp directly.
7852         (uninstall-cpp): Folded into uninstall rule.
7853         * configure.in: Delete all code relating to --disable-cpp.
7854         * configure: Regenerate.
7855         * config/t-install-cpp: Delete.
7856
7857 2002-05-31  Richard Henderson  <rth@redhat.com>
7858
7859         * configure.in (HAVE_AS_TLS): Add alpha tests.
7860         * configure: Rebuild.
7861         * config/alpha/alpha.c (TARGET_AS_TLS): New.
7862         (alpha_tls_size, alpha_tls_size_string): New.
7863         (overide_options): Set it.  Always install machine_status hooks.
7864         (input_operand): Accept got tls predicates.
7865         (local_symbol_p): Merge into ...
7866         (local_symbolic_operand): ... here.  Reject tls symbols.
7867         (global_symbolic_operand): Likewise.
7868         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
7869         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
7870         (tp16_symbolic_operand, tp32_symbolic_operand): New.
7871         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
7872         (alpha_encode_section_info): Handle TLS symbols.
7873         (alpha_strip_name_encoding): Likewise.
7874         (alpha_legitimate_address_p): Likewise.
7875         (alpha_legitimize_address): Likewise.
7876         (alpha_expand_mov): Early exit to avoid nop moves.
7877         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
7878         (alpha_init_machine_status, alpha_mark_machine_status,
7879         alpha_free_machine_status): Always define.
7880         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
7881         (print_operand, print_operand_address): Add TLS relocs.
7882         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
7883         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
7884         (TARGET_SWITCHES): Add -mtls-kernel.
7885         (alpha_tls_size, alpha_tls_size_string): New.
7886         (TARGET_OPTIONS): Add -mtls-size=.
7887         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
7888         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
7889         (ASM_OUTPUT_LABELREF): Skip %.
7890         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
7891         (PREDICATE_CODES): Update.
7892         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
7893         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
7894         UNSPEC_TP, UNSPECV_SET_TP): New.
7895         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
7896         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
7897         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
7898         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
7899         (call_value_osf_2_er): Accept anything as op4.
7900         * config/alpha/alpha-protos.h: Update.
7901         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
7902
7903 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
7904
7905         * cppinit.c (append_include_chain): Always pay attention to
7906         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
7907         marker on argument.
7908
7909 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
7910
7911         * target.h: Fix formatting.
7912         * timevar.h: Likewise.
7913         * tlink.c: Likewise.
7914         * toplev.c: Likewise.
7915         * toplev.h: Likewise.
7916         * tree.c: Likewise.
7917         * tree-dump.h: Likewise.
7918         * tree.h: Likewise.
7919         * tree-inline.h: Likewise.
7920         * unroll.c: Likewise.
7921         * unwind-dw2.c: Likewise.
7922         * unwind-dw2-fde.c: Likewise.
7923         * unwind-dw2-fde-glibc.c: Likewise.
7924         * unwind-dw2-fde.h: Likewise.
7925         * unwind.h: Likewise.
7926         * unwind-sjlj.c: Likewise.
7927         * varasm.c: Likewise.
7928         * varray.h: Likewise.
7929         * vmsdbg.h: Likewise.
7930         * vmsdbgout.c: Likewise.
7931         * xcoffout.h: Likewise.
7932
7933 2002-05-31  Igor Shevlyakov <igor@microunity.com>
7934
7935         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
7936         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
7937
7938 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
7939
7940         * gcc.c (cpp_unique_options): Remove "-d" options.
7941         (cpp_debug_options): New spec string.
7942         (default_compilers): Use it.
7943         * objc/lang-specs.h: Likewise.
7944
7945 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
7946
7947         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
7948         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
7949         * gcc/mklibgcc.in: Likewise.
7950         * gcc/config/arc/t-arc: Likewise.
7951         * gcc/configure.in: Likewise.
7952         * gcc/configure: Regenerate.
7953
7954 2002-05-31  Stan Shebs  <shebs@apple.com>
7955             Turly O'Connor  <turly@apple.com>
7956
7957         * c-decl.c (struct binding_level): Change int field n_incomplete
7958         to tree list incomplete_list.
7959         (clear_binding_level): Init field with NULL.
7960         (pushdecl): Add incomplete type to list.
7961         (mark_binding_level): Mark the incomplete list.
7962         (finish_struct): Scan the incomplete list for types instead
7963         of all decls in the current binding level.
7964
7965 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7966
7967         * pa.c (output_millicode_call): Add missing '%' characters.
7968         (output_call): Likewise.
7969
7970 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
7971
7972         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
7973         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7974
7975 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
7976
7977         * varasm.c (mark_constant_pool): Walk epilogue delay list
7978         checking the insn, not the chain for potential constants.
7979
7980 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
7981
7982         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
7983
7984 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
7985
7986         * i386.c (classify_argument): Properly handle base types.
7987
7988         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
7989         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
7990         registers.
7991
7992 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7993
7994         * gcse.c (gcse_emit_move_after): New.
7995         (pre_delete, hoist_store): Use it.
7996
7997         * reload1.c (emit_input_reload_insns): Use constrain_operands
7998         instead of constraint_accepts_reg_p to verify optimization.
7999         (constraint_accepts_reg_p): Kill
8000
8001         * reload1.c (reload_cse_delete_noop_set): Kill.
8002         (reload_cse_simplify): use delte_insn_and_edges.
8003
8004 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8005
8006         * cfgloop.c (flow_loops_find): Initialize first and last fields
8007         correctly.
8008
8009 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8010
8011         * c-common.c (builtin_define_std): Correct logic.
8012
8013 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8014
8015         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
8016         (output_call): Likewise.
8017
8018 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8019
8020         * pa.c: Move output.h include after tree.h include.
8021         (pa_asm_output_mi_thunk): Constify identifier lab.
8022
8023 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
8024
8025         * config/ns32k/ns32k.h: Define named constants for the
8026         bits in target_flags and use them.
8027         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
8028
8029 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8030
8031         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
8032         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
8033         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
8034         default scheduling model.
8035         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
8036         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
8037         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
8038         * doc/install.texi (hppa*-*-*): Document default scheduling.
8039
8040 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8041
8042         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
8043
8044 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
8045
8046         * config.gcc (ns32k-*-netbsd*): Set tm_file to
8047         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
8048         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
8049         netbsd.h, or netbsd-aout.h.
8050
8051 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
8052
8053         * longlong.h (count_trailing_zeros): Add missing \, and clean up
8054         whitespace in __ns32000__ case.
8055
8056 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
8057
8058         * expr.c (expand_expr): Output partially zeroed out vectors with
8059         output_constant_def.
8060
8061 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8062
8063         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
8064         (sh-*-netbsdelf*)
8065         (shl*-*-netbsdelf*): New targets.
8066         * config/sh/netbsd-elf.h: New file.
8067         * config/sh/t-netbsd: New file.
8068
8069 2002-05-30  Richard Henderson  <rth@redhat.com>
8070             Eric Botcazou  <ebotcazou@multimania.com>
8071
8072         PR optimization/6822
8073         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
8074         to unsigned int for op1 comparisons.  Use gen_int_mode.
8075
8076 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
8077
8078         * expmed.c (const_mult_add_overflow_p): New.
8079         * expr.h: Declare it.
8080         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
8081         Don't eliminate the biv if the giv has a constant multiplier and
8082         the rhs argument of the comparison does satisfy the predicate.
8083         Use expand_mult_add to compute the replacement constant.
8084
8085 2002-05-30  Osku Salerma  <osku@iki.fi>
8086
8087         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
8088         (c_common_get_alias_set): Handle it.
8089         * doc/extend.texi: Document it.
8090
8091 2002-05-30  Richard Henderson  <rth@redhat.com>
8092
8093         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
8094         * toplev.c (process_options): Don't check it.
8095         * doc/tm.texi: Don't document it.
8096         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
8097         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
8098         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
8099         frame pointer optimization if current_function_profile.
8100
8101 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
8102
8103         * langhooks.c: Fix formatting.
8104         * langhooks.h: Likewise.
8105         * lcm.c: Likewise.
8106         * libgcc2.c: Likewise.
8107         * lists.c: Likewise.
8108         * local-alloc.c: Likewise.
8109         * loop.c: Likewise.
8110         * loop.h: Likewise.
8111
8112 2002-05-30  Marc Espie <espie@openbsd.org>
8113
8114         * config.gcc (sparc64-*-openbsd*): New.
8115         * config/sparc/openbsd1-64.h: New.
8116         * config/sparc/openbsd64.h: New.
8117
8118 2002-05-30  Jeff Law <law@redhat.com>
8119
8120         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
8121         a dead insn with a REG_RETVAL note when the entire libcall is not
8122         dead and remove the associated REG_LIBCALL note at the same time.
8123
8124 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
8125
8126         * lcm.c (output.h): #include.
8127         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
8128         as an ordinary block.
8129         (optimize_mode_switching): Don't pretend that the exit block is
8130         an ordinary block, or handle sucessors of entry block specially.
8131         Instead, split edges from entry block and to exit block, and
8132         put a computing definition on the thus gained post-entry-block,
8133         and a need on the pre-exit-block.
8134
8135 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
8136
8137         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
8138         * rtl.texi: Document 'B'
8139
8140 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8141
8142         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
8143         at run-time.
8144         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
8145
8146 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
8147
8148         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
8149         const0_rtx instead of NULL_RTX when in error.
8150         (altivec_expand_abs_builtin): Same.
8151         (rs6000_expand_binop_builtin): Same.
8152         (altivec_expand_predicate_builtin): Same.
8153         (altivec_expand_stv_builtin): Same.
8154         (rs6000_expand_ternop_builtin): Same.
8155         (altivec_expand_builtin): Same.
8156
8157 2002-05-29  David S. Miller  <davem@redhat.com>
8158
8159         * rtl.h (clear_emit_caches): Delete.
8160         * integrate.c (output_inline_function): Don't call it.
8161         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
8162         (clear_emit_caches): Delete definition.
8163         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
8164
8165 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
8166
8167         * config/mmix/mmix.c: Include real.h.
8168         (mmix_constant_address_p): Remove redundant test before switch.
8169
8170 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8171
8172         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
8173         only if not already defined.
8174
8175 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
8176
8177         * config/h8300/h8300-protos.h: Remove prototypes for
8178         ok_for_bclr and small_power_of_two.
8179         * config/h8300/h8300.c (small_power_of_two): Remove.
8180         (ok_for_blcr): Likewise.
8181         (fix_bit_operand): Make WHAT deal with an integer instead of a
8182         constraint character.
8183         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
8184         (CONST_OK_FOR_P): Likewise.
8185         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
8186         CONST_OK_FOR_P any more.
8187         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
8188         of fix_bit_operand.
8189         (iorqi3): Likewise.
8190         (xorqi3): Likewise.
8191
8192 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8193
8194         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8195         (CPP_PREDEFINES): Make sure this is undefined.
8196         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
8197         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
8198         or -U__MIPSEB__ before defining one or the other.  Instead,
8199         use %(subtarget_endian_default) if neither -EB nor -EL are
8200         specified.
8201         (SUBTARGET_EXTRA_SPECS): Define.
8202         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
8203         %(netbsd_cpp_spec).
8204
8205 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
8206
8207         * doc/md.texi (Patterns): Note pattern condition pitfall
8208         for unnamed insn.
8209
8210 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
8211
8212         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
8213         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
8214         ternary operations from here...
8215         (rs6000_expand_builtin): ...to here.
8216         New argument expandedp.
8217         Change all instances of altivec_expand_binop_builtin to
8218         rs6000_expand_binop_builtin.
8219         (altivec_expand_unop_builtin): Rename to
8220         rs6000_expand_unop_builtin.
8221         (altivec_expand_binop_builtin): Rename to
8222         rs6000_expand_binop_builtin.
8223         (altivec_expand_ternop_builtin): Rename to
8224         rs6000_expand_ternop_builtin.
8225
8226 2002-05-29  Richard Henderson  <rth@redhat.com>
8227
8228         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
8229         (TARGET_BI_ARCH): Likewise.
8230         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
8231         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
8232         (TARGET_64BIT_DEFAULT): Default to 0.
8233         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
8234
8235 2002-05-29  Richard Henderson  <rth@redhat.com>
8236
8237         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
8238         (get_pc_thunk_name): New.
8239         (output_set_got): Use it.
8240         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
8241         into linkonce sections.
8242
8243 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8244
8245         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8246         (CPP_PREDEFINES): Make sure this is undefined.
8247         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
8248         (CPP_SUBTARGET_SPEC): Don't provide different versions for
8249         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
8250         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
8251         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
8252         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8253         (CPP_PREDEFINES): Make sure this is undefined.
8254         (SUBTARGET_EXTRA_SPECS): Define.
8255         (CPP_SPEC): Use %(netbsd_cpp_spec).
8256
8257 2002-05-29  Jeff Law <law@redhat.com>
8258
8259         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
8260
8261         * flow.c (propagate_one_insn): Do not remove a dead insn if it
8262         contains a REG_RETVAL note.
8263
8264         * haifa-sched (sched_analyze): Remove another useless clearing
8265         of SCHED_GROUP_P I missed yesterday.
8266
8267         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
8268         * pa.c (pa_asm_output_mi_thunk): New function.
8269         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
8270
8271 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8272             Marek Michalkiewicz  <marekm@amelek.gda.pl>
8273
8274         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
8275         (avr_asm_only_p): Make non-static.
8276         (enum avr_arch): Remove.
8277         (avr_arch_types): New.
8278         (avr_mcu_types): Update.
8279         (avr_override_options): Use avr_arch_types table instead of switch.
8280         * avr.h (CPP_PREDEFINES): Die.
8281         (avr_base_arch_macro, avr_extra_arch_macro): New.
8282         (TARGET_CPU_CPP_BUILTINS): New.
8283         (CPP_SPEC, EXTRA_SPECS): Simplify.
8284         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
8285         CPP_AVR5_SPEC): Die.
8286
8287 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8288
8289         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
8290         NETBSD_OS_CPP_BUILTINS_AOUT.
8291         (SUBTARGET_EXTRA_SPECS): Define.
8292         (CPP_SPEC): Use %(netbsd_cpp_spec).
8293
8294 2002-05-29  Richard Henderson  <rth@redhat.com>
8295
8296         * config/i386/i386.c (ix86_output_function_epilogue): New.
8297         (TARGET_ASM_FUNCTION_EPILOGUE): New.
8298         (pic_label_name): Remove.
8299         (pic_labels_used): New.
8300         (ix86_asm_file_end): Emit one pc load stub for each register used.
8301         (output_set_got): Generate deep pc load to any register.
8302         (ix86_select_alt_pic_regnum): New.
8303         (ix86_save_reg): Don't save pic register if we can find a valid
8304         call-clobbered replacement.
8305         (ix86_expand_prologue): If we found a valid replacement, renumber
8306         pic_offset_table_rtx.
8307         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
8308         pic_offset_table_rtx after reload.
8309         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
8310         * config/i386/i386.md (set_got): Make insn, not expander.
8311         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
8312
8313 2002-05-29  Richard Henderson  <rth@redhat.com>
8314
8315         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
8316         alignment for alloca.
8317
8318 2002-05-29  Richard Henderson  <rth@redhat.com>
8319
8320         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
8321         (print_operand_address): Only add rip for symbolic addresses
8322         for which we do not have another relocation type.
8323
8324 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8325
8326         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8327         (EXTRA_SPECS): Add netbsd_cpp_spec.
8328         (CPP_SPEC): Use %(netbsd_cpp_spec).
8329         (CPP_PREDEFINES): Remove.
8330         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8331         (EXTRA_SPECS): Define.
8332         (CPP_SPEC): Use %(netbsd_cpp_spec).
8333         (CPP_PREDEFINES): Remove.
8334
8335 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8336
8337         PR preprocessor/6844
8338         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
8339         NUL.
8340
8341 2002-05-29  Eric Christopher  <echristo@redhat.com>
8342
8343         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
8344         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
8345
8346 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
8347
8348         * config/fr30/fr30.md: Remove previous restriction on splits.
8349         Enforce conformance through gen_lowpart and cont_int_operand.
8350         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
8351         as the assembler does not support ".bss".
8352
8353 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8354
8355         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8356         (CPP_PREDEFINES): Remove.
8357         (SUBTARGET_EXTRA_SPECS): Define.
8358         (CPP_SPEC): Use %(netbsd_cpp_spec).
8359         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8360         (CPP_PREDEFINES): Remove.
8361         (SUBTARGET_EXTRA_SPECS): Define.
8362         (CPP_SPEC): Use %(netbsd_cpp_spec).
8363         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
8364         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
8365         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
8366         Add netbsd_cpp_spec.
8367         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
8368
8369 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8370             Zack Weinberg <zack@codesourcery.com>
8371
8372         * cppexp.c (cpp_num): Move to cpplib.h.
8373         (CPP_ERROR): Remove.
8374         (interpret_float_suffix, interpret_int_suffix): New.
8375         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
8376         (cpp_classify_number, cpp_interpret_integer): New.
8377         (interpret_number): Remove.
8378         (eval_token): Update to use new routines.
8379         * cpphash.h (cpp_num_part): Move to cpplib.h.
8380         * cppinit.c (cpp_post_options): Set warn_long_long.
8381         * cpplib.h (struct cpp_options): Add warn_long_long.
8382         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
8383         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
8384         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
8385         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
8386         cpp_interpret_integer): New.
8387
8388 2002-05-29  Joel Sherrill <joel@OARcorp.com>
8389
8390         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
8391
8392 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
8393
8394         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
8395         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
8396         (CPP_SUBTARGET_SPEC): Define.
8397         (SUBTARGET_EXTRA_SPECS): Define.
8398         (CPP_SPEC): Remove.
8399
8400 2002-05-29  Chris Lattner  <sabre@nondot.org>
8401
8402         * ssa.c (rename_insn_1): Rename uses of undefined registers to
8403         prevent confusion if/when the register is defined.
8404
8405 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
8406
8407         PR target/6838
8408         * config/cris/cris.md: Fix typos and thinkos in comments.
8409         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
8410         second alternative.
8411         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
8412         ("*mov_sideqi_mem"): Similar, but for operand 3.
8413         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
8414         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
8415         Remove spurious mode specifier on operand 2.
8416
8417 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
8418
8419         * config/h8300/h8300-protos.h: Remove the prototype for
8420         o_operand.
8421         Add prototypes for single_one_operand and single_zero_operand.
8422         * config/h8300/h8300.c (o_operand): Remove.
8423         (single_one_operand): New.
8424         (single_zero_operand): Likewise.
8425         (print_operand): For 'V' operand, and the operand with 0xff.
8426         For 'V' and 'W' operands, do not and the bit position with 7.
8427         * config/h8300/h8300.md (various anonymous patterns): Replace
8428         use of exact_log2 with single_one_operand/single_zero_operand.
8429
8430 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
8431
8432         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
8433
8434 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
8435
8436         * config/s390/s390.c (legitimate_pic_operand_p): Do not
8437         accept symbolic LARL operands.
8438         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
8439         epilogue insns.
8440
8441 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
8442
8443         * config/s390/s390.md (cmpstr_64/31): Mark whole
8444         input registers as used.
8445
8446 2002-05-28  Richard Henderson  <rth@redhat.com>
8447
8448         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
8449         not current_function_uses_pic_offset_table and
8450         current_function_uses_const_pool; examine current_function_profile.
8451         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
8452         input to blockage if needed.
8453         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
8454         (legitimize_pic_address): Likewise.  Set regs_ever_live for
8455         pic_offset_table_rtx when invoked during reload.
8456         * config/i386/i386.h (FINALIZE_PIC): Remove.
8457         * config/i386/i386.md (tablejump): Reformat.  Do not set
8458         current_function_uses_pic_offset_table.
8459         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
8460         (blockage): Accept anything as operand 0.
8461
8462 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8463
8464         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
8465         common CPP built-ins for all NetBSD a.out targets.
8466         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
8467         common CPP built-ins for all NetBSD ELF targets.
8468         * config/netbsd.h: Add missing notice.
8469         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
8470         for all NetBSD targets.
8471         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
8472         for all NetBSD targets using an LP64 code model.
8473         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
8474         NetBSD targets.
8475
8476 2002-05-28  Richard Henderson  <rth@redhat.com>
8477
8478         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
8479         update if UPDATE_LIFE_LOCAL.
8480
8481 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8482
8483         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
8484
8485 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
8486                           Jason R. Thorpe <thorpej@wasabisystems.com>
8487
8488         config/sh reorganization to factor out endianness and coff:
8489
8490         * config/sh/little.h: New file.
8491         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
8492         defined, define to 0 to select big-endian.
8493         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
8494         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8495         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8496         * config/sh/t-be: New file.
8497         * config/sh/t-le: New file.
8498
8499         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
8500         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
8501         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
8502         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
8503         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8504         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
8505         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
8506         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
8507         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
8508         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
8509         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
8510         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
8511         (LINK_SPEC): Define to SH_LINK_SPEC.
8512         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
8513         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
8514         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
8515         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
8516         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
8517         * config/sh/coff.h: New file.
8518         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
8519         (TARGET_OBJFMT_CPP_BUILTINS): Define.
8520         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
8521         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
8522         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
8523         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
8524         (PTRDIFF_TYPE): Likewise.
8525         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
8526         (CPP_PREDEFINES): Don't define.
8527         (TARGET_OBJFMT_CPP_BUILTINS): Define.
8528         (LINK_SPEC): Define to SH_LINK_SPEC.
8529         (LINK_EMUL_PREFIX): Redefine.
8530         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
8531         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
8532         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
8533         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
8534         (TARGET_OS_CPP_BUILTINS): Define.
8535         (TARGET_DEFAULT): Redefine.
8536         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
8537         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
8538         (LINK_SPEC): Don't redefine.
8539         (LINK_DEFAULT_CPU_EMUL): Redefine.
8540         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8541         * sh.c (sh_asm_named_section): Don't declare / define.
8542         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
8543         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
8544         (sh64-*-elf* tm_file): Likewise.
8545         (sh-*-rtemself* tm_file): Likewise.
8546         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
8547         (sh-*-linux* tmake_file): Add sh/t-le.
8548         (sh-*-rtems* tm_file): Add sh/coff.h
8549         (sh-*-* tm_file): Likewise.
8550
8551 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
8552
8553         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
8554         CONSTANT_POOL_ADDRESS_P.
8555
8556         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
8557
8558 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
8559             Jeff Law <law@redhat.com>
8560
8561         * optabs.c (expand_binop): Fix nwords sign warnings.
8562         generate pseudo for add_optab.
8563
8564         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
8565         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
8566
8567 2002-05-28      Marc Espie <espie@openbsd.org>
8568
8569         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
8570         inherited from gas.h.
8571         (ASM_QUAD):  Undef.  OpenBSD does not support it.
8572
8573 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
8574
8575         * doc/install.texi (binaries): Change mingw binaries
8576         link to www.mingw.org.
8577
8578 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8579
8580         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
8581
8582 2002-05-28  Richard Henderson  <rth@redhat.com>
8583
8584         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
8585         bottom alignment for leaf functions.
8586
8587 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
8588
8589         * config/pa/milli32.S, config/pa/lib1funcs.asm,
8590         config/sparc/sol2-g1.asm: Delete unused files.
8591
8592 2002-05-28  Richard Henderson  <rth@redhat.com>
8593
8594         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
8595
8596         * flow.c (calculate_global_regs_live): Rename call_used to
8597         invalidated_by_call.  Initialize from regs_invalidated_by_call
8598         instead of call_used_regs.
8599
8600         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
8601         DECL_EXTERNAL.
8602
8603 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
8604
8605         * tree.h: Don't include real.h.
8606         Forward-declare struct realvaluetype.
8607         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
8608         contain it.
8609         (TREE_REAL_CST_PTR): New accessor.
8610         (TREE_REAL_CST): Update.
8611         * real.h: Include machmode.h.
8612         (realvaluetype): Make it struct realvaluetype, not a typedef.
8613         (build_real): Prototype here.
8614
8615         * tree.c: Include real.h.
8616         (build_real): Allocate the REAL_VALUE_TYPE as a separate
8617         object in GC memory, set TREE_REAL_CST_PTR to point to it.
8618         (build_real_from_int_cst): Use build_real.
8619         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
8620         REAL_CST.
8621
8622         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
8623         fold-const.c, print-tree.c, real.c: Include real.h.
8624         * Makefile.in: Update dependency lists.
8625
8626 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8627
8628         * basic-block.h (last_basic_block): Declare.
8629         (expunge_block_nocompact): Declaration removed.
8630         (compact_blocks): Declare.
8631         * cfg.c (last_basic_block): New variable.
8632         (expunge_block_nocompact): Removed.
8633         (expunge_block): Do not compact basic blocks.
8634         (compact_blocks): New.
8635         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
8636         longer change.
8637         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
8638         last_basic_block.
8639         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
8640         real positions of blocks.
8641         (delete_unreachable_blocks): Simplified -- quadratic behavior now
8642         cannot occur.
8643         (cleanup_cfg): Compact blocks.
8644         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
8645         basic_block_info varray.
8646         (flow_delete_block): Comment update.
8647         (back_edge_of_syntactic_loop_p): Modify position check code.
8648         (verify_flow_info): Update checking.
8649         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
8650         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8651         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
8652         indices no longer change.
8653         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
8654         last_basic_block.
8655         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
8656         * profile.c (branch_prob): Compact blocks.
8657         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
8658         last_basic_block.
8659
8660 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
8661
8662         * config/h8300/h8300.md (two anonymous patterns): New.
8663
8664 2002-05-28  David S. Miller  <davem@redhat.com>
8665
8666         * config/sparc/sparc.md (cpu): Tidy.
8667         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
8668         'trap'.
8669         (in_call_delay): Delete reference to 'return' type.
8670         (eligible_for_return_delay, in_return_delay, define_delay
8671         referencing those): Delete.
8672         (rest of file): Use new type attributes as appropriate.
8673         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
8674         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
8675         * config/sparc/ultra1_2.md (us1_single): New reservation.
8676         (us1_ialuX): Likewise.
8677         * config/sparc/ultra3.md (us3_single): Likewise.
8678         (us3_ialuX): Likewise.
8679         (us3_imul, us3_idiv): Tweak.
8680
8681 2002-05-28  Richard Henderson  <rth@redhat.com>
8682
8683         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
8684         STRING_CST.
8685
8686 2002-05-28  Richard Henderson  <rth@redhat.com>
8687
8688         * config.gcc: Obsolete mn10200.
8689
8690 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8691
8692         * cppexp.c (interpret_number): Optimize for single-digit
8693         and less-than-half-precision cases.
8694         (num_trim, num_positive, num_div_op): Cast constants.
8695
8696 2002-05-27  Bo Thorsen  <bo@suse.de>
8697
8698         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
8699         3.1 branch. The file was made by Jakub Jelinek.
8700         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
8701         support so multilib doesn't break. And don't define this at all
8702         when -Dinhibit_libc is used.
8703         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
8704         * config/i386/t-linux64: Implement full multilib support. Patch
8705         originally done by Andreas Jaeger and Jakub Jelinek.
8706
8707 2002-05-27  Roger Sayle  <roger@eyesopen.com>
8708
8709         * c-common.c: Add support for __attribute__((nothrow)) to specify
8710         that a function cannot throw an exception (using TREE_NOTHROW).
8711         (handle_nothrow_attribute): New function to process this attribute.
8712
8713         * doc/extend.texi: Document the new nothrow function attribute.
8714
8715 2002-05-27  H.J. Lu  (hjl@gnu.org)
8716
8717         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
8718         (num_positive): Likewise.
8719         (num_div_op): Likewise.
8720
8721 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8722
8723         * c-common.c (c_common_init): Always use intmax_t.
8724
8725 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8726
8727         * c-common.c (c_common_init): Use intmax_t for now.
8728
8729 2002-05-24  Andrew Haley  <aph@redhat.com>
8730
8731         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
8732         if T is a boolean type.
8733
8734 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8735
8736         * basic-block.h (last_basic_block): Defined as synonym for
8737         n_basic_blocks.
8738         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
8739         flow_depth_first_order_compute, flow_preorder_transversal_compute,
8740         flow_dfs_compute_reverse_init): Replaced relevant occurences of
8741         n_basic_blocks with last_basic_block.
8742         * cfgbuild.c (make_edges): Likewise.
8743         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
8744         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
8745         * combine.c (combine_instructions): Likewise.
8746         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
8747         iterative_dataflow_bitmap): Likewise.
8748         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8749         calc_idoms, idoms_to_doms): Likewise.
8750         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
8751         Likewise.
8752         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
8753         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
8754         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
8755         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
8756         delete_null_pointer_checks, compute_code_hoist_vbeinout,
8757         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8758         compute_store_table, build_store_vectors): Likewise.
8759         * haifa-sched.c (sched_init): Likewise.
8760         * ifcvt.c (if_convert): Likewise.
8761         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8762         pre_edge_lcm, compute_available, compute_nearerout,
8763         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
8764         Likewise.
8765         * predict.c (estimate_probability, process_note_prediction,
8766         note_prediction_to_br_prob): Likewise.
8767         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
8768         * recog.c (split_all_insns, peephole2_optimize): Likewise.
8769         * regrename.c (copyprop_hardreg_forward): Likewise.
8770         * resource.c (init_resource_info): Likewise.
8771         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
8772         init_regions, schedule_insns): Likewise.
8773         * ssa-ccp.c (ssa_const_prop): Likewise.
8774         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8775         * ssa.c (compute_dominance_frontiers,
8776         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
8777
8778         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
8779         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
8780         sizes consistently.
8781
8782 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
8783
8784         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
8785         new.
8786         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
8787         hoist_insn_after, hoist_insn_to_edge): New.
8788
8789 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
8790
8791         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
8792         (PROP_FINAL): Include.
8793         * flow.c (life_analysis, update_life_info,
8794         init_propagate_block_info, mark_set_1, mark_used_rgs):
8795         Support SCAN_DEAD_STORE.
8796
8797 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8798
8799         * c-common.c (c_common_init): Set CPP arithmetic precision.
8800         * cppexp.c (cpp_num_part): Move typedef ...
8801         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
8802         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
8803         (sanity_checks): Update.
8804
8805 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
8806
8807         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
8808         (mkheaders): New rule.
8809         (install-mkheaders): New rule.
8810         * configure.in (all_outputs): Add mkheaders.
8811         * configure: Regenerate.
8812         * mkheaders.in: New file.
8813
8814 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
8815
8816         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
8817
8818 2002-05-26  Andreas Jaeger  <aj@suse.de>
8819
8820         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
8821
8822 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8823
8824         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
8825         right_shift): Remove.
8826         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
8827         HIGH_PART): New.
8828         (struct op): Use cpp_num.
8829         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
8830         num_part_mul, num_unary_op, num_binary_op, num_negate,
8831         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
8832         num_div_op, num_lshift, num_rshift, append_digit): New.
8833         (interpret_number, parse_defined, eval_token, reduce): Update
8834         for two-integer arithmetic.
8835         (binary_handler): New typedef.
8836         (optab): Update.
8837         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
8838         (_cpp_parse_expr, reduce): Update to handle two-integers.
8839         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
8840
8841 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8842
8843         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
8844         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
8845         branch insn into account, do not assume 1.
8846         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
8847         over single word insn.  Handle upper half of I/O space too.
8848         * config/avr/avr.md (*sbrx_branch): Use it.
8849         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
8850         (*sbix_branch, *sbix_branch_bit7): Likewise.
8851         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
8852         Use RTL peepholes to optimize register operand sign tests.
8853
8854 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8855
8856         * config/avr/avr.c (avr_asm_only_p): New variable.
8857         (avr_override_options): Set it here if AVR1.
8858         (asm_file_start): Test it here, report an error if set.
8859
8860 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
8861
8862         * alias.c: Fix formatting.
8863         * attribs.c: Likewise.
8864         * bb-reorder.c: Likewise.
8865         * bitmap.c: Likewise.
8866         * bitmap.h: Likewise.
8867         * builtins.c: Likewise.
8868
8869 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
8870
8871         * reload.c (find_valid_class): Accept new argument DEST,
8872         choose class accordingly.
8873         (push_reload): Update callers.
8874
8875 2002-05-26  Andreas Jaeger  <aj@suse.de>
8876
8877         * combine.c (combine_instructions): Do not indent #if for
8878         traditional C.
8879
8880 2002-05-25  Richard Henderson  <rth@redhat.com>
8881
8882         * c-pragma.c (apply_pragma_weak): Convert value identifier to
8883         string for decl_attributes.
8884         (handle_pragma_weak): Call assemble_alias if we're modifying
8885         an existing decl.
8886
8887 2002-05-25  Richard Henderson  <rth@redhat.com>
8888
8889         PR target/6788
8890         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
8891         using rtl instead of fprintf.
8892         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
8893         * config/sparc/sparc-protos.h: Update.
8894
8895 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8896
8897         * Makefile.in (C_COMMON_H): Fix.
8898         Update other targets.
8899         * c-common.c: Don't include c-lex.h.
8900         (builtin_define_with_value): Make static and prototype.
8901         (builtin_define_std): Move from c-lex.h.
8902         * c-common.h (init_c_lex): Move from c-lex.h.
8903         * c-decl.c: Don't include c-lex.h.
8904         (make_pointer_declarator): Move from c-parse.in.
8905         * c-lex.c: Don't include c-lex.h.
8906         * c-lex.h: Remove.
8907         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
8908         (make_pointer_declarator): Move to c-decl.c.
8909         * c-pragma.c: Don't include c-lex.h.
8910         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
8911         * c-tree.h (make_pointer_declarator): New.
8912 doc:
8913         * passes.texi, tm.texi: Update.
8914 objc:
8915         * Make-lang.in: Update and correct.
8916         * objc-act.c: Don't include c-lex.h or cpplib.h.
8917 treelang:
8918         * treetree.c: Don't include c-lex.h.
8919 config:
8920         * darwin-c.c: Don't include c-lex.h.
8921         * c4x/c4x-c.c: Don't include c-lex.h.
8922         * c4x/t-c4x: Update.
8923         * i370/i370-c.c: Don't include c-lex.h.
8924         * i370/t-i370: Update.
8925         * i960/i960-c.c: Don't include c-lex.h.
8926         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
8927         * i960/t-960bare: Update.
8928         * i960/t-vxworks: Update.
8929         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
8930         * rs6000/t-darwin: Update.
8931         * rs6000/t-rs6000-c-rule: Update.
8932         * v850/v850-c.c: Don't include c-lex.h.
8933         * v850/v850.c: Don't include c-lex.h or cpplib.h.
8934
8935
8936 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
8937
8938         * tree.def: Fix typos.
8939         * doc/install.texi: Likewise.
8940
8941 2002-05-25  Richard Henderson  <rth@redhat.com>
8942
8943         * configure.in (HAVE_AS_TLS): Add ia64 test.
8944         * configure: Rebuild.
8945         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
8946         (override_options): Set it.
8947         (TARGET_HAVE_TLS): New.
8948         (sdata_symbolic_operand): Look for 's'.
8949         (tls_symbolic_operand): New.
8950         (ia64_expand_load_address): Abort for tls symbols.
8951         (gen_tls_get_addr): New.
8952         (gen_thread_pointer): New.
8953         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
8954         (rtx_needs_barrier): Add new unspecs.
8955         (ia64_encode_section_info): Handle tls symbols.
8956         (ia64_strip_name_encoding): Strip two encoding chars.
8957         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
8958         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
8959         (TARGET_OPTIONS): Add tls-size.
8960         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
8961         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
8962         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
8963         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
8964         (movsf, movdf): Likewise.
8965         (movdi_symbolic): Use match_scratch.  Don't split if we won't
8966         have a scratch availiable.
8967         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
8968         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
8969         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
8970         * config/ia64/ia64-protos.h: Update.
8971         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8972         sdata_symbolic_operand.
8973         (ASM_OUTPUT_LABELREF): Strip two characters.
8974
8975 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
8976
8977         * combine.c (simplify_set): Remove an unnecessary subreg.
8978
8979 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8980
8981         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
8982
8983         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
8984
8985 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
8986
8987         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
8988
8989 2002-05-25  Roger Sayle  <roger@eyesopen.com>
8990
8991         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
8992         (cond (compare x y) 0) into the equivalent (cond x y).
8993
8994 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
8995
8996         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
8997
8998 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
8999
9000         * config.gcc: Remove all stanzas for previously obsoleted
9001         systems.  Where necessary, add explicit error stanzas to
9002         prevent removed systems from being misidentified as something
9003         else.  Begin a fresh obsoletions list, with the systems that
9004         were reprieved last round.
9005         * doc/install.texi: Remove all mention of dead targets.
9006         * fixinc/mkfixinc.sh: Likewise.
9007
9008         * config/arm/arm.h: Bit 31 of target_flags is no longer
9009         reserved.
9010
9011         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
9012         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
9013         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
9014         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
9015         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
9016         config/alpha/osf12.h, config/alpha/osf2or3.h,
9017         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
9018         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
9019         config/clipper/clipper-protos.h, config/clipper/clipper.c,
9020         config/clipper/clipper.h, config/clipper/clipper.md,
9021         config/clipper/clix.h, config/convex/convex-protos.h,
9022         config/convex/convex.c, config/convex/convex.h,
9023         config/convex/convex.md, config/convex/fixinc.convex,
9024         config/convex/proto.h, config/elxsi/elxsi-protos.h,
9025         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
9026         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
9027         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
9028         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
9029         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
9030         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
9031         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
9032         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
9033         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
9034         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
9035         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
9036         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
9037         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
9038         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
9039         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
9040         config/m68k/altos3068.h, config/m68k/apollo68.h,
9041         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
9042         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
9043         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
9044         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
9045         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
9046         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
9047         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
9048         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
9049         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
9050         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
9051         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
9052         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
9053         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
9054         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
9055         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
9056         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
9057         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
9058         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
9059         config/mips/dec-osf1.h, config/mips/elflorion.h,
9060         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
9061         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
9062         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
9063         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
9064         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
9065         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
9066         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
9067         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
9068         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
9069         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
9070         config/ns32k/sequent.h, config/ns32k/tek6000.h,
9071         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
9072         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
9073         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
9074         config/sparc/rtems.h, config/we32k/we32k-protos.h,
9075         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
9076         Delete file.
9077
9078 2002-05-24  Richard Henderson  <rth@redhat.com>
9079
9080         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
9081         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
9082         * config/i386/i386.c (tls_model_chars): Add leading space.
9083         (tls_symbolic_operand): Don't bias by 1.
9084         (legitimize_address): Don't unbias by 1.
9085
9086 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9087
9088         * lcm.c (optimize_mode_switching): Change bb used as indices
9089         to bb->index.
9090
9091 2002-05-24  Richard Henderson  <rth@redhat.com>
9092
9093         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
9094         of update_life_info_in_dirty_blocks.
9095
9096 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
9097
9098         PR other/6782
9099         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
9100
9101 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9102
9103         PR preprocessor/6780
9104         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
9105
9106 2002-05-24  Jim Blandy  <jimb@redhat.com>
9107
9108         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
9109         entry with a type code of zero, marking the end of the compilation
9110         unit's macro info.
9111
9112 2002-05-24  Richard Henderson  <rth@redhat.com>
9113
9114         * varasm.c (asm_output_bss): Always output one byte.
9115         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9116
9117 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9118
9119         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
9120         namespace.
9121
9122 2002-05-24  Andreas Jaeger  <aj@suse.de>
9123
9124         * ggc-page.c (alloc_page): Cast variables of type size_t to
9125         unsigned long, adjust printf format string.
9126         (ggc_alloc): Likewise.
9127         (ggc_print_statistics): Likewise.
9128         (ggc_print_statistics): Correct printf format string for SCALE to
9129         use unsigned long.
9130
9131 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
9132
9133         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
9134
9135 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
9136             Zack Weinberg     <zack@codesourcery.com>
9137
9138         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
9139         quoted strings.
9140         * dwarf2out.c (lookup_filename): Properly quote filename in .file
9141         directive in assembly file.
9142         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
9143         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
9144         * config/pj/pj.h (ASM_FILE_START): Likewise.
9145         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9146         * config/avr/avr.c (asm_file_end): Likewise.
9147         * toplev.c (output_quoted_string): Handle possibly signed plain
9148         char.
9149         * toplev.h (output_clean_symbol_name): Declare
9150         * toplev.c (output_clean_symbol_name): Define.
9151         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
9152         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
9153
9154 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
9155
9156         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
9157
9158 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
9159
9160         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
9161         of size of unsigned.
9162
9163 2002-05-23  Richard Henderson  <rth@redhat.com>
9164
9165         * configure.in (HAVE_AS_TLS): New test.
9166         * config.in, configure: Rebuild.
9167         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
9168         (ix86_tls_dialect_string, ix86_tls_dialect): New.
9169         (override_options): Set it.
9170         (tls_model_chars, tls_symbolic_operand): New.
9171         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
9172         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
9173         (local_exec_symbolic_operand): New.
9174         (get_pic_label_name): Merge into output_set_got.
9175         (ix86_asm_file_end): Emit pic_label_name if defined.
9176         (legitimate_constant_p, constant_address_p): New.
9177         (legitimate_pic_operand_p): New.
9178         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
9179         (legitimate_address_p): Likewise.
9180         (ix86_encode_section_info): Rename from i386_; handle tls decls.
9181         (ix86_strip_name_encoding): New.
9182         (get_thread_pointer): New.
9183         (legitimize_address): Handle tls symbols.
9184         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
9185         Remove UNSPEC_PLT.
9186         (struct machine_function): Add some_ld_name.
9187         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
9188         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
9189         (output_addr_const_extra): New.
9190         (maybe_get_pool_constant): New.
9191         (ix86_split_to_parts): Use it.
9192         (ix86_expand_move): Handle tls symbols.
9193         (ix86_tls_get_addr): New.
9194         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
9195         (TARGET_OPTIONS): Add tls-dialect.
9196         (CONSTANT_ADDRESS_P): Use new out-of-line function.
9197         (LEGITIMATE_CONSTANT_P): Likewise.
9198         (LEGITIMATE_PIC_OPERAND_P): Likewise.
9199         (TARGET_STRIP_NAME_ENCODING): New.
9200         (ASM_OUTPUT_LABELREF): New.
9201         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
9202         (OUTPUT_ADDR_CONST_EXTRA): New.
9203         (PREDICATE_CODES): Update.
9204         (ix86_tls_dialect, ix86_tls_dialect_string): New.
9205         * config/i386/i386.md: Regroup and renumber unspec constants.
9206         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
9207         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
9208         (tls_global_dynamic, tls_local_dynamic_base): New.
9209         (tls_local_dynamic_once): New.
9210         * config/i386/i386-protos.h: Update.
9211
9212 2002-05-23  Richard Henderson  <rth@redhat.com>
9213
9214         * genemit.c (gen_insn): Print file:lineno comment before function.
9215         (main): likewise.
9216         * gensupport.c (struct queue_elem): Add filename member.
9217         (queue_pattern): Initialize it; update all callers.
9218         (process_include): Don't free filename.
9219         (read_md_rtx): Set read_rtx_filename.
9220
9221 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
9222
9223         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
9224
9225 2002-05-23  Richard Henderson  <rth@redhat.com>
9226
9227         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
9228
9229 2002-05-23  Richard Henderson  <rth@redhat.com>
9230
9231         * doc/extend.texi (C++98 Thread-Local Edits): Update with
9232         commentary from Mark.
9233
9234 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9235
9236         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
9237         Use FOR_EACH_BB macros to iterate over basic block chain.
9238         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
9239         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
9240         Likewise.
9241         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
9242         find_unreachable_blocks, create_edge_list, verify_edge_list,
9243         remove_fake_edges, add_noreturn_fake_exit_edges,
9244         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
9245         Likewise.
9246         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
9247         find_sub_basic_blocks): Likewise.
9248         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
9249         Likewise.
9250         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
9251         Likewise.
9252         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
9253         Likewise.
9254         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
9255         commit_edge_insertions, commit_edge_insertions_watch_calls,
9256         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
9257         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
9258         * conflict.c (conflict_graph_compute): Likewise.
9259         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9260         df_modified_p, df_refs_unlink, df_dump): Likewise.
9261         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
9262         * final.c (compute_alignments): Likewise.
9263         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
9264         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
9265         count_or_remove_death_notes): Likewise.
9266         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
9267         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
9268         classic_gcse, compute_transp, cprop, compute_pre_data,
9269         compute_transpout, invalidate_nonnull_info,
9270         delete_null_pointer_checks_1, delete_null_pointer_checks,
9271         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
9272         compute_store_table, build_store_vectors, store_motion): Likewise.
9273         * global.c (global_conflicts, mark_elimination): Likewise.
9274         * graph.c (print_rtl_graph_with_bb): Likewise.
9275         * haifa-sched.c (sched_init): Likewise.
9276         * ifcvt.c (if_convert): Likewise.
9277         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
9278         compute_available, compute_nearerout, compute_rev_insert_delete,
9279         optimize_mode_switching): Likewise.
9280         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
9281         * predict.c (estimate_probability, note_prediction_to_br_prob,
9282         propagate_freq, counts_to_freqs, expensive_function_p,
9283         estimate_bb_frequencies): Likewise.
9284         * profile.c (instrument_edges, get_exec_counts,
9285         compute_branch_probabilities, compute_checksum, branch_prob,
9286         find_spanning_tree): Likewise.
9287         * recog.c (split_all_insns, peephole2_optimize): Likewise.
9288         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
9289         Likewise.
9290         * regclass.c (scan_one_insn, regclass): Likewise.
9291         * regmove.c (mark_flags_life_zones, regmove_optimize,
9292         record_stack_memrefs): Likewise.
9293         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
9294         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
9295         * resource.c (find_basic_block): Likewise.
9296         * sched-ebb.c (schedule_ebbs): Likewise.
9297         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
9298         find_single_block_region, find_rgns, schedule_insns)
9299         * sibcall.c (optimize_sibling_and_tail_recursive_call)
9300         * ssa-ccp.c (optimize_unexecutable_edges,
9301         ssa_ccp_df_delete_unreachable_insns): Likewise.
9302         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9303         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
9304         rename_block, convert_to_ssa, compute_conservative_reg_partition,
9305         compute_coalesced_reg_partition, rename_equivalent_regs,
9306         convert_from_ssa): Likewise.
9307         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
9308         process_for_unwind_directive): Likewise.
9309
9310         * df.c (FOR_ALL_BBS): Removed.
9311         * gcse.c (struct null_pointer_info): Type of current_block field
9312         changed.
9313         (struct reg_avail_info): Type of last_bb field changed.
9314         * config/ia64/ia64.c (block_num): Removed.
9315         (need_copy_state): Type changed.
9316         (last_block): New.
9317
9318 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9319
9320         * cppinit.c (mark_named_operators): Split out from init_builtins.
9321         (cpp_finish_options): Call it from here instead.
9322
9323 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
9324
9325         * builtin-attrs.def: Update copyright years.
9326         (ATTR_NONNULL): New attribute identifier.
9327         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
9328         attribute tree lists.
9329         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
9330         format operand.
9331         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
9332         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
9333         attribute lists.  Chain the appropriate nonnull attribute.
9334         * c-format.c (check_format_arg): Remove null format string
9335         warning.
9336         * testsuite/gcc.dg/format/null-1.c: New test.
9337
9338 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9339
9340         * Makefile.in (ADAC): Define.
9341         (SYSLIBS): Define.
9342         (.SUFFIXES): Move before language makefile fragments.
9343         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
9344
9345 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
9346
9347         * varasm.c (make_decl_rtl): Don't allow weak variables to be
9348         placed in common.
9349
9350 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9351
9352         * cfg.c (dump_flow_info): Print results of
9353         maybe_hot/probably_never_executed predicates.
9354         * toplev.c (open_dump_file): Print function frequency.
9355
9356 2002-05-23  David S. Miller  <davem@redhat.com>
9357
9358         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
9359         regsets.
9360
9361 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
9362
9363         * c-common.c (warn_nonnull): Declare.
9364         (c_common_attribute_table): Add "nonnull" attribute.
9365         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
9366         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
9367         check_function_arguments_recurse): New functions.
9368         * c-common.h (warn_nonnull): Declare extern.
9369         (check_function_arguments, check_function_arguments_recurse): New
9370         prototypes.
9371         * c-decl.c (c_decode_option): Add -Wnonnull option.
9372         * c-format.c (set_Wformat): Set warn_nonnull if enabling
9373         format checking.
9374         (format_check_context): New structure.
9375         (check_format_info_recurse): Remove recursion and rename to...
9376         (check_format_arg): ...this.  Update comment.
9377         (check_format_info): Use check_function_arguments_recurse.
9378         * c-typeck.c (build_function_call): Call check_function_arguments
9379         instead of check_function_format.
9380         * doc/extend.texi: Document "nonnull" attribute.
9381         * doc/invoke.texi: Docuemnt -Wnonnull option.
9382         * testsuite/gcc.dg/nonnull-1.c: New test.
9383         * testsuite/gcc.dg/nonnull-2.c: New test.
9384
9385 2002-05-23  David S. Miller  <davem@redhat.com>
9386
9387         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
9388         * cfgcleanup.c (cleanup_cfg): If it is set do not
9389         attempt to delete trivially dead insns.
9390         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
9391         * toplev.c (rest_of_compilation): Document non-trivial aspect
9392         the RTL before optimize_save_area_alloca is run.
9393
9394 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9395
9396         * c-lex.c (indent_level): Remove.
9397         (cb_file_change, c_lex): Remove indent level handling.
9398         * c-lex.h (indent_level): Remove.
9399         * input.h (struct file_stack): Remove indent_level.
9400         * toplev.c (push_srcloc): Remove indent_level handling.
9401
9402 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
9403
9404         PR target/6753
9405         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
9406         of x in constraints for clarity.
9407         (sse_mov?fcc split): abort if op2 == op3.
9408         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
9409         sse_movsfcc_const0_4): Add earlyclobber.
9410         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
9411         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
9412         Use Y instead of x in constraints.
9413
9414 2002-05-23  Richard Henderson  <rth@redhat.com>
9415
9416         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
9417         (C++98 Thread-Local Edits): New subsection.
9418
9419         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
9420         (ix86_arch): Set type to enum processor_type.
9421
9422         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
9423         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
9424
9425 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
9426
9427         * configure.in: Fix as version test for binutils 2.12.1 releases
9428         (without dates).
9429         * configure: Rebuilt.
9430
9431 2002-05-23  Richard Henderson  <rth@redhat.com>
9432
9433         * config/i386/i386.c (get_pic_label_name): New.
9434         (load_pic_register): Remove.
9435         (output_set_got): New.
9436         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
9437         * config/i386/i386.md (UNSPEC_SET_GOT): New.
9438         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
9439         (prologue_set_got, prologue_get_pc): Remove.
9440         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
9441         (builtin_setjmp_receiver): Use gen_set_got.
9442         * config/i386/i386-protos.h: Update.
9443
9444 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
9445
9446         * gcse.c (hash_expr): Do not use alias set for hashing.
9447
9448 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
9449
9450         * dbxout.c (dbxout_class_name_qualifiers): New function.
9451         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
9452
9453 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9454
9455         * cpperror.c (_cpp_begin_message): No special casing
9456         of CPP_FATAL_LIMIT.
9457         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
9458         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
9459         * cpplib.c (do_include_common): Use DL_ERROR.
9460         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
9461         (DL_ICE): Renumber.
9462         * fix-header.c (read_scan_file): Update.
9463
9464 2002-05-22  Richard Henderson  <rth@redhat.com>
9465
9466         * config/i386/i386.c (ix86_expand_call): New function, extracted
9467         from md call patterns.  Add pic_offset_table_rtx to
9468         CALL_INSN_FUNCTION_USAGE when needed.
9469         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
9470         (call_value_pop, call_value, untyped_call): Likewise.
9471         (call_exp, call_value_exp): Remove.
9472         * config/i386/i386-protos.h: Update.
9473
9474 2002-05-22  Richard Henderson  <rth@redhat.com>
9475
9476         * varasm.c (default_section_type_flags): Check for VAR_DECL
9477         before using DECL_THREAD_LOCAL.
9478
9479 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
9480
9481         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
9482         (STARTFILE_SPEC): Delete PE crt0.o.
9483         * config/rs6000/aix51.h: Same.
9484         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
9485         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
9486         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
9487         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
9488         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
9489
9490 2002-05-22  Richard Henderson  <rth@redhat.com>
9491
9492         * varasm.c (default_section_type_flags): Handle tls data and
9493         default sections.
9494         (default_unique_section): Handle tls sections.
9495
9496 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
9497
9498         * configure.in (CROSS): Define NATIVE_CROSS.
9499         * configure: Regenerate.
9500         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
9501         (startfile_prefix_spec): New var.
9502         (static_specs): Add startfile_prefix_spec.
9503         (do_spec_2): Split out from..
9504         (do_spec): ..here.
9505         (main): Process startfile_prefix_spec.
9506         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
9507         dynamic linker.
9508         (STARTFILE_PREFIX_SPEC): Define.
9509         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
9510         absolute paths.
9511
9512 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
9513
9514         * cpperror.c: Fix formatting.
9515         * cppexp.c: Likewise.
9516         * cppfiles.c: Likewise.
9517         * cpphash.c: Likewise.
9518         * cpphash.h: Likewise.
9519         * cppinit.c: Likewise.
9520         * cpplex.c: Likewise.
9521         * cpplib.c: Likewise.
9522         * cppmacro.c: Likewise.
9523         * cppmain.c: Likewise.
9524         * cppspec.c: Likewise.
9525
9526 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
9527
9528         * combine.c (force_to_mode): Use gen_int_mode.
9529         Don't clear CONST_INT bits outside of mode.
9530
9531 2002-05-22  Richard Henderson  <rth@redhat.com>
9532
9533         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
9534         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
9535
9536 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
9537
9538         PR c/6643
9539         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
9540         if DECL_SIZE_UNIT is INTEGER_CST.
9541
9542 2002-05-22  Richard Henderson  <rth@redhat.com>
9543
9544         * flow.c (life_analysis): Delete broken reg_label check.
9545
9546 2002-05-22  Richard Henderson  <rth@redhat.com>
9547
9548         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
9549         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
9550
9551 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
9552
9553         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
9554         (embed-bb.c): New rule.
9555         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
9556         * config/sh/embed_bb.c: Delete.
9557
9558 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
9559
9560         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
9561
9562 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
9563
9564         * config/h8300/h8300.md (*andorqi3): New.
9565
9566 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9567
9568         PR preprocessor/6517
9569         * Makefile.in: Update.
9570         * c-common.c (c_common_post_options): Add preprocessor
9571         errors to the error count.
9572         * c-lang.c (c_post_options): Kill.
9573         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
9574         * hooks.h: Add header guards.
9575         * langhooks-def.h: Include hooks.h.
9576         (LANG_HOOKS_POST_OPTIONS): Update.
9577         * langhooks.h (struct lang_hooks): Update post_options.
9578         * toplev.c (parse_options_and_default_flags): Update.
9579 objc:
9580         * objc-lang.c (objc_post_options): Kill.
9581         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
9582
9583 2002-05-21  Bruce Korb  <bkorb@gnu.org>
9584
9585         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
9586         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
9587         * fixinc/fixincl.x: regen.
9588
9589 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
9590
9591         * cfgbuild.c: Fix formatting.
9592         * cfg.c: Likewise.
9593         * cfgcleanup.c: Likewise.
9594         * cfglayout.c: Likewise.
9595         * cfgloop.c: Likewise.
9596         * cfgrtl.c: Likewise.
9597
9598 2002-05-21  Richard Henderson  <rth@redhat.com>
9599
9600         * c-common.h (enum rid): Add RID_THREAD.
9601         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
9602         (grokdeclarator): Grok __thread.
9603         * c-parse.in (reswords): Add __thread.
9604         (rid_to_yy): Add RID_THREAD.
9605
9606         * tree.h (DECL_THREAD_LOCAL): New.
9607         (struct tree_decl): Add thread_local_flag.
9608         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
9609         * tree.c (staticp): TLS variables are not static.
9610
9611         * target-def.h (TARGET_HAVE_TLS): New.
9612         * target.h (have_tls): New.
9613         * output.h (SECTION_TLS): New.
9614         * varasm.c (assemble_variable): TLS variables can't be common for now.
9615         (default_section_type_flags): Handle .tdata and .tbss.
9616         (default_elf_asm_named_section): Handle SECTION_TLS.
9617         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
9618
9619         * flags.h (flag_tls_default): Declare.
9620         * toplev.c (flag_tls_default): Define.
9621         (display_help): Display help for it.
9622         (decode_f_option): Set it.
9623
9624         * doc/extend.texi (Thread-Local): New node describing language-level
9625         thread-local storage.
9626         * doc/invoke.texi (-ftls-model): Document.
9627
9628         * fixinc/inclhack.def (thread_keyword): New.
9629         * fixinc/fixincl.x: Rebuild.
9630
9631 2002-05-21  Jeffrey A Law  <law@redhat.com>
9632
9633         * optabs.c (expand_binop): For double-word integer multiplies,
9634         do not compute intermediate results into something that is
9635         not a register (such as a SUBREG or MEM).
9636
9637         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
9638         (ix86_sched_reorder): Make sure to initialize scheduling
9639         data even when there's only one insn in the ready queue.
9640
9641 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
9642
9643         * genautomata.c (reserv_sets_hash_value): Fix a typo.
9644
9645 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
9646
9647         * genautomata.c (reserv_sets_hash_value): Define hash_value as
9648         set_el_t.  Transform the hash value into unsigned.
9649         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
9650         (transform_3): Add code to process `(A,B)+(D,E)'.
9651
9652 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
9653
9654         * reload1.c (do_output_reload): Run delete_output_reload
9655         only if optimizing.
9656
9657 2002-05-21  Roger Sayle  <roger@eyesopen.com>
9658
9659         PR middle-end/6600
9660         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
9661         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
9662         (can_store_by_pieces): ... and here to limit the largest mode used.
9663         Add a comment to document this function.
9664
9665 2002-05-21  Richard Henderson  <rth@redhat.com>
9666
9667         * flow.c (life_analysis): Fix test for deleted label.
9668
9669 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9670
9671         * doc/tm.texi: Fix typo.
9672
9673 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
9674
9675         * c-common.c (c_common_init): Set options->unsigned_char from
9676         flag_signed_char.
9677         (cb_register_builtins): Define __STRICT_ANSI__ and
9678         __CHAR_UNSIGNED__ here...
9679         * cppinit.c (init_builtins): Not here.
9680         (cpp_create_reader): unsigned_char option defaults to 0, not
9681         !DEFAULT_SIGNED_CHAR.
9682         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
9683         and -funsigned-char.
9684
9685         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
9686         * cpphash.c (_cpp_init_hashtable): Don't set it.
9687         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
9688         directly.  Clarify comment.
9689
9690 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9691
9692         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
9693         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
9694         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
9695         BASIC_BLOCK (n_basic_blocks - 1).
9696         * cfganal.c (can_fallthru, flow_call_edges_add,
9697         flow_preorder_transversal_compute): Too.
9698         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
9699         find_sub_basic_blocks): Too.
9700         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
9701         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
9702         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
9703         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
9704         * combine.c (this_basic_block): Type changed to basic_block.
9705         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
9706         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9707         get_last_value, distribute_notes, distribute_links): Too.
9708         * final.c (compute_alignments): Too.
9709         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
9710         * function.c (thread_prologue_and_epilogue_insns): Too.
9711         * gcse.c (compute_code_hoist_vbeinout): Too.
9712         * global.c (build_insn_chain): Too.
9713         * ifcvt.c (find_if_block, find_cond_trap): Too.
9714         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
9715         * regmove.c (regmove_optimize): Too.
9716         * resource.c (find_basic_block): Too.
9717         * sched-ebb.c (schedule_ebbs): Too.
9718         * ssa-dce.c (find_control_dependence, find_pdom): Too.
9719
9720 2002-05-21  Andreas Jaeger  <aj@suse.de>
9721
9722         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
9723
9724 2002-05-21  Richard Henderson  <rth@redhat.com>
9725
9726         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
9727         unspec names, not numbers.
9728
9729 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9730
9731         * doc/sourcebuild.texi: Mention snapshot-README and
9732         snapshot-index.html as needing updating for new front ends.
9733
9734 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9735
9736         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
9737         disabling checking, and avoid multiple evaluation of RTX.
9738
9739 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
9740
9741         * bitmap.c (bitmap_find_bit): Return early if we have the correct
9742         element cached.
9743
9744 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
9745
9746         * profile.c (gen_edge_profiler):  Set alias set before the memory is
9747         used.
9748
9749 2002-05-20  David S. Miller  <davem@redhat.com>
9750
9751         * cselib.c (max_value_regs): New.
9752         (cselib_lookup, cselib_invalidate_regno): Initialize it when
9753         adding new entries to the REG_VALUES table and we are dealing with
9754         a hard register.
9755         (clear_table): Initialize it.
9756         (cselib_invalidate_regno): Use it to determine which hard
9757         registers to scan when mode is not VOIDmode.
9758
9759 2002-05-20  Duraid Madina   <duraid@fl.net.au>
9760
9761         * tradcpp.c (fixup_newlines): Use old-style function header.
9762
9763 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
9764
9765         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
9766
9767 2002-05-20  H.J. Lu  (hjl@gnu.org)
9768
9769         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
9770
9771         * config/mips/mips.h (DFMODE_NAN): Defined.
9772         (SFMODE_NAN): Likewise.
9773
9774 2002-05-20  Dale Johannesen  <dalej@apple.com>
9775
9776         * combine.c (cant_combine_insn_p):  Back out my
9777         previous patch.
9778
9779 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9780
9781         * params.c: Fix formatting.
9782         * params.h: Likewise.
9783         * predict.c: Likewise.
9784         * prefix.c: Likewise.
9785         * print-rtl.c: Likewise.
9786         * print-tree.c: Likewise.
9787         * profile.c: Likewise.
9788
9789 2002-05-20  H.J. Lu  (hjl@gnu.org)
9790
9791         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
9792
9793 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
9794
9795         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
9796         switches straight on to the assembler, do not abbreviate them.
9797         * config/arm/elf.h (ASM_SPEC): As above.
9798         * config/arm/semi.h (ASM_SPEC): As above.
9799         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
9800         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
9801         -mcpu=xscale on to the assembler by default.
9802         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
9803
9804 2002-05-20  Richard Henderson  <rth@redhat.com>
9805
9806         * cse.c (canon_hash): Reorder do_not_record test.  Always
9807         allow pic_offset_table_rtx.
9808
9809 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
9810
9811         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
9812         (expand_binop): Ditto (3 times).
9813
9814 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
9815
9816         * Makefile.in (distclean): Remove QMTest stuff.
9817         (QMTEST_PATH): New variable.
9818         (QMTESTFLAGS): Likewise.
9819         (QMTESTRUNFLAGS): Likewise.
9820         (QMTEST): Likewise.
9821         (QMTEST_GPP_TESTS): Likewise.
9822         (QMTEST_DIR): Likewise.
9823         (QMTEST_DIR/context): New target.
9824         (qmtest-g++): Likeise.
9825         (qmtest-gui): Likewise.
9826         (QMTEST_DIR/gpp-expected.qmr): Likewise.
9827
9828 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
9829
9830         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
9831         an altivec register if TARGET_ALTIVEC.
9832
9833         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
9834         to ALTIVEC_VECTOR_MODE.
9835         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
9836         (rs6000_va_arg): Vectors may go in registers if they are not
9837         altivec vectors.
9838
9839 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
9840
9841         * protoize.c: Fix formatting.
9842
9843 2002-05-19  Richard Henderson  <rth@redhat.com>
9844
9845         * gensupport.c (init_include_reader): Merge into ...
9846         (process_include): ... here.  Simplify composite path creation.
9847         Plug memory leaks.  Fix file/line number tracking.  Do not
9848         process_define_cond_exec.  Return void.
9849         (process_rtx): Don't check process_include return value.
9850
9851 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9852
9853         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
9854         fields.
9855         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9856         traversing basic block chain.
9857         (create_basic_block_structure, create_basic_block): Declaration changed.
9858         (link_block, unlink_block): Declare.
9859         * cfg.c (entry_exit_blocks): Initialize new fields.
9860         (link_block, unlink_block): New.
9861         (expunge_block_nocompact): Unlink basic block.
9862         (dump_flow_info): Print prev_bb/next_bb fields.
9863         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
9864         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
9865         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
9866         * cfgrtl.c (create_basic_block_structure, create_basic_block,
9867         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
9868         (verify_flow_info): Check that list agrees with numbering.
9869
9870 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9871
9872         * c-common.c (preprocessing_asm): New macro.
9873         * c-lex.h (builtin_define, builtin_assert): Use pfile.
9874 doc:
9875         * tm.texi: Update.
9876 config/alpha:
9877         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
9878         (CPP_SPEC): Simplify.
9879         (TARGET_CPU_CPP_BUILTINS): Update.
9880         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
9881         (CPP_SPEC): Simplify.
9882         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
9883         (TARGET_OS_CPP_BUILTINS): Update.
9884         * osf.h (CPP_XFLOAT_SPEC): Kill.
9885         (TARGET_OS_CPP_BUILTINS): Update.
9886         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
9887         * osf5.h (CPP_XFLOAT_SPEC): Kill.
9888         * vms.h (CPP_SUBTARGET_SPEC): Kill.
9889         (TARGET_OS_CPP_BUILTINS): Update.
9890
9891 2002-05-19  Richard Henderson  <rth@redhat.com>
9892
9893         * varasm.c (default_binds_local_p): Fix typo.
9894
9895 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9896
9897         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
9898         CONST_INT operand to the correct mode after adding 1 to it.
9899
9900 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
9901
9902         * config.gcc (powerpc-wrs-windiss*): New target.
9903
9904 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9905
9906         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
9907         (ashrdi3): Use it.
9908
9909 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
9910
9911         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
9912         alphasort.
9913         * config.in: Regenerated.
9914         * configure: Regenerated.
9915
9916 2002-05-19  Richard Henderson  <rth@redhat.com>
9917
9918         * target-def.h (TARGET_BINDS_LOCAL_P): New.
9919         * target.h (struct gcc_target): Move boolean fields to the end.
9920         Add binds_local_p.
9921         * varasm.c (default_binds_local_p): New.
9922         * output.h: Declare it.
9923
9924         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
9925         * config/cris/cris.c (cris_encode_section_info): Likewise.
9926         * config/i386/i386.c (i386_encode_section_info): Likewise.
9927         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
9928         * config/sh/sh.c (sh_encode_section_info): Likewise.
9929
9930         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
9931         (TARGET_BINDS_LOCAL_P): New.
9932
9933 2002-05-19  Richard Henderson  <rth@redhat.com>
9934
9935         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
9936         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
9937         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
9938
9939         * toplev.c (display_help): Kill -a -ax help.
9940
9941         * config/1750a/1750a.h, config/alpha/alpha.h,
9942         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
9943         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
9944         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
9945         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
9946
9947         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
9948         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
9949
9950         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
9951         (ix86_output_function_block_profiler): Kill.
9952         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
9953         (m68hc11_function_block_profiler): Kill.
9954         * config/m68hc11/m68hc11-protos.h: Update.
9955         * config/m88k/m88k.c (output_block_profiler): Kill.
9956         (output_function_block_profiler): Kill.
9957         * config/m88k/m88k-protos.h: Update.
9958
9959 2002-05-19  Richard Henderson  <rth@redhat.com>
9960
9961         * system.h (STRIP_NAME_ENCODING): Poison it.
9962         * output.h (STRIP_NAME_ENCODING): Remove.
9963         (default_strip_name_encoding): Declare.
9964         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
9965         * target.h (strip_name_encoding): New.
9966         * varasm.c (default_strip_name_encoding): New.
9967
9968         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
9969         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
9970         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
9971         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
9972         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
9973         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
9974         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
9975         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
9976         config/v850/v850.h: Use the hook, not the macro.
9977
9978         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9979         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
9980         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
9981         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
9982         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
9983         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
9984         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9985         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
9986         config/v850/v850.c, config/v850/v850.h:
9987         Move STRIP_NAME_ENCODING to out-of-line function and add
9988         TARGET_STRIP_NAME_ENCODING.
9989
9990         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
9991         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
9992         with TARGET_STRIP_NAME_ENCODING referencing existing function;
9993         make function static.
9994
9995         * xcoffout.c: Include target.h
9996         * Makefile.in (xcoffout.o): Update.
9997
9998         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
9999         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
10000         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
10001         reloc argument unused.
10002         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
10003
10004         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
10005         STRIP_NAME_ENCODING docs.
10006
10007 2002-05-19  Andreas Jaeger  <aj@suse.de>
10008
10009         * gengenrtl.c: Add prototype for excluded_rtx.
10010
10011         * real.h: Add prototype for exact_real_truncate.
10012
10013 2002-05-18  Richard Henderson  <rth@redhat.com>
10014
10015         * system.h (ENCODE_SECTION_INFO): Poison it.
10016         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
10017         * target.h (encode_section_info): New.
10018         * varasm.c (make_decl_rtl, output_constant_def): Use it.
10019         * hooks.c (hook_tree_int_void): New.
10020         * hooks.h: Declare it.
10021
10022         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10023         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
10024         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
10025         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
10026         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
10027         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
10028         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
10029         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
10030         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
10031         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10032         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
10033         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
10034         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
10035         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
10036         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
10037         referencing existing function.  Make function static.
10038
10039         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
10040         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
10041         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
10042         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
10043         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
10044         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
10045         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
10046         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
10047         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
10048         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
10049         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
10050         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
10051         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
10052         Move ENCODE_SECTION_INFO to out-of-line function and add
10053         TARGET_ENCODE_SECTION_INFO.
10054
10055         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
10056         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10057
10058         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
10059         from SUBTARGET_*
10060         (switch_to_section): Replace in_rdata case with in_readonly_data.
10061
10062         * config/h8300/h8300.c (h8300_encode_label): Make static.
10063         * config/h8300/h8300-protos.h: Update.
10064
10065         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
10066         from rs6000_encode_section_info; make static.
10067         (rs6000_xcoff_encode_section_info): New.
10068
10069         * config/v850/v850.c (v850_encode_data_area): Make static.
10070         * config/v850/v850-protos.h: Update.
10071
10072         * config/vax/vax.c: Include flags.h.
10073         (vms_select_section): Fix typo.
10074
10075         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
10076         ENCODE_SECTION_INFO docs.
10077
10078 2002-05-18  Richard Henderson  <rth@redhat.com>
10079
10080         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
10081         REGISTER_TARGET_PRAGMAS.
10082         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
10083
10084         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
10085
10086 2002-05-18  Richard Henderson  <rth@redhat.com>
10087
10088         * system.h (SELECT_RTX_SECTION): Poison.
10089         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
10090         * target.h (select_rtx_section): New.
10091         * varasm.c (output_constant_pool): Use it.
10092         (default_select_rtx_section, default_elf_select_rtx_section): New.
10093         * output.h: Declare them.
10094
10095         * config/darwin.h (SELECT_RTX_SECTION): Move ...
10096         * config/darwin.c (machopic_select_rtx_section): ... here.
10097         * config/darwin-protos.h: Update.
10098
10099         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
10100         * config/nextstep.c (machopic_select_rtx_section): ... here.
10101         (nextstep_select_section): Rename variable to avoid macro clash.
10102         * config/nextstep-protos.h: Update.
10103
10104         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
10105         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
10106         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
10107         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
10108         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
10109         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
10110         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
10111         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
10112         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
10113         (SELECT_RTX_SECTION): Remove.
10114
10115         * config/darwin.h, config/elfos.h, config/nextstep.h,
10116         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
10117         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
10118         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
10119         config/sparc/lynx.h, config/xtensa/xtensa.c
10120         (TARGET_ASM_SELECT_RTX_SECTION): New.
10121
10122         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
10123         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
10124         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
10125         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
10126         (ia64_aix_select_rtx_section): New.
10127         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
10128         redefining.
10129         * config/mips/mips.c (mips_select_rtx_section): Make static.
10130         Support ELF SHF_MERGE features.
10131         * config/mips/mips-protos.h: Update.
10132         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
10133         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
10134         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
10135         make static, fall back to default_elf_select_rtx_section.
10136         * config/rs6000/rs6000-protos.h: Update.
10137         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
10138         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
10139         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
10140         * config/romp/romp.c (romp_select_rtx_section): New.
10141         * config/s390/s390.c (s390_select_rtx_section): New.
10142         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
10143         declarations before target macro definition.
10144         (xtensa_emit_call): Use static buffer.
10145         (xtensa_select_rtx_section): New.
10146         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
10147         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
10148         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
10149
10150         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
10151         SELECT_RTX_SECTION docs.
10152
10153 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
10154
10155         * i386.md (movsi/movdi): Fix template.
10156         (sse2 patterns): Set attributes consistently.
10157
10158         * i386.md (pushqi2, ashrqi_*): Fix constraint.
10159
10160 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
10161
10162         * optabs.c (complex_part_zero_p): New.
10163         * (expand_cmplxdiv_straight): Use it.
10164         * (expand_cmplxdiv_wide): Ditto.
10165         * (expand_binop): Ditto.
10166
10167 2002-05-18  Richard Henderson  <rth@redhat.com>
10168
10169         * final.c (HAVE_READONLY_DATA_SECTION): New.
10170         (shorten_branches): Use it instead of ifdefs.
10171         * varasm.c (enum in_section): Add in_readonly_data.
10172         (text_section, data_section): Tidy.
10173         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
10174
10175         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
10176         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
10177         (READONLY_DATA_SECTION): Don't undef.
10178
10179         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
10180         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
10181         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
10182
10183         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
10184         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
10185         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
10186         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
10187
10188         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
10189         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
10190         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
10191         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
10192         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
10193         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
10194         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
10195         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
10196         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
10197
10198         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
10199         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
10200         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
10201         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
10202         config/pa/pa64-hpux.h, config/sparc/litecoff.h
10203         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10204
10205         * config/elfos.h, config/netware.h, config/svr3.h,
10206         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
10207         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
10208         config/h8300/h8300.h, config/i386/i386-interix.h,
10209         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
10210         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
10211
10212         * config/elfos.h, config/netware.h, config/svr3.h,
10213         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
10214         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
10215         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
10216         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
10217
10218         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
10219         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
10220         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
10221         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
10222         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
10223         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
10224         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
10225         config/rs6000/sysv4.h, config/v850/v850.h
10226         (EXTRA_SECTIONS): Remove in_const/in_rdata.
10227         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
10228
10229         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
10230         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
10231         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
10232         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
10233         * config/alpha/alpha.c (alpha_start_function): Likewise.
10234         (alpha_write_linkage): Likewise.
10235         * config/m32r/m32r.c (m32r_select_section): Likewise.
10236         * config/m88k/m88k.c (m88k_select_section): Likewise.
10237         * config/mips/mips.c (mips_select_rtx_section): Likewise.
10238         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
10239         (rs6000_elf_select_section): Likewise.
10240         * config/v850/v850.c (v850_select_section): Likewise.
10241
10242         * config/1750a/1750a.h, config/i860/sysv3.h
10243         (READONLY_DATA_SECTION_ASM_OP): New.
10244         READONLY_DATA_SECTION_ASM_OP.
10245         * config/i386/interix.c, config/i386/winnt.c
10246         (i386_pe_unique_section): Always use .rdata prefix.
10247         * config/pa/som.h (readonly_data): Always switch to read-only section.
10248         (READONLY_DATA_SECTION): Predicate on flag_pic.
10249         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
10250         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
10251         (READONLY_DATA_SECTION): Update.
10252
10253 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
10254
10255         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
10256         is used without -Wformat.
10257         * c-common.h (warn_format_zero_length): Declare extern.
10258         * c-decl.c (warn_options): Add "format-zero-length".
10259         * c-format.c (warn_format_zero_length): Declare.
10260         (set_Wformat): Set warn_format_zero_length for -Wformat.
10261         (check_format_info): Only warn about zero-length formats if
10262         warn_format_zero_length is true.  Include the format type
10263         name in the warning message.
10264         * doc/invoke.texi: Document -Wformat-zero-length.
10265         * testsuite/gcc.dg/format/zero-length-1.c: New test.
10266
10267 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
10268
10269         * timevar.c: Fix formatting.
10270         * tlink.c: Likewise.
10271         * toplev.c: Likewise.
10272         * tree-dump.c: Likewise.
10273         * tree-inline.c: Likewise.
10274
10275 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10276
10277         * cppinit.c (cpp_post_options): If preprocessed, turn off
10278         traditional.  If traditional, turn off column numbers.
10279         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
10280         * cpptrad.c (handle_newline): Update line_base.
10281         (skip_comment): Handle -Wcomment.
10282
10283 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
10284
10285         * cppinit.c (struct builtin): Remove unused fields.
10286         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
10287         (operator_array): New - was second half of builtin_array.
10288         (init_builtins): Simplify loop over builtin_array/operator_array.
10289
10290 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10291
10292         * defaults.h (UNIQUE_SECTION): Remove.
10293         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
10294
10295 2002-05-17  Richard Henderson  <rth@redhat.com>
10296
10297         * expr.c (init_expr_once): Don't use start/end_sequence.
10298         Use rtx_alloc instead of emit_insn.
10299         * toplev.c (lang_dependent_init): Run init_expr_once here ...
10300         (lang_independent_init): ... not here.
10301
10302 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
10303
10304         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
10305
10306 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10307
10308         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
10309         for fixed registers, possibly used for global register variables.
10310         (initial_elimination_offset, avr_output_function_prologue,
10311         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
10312
10313 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10314
10315         * Makefile.in: Update for cpptrad.c.
10316         * cpphash.h (struct cpp_buffer): New members for buffer
10317         overlays.
10318         (struct cpp_reader): New members for traditional output.
10319         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
10320         * cppinit.c (cpp_create_reader): Set trad_line.
10321         (cpp_destroy): Free trad_out_base if used.
10322         (cpp_read_main_file): Overlay an empty buffer if traditional.
10323         (cpp_finish_options): Don't do builtins.
10324         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
10325         (cpp_handle_option): Handle it.
10326         * cpplex.c (continue_after_nul): New.
10327         (_cpp_lex_direct): Use handle_nul.
10328         * cpplib.h (struct cpp_options): New traditional option.
10329         * cpptrad.c: New file.
10330
10331 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10332
10333         * c-common.c (c_common_init_options): Use C89 for Objective-C,
10334         and set the options flag.
10335         * cppinit.c (lang_flags): Remove objc.
10336         (lang_defaults): Remove OBJC and OBJCXX.
10337         (set_lang): Update.
10338         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
10339         (cpp_handle_option): Remove -+ and -lang-objc++.
10340         For ObjC, just set a flag.
10341         (print_help): Update.
10342         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
10343
10344 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10345
10346         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
10347         bootstrap with -mips3.
10348
10349 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
10350
10351         * final.c: Fix formatting.
10352         * fix-header.c: Likewise.
10353         * flow.c: Likewise.
10354         * fold-const.c: Likewise.
10355         * function.c: Likewise.
10356
10357 2002-05-17  David S. Miller  <davem@redhat.com>
10358
10359         PR c/6689, PR optimization/6615
10360         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
10361         and make it a pointer to rtx.  Update comments.
10362         (update_equiv_regs): When scanning for equivalences, record
10363         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
10364         it while making the equiv replacements.
10365
10366 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10367
10368         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
10369
10370 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10371
10372         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
10373         when encoding visibility into SYMBOL_REF_FLAG.
10374
10375 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
10376
10377         * expr.c (force_operand): Fix reversed move.
10378
10379 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
10380
10381         * doc/install.texi (Testing): Mention two common DejaGnu warnings
10382         that can be ignored.
10383
10384 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10385
10386         * doc/install.texi (Final install): Recommend to install into a
10387         "clean" target directory.
10388
10389 2002-05-17  Richard Henderson  <rth@redhat.com>
10390
10391         * config/ia64/ia64.md: Use braced strings instead of quoted strings
10392         for code blocks.  Tidy whitespace.
10393
10394 2002-05-17  Richard Henderson  <rth@redhat.com>
10395
10396         * hooks.c (hook_tree_bool_false): New.
10397         * hooks.h: Declare it.
10398         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
10399         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
10400         * target.h (select_section, unique_section): New.
10401         (in_small_data_p): New.
10402         * varasm.c (resolve_unique_section): Use hooks instead of macros.
10403         (variable_section, output_constant_def_contents): Likewise.
10404         (default_select_section, default_unique_section): New.
10405         (categorize_decl_for_section, default_elf_select_section): New.
10406         * output.h: Declare them.
10407
10408         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
10409         (TARGET_ASM_SELECT_SECTION): New.
10410         (SELECT_SECTION): Move ...
10411         * config/darwin.c (machopic_select_section): ... here.
10412         * config/darwin-protos.h: Update.
10413
10414         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
10415         (SELECT_SECTION): Move ...
10416         * config/nextstep.c (nextstep_select_section): ... here.
10417         * config/nextstep-protos.h: Update.
10418
10419         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
10420         (TARGET_ASM_SELECT_SECTION): New.
10421         * config/svr3.h (SELECT_SECTION): Remove.
10422
10423         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
10424         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
10425         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
10426         (alpha_encode_section_info): Use it.
10427         * config/alpha/alpha-protos.h: Update.
10428         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
10429         (SELECT_SECTION, UNIQUE_SECTION): Remove.
10430         (TARGET_ASM_SELECT_SECTION): New.
10431         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
10432
10433         * config/arm/pe.h (UNIQUE_SECTION): Remove.
10434         (TARGET_ASM_UNIQUE_SECTION): New.
10435
10436         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
10437         (avr_unique_section): Rename from unique_section; make static.
10438         * config/avr/avr-protos.h: Update.
10439         * config/avr/avr.h (UNIQUE_SECTION): Remove.
10440
10441         * config/c4x/c4x.h (SELECT_SECTION): Remove.
10442
10443         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
10444         (TARGET_ASM_UNIQUE_SECTION): New.
10445         * config/i386/i386-interix.h: Likewise.
10446         * config/i386/win32.h: Likewise.
10447         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
10448         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
10449         * config/i386/sco5.h (SELECT_SECTION): Remove.
10450         (TARGET_ASM_SELECT_SECTION): New.
10451         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
10452
10453         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
10454         instead of SELECT_SECTION.
10455         * config/m68k/dpx2.h: Likewise.
10456         * config/rs6000/lynx.h: Likewise.
10457
10458         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10459         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
10460         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
10461         (ia64_in_small_data_p): New.
10462         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
10463         (ia64_aix_select_section, ia64_aix_unique_section): New.
10464         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
10465         (SELECT_SECTION, UNIQUE_SECTION): Remove.
10466
10467         * config/m32r/m32r.h (SELECT_SECTION): Remove.
10468         (TARGET_ASM_SELECT_SECTION): New.
10469         * config/m32r/m32r.c (m32r_select_section): Take align argument.
10470         * config/m32r/m32r-protos.h: Update.
10471
10472         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
10473         (SELECT_SECTION): Move ...
10474         * config/m88k/m88k.c (m88k_select_section): ... here.
10475
10476         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
10477         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
10478         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
10479         (mcore_unique_section): Make static.
10480         * config/mcore/mcore-protos.h: Update.
10481
10482         * config/mips/elf.h (UNIQUE_SECTION): Remove.
10483         (TARGET_ASM_UNIQUE_SECTION): New.
10484         * config/mips/elf64.h: Likewise.
10485         * config/mips/iris6gld.h: Likewise.
10486         * config/mips/linux.h: Likewise.
10487         * config/mips/mips-protos.h: Update.
10488         * config/mips/mips.c (mips_select_section): Add align argument.
10489         * config/mips/mips.h (SELECT_SECTION): Remove.
10490         (TARGET_ASM_SELECT_SECTION): New.
10491
10492         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10493         * config/mmix/mmix.c (mmix_select_section): Remove.
10494         (mmix_unique_section): Remove.
10495         * config/mmix/mmix-protos.h: Update.
10496
10497         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
10498         (SELECT_SECTION): Move ...
10499         * config/pa/pa.c (pa_select_section): ... here.
10500         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
10501
10502         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
10503         from rs6000_select_section and make static.
10504         (rs6000_elf_unique_section): Similarly.
10505         (rs6000_xcoff_select_section): From xcoff.h.
10506         (rs6000_xcoff_unique_section): Likewise.
10507         * config/rs6000/rs6000-protos.h: Update.
10508         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10509         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
10510         * config/rs6000/xcoff.h: Likewise.
10511
10512         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
10513         (SELECT_SECTION): Move ...
10514         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
10515
10516         * config/v850/v850.h (SELECT_SECTION): Move ...
10517         * config/v850/v850.c (v850_select_section): ... here.
10518         (TARGET_ASM_SELECT_SECTION): New.
10519
10520         * config/vax/vms.h (SELECT_SECTION): Move ...
10521         * config/vax/vax.c (vms_select_section): ... here.
10522         (TARGET_ASM_SELECT_SECTION): New.
10523
10524         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
10525         for the target hooks.
10526
10527 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
10528
10529         * config/arm/arm.c (emit_multi_reg_push): Do not set
10530         RTX_FRAME_RELATED_P on the SEQUENCE.
10531
10532 2002-05-16  Richard Henderson  <rth@redhat.com>
10533
10534         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
10535         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
10536
10537 2002-05-16  Richard Henderson  <rth@redhat.com>
10538
10539         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
10540
10541         * config/ia64/ia64.c (saveable_obstack): Do not declare.
10542
10543 2002-05-16  Richard Henderson  <rth@redhat.com>
10544
10545         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
10546         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
10547         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
10548         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
10549         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
10550         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
10551         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
10552         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
10553         Revert "Basic block renumbering removal", and two followup patches.
10554
10555 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
10556
10557         * lcm.c (optimize_mode_switching): Revert previous change.
10558
10559 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10560
10561         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
10562         with only extant block numbers.
10563
10564 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
10565
10566         * lcm.c (optimize_mode_switching): Fix typo.
10567
10568 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10569
10570         * flow.c (calculate_global_regs_live): Queue blocks in program order.
10571
10572 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10573
10574         * doc/install.texi (Configuration): Document PWDCMD.
10575
10576 2002-05-16  Dale Johannesen  <dalej@apple.com>
10577
10578         * combine.c (cant_combine_insn_p):  Reenable combinations
10579         involving hard regs unless CLASS_LIKELY_SPILLED_P.
10580
10581 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10582
10583         * c-common.c (cb_register_builtins): Handle more built-ins
10584         here rather than in gcc.c specs.
10585         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
10586         (cpp_options): Pass -O flags even when only preprocessing.
10587         * toplev.c (set_fast_math_flags): New prototype.
10588         (fast_math_flags_set_p): New.
10589         (set_no_fast_math_flags): Remove.
10590         (decode_f_option): Update.
10591         * toplev.h (set_fast_math_flags): Update.
10592         (fast_math_flags_set_p): New.
10593         (set_no_fast_math_flags): Remove.
10594 config:
10595         * c4x/c4x.c (c4x_override_options): Update.
10596
10597 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
10598
10599         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
10600         Default-define here.
10601         (builtin_define_with_value): Can now wrap the expansion in
10602         quotation marks if such is wanted.
10603         (cb_register_builtins): Update calls to builtin_define_with_value.
10604         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
10605         here.
10606         (c_common_init): Set options->stdc_0_in_system_headers.
10607         * c-lex.h: Update prototype of builtin_define_with_value.
10608         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
10609         and REGISTER_PREFIX.
10610
10611         * cppinit.c (VERS, ULP, C, X): Kill.
10612         (builtin_array): Remove entries for __VERSION__,
10613         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
10614         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
10615         a constant.
10616         (init_builtins): Kill off a bunch of now-dead code.
10617         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
10618         -fno-leading-underscore.
10619         (cpp_handle_option): Remove code to set user_label_prefix.
10620         (cpp_post_options): Likewise.
10621
10622         * cpplib.h (struct cpp_options): Remove user_label_prefix.
10623         (stdc_0_in_system_headers): New.
10624         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
10625         stdc_0_in_system_headers) too to decide the value of __STDC__.
10626
10627         * tradcpp.c (user_label_prefix): Kill.
10628         (main): Remove code handling -f(no-)leading-underscore.
10629         (initialize_builtins): Don't define __REGISTER_PREFIX__
10630         or __USER_LABEL_PREFIX__.
10631         (install_value): Wrap compound statement in dummy loop so the
10632         macro works properly in an if statement.
10633
10634
10635 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
10636
10637         * loop.h (struct loop_info): Add member has_prefetch.
10638         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
10639         (prescan_loop): Initialize has_prefetch.
10640         (struct prefetch_info): Change prefetch_in_loop and
10641         prefetch_before_loop from bit fields to ints.
10642         (emit_prefetch_instructions): Several small fixes.
10643         (check_dbra_loop): Don't reverse loop that uses prefetch.
10644
10645 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10646
10647         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
10648         * configure.in: Likewise.
10649         * fixinc/check.tpl: Likewise.
10650         * fixinc/fixinc.dgux: Likewise.
10651         * fixinc/fixinc.svr4: Likewise.
10652         * fixinc/fixinc.winnt: Likewise.
10653         * fixinc/fixincl.sh: Likewise.
10654         * fixproto: Likewise.
10655         * configure: Regenerate.
10656
10657 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10658
10659         Basic block renumbering removal:
10660         * basic_block.h (struct basic_block_def): Renamed index to sindex,
10661         added prev_bb and next_bb fields.
10662         (n_basic_blocks): Renamed to num_basic_blocks.
10663         (last_basic_block): New, index of last basic block.
10664         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
10665         traversing basic block chain.
10666         (BLOCK_NUM): index -> sindex.
10667         (create_basic_block_structure, create_basic_block): Declaration changed.
10668         (debug_num2bb): Declare.
10669         (expunge_block_nocompact): Declaration removed.
10670         (link_block, unlink_block, compact_blocks): Declare.
10671         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
10672         * cfg.c (entry_exit_blocks): Initialize new fields.
10673         (clear_edges, alloc_block, expunge_block, cached_make_edge,
10674         redirect_edge_pred, dump_flow_info, dump_edge_info,
10675         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
10676         free_aux_for_edges): Modified.
10677         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
10678         (expunge_block_nocompact): Removed.
10679         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
10680         find_unreachable_blocks, create_edge_list, print_edge_list,
10681         verify_edge_list, flow_edge_list_print, remove_fake_successors,
10682         remove_fake_edges, flow_reverse_top_sort_order_compute,
10683         flow_depth_first_order_compute, flow_preorder_transversal_compute,
10684         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
10685         flow_dfs_compute_reverse_execute): Modified.
10686         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
10687         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
10688         Modified.
10689         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
10690         merge_blocks_move_predecessor_nojumps,
10691         merge_blocks_move_successor_nojumps, merge_blocks,
10692         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
10693         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
10694         * cfglayout.c (skip_insns_after_block, label_for_bb,
10695         record_effective_endpoints, scope_to_insns_finalize,
10696         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
10697         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
10698         cfg_layout_duplicate_bb): Modified.
10699         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
10700         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
10701         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
10702         flow_loops_find, flow_loop_outside_edge_p): Modified.
10703         * cfgrtl.c (create_basic_block_structure, create_basic_block,
10704         flow_delete_block, compute_bb_for_insn, split_block,
10705         try_redirect_by_replacing_jump, redirect_edge_and_branch,
10706         force_nonfallthru_and_redirect, tidy_fallthru_edge,
10707         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
10708         commit_edge_insertions, commit_edge_insertions_watch_calls,
10709         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
10710         purge_all_dead_edges): Modified.
10711         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
10712         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
10713         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
10714         Modified.
10715         * conflict.c (conflict_graph_compute): Modified.
10716         * df.c (FOR_ALL_BBS): Removed.
10717         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
10718         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
10719         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
10720         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
10721         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10722         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
10723         * final.c (compute_alignments, final_scan_insn): Modified.
10724         * flow.c (verify_local_live_at_start, update_life_info,
10725         update_life_info_in_dirty_blocks, free_basic_block_vars,
10726         delete_noop_moves, calculate_global_regs_live,
10727         initialize_uninitialized_subregs, allocate_bb_life_data,
10728         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
10729         mark_used_reg, count_or_remove_death_notes): Modified.
10730         * function.c (thread_prologue_and_epilogue_insns): Modified.
10731         * gcse.c (struct null_pointer_info): Change typo of current_block
10732         to basic_block.
10733         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
10734         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
10735         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
10736         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
10737         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
10738         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
10739         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
10740         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
10741         pre_delete, one_pre_gcse_pass, compute_transpout,
10742         invalidate_nonnull_info, delete_null_pointer_checks_1,
10743         free_code_hoist_mem, compute_code_hoist_vbeinout,
10744         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10745         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
10746         compute_store_table, build_store_vectors, insert_insn_start_bb,
10747         insert_store, replace_store_insn, free_store_memory, store_motion):
10748         Modified.
10749         * global.c (global_alloc, global_conflicts, mark_elimination,
10750         build_insn_chain): Modified.
10751         * graph.c (print_rtl_graph_with_bb): Modified.
10752         * haifa-sched.c (sched_init): Modified.
10753         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10754         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
10755         if_convert): Modified.
10756         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
10757         compute_insert_delete, pre_edge_lcm, compute_available,
10758         compute_farthest, compute_nearerout, compute_rev_insert_delete,
10759         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
10760         Modified.
10761         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
10762         * loop.c (loop_dump_aux): Modified.
10763         * predict.c (combine_predictions_for_insn, estimate_probability,
10764         last_basic_block_p, process_note_prediction, process_note_predictions,
10765         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
10766         expensive_function_p, estimate_bb_frequencies,
10767         compute_function_frequency): Modified.
10768         * print-rtl.c (print_rtx): Modified.
10769         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
10770         get_exec_counts, compute_branch_probabilities, compute_checksum,
10771         branch_prob, find_spanning_tree): Modified.
10772         * recog.c (split_all_insns, peephole2_optimize): Modified.
10773         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
10774         convert_regs_1, convert_regs_2, convert_regs): Modified.
10775         * regclass.c (scan_one_insn, regclass): Modified.
10776         * regmove.c (mark_flags_life_zones, regmove_optimize,
10777         combine_stack_adjustments): Modified.
10778         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
10779         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
10780         * reorg.c (dbr_schedule): Modified.
10781         * resource.c (find_basic_block, init_resource_info): Modified.
10782         * sbitmap.c (sbitmap_intersection_of_succs,
10783         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
10784         sbitmap_union_of_preds): Modified.
10785         * sched-deps.c (init_dependency_caches): Modified.
10786         * sched-ebb.c (schedule_ebbs): Modified.
10787         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
10788         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
10789         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
10790         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
10791         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
10792         ssa_const_prop): Modified.
10793         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
10794         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
10795         * ssa.c (remove_phi_alternative, find_evaluations,
10796         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
10797         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
10798         make_regs_equivalent_over_bad_edges,
10799         make_equivalent_phi_alternatives_equival,
10800         compute_conservative_reg_partition,
10801         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
10802         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
10803         Modified.
10804
10805 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
10806
10807         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
10808
10809 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
10810
10811         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
10812         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10813         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
10814         calling CONSTANT_POOL_ADDRESS_P.
10815         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
10816         to decide whether to define __arm__ or __thumb.
10817         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
10818         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10819
10820 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10821
10822         * config/arc/arc.h (CPP_PREDEFINES): Remove.
10823         (CPP_SPEC): Update.
10824         (TARGET_CPU_CPP_BUILTINS): New.
10825
10826 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10827
10828         * cpphash.h (cpp_macro): Move here, and make expansion a union.
10829         * cppmacro.c (cpp_macro): Remove.
10830         (enter_macro_context, replace_args, warn_of_redefinition,
10831         _cpp_create_definition, cpp_macro_definition): Update.
10832
10833 2002-05-16  Jason Merrill  <jason@redhat.com>
10834
10835         * config/mips/mips.c (mips_output_external): Don't do sdata
10836         optimization for a variable with DECL_COMDAT set.
10837
10838 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
10839
10840         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
10841         Cleanups for accepting modifiers on pointers.
10842         Fix predicate typos.
10843         Allow long pointers as well as int pointers.
10844
10845 2002-05-15  Richard Henderson  <rth@redhat.com>
10846
10847         * varasm.c (merge_weak): Remove special case for extern and common.
10848
10849 2002-05-15  Matt Hiller  <hiller@redhat.com>
10850
10851         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
10852         XFAILing.
10853         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
10854         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
10855         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
10856         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
10857         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
10858         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
10859
10860 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
10861
10862         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
10863
10864 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
10865
10866         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
10867         ("altivec_mfvscr"): Read from VSCR.
10868
10869         Add vscr sets for the following insns: altivec_vctuxs,
10870         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
10871         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
10872         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
10873         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
10874         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
10875         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
10876         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
10877         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
10878         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
10879         altivec_vsum2sws, altivec_vsumsws.
10880
10881         * config/rs6000/rs6000.h: Add VSCR fixed register.
10882         (CALL_REALLY_USED_REGISTERS): Add vscr.
10883         (CALL_USED_REGISTERS): Same.
10884         (FIXED_REGISTERS): Same.
10885         (REG_ALLOC_ORDER): Same.
10886         (reg_class): Add VSCR_REGS.
10887         (REG_CLASS_NAMES): Same.
10888         (REG_CLASS_CONTENTS): Same.
10889         (VSCR_REGNO): New.
10890         (REGISTER_NAMES): Add vscr.
10891         (DEBUG_REGISTER_NAMES): Same.
10892         (ADDITIONAL_REGISTER_NAMES): Same.
10893         (FIRST_PSEUDO_REGISTER): Increment.
10894         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
10895
10896 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
10897
10898         * fold-const.c (fold): Fix a typo.
10899
10900 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
10901
10902         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
10903         comparison against the highest or lowest integer value before
10904         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
10905         transformation and that of an unsigned comparison against 0
10906         right after.
10907
10908 2002-05-15  Richard Henderson  <rth@redhat.com>
10909
10910         * varasm.c (merge_weak): Error for any weakening after definition.
10911         Adjust weakening after use warning to catch more cases.
10912         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
10913         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
10914
10915 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
10916
10917         * invoke.texi (-malign-double): Re-add lost warning.
10918
10919         * i386-protos.h (x86_output_mi_thunk): Declare.
10920         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
10921         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
10922
10923         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
10924         when flag_asynchronous_unwind_tables is set.
10925
10926         * flags.h (flag_reorder_functions): Declare.
10927         * function.c (prepare_function_start): Initialize frequnecy.
10928         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
10929         * Makefile.in (predict.o): Add dependency on target.h and params.h
10930         * defaults.h (HOT_TEXT_SECTION_NAME,
10931         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
10932         * predict.c (choose_function_section): New function.
10933         (estimate_bb_frequencies): Use it.
10934         * toplev.c (flag_reorder_functions): New global variable.
10935         (lang_independent_options): New.
10936         (parse_options_and_default_flags): Set.
10937         * varasm.c (assemble_start_function): Bypass functdion alignment
10938         for never executed functions.
10939         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
10940         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
10941         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
10942         Document.
10943
10944         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10945
10946         * predict.c: Inlude profile.h
10947         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
10948         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
10949         Use the information about maximal counter in the program.
10950
10951         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
10952
10953         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
10954         probably_never_executed_bb_p): New functions.
10955         * cfgcleanup.c (outgoing_edges_match): Use them.
10956         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
10957         (maybe_hot_bb_p, probably_cold_bb_p,
10958         probably_never_executed_bb_p): New functions.
10959
10960         * function.h (function): Add new field function_frequency.
10961         * predict.c (compute_function_frequency): New function.
10962         (estimate_probability): Call it.
10963
10964 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10965
10966         PR optimization/5172, optimization/5200
10967         * gcse.c (gcse_main): Disable store_motion.
10968
10969 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
10970
10971         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
10972         (c_common_nodes_and_builtins): Use it.
10973         (builtin_define_with_value): New function.
10974         (cb_register_builtins): Define __SIZE_TYPE__,
10975         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
10976         using builtin_define_with_value.  Use consistent notation when
10977         defining __GXX_WEAK__.
10978         (WCHAR_TYPE_SIZE): Don't redefine.
10979         (combine_strings): Don't use WCHAR_TYPE_SIZE.
10980
10981         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
10982         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
10983         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
10984         * tradcpp.c (initialize_builtins): Likewise.
10985         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
10986
10987         * c-lex.h (builtin_define_with_value): Prototype.
10988         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
10989         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
10990         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
10991
10992         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
10993         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
10994         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
10995         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
10996         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
10997         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
10998         config/sparc/sol2-bi.h, config/sparc/sparc.h:
10999         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
11000         to __SIZE_TYPE__ etc from all spec strings. When this makes
11001         extra specs empty, delete them.
11002
11003 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11004
11005         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
11006         for PA8000 or generating dwarf2 call frame information.
11007         (output_call): Remove DO_FRAME_NOTES check from return pointer
11008         optimization.
11009         (following_call): Return 0 when scheduling for PA8000 or generating
11010         dwarf2 call frame information.  Revise comment.
11011
11012 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11013
11014 config/alpha:
11015         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
11016         and __IEEE_FP_INEXACT as appropriate.
11017         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
11018         (CPP_SPEC): Remove ieee defines.
11019         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
11020
11021 2002-05-14  Richard Henderson  <rth@redhat.com>
11022
11023         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
11024         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
11025
11026 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11027
11028         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
11029         (CPP_SPEC): Update.
11030         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
11031         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
11032         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
11033         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
11034         (EXTRA_SPECS): Update.
11035         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
11036         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
11037         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
11038         define TARGET_OS_CPP_BUILTINS if necessary.
11039
11040 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11041
11042         * gcc.c (cpp_options): Must pass -m* and -f* options
11043         to the front end even when only preprocessing.
11044         (cc1_options): Remove redundant -lang-c.
11045         * tradcpp.c (main): Ignore -m options.
11046 objc:
11047         * lang-specs.h: Similarly.
11048
11049 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
11050
11051         * genautomata.c (transform_3): Add code for transformation
11052         `(A,B,...)+C -> A+C,B,...'.
11053
11054 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
11055
11056         * final.c (end_final): Do not output profile_arcs constructor, when
11057         no functions are instrumented.
11058
11059 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
11060
11061         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
11062
11063 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11064
11065         * doc/install.texi: Remove special markup originally required for
11066         HTML generation with texi2html.
11067
11068 2002-05-14  Andreas Schwab  <schwab@suse.de>
11069
11070         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
11071         SELECT_SECTION.
11072         (UNIQUE_SECTION): Define to get small data correctly.
11073
11074         * varasm.c (resolve_unique_section): Add third parameter
11075         flag_function_or_data_sections and use it instead of
11076         flag_function_sections.
11077         (assemble_start_function): Pass flag_function_sections.
11078         (asm_emit_uninitialised): Pass flag_data_sections.
11079         (assemble_variable): Likewise.
11080
11081 2002-05-14  Richard Henderson  <rth@redhat.com>
11082
11083         * config/i386/i386.md: Use define_constants for unspec numbers.
11084         * config/i386/i386.c: Likewise.
11085
11086 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
11087
11088         * doc/contrib.texi: Update my entry.
11089
11090 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
11091
11092         * fixinc/inclhack.def (winidss_valist): Limit applicability.
11093         * fixinc/fixincl.x: Regenerated.
11094         * fixinc/tests/base/math.h: Update.
11095         * fixinc/tests/base/testing.h: Likewise.
11096
11097 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
11098
11099         * genattr.c (gen_attr): Don't emit a comma after the last
11100         enumerator.
11101
11102 2002-05-13  Richard Henderson  <rth@redhat.com>
11103
11104         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
11105         by non-local gotos.
11106         * recog.c (peephole2_optimize): Likewise.
11107
11108 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
11109
11110         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
11111         input to O_BINARY.
11112
11113 2002-05-13  Jeffrey A Law  (law@redhat.com)
11114
11115         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
11116         Update prototype and callers.
11117         (propagate_one_insn): Stack pointer adjustments kill MEMs on
11118         the mem_set_list which reference the stack pointer, as do
11119         calls to constant functions as they may clobber outgoing
11120         argument space.
11121
11122         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
11123
11124         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11125         (ia32_multipass_dfa_lookahead): New function.
11126
11127 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
11128
11129         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
11130         (translate_options): Remove 'V'.
11131         (process_command): Similarly.
11132 doc:
11133         * invoke.texi: Remove documentation of 'V'.
11134
11135 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
11136
11137         * config/s390/linux.h: Revert 2002-04-22 changes.
11138
11139 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
11140
11141         * config/fr30/fr30.md: Only allow splits of immediate loads
11142         if the destination is a register.
11143
11144 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
11145
11146         * Makefile.in (c-common.o, cppinit.o): Update.
11147         * c-common.c: Include except.h.
11148         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
11149         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
11150         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
11151         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
11152         CPP_PREDEFINES): Handle here.
11153 config:
11154         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
11155         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
11156         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
11157         TARGET_OS_CPP_BUILTINS.
11158         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
11159         (CPP_SPEC, EXTRA_SPECS): Update.
11160         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
11161         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
11162         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
11163         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
11164         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
11165 doc:
11166         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
11167         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
11168
11169 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
11170
11171         * emit-rtl.c (global_rtl): Update comment.
11172         (const_double_htab, const_double_htab_hash,
11173         const_double_htab_hash, lookup_const_double): New.
11174         (const_int_htab_hash, const_int_htab_eq): Remove const
11175         qualifiers, which cause tons of warnings with RTL checking on.
11176         (gen_rtx_CONST_DOUBLE): Deleted.
11177         (const_double_from_real_value): New function - bears some
11178         resemblance to the former immed_real_const_1.
11179         (immed_double_const): Moved here from varasm.c and
11180         simplified.
11181         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
11182         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
11183         (gen_rtx): Use immed_double_const.
11184         (init_emit_once): Initialize the const_double_htab.  Use
11185         REAL_VALUE_FROM_INT where possible.  Can now use
11186         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
11187         * varasm.c (struct varasm_status): Remove x_const_double_chain.
11188         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
11189         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
11190         (init_varasm_status, mark_varasm_status): Don't touch
11191         x_const_double_chain.
11192
11193         * output.h: Delete prototype for clear_const_double_mem.
11194         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
11195         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
11196         const_double_from_real_value, not immed_real_const_1, and use
11197         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
11198         CONST_DOUBLE_ATOF.
11199         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
11200         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
11201         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
11202         (gen_rtx_REG): Second arg is unsigned.
11203
11204         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
11205         (excluded_rtx): New, return true for CONST_DOUBLE.
11206         (genmacro): Write nothing for excluded codes.
11207         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
11208         * expr.c (expand_expr): Likewise.
11209         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
11210         CONST_DOUBLE_CHAIN.
11211         * toplev.c (rest_of_compilation): Don't call
11212         clear_const_double_mem.
11213
11214         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
11215         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
11216         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
11217         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
11218         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
11219         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
11220         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
11221         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
11222
11223 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11224
11225         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
11226
11227 2002-05-12  Tom Tromey  <tromey@redhat.com>
11228
11229         * tree.h (copy_node): Don't mention TREE_PERMANENT.
11230
11231 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
11232
11233         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
11234         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
11235         * gensupport.h: Prototype new routines.
11236         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
11237         use of printf.
11238         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
11239         (next_comma_elt): Use scan_comma_elt.
11240
11241         * config/i386/i386.md: Use new attribute notation to break up
11242         long lines in define_attr forms.
11243
11244 2002-05-12  Richard Henderson  <rth@redhat.com>
11245
11246         * expr.c (compress_float_constant): New.
11247         (emit_move_insn): Use it.
11248         (float_extend_from_mem): New.
11249         (init_expr_once): Initialize it.
11250         * real.c (exact_real_truncate): New.
11251
11252         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
11253         dropped into memory; penalize for size.
11254         (RTX_COSTS): FLOAT_EXTEND is free.
11255         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
11256         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
11257
11258 2002-05-12  Richard Henderson  <rth@redhat.com>
11259
11260         * profile.h (profile_info): Add missing extern to declaration.
11261         * profile.c (profile_info): Define it.
11262
11263 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11264
11265         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
11266         used for DImode and TImode.
11267
11268 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11269
11270         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
11271         fake a newline.
11272
11273 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
11274
11275         * config/rs6000/rs6000.c (rs6000_default_long_calls,
11276         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
11277         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
11278         (rs6000_override_options): Handle -m(no-)longcall.
11279         (init_cumulative_args, output_mi_thunk): Check for both
11280         longcall and shortcall attributes on the function.
11281         (rs6000_attribute_table): Add "shortcall".
11282         (rs6000_handle_longcall_attribute): Update comment.
11283         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
11284         altivec_expand_ternop_builtin): Add default clauses to switches
11285         to silence warnings.
11286
11287         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
11288         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
11289         (TARGET_OPTIONS): Add longcall and no-longcall.
11290
11291         * config/rs6000/rs6000.md (call_nonlocal_sysv,
11292         call_value_nonlocal_sysv): Split by alternatives.  One pair
11293         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
11294         the call cookie.  The other pair accepts only LR/CTR and has
11295         no restriction.
11296
11297         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
11298         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
11299         tmake_file.
11300         * config/rs6000/rs6000-c.c: New file.
11301         * config/rs6000/t-rs6000-c-rule: New file.
11302         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
11303         Prototype rs6000_pragma_longcall.
11304
11305         * doc/extend.texi: Document shortcall attribute.
11306         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
11307
11308 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11309
11310         * reorg.c (dbr_schedule): Remove unnecessary test.
11311
11312 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
11313
11314         * i386.md (testsi to testqi spliters): New.
11315
11316         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
11317
11318         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
11319
11320         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
11321
11322         * basic-block.h: New flag EDGE_CAN_FALLTHRU
11323         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
11324         that can be made fallthru.
11325
11326         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
11327
11328         * cfglayout.c (cleanup_unconditional_jumps): New static function.
11329         (cfg_layout_initialize): Use it.
11330
11331 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11332
11333         * config/avr/avr.c (avr_mcu_types): Update supported devices.
11334         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11335         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11336
11337 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
11338
11339         * dbxout.c: Fix formatting.
11340         * dependence.c: Likewise.
11341         * df.c: Likewise.
11342         * diagnostic.c: Likewise.
11343         * doloop.c: Likewise.
11344         * dominance.c: Likewise.
11345         * doschk.c: Likewise.
11346         * dwarf2asm.c: Likewise.
11347         * dwarf2out.c: Likewise.
11348         * dwarfout.c: Likewise.
11349
11350 2002-05-10  Richard Henderson  <rth@redhat.com>
11351
11352         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
11353         Convert integers constants as needed.  Replace "nwords" field with
11354         "sizeof_bb".
11355         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
11356         * function.h: Fix typo in comment.
11357         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
11358
11359 2002-05-10  Roger Sayle  <roger@eyesopen.com>
11360
11361         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
11362         into the equivalent (signed char)c > 0.
11363
11364 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
11365
11366         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
11367         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
11368         (struct prefetch_info): Fix spelling of member bytes_accessed.
11369         (emit_prefetch_instructions): Make dump messages more regular;
11370         restructure code to add more dump messages; use new macros for
11371         heuristics. (There are no code generation changes in any of this).
11372
11373 2002-05-10  David S. Miller  <davem@redhat.com>
11374
11375         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
11376         (struct rtx_def): Update unchanging flag comment.
11377         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
11378         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
11379         to be handled to INSN too.
11380         (dbr_schedule): Likewise.
11381         * resource.c (next_insn_no_annul): Likewise.
11382
11383         * cse.c (rtx_cost): Remove multiplication by power of 2 special
11384         casing.
11385
11386 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11387
11388         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
11389         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
11390         (possibly) work around broken /bin/sh.
11391
11392 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11393
11394         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
11395         . as N64/N32 libgcc_s.so subdirs.
11396
11397 2002-05-10  David S. Miller  <davem@redhat.com>
11398
11399         * config/sparc/sparc.md: Use define_constants for unspec numbers.
11400
11401         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
11402         more accurately.
11403         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
11404         comment.
11405         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
11406         * doc/rtl.texi: Document these macros more accurately.
11407         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
11408         JUMP_INSNs and CALL_INSNs.
11409         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
11410         or INSN_FROM_TARGET_P if the code is appropriate.
11411
11412 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11413
11414         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
11415         before using SYMBOL_REF_FLAG (addr).
11416
11417         * config/avr/avr-protos.h (avr_io_address_p): Declare.
11418         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
11419         Make non-static.  Update all callers.
11420         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
11421         New insns to clear/set/test a single bit in I/O address space.
11422
11423 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11424
11425         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
11426
11427 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
11428
11429         * Makefile.in: Update.
11430         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
11431         builtin_define_std): New.
11432         (c_common_init): Register CPP builtins callback.
11433         * c-common.h (flag_iso, flag_undef): New.
11434         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
11435         * c-lex.c: Don't include target.h.
11436         (cb_register_builtins): Move to c-common.c.
11437         (init_c_lex): Don't register hook here.
11438         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
11439         (cpp_define, cpp_assert): Remove.
11440         * gcc.c (cc1_options): Pass -undef to front end.
11441         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
11442         (TARGET_INITIALIZER): Update.
11443         * target.h (struct cpp_reader): Don't predeclare.
11444         (struct gcc_target): Remove cpp builtin hook.
11445         * tree.c (default_register_cpp_builtins): Remove.
11446 doc:
11447         * tm.texi: Update.
11448
11449 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
11450
11451         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
11452
11453 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11454
11455         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
11456         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
11457
11458 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
11459
11460         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
11461         * config/sparc/libgcc-sparc-glibc.ver: New file.
11462         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
11463         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
11464
11465 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
11466
11467         PR target/6429
11468         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
11469         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
11470         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
11471         base multilibs.
11472         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
11473         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
11474         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
11475         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
11476
11477 2002-05-09  Richard Henderson  <rth@redhat.com>
11478
11479         * config/ia64/ia64.md: Use define_constants for unspec numbers.
11480         * config/ia64/ia64.c: Likewise.
11481
11482 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
11483
11484         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
11485         (save_restore_insns): Likewise.
11486         (mips_expand_prologue, mips_expand_epilogue): Update callers.
11487         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
11488
11489 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
11490
11491         * athlon.md, k6.md, pentium.md, ppro.md): New files.
11492         * i386.md: Move scheduling information into new files.
11493
11494         * i386.md (type attribute): Add "rotate" for rotate insns.
11495         (rotate insns): Set type to "rotate".
11496         (various attributes and function units): Treat rotate like shift.
11497         (pent_pair attribute): Only rotates by one bit position are
11498         pairable.
11499         (sbb insns): Explicitly set pent_pair attribute on a couple
11500         that were missing it.
11501
11502 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
11503
11504         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
11505         make sure that buffer starts on odd word address.
11506         (sh_va_arg): Skip odd fp registers when reading a double precision
11507         value.
11508
11509 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
11510
11511         * tree.h (preserve_data, object_permanent_p, type_precision):
11512         Remove.
11513
11514 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
11515
11516         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
11517         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
11518 doc:
11519         * cpp.texi: Update for removal of obsolete features.
11520
11521 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
11522                           Jeffrey A Law  (law@redhat.com)
11523
11524         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
11525         the DFA interface for Pentium processors.
11526         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
11527         (attr_pent_pair, ix86_pent_find_pair): Remove.
11528         (ix86_sched_reorder_pentium): Remove.
11529         (ix86_sched_reorder): Remove reordering for Pentium.
11530         * i386.md (Pentium scheduling): Rewrite using DFA description.
11531
11532 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
11533
11534         * cfganal.c (can_fallthru): Fix fast path.
11535         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
11536         with edges to the next block.
11537
11538 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
11539                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
11540
11541         * final.c (end_final): Use C trees to output data structures for profiling.
11542
11543         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
11544         (profile.o): New dependency profile.h
11545         (final.o): New dependency profile.h
11546         * profile.h: New file. New global structure profile_info.
11547         * final.h (count_edges_instrumented_now): Declare.
11548         (current_function_cfg_checksum): Declare.
11549         (function_list): New structure.
11550         (functions_head, functions_tail): New static variables.
11551         (end_final): Emits more data, removed some -ax stuff.
11552         (final): Stores function names and chcksums.
11553         * gcov-io.h (__write_gcov_string): New function.
11554         (__read_gcov_string): New function.
11555         * gcov.c (read_profile): New function.
11556         (create_program_flow_graph): Uses read_profile instead of reading
11557         da_file.
11558         (read_files): Removed da_file checking, it's done by read_profile now.
11559         * libgcc2.c (bb_function_info): New structure.
11560         (bb): New field in structure, removed some -ax stuff.
11561         (__bb_exit_func): Changed structure of da_file.
11562         * profile.c (count_edges_instrumented_now): New global variable.
11563         (current_function_cfg_checksum): New global variable.
11564         (max_counter_in_program): New global variable.
11565         (get_exec_counts): New function.
11566         (compute_checksum): New function.
11567         (instrument_edges): Sets count_edges_instrumented_now.
11568         (compute_branch_probabilities): Uses get_exec_counts instead of
11569         reading da_file.
11570         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
11571         (init_branch_prob): Removed da_file checking, done in get_exec_counts
11572         now.
11573         (end_branch_prob): Removed da_file checking, done in get_exec_counts
11574         now.
11575         * gcov.texi: Updated information about gcov file format.
11576
11577 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
11578
11579         * sbitmap.c: Fix formatting.
11580         * scan.c: Likewise.
11581         * scan-decls.c: Likewise.
11582         * sched-deps.c: Likewise.
11583         * sched-ebb.c: Likewise.
11584         * sched-rgn.c: Likewise.
11585         * sched-vis.c: Likewise.
11586         * sdbout.c: Likewise.
11587         * sibcall.c: Likewise.
11588         * simplify-rtx.c: Likewise.
11589         * ssa.c: Likewise.
11590         * ssa-ccp.c: Likewise.
11591         * ssa-dce.c: Likewise.
11592         * stmt.c: Likewise.
11593         * stor-layout.c: Likewise.
11594         * stringpool.c: Likewise.
11595
11596 2002-05-09  David S. Miller  <davem@redhat.com>
11597
11598         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
11599
11600 2002-05-07  David S. Miller  <davem@redhat.com>
11601
11602         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
11603         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
11604         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
11605         library implementation clobbers the output before the inputs
11606         are fully consumed, use stack temporary for the output.
11607
11608 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
11609
11610         * config/netbsd.h (CPP_SPEC): Remove.
11611         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
11612         * config/i386/netbsd.h (CPP_SPEC): Define.
11613         * config/ns32k/netbsd.h (CPP_SPEC): Define.
11614         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
11615         * config/sparc/netbsd.h (CPP_SPEC): Define.
11616         * config/vax/netbsd.h (CPP_SPEC): Define.
11617
11618 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
11619
11620         * read-rtl.c: Fix formatting.
11621         * real.c: Likewise.
11622         * recog.c: Likewise.
11623         * regclass.c: Likewise.
11624         * regmove.c: Likewise.
11625         * reg-stack.c: Likewise.
11626         * reload1.c: Likewise.
11627         * reload.c: Likewise.
11628         * resource.c: Likewise.
11629         * rtlanal.c: Likewise.
11630         * rtl.c: Likewise.
11631         * rtl-error.c: Likewise.
11632
11633 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11634
11635         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
11636         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
11637
11638 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
11639
11640         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
11641         use __SSE2__ macro instead.
11642         * config/i386/xmmintrin.h: Likewise.
11643
11644 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
11645
11646         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
11647         and use it in all invocations of these macros.  Clean up comments.
11648         * rtl.c (rtl_check_failed_flag): Add an argument for the name
11649         of the flag access macro whose check failed.
11650         * doc/rtl.texi (Flags): Document additional flag uses.
11651
11652 2002-05-08  Robert Spier <rspier@pobox.com>
11653             Neil Booth  <neil@daikokuya.demon.co.uk>
11654
11655         PR preprocessor/6521
11656         * cppfiles.c (handle_missing_header): Don't do anything
11657         different for <> includes.
11658 doc:
11659         * cppopts.texi: Update documentation for -MG.
11660
11661 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
11662
11663         * cpplex.c (cpp_interpret_charconst): Truncate as well as
11664         sign-extend.
11665 doc:
11666         * cpp.texi: Clarify multichar charconst valuation.
11667
11668 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
11669
11670         * doc/invoke.texi: Document -mwindiss option.
11671
11672 2002-05-08  Jason Merrill  <jason@redhat.com>
11673
11674         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
11675
11676         * dwarf2out.c (gen_type_die): Abort on broken recursion.
11677
11678         PR c++/6381
11679         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
11680         REAL_CST.
11681
11682 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
11683
11684         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
11685         little-endian multilibs to override arm/thumb multilibs.
11686         Do not build hardware floating point multilibs, nor apcs-26
11687         multilibs for the Thumb.
11688
11689 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
11690
11691         PR c/6569.
11692         * varasm.c (mark_weak): New function.
11693         (merge_weak): Use it.  Do not call declare_weak.
11694         (declare_weak): Use merge_weak.
11695
11696 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
11697
11698         * cse.c (dead_libcall_p): Update counts.
11699         (delete_trivially_dead_insns): Update call of dead_libcall_p.
11700
11701 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
11702
11703         * cfglayout.c (function_tail_eff_head): Rename to ...
11704         (function_footer): ... this one.
11705         (unlink_insn_chain): New functions.
11706         (label_for_bb): Only call block_label and emit debug message.
11707         (record_effective_endpoints): Actually unlink the headers and footers.
11708         (fixup_reorder_cahin): Re-insert the unlinked sequences.
11709         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
11710         * cfglayout.h (struct reorder_block_def): New fields footer/header;
11711         remove eff_head/eff_end.
11712         * rtl.h (set_first_insn): Declare.
11713         * emit-rtl.c (set_first_insn): New function.
11714
11715         * cfglayout.c (fixup_reorder_chain): Dump duplicated
11716         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11717         cfg_layout_duplicate_bb): New global function.
11718         (duplicate_insn_chain): New static function.
11719         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11720         cfg_layout_duplicate_bb): Declare.
11721         (struct reorder_block_def): Add "original" field.
11722         * emit-rtl.c (emit_copy_of_insn_after): New function.
11723         * rtl.h (emit_copy_of_insn_after): Declare.
11724
11725         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
11726         (fixup_reorder_chain): properly handle edges to exit block.
11727
11728 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11729                                Jan Hubicka  <jh@suse.cz>
11730
11731         * basic-block.h (note_prediction_to_br_prob): declare.
11732         * c-semantics.c: Inlucde predit.h
11733         (expand_stmt): predict GOTO_STMT as not taken.
11734         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
11735         (cleanup_cfg): Do not free tail_recursion_list.
11736         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
11737         (flow_delete_block): Kill predictions past end of basic block.
11738         * output.h (delete_unreachable_blocks): Declare.
11739         * predict.c (predicted_by_p, process_note_predictions,
11740         process_note_prediction, last_block_p): New function.
11741         (estimate_probability): Bypass loop on PRED_CONTINUE;
11742         do not handle noreturn heuristics; kill PRED_RETURN; add
11743         PRED_EARLY_RETURN.
11744         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
11745         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
11746         * predict.h (IS_TAKEN): New constant.
11747         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
11748         * rtl.c (NOTE_INSN_PREDICTION): New.
11749         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
11750         New macro.
11751         (insn_note): add NOTE_INSN_PREDICTION.
11752         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
11753         CFG; free tail_recursion_label_list.
11754         * stmt.c: Include predict.h;
11755         (return_prediction): New.
11756         (expand_value_return): Use it.
11757         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
11758
11759 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
11760
11761         * config/mips/mips.md: Name the unspecs with define_constant.
11762         (*HILO_delay): Rename to 'hilo_delay' (no star).
11763         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
11764         (reload_outdi, reload_outsi): Likewise.
11765
11766 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
11767
11768         * toplev.c: Fix formatting.
11769
11770 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
11771
11772         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
11773         * configure.in (ac_rtlflag_checking): New.
11774         * doc/install.texi (--enable-checking): Document RTL flag checking.
11775
11776 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11777
11778         * c-common.c (c_common_init): Set options->unsigned_wchar.
11779         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
11780         group target dependencies.
11781         (init_builtins, cpp_handle_option): Update.
11782         * cpplex.c (cpp_interpret_charconst): Update.
11783         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
11784         signed_char to unsigned_char, group target dependencies.
11785         * defaults.h (WCHAR_UNSIGNED): Remove.
11786         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
11787 config:
11788         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
11789         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
11790         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
11791         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
11792         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
11793 doc:
11794         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
11795
11796 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
11797
11798         * fixinc/inclhack.def (windiss_math1): New fix.
11799         (windiss_math2): Likewise.
11800         (windiss_valist): Likewise.
11801         * fixinc/fixincl.x: Regenerated.
11802
11803 2002-05-07  Andreas Jaeger  <aj@suse.de>
11804
11805         * genautomata.c (output_internal_min_issue_delay_func): Add
11806         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
11807         (output_internal_trans_func): Likewise.
11808
11809 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
11810
11811         * pa.c (hppa_profile_hook): Use force_reg to get the address
11812         of the profile hook into an appropriate pseudo register.
11813
11814 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
11815
11816         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
11817         (LINK_START_SPEC): Handle it.
11818         (LINK_OS_SPEC): Likewise.
11819         (CPP_SPEC): Likewise.
11820         (STARTFILE_SPEC): Likewise.
11821         (LIB_SPEC): Likewise.
11822         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
11823         all platforms.
11824         (CRTSAVRES_DEFAULT_SPEC): New macro.
11825         (LIB_WINDISS_SPEC): New macro.
11826         (CPP_OS_WINDISS_SPEC): Likewise.
11827         (STARTFILE_WINDISS_SPEC): Likewise.
11828         (ENDFILE_WINDISS_SPEC): Likewise.
11829         (LINK_START_WINDISS_SPEC): Likewise.
11830         (LINK_OS_WINDISS_SPEC): Likewise.
11831         * config/rs6000/windiss.h: New file.
11832
11833 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
11834
11835         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
11836
11837 2002-05-06  David S. Miller  <davem@redhat.com>
11838
11839         * config/sparc/sparc.md (shift insns): Do not mask off
11840         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
11841         take care of it.
11842
11843 2002-05-06  Richard Henderson  <rth@redhat.com>
11844
11845         PR c++/6212
11846         * expr.c (highest_pow2_factor_for_type): New.
11847         (expand_assignment): Use it.
11848
11849 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
11850
11851         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
11852         unspec_volatile.
11853         ("altivec_mfvscr"): Same.
11854
11855 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
11856
11857         * rtl.h (struct rtx_def): Update comments.
11858         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
11859         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
11860         RTL_FLAG_CHECK macros with list of expected RTL codes.
11861         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
11862         (rtl_check_failed_flag): New.
11863         * reload1.c (reload): Use REG macro before changing rtx to MEM.
11864         (reload_cse_noop_set_p): Check rtx code before using access macro.
11865         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
11866         before using access macro.
11867
11868 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
11869
11870         * doc/rtl.texi (Flags): Update to reflect current usage.
11871
11872 2002-05-06  Roger Sayle  <roger@eyesopen.com>
11873
11874         PR opt/3995
11875         * fold-const.c (sign_bit_p): New function.
11876         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
11877         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
11878         Reapply fold when converting (A & C) == C into (A & C) != 0.
11879         (fold_binary_op_with_conditional_arg): Fix typo in comment.
11880
11881 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11882
11883         * c-common.c (warn_multichar): New.
11884         (c_common_init): Set CPP's warn_multichar.
11885         * c-common.h (warn_multichar): New.
11886         * c-decl.c (warn_multichar): Remove.
11887         * c-lex.c (lex_charconst): Update.
11888         * c-tree.h (warn_multichar): Remove.
11889         * cppexp.c (eval_token): Sign-extend charconst value.
11890         * cppinit.c (cpp_create_reader): Set warn_multichar.
11891         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
11892         each character.  Update prototype.  Sign-extend the result.
11893         * cpplib.h: Fix conditions.
11894         (struct cpp_options): Add new warning flag.
11895         (cpp_interpret_charconst): Update prototype.
11896 doc:
11897         * cpp.texi: Update documentation.
11898
11899 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
11900
11901         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
11902         Fix typo in usage of allof instead of unit.
11903
11904 2002-05-06  Richard Henderson  <rth@redhat.com>
11905
11906         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
11907         and any jump or call for IN.
11908
11909 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
11910
11911         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
11912         -msse2.
11913         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
11914
11915 2002-05-06  Roger Sayle  <roger@eyesopen.com>
11916
11917         * fold-const.c (lshift-double): Cast the high word to an unsigned
11918         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
11919         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
11920         avoid compiler warning.  (fold): Remove redundant code from
11921         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
11922
11923 2002-05-06  Jeff Law  <law@redhat.com>
11924
11925         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
11926         * pa.c (pa_adjust_cost): Remove all true dependency cost
11927         adjustments.  Also remove support for non-DFA scheduling.
11928         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
11929         to adjust true dependency costs.  Update various comments.
11930         (7100lc, 7200, 7300 scheduling): Simplify by combining the
11931         FP ALU & MPY units into a single unit.
11932
11933 2002-05-06  Catherine Moore  <clm@redhat.com>
11934
11935         * config/v850/v850.c (compute_register_save_size): Make sure
11936         to count all of the registers that will be saved.
11937
11938 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
11939
11940         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
11941
11942 2002-05-06  David S. Miller  <davem@redhat.com>
11943
11944         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
11945         allow result to overlap input operands in memory.
11946
11947 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11948
11949 doc:
11950         * cpp.texi: Update multichar charconst docs.
11951
11952 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11953
11954         * cpplex.c (cpp_interpret_charconst): Sign-extend each
11955         character.  Don't ignore excess characters.  Treat
11956         multicharacter character constants as signed.
11957         (cpp_parse_escape): Clarify diagnostic.
11958
11959 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
11960
11961         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
11962         use add instead of shift.
11963         (ashldi3_sp64): Likewise.
11964         (ashlsi3_const1, ashldi3_const1): Remove.
11965         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
11966         * config/sparc/sparc.c (const1_operand): New.
11967
11968 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
11969
11970         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
11971
11972 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
11973
11974         PR target/6561
11975         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
11976
11977 2002-05-05  Richard Henderson  <rth@redhat.com>
11978
11979         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
11980         memory latency adjustments.
11981         (alpha_variable_issue): Remove.
11982         (alpha_use_dfa_pipeline_interface): New.
11983         (alpha_multipass_dfa_lookahead): New.
11984         * config/alpha/alpha.md: Remove define_function_unit scheduling;
11985         include new dfa scheduling.
11986         (attr type): Add none.
11987         (blockage): Use it.
11988         * config/alpha/ev4.md: New.
11989         * config/alpha/ev5.md: New.
11990         * config/alpha/ev6.md: New.
11991
11992 2002-05-05  David S. Miller  <davem@redhat.com>
11993
11994         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
11995
11996 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
11997
11998         * cse.c: Fix formatting.
11999         * emit-rtl.c: Likewise.
12000
12001 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
12002
12003         * genautomata.c (initiate_states): Add additional guard to
12004         initialize `units_array'.
12005
12006 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
12007
12008         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
12009         process_unit_to_form_the_same_automaton_unit_lists,
12010         form_the_same_automaton_unit_lists
12011         check_unit_distributions_to_automata): New prototypes and
12012         functions.
12013         (check_automata): Rename it into `check_automata_insn_issues'.
12014         (unit_decl): New fields `the_same_automaton_unit' and
12015         `the_same_automaton_message_reported_p'.
12016         (unit_decl_t): New typedef.
12017         (the_same_automaton_lists): New gloval variable.
12018         (unit_regexp, unit_set_el, units_array, units_cmp,
12019         output_get_cpu_unit_code_func): Use the typedef.
12020         (evaluate_max_reserv_cycles): Increment
12021         `description->max_insn_reserv_cycles'.
12022         (initiate_states): Don't increment `max_cycles_num'.
12023         (transform_insn_regexps): Move code around transformation of
12024         regexps from `generate'.
12025         (generate): Remove call of `transform_insn_regexps'.
12026         (expand_automata): Call `transform_insn_regexps' and
12027         `check_unit_distributions_to_automata'.  Check errors before
12028         `generate'.
12029
12030         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
12031         automaton `ultrasparc3_1'.
12032
12033 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12034
12035         * c-common.c (c_common_init): Set up CPP arithmetic.
12036         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
12037         something reasonable for the host.
12038         (sanity_checks): Add checks.
12039         (cpp_read_main_file): Call sanity_checks() from here...
12040         (cpp_post_options): ... not here.
12041         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
12042         * cpplib.h (struct cpp_options): New member int_precision.
12043
12044 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12045
12046         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
12047
12048 2002-05-04  David S. Miller  <davem@redhat.com>
12049
12050         * config/sparc/linux.h, config/sparc/linux64.h
12051         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
12052
12053         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
12054         more RTX codes.
12055         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
12056
12057         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
12058         of SETs.
12059
12060 2002-05-05  Tim Josling  <tej@melbpc.org.au>
12061
12062         * treelang; New directory for new sample language treelang.
12063
12064 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12065
12066         * Makefile.in (c-lex.o): Update.
12067         * c-lex.c: Include target.h.
12068         (cb_register_builtins): New.
12069         (init_c_lex): Set builtins callback.
12070         * c-lex.h (cpp_define, cpp_assert): New prototypes.
12071         * cppinit.c (init_builtins): Use callback, including for
12072         GXX_WEAK.
12073         * cpplib.h (struct cpp_callbacks): New member.
12074         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
12075         (TARGET_INITIALIZER): Update.
12076         * target.h (struct gcc_target): New hook.
12077         * tree.c (default_register_cpp_builtins): New.
12078         * tree.h (default_register_cpp_builtins): New.
12079 doc:
12080         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
12081
12082 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12083
12084         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
12085         (cpp_post_options): Move sanity checks to...
12086         (sanity_checks): New.
12087         * cpplex.c (maybe_read_ucs): Fix prototype.
12088         (parse_string, cpp_parse_escape): Cast for %c format specifier.
12089         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
12090         if necessary.
12091
12092 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
12093
12094         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
12095         builtins.  Use V2DI patterns instead of TI for logical operations.
12096         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
12097         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
12098         (ix86_expand_builtins): Change the pattern used for movntdq.
12099         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
12100         sse2_nandv2di3): New patterns.
12101         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
12102         on operands.
12103         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
12104         (cvtdq2pd): Correct mode on operand 1.
12105         (sse2_umulsidi3): Describe without unspec.
12106         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
12107         machine modes.
12108         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
12109         (ashlv2di3): Likewise, from sse2_ashlv2di3.
12110         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
12111         ashlv4si3, ashlv2di3): Use SImode for shift count.
12112         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
12113         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
12114         New patterns.
12115         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
12116         New typedefs.
12117         (__m128i, __m128d): New macros.
12118         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
12119         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
12120         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
12121         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
12122         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
12123         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
12124         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
12125         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
12126         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
12127         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
12128         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
12129         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
12130         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
12131         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
12132         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
12133         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
12134         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
12135         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
12136         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
12137         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
12138         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
12139         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
12140         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
12141         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
12142         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
12143         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
12144         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
12145         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
12146         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
12147         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
12148         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
12149         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
12150         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
12151         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
12152         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
12153         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
12154         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
12155         functions.
12156         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
12157         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
12158
12159 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
12160
12161         * dwarf2out.c: Fix formatting.
12162         * varasm.c: Likewise.
12163
12164 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
12165
12166         PR c/6543
12167         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
12168         clobber and use result as temporary value.
12169
12170 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
12171
12172         * expr.c (force_operand): Use expand_simple_* to handle more
12173         cases.
12174
12175 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12176
12177         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
12178         and sign-extension.
12179         (lex_charconst): Update for change in prototype of
12180         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
12181         appropriately.
12182         * cpphash.h (BITS_PER_CPPCHAR_T): New.
12183         * cppinit.c (cpp_create_reader): Initialize them for no
12184         change in semantics.
12185         (cpp_post_options): Add sanity checks.
12186         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
12187         and truncation issues.  Calculate in type cppchar_t.
12188         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
12189         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
12190         run-time dependent precision correctly.  Return whether the
12191         result is signed or not.
12192         * cpplib.c (dequote_string): Use cppchar_t; update.
12193         * cpplib.h (cppchar_signed_t): New.
12194         struct cpp_options): New precision members.
12195         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
12196         * cppexp.c (eval_token): Update.
12197
12198 2002-05-03  David S. Miller  <davem@redhat.com>
12199
12200         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
12201         * config/sparc/sparc.c (sparc_rtx_costs): New function
12202         implementing RTX_COSTS and CONST_COSTS.
12203         * config/sparc/sparc.h (CONST_COSTS): Delete.
12204         (RTX_COSTS_CASES): Define.
12205         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
12206         the work.
12207
12208         * config/sparc/sparc.md (DFA schedulers): Split out...
12209         * config/sparc/cypress.md, config/sparc/hypersparc.md,
12210         config/sparc/sparclet.md, config/sparc/supersparc.md,
12211         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
12212
12213         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
12214         checks on it, always defined for Sparc.
12215
12216         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
12217         Tweak, and add more detailed comments.
12218
12219 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
12220
12221         * Re-apply patch accidentally reverted with
12222         DFA scheduler merge: remove all rules and variables to slurp
12223         source files out of libiberty and rebuild them with HOST_CC.
12224         ($(HOST_PREFIX_1)varray.o): New rule.
12225         (genattrtab rule): Word wrap.
12226
12227 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
12228
12229         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
12230         (CPP_SUBTARGET_SPEC): Define.
12231         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
12232         cpp_subtarget specs.
12233         (CPP_SPEC): Redefine to include %(cpp_subtarget).
12234
12235 2002-05-03  David S. Miller  <davem@redhat.com>
12236
12237         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
12238         * target.h (struct gcc_target): Delete cycle_display member.
12239
12240         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
12241         (rtx_needs_barrier): Delete reference to cycle_display unspec.
12242         (ia64_sched_reorder2): Mention need for cycle display handling
12243         once such notes exist.
12244
12245 2002-05-03  Richard Henderson  <rth@redhat.com>
12246
12247         * real.c (etoasc): Strip most trailing zeros for clarity.
12248         * sched-vis.c: Include real.h.
12249         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
12250         * Makefile.in (sched-vis.o): Add real.h.
12251
12252 2002-05-03  David S. Miller  <davem@redhat.com>
12253
12254         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
12255         no longer needed.
12256
12257 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
12258
12259         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
12260         when we get an out of range literal.
12261         (altivec_expand_ternop_builtin): Same.
12262         (altivec_expand_unop_builtin): Same.
12263         (altivec_expand_builtin): Same, for dss.
12264         (altivec_expand_builtin): Use trees instead of rtl when
12265         determining literal argument validity.
12266
12267 2002-05-03  David S. Miller  <davem@redhat.com>
12268
12269         Delete cycle display scheduling hook.
12270         * config/ia64/ia64.c (ia64_cycle_display,
12271         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
12272         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
12273         and use emit_insn_before instead of ia64_emit_insn_before.
12274         * config/ia64/ia64.md (unspec usage): Delete cycle display.
12275         (cycle_display): Delete insn pattern.
12276         * config/sparc/sparc.md (unspec usage): Delete cycle display.
12277         (cycle_display): Delete insn pattern.
12278         * config/sparc/sparc.c (sparc_cycle_display,
12279         TARGET_SCHED_CYCLE_DISPLAY): Delete.
12280         * doc/md.texi (cycle_display): Don't mention.
12281         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
12282
12283 2002-05-03  Richard Henderson  <rth@redhat.com>
12284
12285         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
12286         * recog.h: Declare them.
12287
12288         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
12289         * config/sparc/sparc.md: Use store_data_bypass_p instead.
12290         * config/sparc/sparc-protos.h: Update.
12291
12292 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
12293
12294         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
12295         -D__arch64__.  Add -D_LP64.
12296         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
12297         from sparc.h.
12298         (CPP_ARCH64_SPEC): Likewise.
12299         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
12300         (NO_BUILTIN_SIZE_TYPE): Undef.
12301
12302 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
12303
12304         * genautomata.c (min_issue_delay_pass_states): Change return type
12305         in the prototype.
12306         (min_issue_delay_pass_states): Change the algorithm.
12307         (min_issue_delay): Set up min_insn_issue_delay for the state.
12308         (output_min_issue_delay_table): Interchange the nested loops and
12309         and initiate min_insn_issue_delay for states.
12310
12311 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
12312
12313         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
12314         jump is simplejump.
12315
12316 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
12317
12318         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
12319         sequence.
12320
12321 2002-05-03  Richard Henderson  <rth@redhat.com>
12322
12323         PR opt/6534
12324         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
12325         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
12326         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
12327         code before JUMP, not EARLIEST.
12328
12329 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
12330
12331         * c-format.c (check_format_info_main): Don't check for presence of
12332         parameter for * width until after operand number has been read,
12333         and only check for it if format parameters are available.
12334         Fixes PR c/6547.
12335
12336 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
12337
12338         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
12339         (LINK_SPEC): Undef before defining.
12340
12341 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
12342
12343         PR preprocessor/6489
12344         * tradcpp.c (fixup_newlines): New.
12345         (main, finclude): Use it.
12346
12347 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
12348
12349         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
12350         * config/mips/mips.c (mips_unique_section): Strip encoding from
12351         decl name.
12352
12353 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
12354
12355         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
12356         mode.
12357
12358 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12359
12360         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
12361         (Specific): Removed buildstats references.
12362         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
12363         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
12364         Accomodate Solaris versions beyond 8.
12365         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
12366         (Specific, *-*-solaris2.8): Removed, obsolete.
12367
12368 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
12369
12370         PR target/6542
12371         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
12372         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
12373         fill leaf_reg_remap with identity.
12374         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
12375
12376 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
12377
12378         * config/h8300/crti.asm: Remove trailing spaces.
12379         * config/h8300/h8300.c: Likewise.
12380         * config/h8300/lib1funcs.asm: Likewise.
12381
12382 2002-05-02  Jason Merrill  <jason@redhat.com>
12383
12384         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
12385         * c-decl.c (c_init_decl_processing): Use it.
12386         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
12387         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
12388         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
12389
12390 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
12391
12392         * regrename.c: Fix formatting.
12393         * tree.c: Likewise.
12394
12395 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
12396
12397         * i386.md (attribute memory): Handle compares properly.
12398
12399 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
12400
12401         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
12402         to none.
12403
12404 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
12405
12406         * function.c: Fix formatting.
12407
12408 2002-05-02  Jan Hubicka  <jh@suse.cz>
12409
12410         * haifa-sched.c (schedule_insn): Print table of instructions and
12411         reservations.
12412         (sched_block): Do not print ready list at verbosity level 1.
12413         * sched-vis.c (print_insn): Make global.
12414         * sched-ebb.c (ebb_print_insn): Rename from...
12415         (print_insn): ... this one.
12416         * sched-int.h (print_insn): Declare
12417
12418 2002-05-02  Richard Henderson  <rth@redhat.com>
12419
12420         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
12421         emitted by cycle_display.
12422
12423 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
12424
12425         * doc/install.texi (*-*-freebsd*): Update to latest status.
12426
12427 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
12428
12429         PR target/6540
12430         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
12431         * config/float-sparc.h: Assume 128-bit long double if
12432         __LONG_DOUBLE_128__ is defined.
12433
12434 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
12435
12436         * genattrtab.c (write_function_unit_info): Add a dummy element
12437         when num_units == 0.
12438
12439 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12440
12441         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
12442         TYPE_MODE (double_type_node) instead of DFmode.
12443
12444 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
12445
12446         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
12447         jumps post reload.
12448         * toplev.c (rest_of_compilation): Revert Richard's patch.
12449
12450 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12451
12452         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
12453
12454 2002-05-02  Catherine Moore  <clm@redhat.com>
12455
12456         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
12457
12458 2002-05-02  Kazu Hirata  <kazu@hxi.com>
12459
12460         * combine.c: Fix comment typos.
12461         * expr.c: Likewise.
12462         * genautomata.c: Likewise.
12463         * stmt.c: Likewise.
12464         * tree.h: Likewise.
12465
12466 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12467
12468         * doc/install.texi: State GNAT version requirements.
12469
12470 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
12471
12472         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
12473         of the frame pointer or arg pointer register which strict register
12474         checking is not enabled.
12475
12476 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
12477
12478         * gcc.dg/altivec-8.c: New.
12479
12480         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
12481         PRE_INC and PRE_DEC for altivec modes.
12482
12483 2002-05-01  Bruce Korb  <bkorb@gnu.org>
12484
12485         * fixinc/check.tpl(set-writable): make sure the function exists first
12486         * fixinc/inclhack.def(alpha_assert): fix test_text
12487         * fixinc/tests/base/assert.h: add in missing result
12488
12489 2002-05-01  Jeff Law  <law@redhat.com>
12490
12491         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
12492         'T' constraint.
12493
12494 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
12495
12496         * dbxout.c (dbxout_type): Emit size information for range types,
12497         as well, but only when using GDB extensions.
12498
12499 2002-05-01  Richard Henderson  <rth@redhat.com>
12500
12501         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
12502         target-independent gnu binutils date test.
12503
12504 2002-05-01  Richard Henderson  <rth@redhat.com>
12505
12506         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
12507         info before expunging the block.
12508
12509 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
12510
12511         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
12512         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
12513         -M -or -MM is in effect.
12514
12515 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
12516
12517         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
12518         A29k configurations.
12519         * doc/install.texi: Update to match.
12520
12521 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12522
12523         PR bootstrap/6514
12524         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
12525         for duplicates. Always loop over whole list.
12526
12527 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12528
12529         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
12530
12531 2002-05-01      Joel Sherrill <joel@OARcorp.com>
12532
12533         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
12534         support routines.
12535
12536 2002-05-01      Joel Sherrill <joel@OARcorp.com>
12537
12538         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
12539
12540 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
12541
12542         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
12543         (nabs_nopower): Same.
12544         (floatdisf2): New pattern.
12545         (absdi2): Convert to define_insn_and_split.
12546         (nabsdi2): Same.
12547         (trunctfsf2): Same.
12548         (floatditf2): Same.
12549         (floatsitf2): Same.
12550         (fix_trunctfdi2): Same.
12551         (fix_trunctfsi2): Same.
12552
12553 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12554
12555         * doc/install.texi: Update Texinfo version requirement
12556         documentation.
12557
12558 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
12559
12560         PR target/6512, PR target/5628
12561         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
12562         when memory is not aligned.
12563         (movdf_insn_v9only_vis): Likewise.
12564         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
12565         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
12566         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
12567
12568 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
12569
12570         * gcc.dg/altivec-7.c: New.
12571
12572         * config/rs6000/altivec.h: Cleanup.
12573
12574 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
12575
12576         * doc/invoke.texi (Option Summary): Add -mvrsave=.
12577         (RS/6000 and PowerPC Options): Document -mvrsave=.
12578
12579         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
12580         (rs6000_altivec_vrsave_string): Same.
12581         (rs6000_override_options): Call rs6000_parse_vrsave_option.
12582         (rs6000_parse_vrsave_option): New.
12583         (rs6000_stack_info): Only generate vrsave instructions when
12584         TARGET_ALTIVEC_VRSAVE.
12585
12586         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
12587         (rs6000_altivec_vrsave_string): Define extern.
12588         (rs6000_altivec_vrsave): Same.
12589         (TARGET_ALTIVEC_VRSAVE): New.
12590
12591 2002-04-30  Richard Henderson  <rth@redhat.com>
12592
12593         PR opt/6516
12594         * toplev.c (rest_of_compilation): Don't run cross-jump before
12595         bb-reorder.
12596
12597 2002-04-30  Tom Rix  <trix@redhat.com>
12598
12599         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
12600         check which_alternative.
12601
12602 2002-04-30  Kazu Hirata  <kazu@hxi.com>
12603
12604         * cpplex.c: Fix comment formatting.
12605         * function.c: Likewise.
12606         * integrate.c: Likewise.
12607         * regrename.c: Likewise.
12608         * sibcall.c: Likewise.
12609         * simplify-rtx.c: Likewise.
12610         * tree-inline.c: Likewise.
12611
12612 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12613
12614         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
12615         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
12616         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
12617         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
12618         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
12619         * pa/x-ada: New file.  Define ADA_CFLAGS.
12620
12621 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
12622
12623         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
12624         from MMIX_LAST_REGISTER_FILE_REGNUM.
12625         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
12626         (struct machine_function): New member highest_saved_stack_register
12627         previously static variable in mmix.c.
12628         (MACHINE_DEPENDENT_REORG): Define.
12629         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
12630         (MMIX_OUTPUT_REGNO): New.
12631         (mmix_target_asm_function_prologue): Move calculation of last used
12632         saved-stack-register into...
12633         (mmix_machine_dependent_reorg): New function.  Update to also handle
12634         !TARGET_ABI_GNU.
12635         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
12636         register names, simplify somewhat by new variable regno.
12637         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
12638         register.
12639         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
12640         emitting register names.
12641         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
12642         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
12643         Remove fixed FIXME.
12644         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
12645         Declare.
12646
12647         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
12648
12649 2002-04-30  Richard Henderson  <rth@redhat.com>
12650
12651         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
12652         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
12653         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
12654         emit_tfmode_cvt): New.
12655         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
12656         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
12657         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
12658         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
12659         * config/sparc/sparc-protos.h: Update.
12660
12661 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
12662
12663         * install.texi (Final install): Add to the list of info to include
12664         in a report of a successful bootstrap, and add link to 3.1 list.
12665
12666 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
12667
12668         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
12669         (mode): Add vector modes
12670         (i387): Kill attribute.
12671         (unit): New attribute.
12672         (length_immediate): Grok new types.
12673         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
12674         (modrm): Use "unit".
12675         (memory): Handle MMX/SSE properly.
12676         (scheduling descriptions): Kill uses of fop1.
12677         (sse, mmx, fp patterns): Set type and mode properly.
12678
12679 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
12680
12681         * pa.c (override_options): Default to PA8000 scheduling.
12682         * doc/invoke.texi (HP-PA options): Mention newly added 7300
12683         scheduling parameter.
12684
12685         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
12686         handling of double precision multiplies.
12687
12688         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
12689         fpdiv and fpsqrt instructions.
12690         (7200 & 7300 scheduling): Fix typo in handling of
12691         store-load and store-store penalties.
12692
12693 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12694
12695         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
12696         mips.  Add two missing commas.
12697
12698 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
12699
12700         * doc/contrib.texi (Contributors): Update Paolo Carlini's
12701         and Benjamin Kosnik's entries.
12702
12703 2002-04-29  David S. Miller  <davem@redhat.com>
12704
12705         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
12706         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
12707         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
12708         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
12709
12710 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12711
12712         * combine.c (find_split_point): Use gen_int_mode.
12713
12714 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
12715
12716         Merging code from dfa-branch:
12717
12718         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
12719
12720         * genautomata.c (output_reserv_sets): Fix typo.
12721
12722         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
12723
12724         * genautomata.c (output_reserv_sets): Remove
12725         next_cycle_output_flag.
12726
12727         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
12728
12729         * sched-rgn.c (init_ready_list): Make the DFA code handle
12730         USE/CLOBBER insns in the same way as the traditional
12731         scheduler.
12732         (new_ready): Similarly..
12733
12734         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
12735
12736         * haifa-sched.c (schedule_block): Change the DFA state only after
12737         issuing insn.
12738
12739         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
12740
12741         * pa.c (hppa_use_dfa_pipeline_interface): New function.
12742         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
12743         (override_options): Add PA7300 scheduling support.
12744         (pa_adjust_cost): Update various comments.  Properly
12745         handle anti and output dependencies when using the
12746         DFA scheduler.
12747         (pa_issue_rate): Add PA7300 scheduling support.
12748         (pa_can_combine_p): Call extract_insn before calling
12749         constrain_operands (taken from mainline tree).
12750         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
12751         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
12752         descriptions using DFA descriptions.  Add PA7300
12753         scheduling support.
12754
12755         2002-03-30  David S. Miller  <davem@redhat.com>
12756
12757         Add UltraSPARC-III DFA scheduling support.
12758         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
12759         Update FP conditional move on register insn patterns to use it, as
12760         appropriate.
12761         (define_attr cpu): Add ultrasparc3.
12762         (define_attr us3load_type): New, update integer load patterns to
12763         set it, as appropriate.
12764         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
12765         (rest): Add UltraSPARC3 scheduling description.
12766         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
12767         (PROCESSOR_ULTRASPARC3): New.
12768         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
12769         ({ASM,CPP}_CPU_SPEC): Likewise.
12770         (REGISTER_MOVE_COST): Likewise.
12771         (RTX_COSTS): Likewise.
12772         * config/sparc/sparc.c (sparc_override_options,
12773         sparc_initialize_trampoline, sparc64_initialize_trampoline,
12774         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12775         sparc_issue_rate): Likewise.
12776         * config/sparc/sol2.h: Likewise.
12777         * config/sparc/sol2-sld-64.h: Likewise.
12778         * config/sparc/linux64.h: Likewise.
12779
12780         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
12781
12782         * doc/md.texi: Add comments about usage the latency time for the
12783         different dependencies and about case when two or more conditions
12784         in different define_insn_reservations returns TRUE for an insn.
12785
12786         * doc/md.texi: Add reference for automaton based pipeline
12787         description.
12788
12789         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
12790
12791         * doc/passes.texi: Add missed information about genattrtab.
12792
12793         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
12794
12795         * genautomata.c (output_automata_list_transition_code): Check
12796         automata_list on NULL.
12797
12798         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
12799
12800         * genautomata.c (output_insn_code_cases,
12801         output_automata_list_min_issue_delay_code,
12802         output_automata_list_transition_code,
12803         output_automata_list_state_alts_code): Comment the functions.
12804
12805         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
12806
12807         * genautomata.c (automata_list_el_t): New typedef.
12808         (get_free_automata_list_el,free_automata_list_el,
12809         free_automata_list, automata_list_hash, automata_list_eq_p,
12810         initiate_automata_lists, automata_list_start, automata_list_add,
12811         automata_list_finish, finish_automata_lists,
12812         output_insn_code_cases, output_automata_list_min_issue_delay_code,
12813         output_automata_list_transition_code,
12814         output_automata_list_state_alts_code, add_automaton_state,
12815         form_important_insn_automata_lists): New functions and prototypes.
12816         (insn_reserv_decl): Add members important_automata_list and
12817         processed_p.
12818         (ainsn): Add members important_p.
12819         (automata_list_el): New structure.
12820         (first_free_automata_list_el, current_automata_list,
12821         automata_list_table): New global variables.
12822         (create_ainsns): Initiate member important_p.
12823         (output_internal_min_issue_delay_func): Generate the switch and
12824         call output_insn_code_cases.
12825         (output_internal_trans_func, output_internal_state_alts_func):
12826         Ditto.
12827         (generate): Call initiate_automata_lists.
12828         (automaton_states): New global variable.
12829         (expand_automata): Call form_important_insn_automata_lists.
12830         (write_automata): Call finish_automata_lists.
12831
12832         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
12833
12834         * genautomata.c (add_excls, add_presence_absence): Check that
12835         cpu units in the sets belong the same automaton.
12836
12837         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
12838         about that cpu units in the sets belong the same automaton.
12839
12840         * doc/md.texi: Ditto.
12841
12842         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
12843                     Nitin Gupta  <niting@noida.hcltech.com>
12844
12845         * config/sh/sh.c (sh_use_dfa_interface): New function.
12846
12847         (sh_issue_rate): New Function.
12848         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
12849         TARGET_SCHED_ISSUE_RATE: define.
12850
12851         * config/sh/sh.md: Add DFA based pipeline description for SH4.
12852
12853         (define_attr insn_class): New attribute used for DFA
12854          scheduling.
12855         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
12856         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
12857          cmpeqdi_t): Likewise.
12858
12859         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
12860          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
12861          ex_group.
12862         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
12863
12864         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
12865
12866         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
12867         break.
12868
12869         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
12870
12871         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
12872         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
12873         necessary.
12874         (output_dfa_start_func): Initiate new variable insn_codes_length,
12875         (write_automata): Output definition of the new variable.
12876
12877         2001-10-02  David S. Miller  <davem@redhat.com>
12878
12879         * haifa-sched.c (advance_one_cycle): New function.
12880         (schedule_block): Use it.
12881         (queue_to_ready): Use it, and also make sure to advance the DFA
12882         state on all stall cycles, not just those where insn_queue links
12883         are found.
12884
12885         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
12886
12887         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
12888         non-zero if the highest-priority instruction could be scheduled.
12889         (choose_ready): Remove last argument from max_issue call.
12890
12891         2001-09-28  David S. Miller  <davem@redhat.com>
12892
12893         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
12894         ultrasparc and 3 for other multi-issue sparcs.
12895
12896         2001-09-27  David S. Miller  <davem@redhat.com>
12897
12898         * config/sparc/sparc.md (cycle_display): New pattern.
12899         * config/sparc/sparc.c (sparc_cycle_display): New.
12900         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
12901
12902         2001-09-25  David S. Miller  <davem@redhat.com>
12903
12904         Convert all of Sparc scheduling to DFA
12905         * config/sparc/sparc.md: Kill all define_function_unit
12906         directives and replace with DFA equivalent.
12907         * config/sparc/sparc.c (ultrasparc_adjust_cost,
12908         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
12909         ultra_fpmode_conflict_exists, ultra_find_type,
12910         ultra_build_types_avail, ultra_flush_pipeline,
12911         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
12912         ultrasparc_variable_issue, ultrasparc_sched_init,
12913         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
12914         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
12915         ultra_cur_hist, ultra_cycles_elapsed): Kill.
12916         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12917         ultrasparc_store_bypass_p): New.
12918         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
12919         Declare.
12920
12921         2001-09-24  David S. Miller  <davem@redhat.com>
12922
12923         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
12924         ready->vec[foo] not ready[foo].
12925
12926         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
12927
12928         * doc/md.texi: Correct examples for define_insn_reservations
12929         `mult' and `div'.
12930
12931         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
12932
12933         * genautomata.c (create_automata): Print message about creation of
12934         each automaton.
12935         (generate): Remove printing meease about creation of
12936         automata.
12937
12938         2001-09-05  David S. Miller  <davem@redhat.com>
12939
12940         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
12941         * config/sparc/linux64.h: Likewise.
12942
12943         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
12944
12945         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
12946         schedule_block, sched_init, sched_finish): Add missed calls of
12947         use_dfa_pipeline_interface.
12948
12949         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
12950         Ditto.
12951
12952         * sched-vis.c (get_visual_tbl_length): Ditto.
12953
12954         2001-08-27  Richard Henderson  <rth@redhat.com>
12955
12956         * genattr.c (main): Emit state_t even when not doing scheduling.
12957
12958         2001-08-27  Richard Henderson  <rth@redhat.com>
12959
12960         * genautomata.c (expand_automata): Always create a description.
12961
12962         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
12963
12964         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
12965         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
12966         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
12967         RTL constructions.
12968
12969         * genattr.c (main): New variable num_insn_reservations.  Increase
12970         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
12971         pipeline hazard recognizer interface.
12972
12973         * genattrtab.h: New file.
12974
12975         * genattrtab.c: Include genattrtab.h.
12976         (attr_printf, check_attr_test, make_internal_attr,
12977         make_numeric_value): Move protypes into genattrtab.h.  Define them
12978         as external.
12979         (num_dfa_decls): New global variable.
12980         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
12981         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
12982         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
12983         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
12984
12985         * genautomata.c: New file.
12986
12987         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
12988
12989         * sched-int.h: (curr_state): Add the external definition for
12990         automaton pipeline interface.
12991         (haifa_insn_data): Add comments for members blockage and units.
12992
12993         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12994         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12995         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12996         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12997         TARGET_SCHED_DFA_POST_CYCLE_INSN,
12998         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12999         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
13000         macros.
13001         (TARGET_SCHED): Use the new macros.
13002
13003         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
13004         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
13005         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
13006         dfa_bubble): New members in gcc_target.sched.
13007
13008         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
13009         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
13010         (insn_queue): Redefine it as pointer to array.
13011         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
13012         INSN_QUEUE_SIZE.
13013         (max_insn_queue_index_macro_value): New variable.
13014         (curr_state, dfa_state_size, ready_try): New varaibles for
13015         automaton interface.
13016         (ready_element, ready_remove, max_issue): New function prototypes
13017         for automaton interface.
13018         (choose_ready): New function prototype.
13019         (insn_unit, blockage_range): Add comments.
13020         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
13021         FUNCTION_UNITS_SIZE == 0.
13022         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
13023         actual_hazard, potential_hazard): Add comments.
13024         (insn_cost): Use cost -1 as undefined value.  Remove
13025         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
13026         pipeline interface.
13027         (ready_element, ready_remove): New functions for automaton
13028         interface.
13029         (schedule_insn): Add new code for automaton pipeline interface.
13030         (queue_to_ready): Add new code for automaton pipeline interface.
13031         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
13032         (debug_ready_list): Print newline when the queue is empty.
13033         (max_issue): New function for automaton pipeline interface.
13034         (choose_ready): New function.
13035         (schedule_block): Add new code for automaton pipeline interface.
13036         Print ready list before scheduling each insn.
13037         (sched_init): Add new code for automaton pipeline interface.
13038         Initiate insn cost by -1.
13039         (sched_finish): Free the current automaton state and finalize
13040         automaton pipeline interface.
13041
13042         * sched-rgn.c: Include target.h.
13043         (init_ready_list, new_ready, debug_dependencies): Add new code for
13044         automaton pipeline interface.
13045
13046         * sched-vis.c: Include target.h.
13047         (get_visual_tbl_length): Add code for automaton interface.
13048         (target_units, print_block_visualization):  Add comments.
13049
13050         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
13051         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
13052         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
13053         (getruntime.o, genautomata.o): New entries.
13054         (genattrtab.o): Add new dependency file genattrtab.h.
13055         (genattrtab): Add new dependencies.  Link it with `libm.a'.
13056         (getruntime.o, hashtab.o): New entries for canadian cross.
13057
13058         * doc/md.texi: Description of automaton based model.
13059
13060         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
13061         Add comments.
13062         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13063         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
13064         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
13065         TARGET_SCHED_DFA_POST_CYCLE_INSN,
13066         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
13067         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13068         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
13069         hook descriptions.
13070         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
13071         MAX_DFA_ISSUE_RATE): New macro descriptions.
13072
13073         * doc/contrib.texi: Add dfa based scheduler contribution.
13074
13075         * doc/gcc.texi: Add more information about genattrtab.
13076
13077 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13078
13079         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
13080         adjust_address_nv call.
13081
13082 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
13083
13084         * doc/install.texi (Testing): Provide additional information, and
13085         a stronger encouragement, for running the testsuites.
13086
13087 2002-04-29  DJ Delorie  <dj@redhat.com>
13088
13089         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
13090         given in upper case.
13091
13092 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13093
13094         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
13095         Solaris 2 <widec.h> if missing.
13096         * fixinc/fixincl.x: Regenerate.
13097         * fixinc/tests/base/widec.h: New file.
13098
13099 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
13100
13101         * toplev.c (f_options): Add "profile" switch so that
13102         -fno-profile can be used to disable -p.
13103
13104 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
13105
13106         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
13107         UV2DImode.
13108         * tree.c (build_common_tree_nodes_2): Likewise.
13109         * tree.h (enum tree_index): Likewise.
13110         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
13111
13112         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
13113         entries.
13114         (init_mmx_sse_builtins): Initialize SSE2 builtins.
13115         (ix86_expand_builtin): Add support for SSE2 builtins.
13116         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
13117         (VALID_SSE_REG_MODE): Use it.
13118         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
13119         (enum ix86_builtins): Add SSE2 builtins.
13120         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
13121         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
13122         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
13123         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
13124         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
13125         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
13126         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
13127         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
13128         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
13129         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
13130         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
13131         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
13132         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
13133         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13134         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
13135         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
13136         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
13137         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
13138         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
13139         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
13140         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
13141         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
13142         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
13143         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
13144         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
13145         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
13146         lfence_insn): New patterns.
13147         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
13148         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
13149
13150 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
13151
13152         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
13153
13154 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13155
13156         * doc/contrib.texi (Contributors): Add Paolo Carlini and
13157         Janis Johnson.
13158         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
13159         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
13160         and CPU instead of cpu.
13161
13162 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
13163
13164         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
13165         variables.
13166         (lang_independent_options): Add -fif-conversion, -fif-conversion2
13167         (rest_of_compilation): Do if conversion only when asked for.
13168         (parse_options_and_default_flags): Set new variables to 1 for -O1
13169         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
13170
13171 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
13172
13173         * i386.c (dbx64_register_map): Fix typo.
13174
13175 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
13176
13177         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
13178         real_one_half, real_bb_freq_max): New static variables.
13179         (debug_profile_bbauxs): Kill.
13180         (process_note_predictions): Kill unused variable.
13181         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
13182         volatile double.
13183         (propagate_freq): Use REAL_ARITHMETICS.
13184         (estimate_bb_frequencies): Likevise; init new static variables.
13185         * Makefile.in (predict.o): Add dependency on real.h
13186
13187 2002-04-28  David S. Miller  <davem@redhat.com>
13188
13189         PR target/6500
13190         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
13191         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
13192         several {reads,writes} instead.
13193         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
13194         Define.
13195
13196 2002-04-27  David S. Miller  <davem@redhat.com>
13197
13198         PR target/6494
13199         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
13200         of the stack bias.
13201
13202         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
13203         including signal.h and sys/ucontext.h, not needed.
13204
13205 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
13206
13207         * varasm.c (output_constant_def): Correct test for not calling
13208         ENCODE_SECTION_INFO for INTEGER_CST.
13209
13210 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13211
13212         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
13213         keep most cases as function eval_token.
13214         (eval_token): New function.
13215         (_cpp_parse_expr): Read token here for improved diagnostics.
13216         Don't use op_as_text.  Detect bad ':' here.
13217         (reduce): Don't detect bad ':' here.
13218         (op_as_text): Remove.
13219         * cpphash.h (_cpp_test_assertion): Change prototype.
13220         * cpplib.c (_cpp_test_assertion): Change prototype.
13221
13222 2002-04-28  Richard Henderson  <rth@redhat.com>
13223
13224         PR c/5154
13225         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
13226         (ggc_mark_rtx_children): New.
13227
13228 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
13229
13230         PR target/6496
13231         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
13232         after call peepholes for UltraSPARC.
13233         (call + jump 64-bit peepholes): Remove.
13234
13235 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13236
13237         PR c/6497
13238         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
13239         result as temporary value.
13240
13241 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
13242
13243         PR c++/6396
13244         * toplev.c (rest_of_compilation): Only run regrename and copy
13245         propagation if optimizing.
13246
13247 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
13248
13249         PR optimization/6475
13250         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
13251         register of REGNO_DECL (i).
13252         * Makefile.in (reload1.o): Add $(TREE_H).
13253
13254 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13255
13256         * cppexp.c (lex): Update to use state.skip_eval.
13257         (struct op): Remove prio and flags members.
13258         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
13259         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
13260         (LEFT_ASSOC): New macro.
13261         (optab): New table of operator priorities and flags.
13262         (SHIFT): Update.
13263         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
13264         malloc-ed parser stack.
13265         (reduce): New; reduce the operator stack.
13266         (_cpp_expand_op_stack): Expand the operator stack as necessary.
13267         * cpphash.h (struct op): Predeclare.
13268         (struct cpp_reader): New members op_stack, op_limit.
13269         (struct lexer_state): New member skip_eval.
13270         (_cpp_parse_expr): Update.
13271         (_cpp_expand_op_stack): New.
13272         * cpplib.c (do_if): Update.
13273         * cppinit.c (cpp_create_reader): Create op stack.
13274         (cpp_destroy): And destroy it.
13275         * cpplib.h (CPP_LAST_CPP_OP): Correct.
13276         (TTYPE_TABLE): Correct.
13277
13278 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13279
13280         PR c/6343
13281         * c-decl.c (duplicate_decls): Call merge_weak.
13282         * c-pragma.c (apply_pragma_weak): Warn about misuse.
13283         * output.h (merge_weak): Prototype merge_weak.
13284         * varasm.c (merge_weak): New function.
13285         (declare_weak): Make sure we don't give an error on VAR_DECLs.
13286         Mark RTL with SYMBOL_REF_WEAK.
13287
13288 2002-04-27  Kurt Garloff <garloff@suse.de>
13289
13290         * tree-inline.c (inlinable_function_p): Improve heuristics
13291         by using a smoother function to cut down allowable inlinable size.
13292         * param.def: Add parameters max-inline-insns-single,
13293         max-inline-slope, min-inline-insns that determine the exact
13294         shape of the above function.
13295         * param.h: Likewise.
13296
13297 2002-04-26  Richard Henderson  <rth@redhat.com>
13298
13299         * c-parse.in (malloced_yyss, malloced_yyvs): New.
13300         (yyoverflow): Re-add.  Set them.
13301         (free_parser_stacks): New.
13302         * c-common.h: Declare it.
13303         * c-lex.c (c_common_parse_file): Call it.
13304
13305 2002-04-26  Richard Henderson  <rth@redhat.com>
13306
13307         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
13308         for fallthru search.
13309
13310 2002-04-26  Eric Christopher  <echristo@redhat.com>
13311
13312         PR optimization/3700
13313         * config/mips/mips.c (mips_issue_rate): Define.  New function.
13314         (TARGET_SCHED_ISSUE_RATE): Use.
13315
13316 2002-04-25  David S. Miller  <davem@redhat.com>
13317
13318         PR target/6422
13319         * reorg.c (optimize_skip): Do not allow exception causing
13320         instructions to be considered for delay slots.
13321         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
13322         (relax_delay_slots): Do not try to consider exception causing
13323         instructions as redundant.
13324
13325 2002-04-26  Richard Henderson  <rth@redhat.com>
13326
13327         PR c/5225
13328         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
13329
13330 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
13331
13332         PR bootstrap/6445
13333         * config/i386/i386.md (untyped_call): Return the value in a float
13334         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
13335         TARGET_80387.
13336
13337 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
13338
13339         * tree.c (tree_int_cst_lt): Compare constants whose types differ
13340         in unsigned-ness correctly.
13341
13342 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13343
13344         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
13345         portable runtime model.
13346
13347 2002-04-26  Richard Henderson  <rth@redhat.com>
13348
13349         * c-parse.in (yyoverflow): Revert.
13350
13351 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
13352             Richard Henderson  <rth@redhat.com>
13353
13354         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
13355         result as temporary value.
13356
13357 2002-04-26  Richard Henderson  <rth@redhat.com>
13358
13359         PR c/3581
13360         * c-common.c (fix_string_type): Split out of ...
13361         (combine_strings): ... here.  Take a varray, not a tree list.
13362         (c_expand_builtin_printf): Use fix_string_type.
13363         * c-common.h: Update decls.
13364         * c-parse.in (string): Remove.  Update all uses to use STRING
13365         instead, and not call combine_strings.
13366         (yylexstring): New.
13367         (_yylex): Use it.
13368         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
13369         (build_asm_stmt): Likewise.
13370         * objc/objc-act.c (my_build_string): Use fix_string_type.
13371         (build_objc_string_object): Build varray for combine_strings.
13372
13373 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
13374
13375         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
13376         x86-64.
13377
13378 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
13379
13380         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
13381         (HAVE_NO_R_OPERAND): Remove.
13382         (HAVE_VALUE): Remove.
13383         (op_to_prio): Update.
13384         (UNARY): Don't alter flags.
13385         (_cpp_parse_expr): want_value used to indicate whether
13386         a number or unary operator is expected next.  Distinguish
13387         unary and binary +/-.
13388         (op_as_text): Update for unary operators.
13389
13390 2002-04-25  Richard Henderson  <rth@redhat.com>
13391
13392         PR c/2161
13393         * c-parse.in (yyoverflow): New.
13394
13395 2002-04-25  Richard Henderson  <rth@redhat.com>
13396
13397         PR c/2098
13398         * c-common.c (shorten_compare): Simplfy conditions leading to
13399         the generation of a warning.
13400
13401 2002-04-25  Richard Henderson  <rth@redhat.com>
13402
13403         PR c/2035
13404         * expmed.c (extract_bit_field): Fall through to generic code rather
13405         than aborting on subreg special case.
13406
13407 2002-04-25  David S. Miller  <davem@redhat.com>
13408
13409         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
13410         for DECL being NULL.
13411
13412 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
13413
13414         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
13415
13416 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
13417
13418         * c-decl.c (grokdeclarator): Remove outdated ??? note
13419         on invalid declaration of flexible array members.
13420
13421 2002-04-25  Richard Henderson  <rth@redhat.com>
13422
13423         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
13424
13425 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
13426
13427         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
13428         needed by the compiler, even if they are used as global regs.
13429
13430 2002-04-25  Matt Hiller  <hiller@redhat.com>
13431
13432         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
13433         functions.
13434         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
13435         of the corresponding functions.
13436         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
13437         New prototypes.
13438
13439 2002-04-25  Matt Hiller  <hiller@redhat.com>
13440
13441         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
13442
13443         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
13444         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
13445         registers, adjust comment accordingly.
13446         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13447         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
13448         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
13449         for coprocessor registers.
13450         (ADDITIONAL_REGISTER_NAMES): Include
13451         ALL_COP_ADDITIONAL_REGISTER_NAMES.
13452
13453         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
13454         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
13455         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
13456         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
13457         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
13458
13459         (mips_char_to_class): Adjust comment to include coprocessor
13460         constraint letters.
13461
13462         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
13463         New functions.
13464         (mips_reg_names, mips_regno_to_class): Include coprocessor
13465         information.
13466         (mips_sw_reg_names): Ditto, make non-static.
13467         (mips_move_1word): Handle moves to and from coprocessor registers.
13468         (mips_move_2words): Handle moves to and from coprocessor
13469         registers.
13470         (mips_class_max_nregs, mips_register_move_cost): Handle
13471         coprocessor register classes.
13472         (override_options): Initialize mips_char_to_class and
13473         mips_hard_regno_mode_ok properly for coprocessor registers.
13474
13475         * config/mips/mips.md (movdi_internal, movdi_internal2,
13476         movsi_internal1, movsi_internal2): Add constraint-sets for
13477         coprocessor registers.
13478         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
13479         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
13480         isn't mips.
13481         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
13482         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
13483         isn't mips.
13484         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
13485         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
13486         isn't mips.
13487         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
13488         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
13489         isn't mips.
13490
13491         * doc/tm.texi: Document feature.
13492
13493 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
13494
13495         * integrate.c (function_attribute_inlinable_p): Simplify.
13496         Check the table pointer is not NULL.
13497
13498 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
13499
13500         * doc/c-tree.texi: Fix typo in introduction.
13501
13502 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
13503
13504         * c-common.h (c_common_parse_file): Update.
13505         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
13506         * c-lex.c (YYDEBUG): Get from c-lex.h.
13507         (c_common_parse_file): Update.
13508         * c-lex.h (YYDEBUG, yydebug): New.
13509         * c-parse.in (YYDEBUG): Get from c-lex.h.
13510         (c_set_yydebug): Remove.
13511         * c-tree.h (c_set_yydebug): Remove.
13512         * langhooks-def.h (lhd_do_nothing_i): New.
13513         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
13514         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
13515         * langhooks.c  (lhd_do_nothing_i): New.
13516         (lhd_set_yydebug): Remove.
13517         * langhooks.h (struct lang_hooks): Update.
13518         * toplev.c (set_yydebug): New.
13519         (compile_file): Update call to parse_file hook.
13520         (decode_d_option): Update.
13521 objc:
13522         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
13523
13524 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
13525
13526         * loop.c (load_mems): Don't change the interface of called functions.
13527
13528         * calls.c (expand_call): Take current_function_pretend_args_size
13529         into account when setting argblock for sibcalls.
13530
13531 2002-04-24  Matt Hiller  <hiller@redhat.com>
13532
13533         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
13534         * c-lex.c: Ditto.
13535
13536         * cpplex.c (skip_line_comment): Process comment one multibyte
13537         character at a time rather than one char at a time, if
13538         appropriate.
13539         (parse_string): Process string one multibyte character at a time
13540         rather than one char at a time, if appropriate.
13541         * c-lex.c (lex_string): Lex and copy multibyte strings
13542         appropriately.
13543         * cpplib.h (cppchar_t): Change to unsigned.
13544
13545 2002-04-24  Richard Henderson  <rth@redhat.com>
13546
13547         PR c/3467
13548         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
13549         for c99.
13550
13551 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
13552
13553         * sh.c (sh_va_arg): If argument was passed by reference,
13554         dereference the pointer.
13555
13556         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13557
13558         * sh.md (divsi3_i4_media): Use match_operand for input values
13559         rather than hard registers.
13560         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
13561         unnecessarily through hard registers.  Keep copies of pseudo
13562         registers outside of the libcall sequence.
13563
13564         * sh.md (casesi_shift_media): Add modes.
13565
13566         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
13567         values in memory.
13568
13569 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13570
13571         * attribs.c (c_common_attribute_table): Move table and handlers
13572         to c-common.c.
13573         (format_attribute_table, lang_attribute_table,
13574         lang_attribute_common): Remove.
13575         (init_attributes): Replace NULL pointers with pointers to the
13576         empty table.
13577         (handle_packed_attribute, handle_nocommon_attribute,
13578         handle_common_attribute, handle_noreturn_attribute,
13579         handle_noinline_attribute, handle_always_inline_attribute,
13580         handle_used_attribute, handle_unused_attribute,
13581         handle_const_attribute, handle_transparent_union_attribute,
13582         handle_constructor_attribute, handle_destructor_attribute,
13583         handle_mode_attribute, handle_section_attribute,
13584         handle_aligned_attribute, handle_weak_attribute,
13585         handle_alias_attribute, handle_visibility_attribute,
13586         handle_no_instrument_function_attribute, handle_malloc_attribute,
13587         handle_no_limit_stack_attribute, handle_pure_attribute,
13588         handle_deprecated_attribute, handle_vector_size_attribute,
13589         vector_size_helper): Move to c-common.c.
13590         * c-common.c (c_common_attribute_table,
13591         handle_packed_attribute, handle_nocommon_attribute,
13592         handle_common_attribute, handle_noreturn_attribute,
13593         handle_noinline_attribute, handle_always_inline_attribute,
13594         handle_used_attribute, handle_unused_attribute,
13595         handle_const_attribute, handle_transparent_union_attribute,
13596         handle_constructor_attribute, handle_destructor_attribute,
13597         handle_mode_attribute, handle_section_attribute,
13598         handle_aligned_attribute, handle_weak_attribute,
13599         handle_alias_attribute, handle_visibility_attribute,
13600         handle_no_instrument_function_attribute, handle_malloc_attribute,
13601         handle_no_limit_stack_attribute, handle_pure_attribute,
13602         handle_deprecated_attribute, handle_vector_size_attribute,
13603         vector_size_helper): Move from attribs.c.
13604         * c-common.h (c_common_attribute_table,
13605         c_common_format_attribute_table): New.
13606         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
13607         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
13608         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
13609         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
13610         (LANG_HOOKS_INITIALIZER): Update.
13611         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
13612         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
13613         * target.h: Update comment.
13614         * tree.c (default_target_attribute_table): Remove.
13615         * tree.h (default_target_attribute_table, format_attribute_table,
13616         lang_attribute_table, lang_attribute_common): Remove.
13617 objc:
13618         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
13619         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
13620
13621 2002-04-24  Jason Merrill  <jason@redhat.com>
13622
13623         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
13624         * dwarf2out.c (dwarf_attr_name): Support it.
13625         (gen_array_type_die): Emit it.
13626         (lookup_type_die): No special handling for VECTOR_TYPE.
13627         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
13628
13629 2002-04-24  Richard Henderson  <rth@redhat.com>
13630
13631         * config/mips/mips.md (movdi_usd): Renumber.
13632
13633 2002-04-24  David S. Miller  <davem@redhat.com>
13634
13635         PR target/6420
13636         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
13637         32-bit Sparc and current_function_returns_struct is true.
13638
13639 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
13640
13641         * loop.c (canonicalize_condition): Use gen_int_mode.
13642
13643 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
13644
13645         * config/rs6000/altivec.h: Cleanup file.  Add non individual
13646         variants.
13647         (vec_vaddubm): New.
13648         (vec_vadduhm): New.
13649         (vec_vadduwm): New.
13650         (vec_vaddfp): New.
13651         (vec_vaddcuw): New.
13652         (vec_vaddubs): New.
13653         (vec_vaddsbs): New.
13654         (vec_vadduhs): New.
13655         (vec_vadduws): New.
13656         (vec_vaddsws): New.
13657         (vec_vand): New.
13658         (vec_vandc): New.
13659         (vec_vavgub): New.
13660         (vec_vavgsb): New.
13661         (vec_vavguh): New.
13662         (vec_vavgsh): New.
13663         (vec_vavguw): New.
13664         (vec_vavgsw): New.
13665         (vec_vrfip): New.
13666         (vec_vcmpbfp): New.
13667         (vec_vcmpequb): New.
13668         (vec_vcmpequh): New.
13669         (vec_vcmpequw): New.
13670         (vec_vcmpeqfp): New.
13671         (vec_vcmpgefp): New.
13672         (vec_vcmpgtub): New.
13673         (vec_vcmpgtsb): New.
13674         (vec_vcmpgtuh): New.
13675         (vec_vcmpgtsh): New.
13676         (vec_vcmpgtuw): New.
13677         (vec_vcmpgtsw): New.
13678         (vec_vcmpgtfp): New.
13679         (vec_vcmpgefp): New.
13680         (vec_vcfux): New.
13681         (vec_vcfsx): New.
13682         (vec_vctsxs): New.
13683         (vec_vctuxs): New.
13684         (vec_vexptefp): New.
13685         (vec_vrfim): New.
13686         (vec_lvx): New.
13687         (vec_lvebx): New.
13688         (vec_lvehx): New.
13689         (vec_lde): Add vector float variant.
13690         (vec_lvewx): New.
13691         (vec_lvxl): New.
13692         (vec_vlogefp): New.
13693         (vec_vmaddfp): New.
13694         (vec_vmhaddshs): New.
13695         (vec_vmaxub): New.
13696         (vec_vmaxsb): New.
13697         (vec_vmaxuh): New.
13698         (vec_vmaxsh): New.
13699         (vec_vmaxuw): New.
13700         (vec_vmaxsw): New.
13701         (vec_vmaxsw): New.
13702         (vec_vmaxfp): New.
13703         (vec_vmrghb): New.
13704         (vec_vmrghh): New.
13705         (vec_vmrghw): New.
13706         (vec_vmrglb): New.
13707         (vec_vmrglh): New.
13708         (vec_vmrglw): New.
13709         (vec_vminub): New.
13710         (vec_vminsb): New.
13711         (vec_vminuh): New.
13712         (vec_vminsh): New.
13713         (vec_vminuw): New.
13714         (vec_vminsw): New.
13715         (vec_vminfp): New.
13716         (vec_vmladduhm): New.
13717         (vec_vmhraddshs): New.
13718         (vec_msumubm): New.
13719         (vec_vmsummbm): New.
13720         (vec_vmsumuhm): New.
13721         (vec_vmsumshm): New.
13722         (vec_vmsumuhs): New.
13723         (vec_vmsumshs): New.
13724         (vec_vmuleub): New.
13725         (vec_vmulesb): New.
13726         (vec_vmuleuh): New.
13727         (vec_vmulesh): New.
13728         (vec_vmuloub): New.
13729         (vec_mulosb): New.
13730         (vec_vmulouh): New.
13731         (vec_vmulosh): New.
13732         (vec_vnmsubfp): New.
13733         (vec_vnor): New.
13734         (vec_vor): New.
13735         (vec_vpkuhum): New.
13736         (vec_vpkuwum): New.
13737         (vec_vpkpx): New.
13738         (vec_vpkuhus): New.
13739         (vec_vpkshss): New.
13740         (vec_vpkuwus): New.
13741         (vec_vpkswss): New.
13742         (vec_vpkshus): New.
13743         (vec_vpkswus): New.
13744         (vec_vperm): New.
13745         (vec_vrefp): New.
13746         (vec_vrlb): New.
13747         (vec_vrlh): New.
13748         (vec_vrlw): New.
13749         (vec_vrfin): New.
13750         (vec_vrsqrtefp): New.
13751         (vec_vsel): New.
13752         (vec_vslb): New.
13753         (vec_vslh): New.
13754         (vec_vslw): New.
13755         (vec_vsldoi): New.
13756         (vec_vsl): New.
13757         (vec_vslo): New.
13758         (vec_vspltb): New.
13759         (vec_vsplth): New.
13760         (vec_vspltw): New.
13761         (vec_vspltisb): New.
13762         (vec_vspltish): New.
13763         (vec_vspltisw): New.
13764         (vec_vsrb): New.
13765         (vec_vsrh): New.
13766         (vec_vsrw): New.
13767         (vec_vsrab): New.
13768         (vec_vsrah): New.
13769         (vec_vsraw): New.
13770         (vec_vsr): New.
13771         (vec_vsro): New.
13772         (vec_stvx): New.
13773         (vec_stvebx): New.
13774         (vec_stvehx): New.
13775         (vec_stvewx): New.
13776         (vec_stvxl): New.
13777         (vec_vsububm): New.
13778         (vec_vsubuhm): New.
13779         (vec_vsubuwm): New.
13780         (vec_vsubfp): New.
13781         (vec_vsubcuw): New.
13782         (vec_vsububs): New.
13783         (vec_vsubsbs): New.
13784         (vec_vsubuhs): New.
13785         (vec_vsubshs): New.
13786         (vec_vsubuws): New.
13787         (vec_vsubsws): New.
13788         (vec_vsum4ubs): New.
13789         (vec_vsum4sbs): New.
13790         (vec_vsum4shs): New.
13791         (vec_vsum2sws): New.
13792         (vec_vsumsws): New.
13793         (vec_vrfiz): New.
13794         (vec_vupkhsb): New.
13795         (vec_vupkhpx): New.
13796         (vec_vupkhsh): New.
13797         (vec_vupklsb): New.
13798         (vec_vupklpx): New.
13799         (vec_vupklsh): New.
13800         (vec_vxor): New.
13801
13802 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
13803
13804         PR c/5430
13805         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
13806         added literals from substracted literals.
13807         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
13808         (fold) [associate]: Preserve MINUS_EXPR if needed.
13809
13810 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
13811
13812         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
13813         are obsoleted.
13814
13815 2002-04-23  Tom Tromey  <tromey@redhat.com>
13816
13817         * gcc.c: Added --resource.  For PR java/6314.
13818
13819 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
13820
13821         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
13822         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
13823         these libraries.
13824
13825 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
13826
13827         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
13828
13829 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
13830
13831         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
13832         workaround.
13833         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
13834         (ix86_expand_clrstr): Fix typo.
13835         * loop.c (gen_load_of_final_value): New.
13836         (loop_givs_rescan, strength_reduce, check_dbra_loop):
13837         Use it.
13838
13839 2002-04-23  Roger Sayle  <roger@eyesopen.com>
13840
13841         * builtins.c (builtin_memset_gen_str): New function.
13842         (expand_builtin_memset): Optimize the case of constant length, but
13843         unknown value.
13844
13845 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
13846
13847         * config/rs6000/altivec.h (vec_step): Remove extraneous
13848         parentheses.
13849         (vec_ctu): Cast return.
13850
13851 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
13852
13853         PR target/6413
13854         * function.h: (struct function): Add profile_label_no field.
13855         (current_function_profile_label_no): Define.
13856         * function.c: (profile_label_no): New static var.
13857         (expand_function_start): Increment it, and copy to
13858         current_function_profile_label_no.
13859         * output.h (profile_label_no): Delete.
13860         * final.c (profile_label_no): Delete.
13861         (profile_function): Use current_function_profile_label_no.
13862         (final_end_function): Don't increment profile_label_no here.
13863         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
13864         profile_label_no with current_function_profile_label_no.
13865         * config/pa/pa.c (current_function_number): Delete.
13866         (pa_output_function_prologue): Don't output profile label here.
13867         (hppa_profile_hook): Use label_no param rather than
13868         current_function_number.
13869         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
13870         * config/pa/pa.h: .. here.
13871         (FUNCTION_PROFILER): Output profile label here.
13872
13873 2002-04-22  Eric Christopher  <echristo@redhat.com>
13874
13875         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
13876         patch of 2002-04-09 due to binutils issues.
13877         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
13878
13879 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
13880
13881         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
13882         constraint to 'o' for m=r and r=m alternatives.
13883         ("*movv8hi_internal1"): Same.
13884         ("*movv16qi_internal1"): Same.
13885         ("*movv4sf_internal1"): Same.
13886
13887 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
13888
13889         * rtl.h (RTX_FLAG): New macro.
13890         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
13891         * final.c (alter_subreg): Use macro to access rtx flag.
13892         * integrate.c (copy_rtx_and_substitute): Use new access macro.
13893         * print-rtl.c (print_rtx): Use new access macro.
13894
13895         * cse.c (insert): Check rtx code before accessing flag.
13896
13897         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
13898         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
13899         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
13900         convert_const_symbol_ref, make_canonical, make_alternative_compare,
13901         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
13902         simplify_test_exp, optimize_attrs, simplify_by_exploding,
13903         find_and_mark_used_attributes, unmark_used_attributes,
13904         add_values_to_cover, simplify_with_current_value,
13905         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
13906         copy_rtx_unchanging, main): Use new access macros.
13907
13908 2002-04-22  Tom Rix  <trix@redhat.com>
13909
13910         * expmed.c (init_expmed): Generate shifted constant once.
13911
13912 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
13913
13914         * c-lex.c (lex_charconst): Call convert to get constant in
13915         proper type; don't just smash the type field.
13916         Fixes PR c/6300.
13917
13918         * config.gcc: Add list of obsolete configurations.  Disallow
13919         building these without --enable-obsolete.
13920         * doc/install.texi: Document --enable-obsolete and obsoletion
13921         policy.  Mention obsoletion of individual targets in
13922         appropriate places.
13923
13924 2002-04-22  Richard Henderson  <rth@redhat.com>
13925
13926         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
13927
13928 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
13929
13930         PR f/6138.
13931         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
13932         (walk_fixup_memory_subreg): Likewise.
13933         (fixup_var_refs_insn): Adjust accordingly.
13934         (fixup_var_refs_1): Likewise.
13935
13936 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
13937
13938         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
13939         LIBPATH_ARCH64_SPEC): Define.
13940         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
13941         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
13942         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
13943         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
13944
13945 2002-04-22      Joel Sherrill <joel@OARcorp.com>
13946
13947         * gthr-rtems.h: Correct prototypes to remove warnings.
13948
13949 2002-04-22  Richard Henderson  <rth@redhat.com>
13950
13951         PR c/6344
13952         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
13953
13954         * gcse.c (free_insn_expr_list_list): New.
13955         (clear_modify_mem_tables): Use it.  Fix bit set usage.
13956         (canon_list_insert): Use EXPR_LISTs for expressions.
13957         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
13958
13959 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13960
13961         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
13962         file change and include code to _cpp_pop_buffer.
13963         * cpphash.h (struct pending_option): Predeclare.
13964         (struct cpp_reader): New member next_include_file.
13965         (_cpp_pop_file_buffer): Update.
13966         (_cpp_push_next_buffer): Update, rename.
13967         * cppinit.c (cpp_destroy): Free include chain and pending here.
13968         (cpp_finish_options): Simplify.
13969         (_cpp_push_next_buffer): Rename and clean up.
13970         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
13971         Clarify.
13972         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
13973
13974 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
13975
13976         * config/rs6000/altivec.h (vec_xor): Add variant for both args
13977         being vector signed int.
13978         (vec_andc): Same.
13979         (vec_xor): Add variant for both args being vector signed char.
13980         Remove redundant variant.
13981         (vec_andc): Same.
13982
13983 2002-04-21  David S. Miller  <davem@redhat.com>
13984
13985         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
13986         compare mode in output RTL.
13987
13988 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
13989
13990         * config/rs6000/rs6000.c (rs6000_override_options): Correct
13991         style and formatting of previous patch.
13992
13993 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
13994
13995         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
13996         flag_pic for ABI_AIX.
13997
13998 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13999
14000         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
14001         * cppfiles.c (read_include_file): Similarly.
14002         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
14003         uxstrdup ustrchr, ufputs): Similarly.
14004         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
14005         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
14006         cpp_ideq, parse_identifier, parse_number): Similarly.
14007         * cpplib.c (struct directive, dequote_string, D, run_directive,
14008         cpp_push_buffer): Similarly.
14009         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
14010         _cpp_create_definition, check_trad_stringification,
14011         cpp_macro_definition): Similarly.
14012
14013 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
14014
14015         * cppmacro.c (funlike_invocation_p): Don't step back
14016         over CPP_EOF.
14017
14018 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
14019
14020         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
14021         labelno.
14022
14023 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
14024
14025         * doc/invoke.texi: Remove Chill references.
14026         * doc/gcc.texi: Update last modified date.
14027
14028 2002-04-20  Kazu Hirata  <kazu@hxi.com>
14029
14030         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
14031         push and pop.  Replace add.l with add.w.
14032
14033 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
14034
14035         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
14036         multiply instructions for H8/300H case.
14037
14038 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
14039
14040         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
14041         Bum three instructions from each routine.
14042
14043 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14044
14045         * Makefile.in: Update.
14046         * decl.c (push_c_function_context, pop_c_function_context,
14047         mark_c_function_context): Rename for consistency.
14048         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
14049         * c-tree.h (push_c_function_context, pop_c_function_context,
14050         mark_c_function_context): Rename for consistency.
14051         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
14052         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
14053         * function.c (init_lang_status, save_lang_status,
14054         restore_lang_status, mark_lang_status, free_lang_status):
14055         Move to langhooks.h.
14056         (push_function_context_to, pop_function_context_from,
14057         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
14058         Update.
14059         * function.h (init_lang_status, save_lang_status,
14060         restore_lang_status, mark_lang_status, free_lang_status):
14061         Move to langhooks.h.
14062         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
14063         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14064         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
14065         LANG_HOOKS_FUNCTION_INITIALIZER): New.
14066         (LANG_HOOKS_INITIALIZER): Update.
14067         (lhd_do_nothing_f): New.
14068         * langhooks.h (struct lang_hooks_for_functions): New.
14069         (struct lang_hooks): New hooks.
14070         * langhooks.c (lhd_do_nothing_f): New.
14071 objc:
14072         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
14073         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
14074
14075 2002-04-19  David S. Miller  <davem@redhat.com>
14076
14077         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
14078         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
14079
14080 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
14081
14082         PR optimization/3756
14083         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
14084         x = ((int) y < 0) ? cst1 : cst2.
14085
14086 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
14087
14088         PR c/6358
14089         * function.c: Reapply patch for c/6358.
14090         (expand_function_end): Copy decl_rtl's mode, not
14091         current_function_return_rtx mode.
14092
14093 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
14094
14095         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
14096         targets.
14097
14098 2002-04-19  Tom Tromey  <tromey@redhat.com>
14099
14100         * doc/install.texi (Specific): Update status of Solaris 2.8.
14101         For PR libgcj/6158.
14102
14103 2002-04-19  Andreas Schwab  <schwab@suse.de>
14104
14105         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
14106         (PUT_REAL): Restore old definition.
14107
14108 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
14109             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14110
14111         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
14112         binutils 2.11.2 and higher generate smaller binaries than Sun's
14113         native tools.
14114
14115 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
14116
14117         PR c++/6352
14118         * toplev.c (rest_of_compilation): Do not defer functions for which
14119         TREE_SYMBOL_REFERENCED has already been set.
14120
14121 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
14122
14123         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
14124         alternative.
14125
14126 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14127
14128         * builtins.c: Include langhooks.h.
14129         (lang_type_promotes_to): Remove.
14130         (expand_builtin_va_arg): Use new hook.
14131         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
14132         (simple_type_promotes_to): Move to c-typeck.c.
14133         * c-common.h (simple_type_promotes_to): Remove.
14134         * c-decl.c (duplicate_decls, grokdeclarator): Update.
14135         * c-format.c: Include langhooks.h.
14136         (check_format_types): Update.
14137         * c-tree.h (c_type_promotes_to): New.
14138         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
14139         (type_lists_compatible_p): Update.
14140         * langhooks-def.h (lhd_type_promotes_to): New.
14141         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
14142         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
14143         * langhooks.c (lhd_type_promotes_to): New.
14144         * langhooks.h (struct lang_hooks_for_types): New hook.
14145         * tree.h (lang_type_promotes_to): Remove.
14146 objc:
14147         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
14148
14149 2002-04-18  Richard Henderson  <rth@redhat.com>
14150
14151         * function.c: Revert patch for c/6358.
14152
14153 2002-04-18  Richard Henderson  <rth@redhat.com>
14154
14155         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
14156         blocks.  Handle multiple references to the TRAP block.  Handle
14157         non-adjacent THEN and OTHER blocks.
14158
14159 2002-04-18  Richard Henderson  <rth@redhat.com>
14160
14161         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
14162         crash with no type for by-mode libcalls.
14163
14164         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
14165
14166 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
14167
14168         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
14169         __xtensa_nonlocal_goto): Use a syscall instructions to flush
14170         the register windows.
14171
14172 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
14173
14174         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
14175         appropriate.  Document need for extended precision even when
14176         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
14177         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
14178         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
14179         instead of relying on later syntax error when REAL_WIDTH > 5.
14180         * real.c: Define NE based only on whether or not we have a
14181         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
14182         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
14183         define GET_REAL and PUT_REAL as simple memcpy operations; no
14184         need to byteswap or round.
14185         Use #error instead of #ifdef-ing out the entire file, for
14186         prompt error detection.
14187
14188         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
14189
14190 2002-04-18  David S. Miller  <davem@redhat.com>
14191
14192         * config/sparc/sparc.h (BRANCH_COST): Define.
14193
14194         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
14195         does it.
14196
14197 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
14198
14199         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
14200         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
14201         propagate_block calls after relaxation loop using new variable
14202         stabilized_prop_flags.
14203
14204 2002-04-18  Richard Henderson  <rth@redhat.com>
14205
14206         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
14207         (ia64_va_arg): Expect variable sized types by reference.
14208         * config/ia64/ia64-protos.h: Update.
14209         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
14210         ia64_function_arg_pass_by_reference.
14211
14212 2002-04-18  Richard Henderson  <rth@redhat.com>
14213
14214         * ifcvt.c: Include except.h.
14215         (block_has_only_trap): Break out from find_cond_trap.
14216         (find_cond_trap): Use it.  Always delete the trap block.
14217         (merge_if_block): Allow then block null.  Be less simplistic about
14218         what insns can end a block.
14219         * Makefile.in (ifcvt.o): Depend on except.h.
14220
14221         * config/ia64/ia64.md (trap, conditional_trap): New.
14222
14223 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
14224
14225         PR c/6358
14226         * function.c (assign_parms): Assign hard current_function_return_rtx
14227         register here...
14228         (expand_function_end): ...not here.
14229
14230 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14231
14232         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
14233         * c-tree.h (c_incomplete_type_error): New.
14234         * c-typeck.c (require_complete_type, build_component_ref): Update.
14235         (incomplete_type_error): Rename.
14236         * langhooks-def.h (lhd_incomplete_type_error): New.
14237         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
14238         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
14239         * langhooks.c (lhd_incomplete_type_error): New.
14240         * langhooks.h (struct lang_hooks_for_types): New hook.
14241         * tree.c (size_in_bytes): Use new hook.
14242         * tree.h (incomplete_type_error): Remove.
14243 objc:
14244         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
14245
14246 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
14247
14248         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
14249         TARGET_FLOAT_FORMAT blocks.
14250
14251 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14252
14253         * doc/install.texi (Downloading the source): Do not mention Chill
14254         any longer, but mention Ada.
14255         (Configuration): Do not mention Chill any longer.
14256
14257 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
14258
14259         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
14260
14261 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
14262
14263         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
14264         in last patch.
14265
14266 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
14267
14268         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
14269         instead of unsigned_type.
14270
14271 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
14272
14273         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
14274         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
14275         later.
14276
14277 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
14278
14279         * attribs.c (vector_type_node_list): New static variable.
14280         (handle_vector_size_attribute): Use it to avoid generating a
14281         new type node each time we are called.
14282
14283         * combine.c (subst): Avoid trying to make a vector mode subreg of
14284         an integer constant.
14285         (gen_lowpart_for_combine): Likewise.
14286
14287 2002-04-18  Roger Sayle  <roger@eyesopen.com>
14288             Jakub Jelinek  <jakub@redhat.com>
14289
14290         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
14291         for integer constant c (if x has unsigned type or sign bit is not
14292         set in c).  This folds the zero/sign extension into the bit-wise and
14293         operation.
14294
14295 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
14296
14297         PR middle-end/6205
14298         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
14299         otherwise xorps.
14300
14301 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
14302
14303         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
14304
14305 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
14306
14307         * gcc.c (read_specs): Detect and fail if an attempt is made to
14308         rename a spec string to an already existing string.
14309
14310 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
14311
14312         * config/s390/s390.c (legitimize_pic_address): Do not generate
14313         illegal address constant without CONST.
14314
14315 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14316
14317         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
14318         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14319
14320 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
14321
14322         PR optimization/6305
14323         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
14324         to make sure previous reloads are taken into account.  Generate
14325         better code if one operand is an in-range immediate constant.
14326
14327 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
14328
14329         * doc/install.texi (Building): libgcj requires GNU make.
14330
14331 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
14332
14333         PR bootstrap/6315
14334         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
14335         even if hard quad and register is not floating.
14336         (movtf reg<-mem split): Disallow splitting if hard quad and
14337         register is floating.
14338         (movtf mem<-reg split): Likewise.
14339         * config/sparc/sparc.c (fp_register_operand): New predicate.
14340         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
14341
14342 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
14343
14344         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
14345         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
14346         (unprotoize.o): Ditto.  Build from protoize.c.  Define
14347         UNPROTOIZE on command line.
14348         * protoize.c: Include cppdefault.h.  Delete include_defaults.
14349         (in_system_include_dir): Use cpp_include_defaults (defined in
14350         cppdefault.o).
14351         * unprotoize.c: Delete file.
14352
14353 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
14354
14355         * config/rs6000/altivec.h (vec_ld): Add array variants.
14356         (vec_lde): Same.
14357         (vec_ldl): Same.
14358
14359 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
14360             Aldy Hernandez <aldyh@redhat.com>
14361
14362         * config/rs6000/altivec.h: Define __ALTIVEC__.
14363         (bool): New.
14364         (__pixel): New.
14365         (pixel): New.
14366         (vec_cfux): New.
14367         (vec_vmaddfp): New.
14368         (vec_vsldoi): New.
14369         Add parentheses to all macro arguments.
14370
14371 2002-04-16  Richard Henderson  <rth@redhat.com>
14372
14373         PR c++/6320
14374         * except.c (remove_eh_handler): Insert inner regions at beginning
14375         of sibling chain.  Refactor expressions.
14376
14377 2002-04-16  Richard Henderson  <rth@redhat.com>
14378
14379         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
14380         * config/sparc/sol2-gas-bi.h: New file.
14381         * config.gcc (sparc*-solaris): Add it as needed.
14382         * configure.in (AS_SPARC64_FLAG): Remove check.
14383         * config.in, configure: Regenerate.
14384
14385         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
14386
14387 2002-04-16  Richard Henderson  <rth@redhat.com>
14388
14389         * config/mips/mips.c (override_options): Don't override N32 for
14390         a 64-bit ISA.
14391
14392         PR 6202
14393         * config/mips/mips.md (can_delay): Split out of existing define_delays.
14394         (HILO_delay): Set can_delay false.
14395
14396 2002-04-16  Dale Johannesen <dalej@apple.com>
14397
14398         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
14399         instruction addresses.
14400         (rs6000_output_function_epilogue): Likewise.
14401
14402 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
14403
14404         * c-parse.in (poplevel, compstmt_start,
14405         compstmt_primary_start): Add ending ';', in accordance
14406         with POSIX.
14407
14408 2002-04-16  Richard Henderson  <rth@redhat.com>
14409
14410         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
14411         Adjust tm_file order to get TARGET_DEFAULT set properly.
14412         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
14413         * doc/install.texi (sparc-solaris): Update.
14414
14415 2002-04-16  Dale Johannesen <dalej@apple.com>
14416
14417         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
14418         comparison operands do not match each other or if modes of
14419         conditions do not match result.
14420
14421 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
14422
14423         PR target/6305
14424         * config/s390/s390.md (mulsidi3): Set both subregs of the
14425         multiword register.
14426
14427 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
14428
14429         * config/rs6000/altivec.h (vec_addc): Type check.
14430
14431 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
14432
14433         PR middle-end/6279
14434         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
14435
14436         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
14437
14438 2002-04-15  Richard Henderson  <rth@redhat.com>
14439
14440         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
14441         call_really_used_regs too.
14442
14443 2002-04-15  Richard Henderson  <rth@redhat.com>
14444
14445         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
14446
14447 2002-04-15  David S. Miller  <davem@redhat.com>
14448
14449         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
14450         as being CLOBBERed.
14451
14452 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
14453
14454         PR c/6290
14455         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
14456         CONST_VECTOR is { 0, ... 0 }.
14457
14458 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
14459
14460         * doc/install.texi (Installing GCC: Configuration): Clarify
14461         the only supported ways to configure gcc.
14462
14463 2002-04-15  Roland McGrath  <roland@frob.com>
14464
14465         * config.gcc (alpha*-*-gnu*): New target configuration.
14466         * config/alpha/gnu.h: New file for it.
14467         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
14468
14469 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
14470
14471         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
14472         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
14473         * tree.h (expand_start_stmt_expr): Update prototype.
14474         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
14475         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
14476         on the STMT_EXPR created for the inline function.
14477
14478 2002-04-15  Richard Henderson  <rth@redhat.com>
14479
14480         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
14481         config/i386/linux-aout.h, config/i386/linux-oldld.h,
14482         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
14483         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
14484         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
14485         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
14486         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
14487         Define __gnu_linux__, not gnu_linux.
14488         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
14489
14490 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
14491
14492         Remove Chill front end.
14493         * gcc.c (default_compilers): Remove Chill entries.
14494         * ch: Remove directory.
14495         * doc/frontends.texi: Remove information about Chill.
14496         * doc/sourcebuild.texi: Likewise.
14497         * doc/standards.texi: Likewise.
14498
14499 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
14500
14501         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
14502         (LONGLONG_STANDALONE): Define.
14503
14504 2002-04-15  David S. Miller  <davem@redhat.com>
14505
14506         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
14507         Call emit_library_call with LCT_NORMAL.
14508         (sparc_initialize_trampoline): Use LCT_foo instead of
14509         magic constant in emit_library_call invocations.
14510         (sparc64_initialize_trampoline): Likewise.
14511         (sparc_profile_hook): Likewise.
14512         * config/sparc/sparc.md: Likewise.
14513
14514         * config/sparc/sparc.c (sparc_extra_constraint_check):
14515         Fix type of argument 'c'.
14516         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
14517         Likewise.
14518
14519 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14520
14521         * diagnostic.h (output_buffer_state): Redefine.
14522         (output_format_decoder): New macro.
14523         (output_prefixing_rule): Likewise.
14524         (output_line_cutoff): Likewise.
14525         (diagnostic_format_decoder): Adjust.
14526         (diagnostic_prefixing_rule): Likewise.
14527         (diagnostic_line_cutoff): Likewise.
14528         (diagnostic_state): Likewise.
14529         (diagnostic_kind_count): Likewise.
14530         (diagnostic_buffer): Now a macro.
14531
14532         * diagnostic.c (diagnostic_buffer): Remove definition.
14533         (output_is_line_wrapping): Adjust.
14534         (set_real_maximum_length): Likewise.
14535         (output_set_maximum_length): Likewise.
14536         (init_output_buffer): Likewise.
14537         (lhd_print_error_function): Likewise.
14538         (output_do_verbatim): Likewise.
14539
14540 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14541
14542         * cpperror.c (print_location): Don't print include chain
14543         if line == 0.
14544         (cpp_begin_message): Update to use DL_ macros.
14545         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
14546         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
14547         cpp_notice, cpp_notice_from_errno): Remove.
14548         (cpp_error, cpp_error_with_line): Update to take a diagnostic
14549         level.
14550         (cpp_errno): New.
14551         * cppexp.c (CPP_ICE): Remove.
14552         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
14553         lex, integer_overflow, _cpp_parse_expr): Update.
14554         * cppfiles.c (read_include_file, find_include_file,
14555         handle_missing_header, _cpp_read_file, remap_filename): Update.
14556         * cpphash.h (enum error_type): Remove.
14557         (_cpp_begin_message): Update.
14558         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
14559         cpp_handle_option, cpp_post_options): Update.
14560         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
14561         skip_whitespace, parse_identifier, parse_slow, parse_string,
14562         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
14563         cpp_interpret_charconst): Update.
14564         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
14565         lex_macro_node, do_undef, glue_header_name, parse_include,
14566         do_include_common, read_flag, do_line, do_linemarker, do_ident,
14567         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
14568         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
14569         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
14570         _cpp_pop_buffer, do_diagnostic): Update.
14571         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
14572         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
14573         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
14574         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
14575         cpp_notice, cpp_notice_from_errno): Remove.
14576         (cpp_error, cpp_error_with_line): Update to take a diagnostic
14577         level.
14578         (cpp_errno): New.
14579         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
14580         collect_args, enter_macro_context, save_parameter, parse_params,
14581         _cpp_create_definition, check_trad_stringification,
14582         cpp_macro_definition): Update.
14583         * cppmain.c (cpp_preprocess_file): Update.
14584         * fix-header.c (read_scan_file): Update.
14585
14586 2002-04-14  Andreas Schwab  <schwab@suse.de>
14587
14588         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
14589
14590 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14591
14592         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
14593
14594 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
14595
14596         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
14597         not gnu_hurd.
14598
14599 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
14600
14601         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
14602
14603 2002-04-13      Joel Sherrill <joel@OARcorp.com>
14604
14605         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
14606         sparc-elf and sparc-rtems targets.
14607
14608 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
14609
14610         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
14611         defined, and __gnu_hurd__ wherever __GNU__ is defined.
14612         * arm/linux-elf.h: Likewise.
14613         * cris/aout.h: Likewise.
14614         * cris/linux.h: Likewise.
14615         * i370/linux.h: Likewise.
14616         * i386/gnu.h: Likewise.
14617         * i386/linux-aout.h: Likewise.
14618         * i386/linux-oldld.h: Likewise.
14619         * i386/linux.h: Likewise.
14620         * i386/linux64.h: Likewise.
14621         * ia64/linux.h: Likewise.
14622         * m68k/linux-aout.h: Likewise.
14623         * m68k/linux.h: Likewise.
14624         * mips/linux.h: Likewise.
14625         * pa/pa-linux.h: Likewise.
14626         * pj/linux.h: Likewise.
14627         * rs6000/sysv4.h: Likewise.
14628         * s390/linux.h: Likewise.
14629         * sh/linux.h: Likewise.
14630         * sparc/linux-aout.h: Likewise.
14631         * sparc/linux.h: Likewise.
14632         * sparc/linux64.h: Likewise.
14633         * xtensa/linux.h: Likewise.
14634
14635 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
14636
14637         * stmt.c (check_unique_operand_names): Expect operand names to
14638         be strings rather than identifiers.  Use simple_cst_equal to
14639         compare them.
14640         (resolve_operand_name_1): Make same identifier to string change here.
14641         * c-parse.in (asm_operand): Convert a named operand into a string.
14642         * cp/parse.y (asm_operand): Likewise.
14643
14644 2002-04-13  Andreas Schwab  <schwab@suse.de>
14645
14646         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
14647
14648 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
14649
14650         Revert these changes:
14651
14652         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
14653
14654         PR c++/5571
14655         * stor-layout.c (layout_decl): Reset the RTL for the decl.
14656
14657 2002-04-12  Richard Henderson  <rth@redhat.com>
14658
14659         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
14660         (sparc*-*-solaris): Clean up header files.
14661         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
14662         and plan on generating 64-bit code.
14663         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
14664         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
14665         * config/sparc/sol2-sld-64.h: Rename ...
14666         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
14667         for AS_SPARC64_FLAG not defined.
14668         * config/sparc/sol2-gld-bi.h: New.
14669         * config/sparc/sol2-sld.h: Remove.
14670         * config/sparc/sol26-sld.h: New.
14671         * config/sparc/sol2.h: Tidy comments.
14672         * doc/install.texi: Document sparc-solaris configury changes.
14673
14674 2002-04-12  Richard Henderson  <rth@redhat.com>
14675
14676         * recog.c (offsettable_address_p): Match the logic in adjust_address.
14677
14678         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
14679         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
14680
14681 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14682
14683         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
14684
14685 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
14686
14687         * pa.c (pa_can_combine_p): Call extract_insn before calling
14688         constrain_operands.
14689
14690 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
14691
14692         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
14693         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
14694         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
14695         (CPP_PREDEFINES): Handle __declspec.
14696         * config/i386/t-interix (USER_H): Remove.
14697
14698 2002-04-12  DJ Delorie  <dj@redhat.com>
14699
14700         * integrate.c (compare_blocks): Make comparisons safe for when
14701         sizeof(int) < sizeof(char *).
14702         (find_block): Likewise.
14703
14704 2002-04-12  Jan Hubicka  <jh@suse.cz>
14705             David Edelsohn  <edelsohn@gnu.org>
14706
14707         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
14708         registers.
14709         (symbol_ref_operand): New.
14710         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
14711         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
14712
14713 2002-04-12  Andreas Schwab  <schwab@suse.de>
14714
14715         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
14716         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
14717         overrides the definition in config/svr4.h.
14718
14719 2002-04-12      Eric Norum <eric.norum@usask.ca>
14720
14721         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
14722         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
14723         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
14724         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
14725         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
14726         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
14727         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
14728         definitions to config/rtems.h and make the targets more similar.
14729
14730 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14731
14732         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
14733         POINTERS_EXTEND_UNSIGNED.
14734         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
14735         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
14736
14737         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
14738         not specified.
14739
14740 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
14741
14742         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
14743         depends on TARGET_SHMEDIA, not TARGET_SH5.
14744
14745 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
14746
14747         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
14748         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
14749
14750 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
14751
14752         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
14753         no r0 clobber.
14754
14755 2002-04-12  Andreas Schwab  <schwab@suse.de>
14756
14757         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
14758
14759 2002-04-12  Richard Henderson  <rth@redhat.com>
14760
14761         PR bootstrap/4191
14762         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
14763
14764         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
14765         modes spanning multiple hard regs.
14766
14767         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
14768
14769 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14770
14771         * pa.c (pa_output_function_prologue): Don't accumulate the total
14772         number of code bytes when using TARGET_64BIT, or gas, SOM and not
14773         the portable runtime.
14774         (output_deferred_plabels): Handle 64bit plabels.
14775         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
14776         generating pic code using the GAS assembler for object formats that
14777         are not SOM (ie., ELF32 and ELF64).
14778         (output_millicode_call): Check attribute type if attribute length is 28.
14779         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
14780         dbr_sequence_length once.
14781         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
14782         dbr_sequence_length once.
14783         * pa.h (TARGET_SOM): Define if not defined.
14784         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
14785         with GAS and not SOM.
14786         (jump, call_internal_reg, call_value_internal_reg): Likewise.
14787         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
14788
14789 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
14790
14791         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
14792         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
14793         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
14794         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
14795         elfos.h and dbxelf.h values are fine now.
14796         * config/i386/freebsd.h, config/alpha/freebsd.h
14797         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
14798
14799 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
14800
14801         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
14802         or set Acpu or Amachine.  Reformat.
14803         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14804         define.
14805         (LINK_SPEC): Do not need to undef.
14806         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
14807         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
14808         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14809         define.
14810         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
14811         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
14812         (LINK_SPEC): Do not need to undef.
14813         (DONT_USE_BUILTIN_SETJMP): Do not define.
14814         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
14815         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
14816         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
14817         Remove trailing spaces.
14818         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
14819         __ELF__, or set Acpu or Amachine.  Reformat.
14820         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14821         define.
14822
14823 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
14824
14825         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
14826         all other *-*-freebsd* targets.
14827
14828 2002-04-11  Richard Henderson  <rth@redhat.com>
14829
14830         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
14831
14832 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
14833
14834         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
14835         Include {cpu}/{cpu}.h thru tm_file.
14836         (alpha*-*-linux*ecoff): Remove target.
14837         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
14838         (LINK_SPEC): Remove, is not OS independent.
14839         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
14840         (LINK_SPEC): Do not need to #undef any longer.
14841         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
14842         any longer.
14843         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
14844         __ELF__.
14845         (LINK_SPEC): Moved here from alpha/elf.h.
14846         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
14847         SUB_CPP_PREDEFINES.
14848         * config/alpha/linux-ecoff.h: Remove.
14849         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
14850         (CPP_SPEC): Define _POSIX_SOURCE as needed.
14851         (CPP_SUBTARGET_SPEC): Do not define.
14852         (LINK_SPEC): Do not need to #undef any longer.
14853         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
14854         * config/alpha/vms.h: Likewise.
14855
14856 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
14857
14858         * doc/extend.texi: Remove old claim that typedefs cannot have
14859         an alignment attribute.
14860
14861 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
14862
14863         PR optimization/6177
14864         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
14865         bitpos is 0 and bitsize CONCAT size.
14866
14867 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
14868
14869         PR c/6223
14870         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
14871
14872 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
14873
14874         * config/alpha/freebsd.h: Minor reformatting.
14875         (CPP_SPEC): Define ELF and add cpp_subtarget.
14876         (ASM_SPEC): No longer needed.
14877
14878 2002-04-11  Richard Henderson  <rth@redhat.com>
14879
14880         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
14881         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
14882         (dimode mem/zero splitter): New.
14883
14884 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
14885
14886         * config/cris/cris.c (cris_override_options): Tweak error message
14887         for PIC not implemented.
14888
14889         * config/cris/cris.h: Tweak comments related to parameter-passing.
14890
14891         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
14892
14893 2002-04-10  Richard Henderson  <rth@redhat.com>
14894
14895         * except.c (add_ehl_entry): Allow duplicates after landing pad
14896         creation.
14897
14898 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
14899
14900         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
14901
14902 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
14903
14904         * c-decl.c (c_init_decl_processing): Move generation of
14905         decls for g77_integer_type_node and friends from here ...
14906         * c-common.c (c_common_nodes_and_builtins): ... to here.
14907
14908 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
14909
14910         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
14911         is only used as frame pointer when frame_pointer_needed is true.
14912
14913 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
14914
14915         PR target/817
14916         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
14917         for the fact that the pool entry uses two words.
14918         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
14919         1k bytes.
14920         (movdf_soft_insn): Similarly.
14921         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
14922         for the fact that the pool entry uses three words.
14923
14924 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
14925
14926         * config/mips/mips.c (mips_va_arg): When using the struct version
14927         of the EABI va_list, allow arguments in the register save area to
14928         take up less room than a stack argument.
14929
14930 2002-04-10  Richard Henderson  <rth@redhat.com>
14931
14932         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
14933         if EXPAND_INITIALIZER.
14934
14935 2002-04-09  Richard Henderson  <rth@redhat.com>
14936
14937         * config/alpha/alpha.md (movdi_er_maybe_g): New.
14938         * config/alpha/alpha.c (alpha_expand_mov): Use it.
14939
14940 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
14941
14942         PR optimization/6233
14943         * rtlanal.c (pure_call_p): New function.
14944         * rtl.h (pure_call_p): Declare.
14945         * loop.c (prescan_loop): Use it to set has_nonconst_call.
14946         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
14947
14948 2002-04-09  Eric Christopher  <echristo@redhat.com>
14949
14950         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
14951         information to .comm directive.
14952
14953 2002-04-09  Richard Henderson  <rth@redhat.com>
14954
14955         PR c/5078
14956         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
14957
14958 2002-04-09  Richard Henderson  <rth@redhat.com>
14959
14960         * basic-block.h (flow_delete_block_noexpunge): Declare.
14961         (expunge_block_nocompact): Declare.
14962         * cfg.c (expunge_block_nocompact): Split out from ...
14963         (expunge_block): ... here.
14964         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
14965         (flow_delete_block_noexpunge): Split out from ...
14966         (flow_delete_block): ... here.
14967         * cfgcleanup.c (delete_unreachable_blocks): Compact while
14968         removing dead blocks.
14969         * except.c (exception_handler_labels): Remove.
14970         (exception_handler_label_map): New.
14971         (struct eh_region): Add aka member.
14972         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
14973         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
14974         (for_each_eh_label, for_each_eh_label_1): New.
14975         (init_eh): Register exception_handler_label_map.
14976         (free_eh_status): Use free_region.
14977         (find_exception_handler_labels): Use the map, not the list.
14978         (remove_exception_handler_label): Likewise.
14979         (maybe_remove_eh_handler): Likewise.
14980         (remove_eh_handler): Use the region aka bitmap.
14981         * except.h (exception_handler_labels): Remove.
14982         (for_each_eh_label): Declare.
14983         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
14984         * loop.c (invalidate_loops_containing_label): New.
14985         (find_and_verify_loops): Use it.  Use for_each_eh_label.
14986         * sched-rgn.c (is_cfg_nonregular): Use
14987         current_function_has_exception_handlers.
14988
14989 2002-04-09  Richard Henderson  <rth@redhat.com>
14990
14991         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
14992         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
14993         Do not return changed status.
14994         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
14995         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
14996         New functions that do return changed status.
14997         * sbitmap.h: Update decls.
14998         * gcse.c, lcm.c: Use _cg functions as needed.
14999
15000 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
15001
15002         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
15003         (sh64-*-elf*, sh-*-rtemself*): Likewise.
15004         * config/sh/embed_bb.c: New file.
15005         * config/sh/embed-elf.h: New file.
15006         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
15007         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
15008         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
15009         __PTRDIFF_TYPE__ .
15010         (SUBTARGET_CPP_PTR_SPEC): Don't define.
15011         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
15012         Add subtarget_asm_endian_spec.
15013         (ASM_SPEC): Use subtarget_asm_endian_spec.
15014         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
15015         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
15016         (WCHAR_UNSIGNED): Define.
15017         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
15018         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
15019         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
15020         Fix value.
15021         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
15022         (sh_adjust_cost): Likewise.
15023         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
15024         __PTRDIFF_TYPE__ .
15025         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
15026         (WCHAR_TYPE_SIZE): Likewise.
15027         (ASM_SPEC): Use subtarget_asm_endian_spec.
15028         (SH_ELF_WCHAR_TYPE): #undef/ #define.
15029         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
15030         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
15031         (MAX_WCHAR_TYPE_SIZE): Don't #define .
15032         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
15033         (USER_LABEL_PREFIX): Don't #undef /#define .
15034         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
15035         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
15036         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
15037         (ASM_SPEC): Likewise.
15038         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
15039         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
15040         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
15041         (LIB2FUNCS_EXTRA): Define.
15042         * t-sh64 (LIB2FUNCS_EXTRA): Define.
15043         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
15044         (LIB1ASMFUNCS_CACHE): Define.
15045         (LIB2FUNCS_EXTRA): Redefine empty.
15046
15047 2002-04-08  Richard Henderson  <rth@redhat.com>
15048
15049         * reorg.c (get_branch_condition): Use reversed_comparison_code.
15050
15051 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15052
15053         * config/m68hc11/larith.asm (__map_data_section): Fix condition
15054         and optimize for size.
15055         (__do_global_ctors): Fix pointer comparison.
15056         (__do_global_dtors): Likewise.
15057
15058 2002-04-09  David S. Miller  <davem@redhat.com>
15059
15060         * config/sparc/sparc.c (sparc_extra_constraint_check): New
15061         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
15062         allow reloading pseudos.
15063         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
15064         * config/sparc/sparc-protos.h: Declare it.
15065
15066         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
15067         unsigned comparison warning.
15068         (output_restore_regs): Mark leaf_function as unused.
15069
15070 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15071
15072         * expr.c (is_aligning_offset): New function.
15073         (expand_expr, case COMPONENT_EXPR): Call it.
15074
15075 2002-04-08  David S. Miller  <davem@redhat.com>
15076
15077         PR target/6082
15078         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
15079
15080         Make init_priority work on Sparc when using GNU ld.
15081         * config/sparc/linux.h, config/sparc/linux64.h,
15082         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
15083         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
15084         * config/sparc/sol2-gld.h: New file to do the same.
15085         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
15086         sparc/sol2-gld.h to tm_file.
15087
15088         PR optimization/4328
15089         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
15090         * doc/md.texi: Document it.
15091         * config/sparc/sparc.md (movdi_insn_sp64_novis,
15092         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
15093         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
15094         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
15095         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
15096
15097 2002-04-08  Andreas Jaeger  <aj@suse.de>
15098
15099         * stmt.c (expand_asm_operands): Revert last patch from Richard
15100         Henderson.
15101
15102 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15103
15104         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
15105         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
15106
15107 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15108
15109         * doc/contrib.texi (Contributors): Add David O'Brien.
15110
15111 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
15112
15113         * configure.in (auto-build.h): Use target_alias and build_alias
15114         when running configure.
15115         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
15116         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
15117         * configure: Regenerate.
15118
15119 2002-04-07  David S. Miller  <davem@redhat.com>
15120
15121         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
15122
15123 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15124
15125         PR 5933
15126         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
15127         generating 32-bit pic code.
15128
15129 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
15130
15131         * cppinit.c (cpp_create_reader): Initialize
15132         discard_comments_in_macro_exp.
15133         (COMMAND_LINE_OPTIONS): Add "-CC" option.
15134         (cpp_handle_option): Handle "-CC" option.
15135         * cpplex.c (save_comment): If saving a C++ comment in
15136         a directive, convert it to a C comment.
15137         (_cpp_lex_direct): Pass second comment start character to
15138         save_comment to indicate comment type.
15139         * cpplib.c (_cpp_handle_directive): If processing
15140         a "#define" directive and discard_comments_in_macro_exp
15141         is false,  re-enable saving of comments.
15142         (lex_macro_node): If discard_comments_in_macro_exp is false,
15143         discard any comments before the macro identifier.
15144         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
15145         member.
15146         * cppmacro.c (cpp_get_token): If expanding a macro while
15147         processing a directive, discard any comments we might encounter.
15148         (parse_params): If discard_comments_in_macro_exp is false,
15149         ignore comments in the macro parameter list.
15150         * gcc.c (cpp_unique_options): Add "-CC" option.
15151         (option_map): Map "--comments-in-macros" to "-CC".
15152         * doc/cppopts.texi: Document "-CC" option.
15153         * f/lang-specs.h: Add "-CC" option.
15154         * testsuite/gcc.dg/cpp/maccom1.c: New test.
15155         * testsuite/gcc.dg/cpp/maccom2.c: New test.
15156         * testsuite/gcc.dg/cpp/maccom3.c: New test.
15157         * testsuite/gcc.dg/cpp/maccom4.c: New test.
15158         * testsuite/gcc.dg/cpp/maccom5.c: New test.
15159         * testsuite/gcc.dg/cpp/maccom6.c: New test.
15160
15161 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15162
15163         PR middle-end/6180
15164         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
15165
15166 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
15167
15168         PR c++/5571
15169         * stor-layout.c (layout_decl): Reset the RTL for the decl.
15170
15171         PR opt/5120
15172         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
15173         RTX_UNCHANGING_P for the functions arguments when a tail call
15174         is made.
15175
15176 2002-04-06  Jason Merrill  <jason@redhat.com>
15177
15178         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
15179         (parse_options_and_default_flags): Set them appropriately.
15180         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
15181
15182 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
15183
15184         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
15185         here.
15186
15187         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
15188         semicolon.
15189
15190         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
15191         types come in by-reference.  Fix typo in comment.
15192
15193 2002-04-05  David S. Miller  <davem@redhat.com>
15194
15195         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
15196         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
15197         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
15198         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
15199
15200 2002-04-05  David S. Miller  <davem@redhat.com>
15201
15202         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
15203         are not going to emit return instructions, emit at least a nop
15204         for the sake of sane backtraces.
15205
15206 2002-04-05  Richard Henderson  <rth@redhat.com>
15207
15208         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
15209
15210 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
15211
15212         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
15213
15214 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
15215
15216         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
15217         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
15218         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
15219
15220 2002-04-05  Andreas Schwab  <schwab@suse.de>
15221
15222         * c-convert.c: Include c-common.h.
15223         * Makefile.in (c-convert.o): Updated.
15224
15225 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
15226
15227         * mklibgcc.in: Use separate libgcc.map for each multilib.
15228         * Makefile.in (distclean): Don't remove libgcc.map here.
15229
15230 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
15231
15232         * Makefile.in (s-mlib): Handle --disable-multilib by separate
15233         genmultilib invocation.
15234
15235 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
15236
15237         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
15238         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
15239         to num_gprs for symmetry.
15240         * config/mips/mips.c: Adjust accordingly.
15241
15242 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15243
15244         * c-common.c (truthvalue_conversion): Rename, update.
15245         * c-common.h (c_common_truthvalue_conversion): New.
15246         * c-convert.c (convert): Update.
15247         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
15248         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
15249         * c-typeck.c (build_binary_op, build_unary_op,
15250         build_conditional_expr): Update.
15251         * fold-const.c (constant_boolean_node, fold): Use langhook.
15252         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
15253         * langhooks.h (struct lang_hooks): New hook.
15254         * stmt.c (expand_decl_cleanup): Use langhook.
15255         * tree.h (truthvalue_conversion): Remove.
15256 objc:
15257         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
15258
15259 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
15260
15261         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
15262         Add rules to make null object file.
15263
15264 2002-04-04  Jim Blandy  <jimb@redhat.com>
15265
15266         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
15267         macro formal parameter names.
15268
15269 2002-04-04  David S. Miller  <davem@redhat.com>
15270
15271         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
15272
15273 2002-04-04  Richard Henderson  <rth@redhat.com>
15274
15275         PR middle-end/5099
15276         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
15277         Support copies into and out of memory.  Don't accept allows_reg
15278         and allows_mem as gospel.
15279
15280 2002-04-04  Richard Henderson  <rth@redhat.com>
15281
15282         PR opt/6165
15283         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
15284         (write_dependence_p): Likewise.
15285
15286 2002-04-04  Richard Henderson  <rth@redhat.com>
15287
15288         * predict.c (estimate_bb_frequencies): Do frequency calculation
15289         with a volatile temporary.
15290
15291 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
15292
15293         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
15294
15295 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
15296
15297         PR c++/6119
15298         * final.c (final_start_function): Don't bump profile_label_no here...
15299         (final_end_function): ...but here.
15300
15301 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
15302
15303         * config/sparc/sparc.md (pic): New attribute.
15304         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
15305         into stack slots.
15306         (split after do_builtin_setjmp_setup): New.
15307
15308 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
15309
15310         PR fortran/6106
15311         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
15312         change.
15313
15314 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
15315
15316         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
15317         UNITS_PER_WORD for zero sized aggregates.
15318
15319 2002-04-03  David S. Miller  <davem@redhat.com>
15320
15321         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
15322         one-character spec for this, just use %(link_gcc_c_sequence).
15323
15324 2002-04-03  David S. Miller  <davem@redhat.com>
15325
15326         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
15327         handling.
15328
15329 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15330
15331         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
15332         (DWARF_FRAME_RETURN_COLUMN): Move.
15333         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15334         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
15335         * pa.c (except.h, predict.h): Include.
15336         (FRP): Delete.
15337         (store_reg_modify, set_reg_plus_d): Revise prototypes.
15338         (output_ascii): Add cast.
15339         (store_reg_modify): Revise to add frame notes.
15340         (set_reg_plus_d): Likewise.
15341         (compute_frame_size): Include space for eh data registers in frame if
15342         the current function calls eh_return.
15343         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
15344         function calls eh_return.  Save eh data registers if the current
15345         function calls eh_return.  Fix code to add frame notes.  Emit
15346         blockage to prevent insns with frame notes being scheduled in the
15347         delay slot of calls.
15348         (hppa_expand_epilogue): Restore eh data registers and do final stack
15349         adjustment if the current function calls eh_return.  Don't add frame
15350         notes.
15351         (output_call): Revise for change in length of call insn.  Don't do
15352         return pointer adjustment for an unconditional jump in the delay slot
15353         of a call when using frame notes.
15354         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
15355         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
15356         (ARG_POINTER_CFA_OFFSET): Define.
15357         * pa.md (return_external_pic): New pattern.
15358         (prologue): Correct formatting.  Use return_external_pic if current
15359         function calls eh_return.
15360         (call_internal_symref, call_value_internal_symref,
15361         sibcall_internal_symref, sibcall_value_internal_symref): Change default
15362         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
15363         respectively.
15364         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
15365
15366         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
15367         list of targets to check using "nop" insn.
15368         * configure: Rebuilt.
15369
15370 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
15371
15372         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
15373
15374 2002-04-03  David S. Miller  <davem@redhat.com>
15375
15376         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
15377         library sequence passed to the linker.
15378         (LINK_COMMAND_SPEC): Use it.
15379         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
15380         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
15381         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15382
15383 2002-04-03  Jason Merrill  <jason@redhat.com>
15384
15385         * except.c (struct eh_status): Remove protect_list.
15386         (begin_protect_partials, end_protect_partials): Remove.
15387         (add_partial_entry): Remove.
15388         * except.h: Remove prototypes.
15389
15390         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
15391         expand_decl_cleanup_eh.
15392
15393         PR c++/5636
15394         * tree.h (CLEANUP_EH_ONLY): New macro.
15395         * stmt.c (expand_decl_cleanup_eh): New fn.
15396         (expand_cleanups): Check CLEANUP_EH_ONLY.
15397         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
15398         Use expand_decl_cleanup_eh.
15399         (expand_stmt): Adjust.
15400         * c-common.h: Adjust prototype.
15401
15402 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
15403
15404         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
15405         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
15406         (cris_target_asm_function_epilogue): Ditto.
15407         (cris_initial_frame_pointer_offset): Ditto.
15408         (cris_simple_epilogue): Ditto.
15409         (cris_expand_builtin_va_arg): Variable-size types come in
15410         by-reference.
15411
15412 2002-04-03  David S. Miller  <davem@redhat.com>
15413
15414         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
15415         little-endian.
15416         (set_fast_math): Correct 'fsr' type.
15417
15418 2002-04-03  Richard Henderson  <rth@redhat.com>
15419
15420         PR opt/3569
15421         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
15422         * toplev.c (check_global_declarations): Use it.
15423         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
15424         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15425         (LANG_HOOKS_DECLS): Add it.
15426         * langhooks.c (lhd_warn_unused_global_decl): New.
15427         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15428         * c-objc-common.c (c_warn_unused_global_decl): New.
15429         * c-tree.h (c_warn_unused_global_decl): Declare.
15430         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15431
15432 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
15433
15434         * langhooks-def.h (lhd_set_decl_assembler_name,
15435         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
15436         (LANG_HOOKS_INITIALIZER): Update.
15437         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
15438         * langhooks.h (struct lang_hooks): New hook.
15439         * tree.c (set_decl_assembler_name): Move to langhooks.c.
15440         (lang_set_decl_assembler_name): Remove.
15441         (init_obstacks): Don't set hook.
15442         (decl_assembler_name): New function.
15443         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
15444         (decl_assembler_name): New.
15445         (lang_set_decl_assembler_name): Remove.
15446
15447 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
15448
15449         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
15450         works properly with .hidden symbols.
15451         * configure: Rebuilt.
15452         * config.in: Rebuilt.
15453         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
15454         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
15455         properly with .hidden symbols.
15456
15457 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
15458
15459         PR middle-end/6102
15460         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
15461         USE argument.
15462
15463 2002-04-03  Richard Henderson  <rth@redhat.com>
15464
15465         PR opt/4120
15466         * sched-rgn.c (sets_likely_spilled): New.
15467         (sets_likely_spilled_1): New.
15468         (add_branch_dependences): Use it.
15469
15470 2002-04-02  Richard Henderson  <rth@redhat.com>
15471
15472         PR opt/4311
15473         * loop.h (LOOP_FIRST_PASS): New.
15474         * loop.c (strength_reduce): Mind it when deciding to unroll.
15475         * toplev.c (rest_of_compilation): Set it.
15476
15477 2002-04-02  David S. Miller  <davem@redhat.com>
15478
15479         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
15480         mems_ok_for_ldd_peep when the order of the loads being examined
15481         is reversed.
15482         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
15483         existing comment to increase comprehension of this situation.
15484
15485 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
15486
15487         * config/sh/sh.md: Don't use union real_extract.
15488
15489 2002-04-02  Richard Henderson  <rth@redhat.com>
15490
15491         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
15492
15493 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
15494
15495         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
15496         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
15497         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
15498         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
15499         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
15500         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
15501         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
15502         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
15503         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
15504         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
15505         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
15506         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
15507         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
15508         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
15509         Include as many configury headers via tm_file as possible.  This
15510         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
15511         * config/openbsd-oldgas.h: New file.
15512         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
15513         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
15514         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
15515         config/i386/i386-coff.h, config/i386/i386-interix.h,
15516         config/i386/iscdbx.h, config/i386/linux-aout.h,
15517         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
15518         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
15519         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
15520         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
15521         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
15522         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
15523         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
15524         config/i386/vxi386.h: Do not directly include configury headers.
15525         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
15526         Directly include configury headers that are no longer automatically
15527         included by the above headers.
15528         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
15529         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
15530         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
15531         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
15532         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
15533         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
15534         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
15535         (TARGET_VERSION): Define.
15536         * config/i386/beos-elf.h, config/i386/freebsd.h,
15537         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
15538         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
15539         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
15540         config/i386/sco5.h, config/i386/sysv4.h
15541         (TARGET_VERSION): Do not need to protect.
15542         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
15543         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
15544         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
15545         config/i386/i386-interix.h, config/i386/linux-aout.h,
15546         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
15547         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
15548         (YES_UNDERSCORES): Do not define - not needed.
15549         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
15550         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
15551         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
15552         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
15553         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
15554         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
15555         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
15556         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
15557
15558 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
15559             Richard Henderson  <rth@redhat.com>
15560
15561         PR c/5484
15562         * function.c (assign_temp): Accept either type or decl argument.
15563         Detect variables whose size is too large to fit into an integer.
15564         * stmt.c (expand_decl): Pass the decl, not the type.
15565
15566 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
15567
15568         * protoize.c: Match include directory usage with cppdefault.c.
15569
15570 2002-04-03  Jeffrey A Law  (law@redhat.com)
15571             Hans-Peter Nilsson  <hp@bitrange.com>
15572
15573         * combine.c (simplify_comparison): Avoid narrowing a comparison
15574         with a paradoxical subreg when doing so would drop signficant bits.
15575
15576 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
15577
15578         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
15579         if POINTERS_EXTEND_UNSIGNED is defined.
15580
15581 2002-04-02  Richard Henderson  <rth@redhat.com>
15582
15583         PR opt/3967
15584         * local-alloc.c (contains_replace_regs): LO_SUM may contain
15585         replace regs.
15586
15587 2002-04-02  Richard Henderson  <rth@redhat.com>
15588
15589         * doc/standards.texi: Document required freestanding libc entry points.
15590
15591 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
15592
15593         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
15594         associated splitter.  Remove MQ constraint.
15595         (ctrdi_internal4): Correct CCmode clobber.
15596
15597 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15598
15599         * milli64.S ($$dyncall): New function.
15600         * t-linux (LIB1ASMFUNCS): Revise module list.
15601         (LIB1ASMSRC): Use pa/milli64.S.
15602
15603 2002-04-02  Richard Henderson  <rth@redhat.com>
15604
15605         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
15606         rename solaris_sys_varargs_h.
15607
15608 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15609
15610         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
15611         the same mode as its component.
15612
15613 2002-04-02  Richard Henderson  <rth@redhat.com>
15614
15615         PR opt/190
15616         * final.c (this_is_asm_operands): Export.
15617         * output.h (this_is_asm_operands): Declare.
15618         * config/i386/i386.c (print_operand): Error odd asm operands.
15619
15620 2002-04-02  Richard Henderson  <rth@redhat.com>
15621
15622         PR opt/420
15623         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
15624
15625 2002-04-01  Richard Henderson  <rth@redhat.com>
15626
15627         PR target/1538
15628         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
15629         * fixinc/fixincl.x: Rebuild.
15630
15631 2002-04-01  Richard Henderson  <rth@redhat.com>
15632
15633         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
15634         (atomic_alloc, atomic_free): New.
15635         (SIZE, MASK_FOR, PTR_IN): New.
15636         (emergency_reg_state, emergency_reg_state_free): New.
15637         (emergency_labeled_state, emergency_labeled_state_free): New.
15638         (reg_state_alloced, labeled_state_alloced): New.
15639         (alloc_reg_state, free_reg_state): New.
15640         (alloc_label_state, free_label_state, free_label_states): New.
15641         (push, pop, dup_state_stack, free_state_stack): Use them.
15642         (desc_label_state): Likewise.
15643         (uw_frame_state_for): Free label states and state stack.
15644         (uw_update_reg_address): Eliminate warnings.
15645
15646 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
15647
15648         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
15649         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
15650
15651 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
15652
15653         * c-decl.c (grokdeclarator): Update.
15654         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
15655         * c-tree.h (c_mark_addressable): New.
15656         * c-typeck.c (default_function_array_conversion, build_unary_op,
15657         build_array_ref, convert_for_assignment): Update.
15658         (mark_addressable): Rename.
15659         * calls.c (try_to_integrate, expand_call): Use langhook.
15660         * expr.c (expand_expr): Use langhook.
15661         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
15662         * langhooks.h (struct lang_hooks): New hook.
15663         * stmt.c (expand_asm_operands): Use langhook.
15664         * tree.h (mark_addressable): Remove.
15665 objc:
15666         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
15667
15668 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
15669
15670         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
15671         in previous change.
15672
15673 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
15674
15675         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
15676         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
15677
15678 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
15679
15680         * c-common.c (unsigned_conversion_warning, convert_and_check,
15681         unsigned_type, signed_type, shorten_compare,
15682         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
15683         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
15684         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
15685         New.
15686         * c-decl.c (grokdeclarator): Update.
15687         * c-format.c (check_format_types): Update.
15688         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
15689         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
15690         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
15691         * convert.c (convert_to_integer): Use new hooks.
15692         * expmed.c (make_tree): Use new hooks.
15693         * expr.c (store_expr): Use new hooks.
15694         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
15695         all_ones_mask_p, unextend, fold): Use new hooks.
15696         * langhooks.h (struct lang_hooks_for_types): New hooks.
15697         * tree.h (signed_or_unsigned_type, signed_type,
15698         unsigned_type): Remove.
15699 objc:
15700         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
15701         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
15702
15703 2002-03-31  Richard Henderson  <rth@redhat.com>
15704
15705         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
15706         (desc_frgr_mem): Fix reference to f16-f31.
15707
15708 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15709
15710         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
15711         RTVEC_ELT): Const-ify.
15712         * varray.h (VARRAY_CHECK): Const-ify.
15713         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
15714         ggc_mark_rtvec, ggc_mark): Const-ify.
15715
15716 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
15717
15718         * diagnostic.c: Include langhooks-def.h.
15719         * Makefile.in (diagnostic.o): Update.
15720
15721 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
15722
15723         * c-common.c (c_unsafe_for_reeval): Rename.
15724         * c-common.h (c_unsafe_for_reeval): Rename.
15725         * c-decl.c (finish_incomplete_decl): Rename.
15726         (c_init_decl_processing): Don't set langhook.
15727         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15728         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15729         * c-objc-common.c (c_objc_common_init): Don't set langhook.
15730         * c-tree.h (finish_incomplete_decl): Rename.
15731         * langhooks-def.h (lhd_unsafe_for_reeval): New.
15732         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
15733         (LANG_HOOKS_INITIALIZER): Update.
15734         * langhooks.c (lhd_unsafe_For_reeval): New.
15735         * langhooks.h (struct langhooks): New hooks.
15736         * toplev.c (incomplete_decl_finalize_hook): Remove.
15737         (wrapup_global_declarations): Update.
15738         * tree.c (lang_unsafe_for_reeval): Remove.
15739         (unsafe_for_reeval): Update.
15740         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
15741         Remove.
15742 objc:
15743         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15744         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15745
15746 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
15747
15748         * diagnostic.c (print_error_function): Remove.
15749         (default_print_error_function): Rename.
15750         (report_error_function): Update.
15751         * diagnostic.h (print_error_function): Remove.
15752         (default_print_error_function): Remove.
15753         * langhooks-def.h (struct diagnostic_context): Predeclare.
15754         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
15755         (LANG_HOOKS_INITIALIZER): Update.
15756         * langhooks.h (struct diagnostic context): Predeclare.
15757         (struct lang_hooks): New hook.
15758
15759 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15760
15761         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
15762         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
15763         !flag_pic.
15764         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
15765         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
15766         of PIC_OFFSET_TABLE_REGNUM thruout.
15767         * config/rs6000/rs6000.md: Likewise.
15768         * config/rs6000/darwin.h: Likewise.
15769
15770 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15771
15772         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
15773         unsigned HOST_WIDE_INT, not unsigned int.
15774
15775 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
15776
15777         PR middle-end/6096, middle-end/6098, middle-end/6099
15778         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
15779         CODE_LABELs.
15780         (fill_slots_from_thread): Likewise.
15781
15782 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
15783
15784         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
15785         floating fields in float regs.
15786         (function_arg_record_value_2): Likewise.
15787
15788 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
15789
15790         * config/mmix/mmix.md (define_constants): Remove misleading
15791         FIXME.  Add MMIX_fp_rO_OFFSET.
15792         ("nonlocal_goto_receiver"): Don't have stack-frame address of
15793         saved rO as part of the pattern.  Remove FIXME.
15794         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
15795         here, at output-time.
15796
15797 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
15798
15799         PR middle-end/6100
15800         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
15801         REG_BR_PRED.
15802         (output_v9branch): Likewise.
15803
15804 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
15805
15806         * gcc.c: Revert previous patch for now.
15807         * config/i386/djgpp.h: Likewise.
15808
15809 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
15810
15811         * config/mmix/crti.asm (_init): Register _fini with atexit.
15812         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
15813
15814 2002-03-31  Richard Henderson  <rth@redhat.com>
15815
15816         PR target/3997
15817         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
15818         (ASM_OUTPUT_DEF_FROM_DECLS): New.
15819
15820 2002-03-31  Richard Henderson  <rth@redhat.com>
15821
15822         * libgcc2.c (__bb_exit_func): Make static.
15823
15824         * config/alpha/alpha.md (trap): New.
15825
15826 2002-03-31  Richard Henderson  <rth@redhat.com>
15827
15828         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
15829         promoted argument types; build trap.
15830         (expand_builtin_trap): New.
15831         (expand_builtin): Use it.
15832         * stmt.c (expand_nl_goto_receivers): Likewise.
15833         * expr.h (expand_builtin_trap): Declare.
15834         * libfuncs.h (LTI_abort, abort_libfunc): New.
15835         * optabs.c (init_optabs): Init abort_libfunc.
15836
15837 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
15838
15839         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
15840         (LINK_COMMAND_SPEC): ... from here.
15841         (init_gcc_specs): Duplicate it here too, omitting
15842         shared_name in the second copy.
15843         (init_spec): Test for duplicate
15844         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
15845
15846 2002-03-30  David S. Miller  <davem@redhat.com>
15847
15848         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15849         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
15850
15851 2002-03-30  Roger Sayle <roger@eyesopen.com>
15852             Richard Henderson  <rth@redhat.com>
15853
15854         * regmove.c (combine_stack_adjustments_for_block): Avoid
15855         emitting a stack adjustment of zero bytes.  Let delete_insn
15856         update bb->head.
15857
15858 2002-03-30  Richard Henderson  <rth@redhat.com>
15859
15860         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
15861         (sparc_emitting_epilogue): New.
15862         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
15863         * config/sparc/sparc-protos.h: Update.
15864         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
15865         (TARGET_SWITCHES): Update.
15866         * config/sparc/sparc.md (return): Remove.
15867         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
15868         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
15869         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
15870         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15871         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
15872         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
15873         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
15874         Remove MASK_EPILOGUE.
15875         * doc/invoke.texi: Update.
15876
15877 2002-03-30  Daniel Berlin  <dan@dberlin.org>
15878
15879         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
15880         CPP will start the file for us.
15881
15882 2002-03-30  Richard Henderson  <rth@redhat.com>
15883
15884         PR target/5446
15885         * config/ia64/ia64.c (group_barrier_needed_p): Special case
15886         prologue_allocate_stack.
15887         (ia64_single_set): Use insn codes for recognition of special
15888         cases, not rtl matching.
15889         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
15890
15891 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
15892
15893         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
15894
15895 2002-03-30  Richard Henderson  <rth@redhat.com>
15896
15897         PR target/6032
15898         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
15899         or -fomit-frame-pointer with profiling.
15900         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15901         (FUNCTION_PROFILER): Do nothing.
15902         (PROFILE_HOOK): New.
15903         * config/sparc/sparc.c (sparc_override_options): Don't check
15904         code models for profiling.
15905         (sparc_function_profiler): Remove.
15906         (sparc_profile_hook): New.
15907         * config/sparc/sparc-protos.h: Update.
15908
15909 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
15910
15911         PR optimization/6086
15912         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
15913         of SUBREG of volatile MEM or because the MEM was mode dependent,
15914         return CLOBBER instead of unmodified SUBREG.
15915
15916 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
15917
15918         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
15919         when not optimizing.
15920
15921         * toplev.c (rest_of_compilation): Cann mark_constant_function
15922         only when optimizing.
15923
15924         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
15925         are NULL.
15926
15927         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
15928         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
15929         (try_optimize_cfg): clear all AUX fields.
15930
15931         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
15932         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
15933         (ix86_address_cost): Be prepared for SUBREGed registers.
15934         (legitimate_address_p): Accept SUBREGed registers.
15935
15936 2002-03-29  Richard Henderson  <rth@redhat.com>
15937
15938         PR target/5672
15939         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
15940
15941 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15942
15943         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
15944         for aggregate and TFmode types.
15945
15946 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
15947
15948         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
15949
15950 2002-03-29  Richard Henderson  <rth@redhat.com>
15951
15952         PR target/5886
15953         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
15954         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
15955
15956 2002-03-29  Richard Henderson  <rth@redhat.com>
15957
15958         PR target/6041
15959         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
15960         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
15961         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
15962         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
15963         conditional.
15964         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
15965
15966 2002-03-29  Dale Johannesen <dalej@apple.com>
15967
15968         * loop.c (combine_movables): Do allow combination of pseudos.
15969
15970 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
15971
15972         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
15973         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
15974         No functional change except ...
15975         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
15976         * doc/install.texi (*-*-freebsd*): Document port configuration.
15977
15978 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
15979
15980         * Makefile.in (convert.o, calls.o, expmed.o): Update.
15981         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
15982         Use new hooks.
15983         * builtin-types.def (BT_PTRMODE): Update.
15984         * c-common.c (type_for_size): Rename c_common_type_for_size.
15985         (type_for_mode): Similarly.
15986         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
15987         Use new hook.
15988         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
15989         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
15990         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
15991         Redefine.
15992         * c-typeck.c (common_type, comptypes, default_conversion):
15993         Use new hooks.
15994         * calls.c: Include langhooks.h.
15995         (emit_library_call_value_1): Use new hooks.  Avoid redundant
15996         calls.
15997         * convert.c: Include langhooks.h
15998         (convert_to_pointer, convert_to_integer): Use new hooks.
15999         * except.c (init_eh): Similarly.
16000         * expmed.c: Include langhooks.h.
16001         (expand_mult_add): Use new hooks.
16002         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
16003         try_casesi): Similarly.
16004         * fold-const.c (optimize_bit_field_compare, make_range,
16005         decode_field_reference, fold_truthop, fold): Similarly.
16006         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
16007         put_var_into_stack): Similarly.
16008         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
16009         LANG_HOOKS_TYPE_FOR_SIZE): New.
16010         (LANG_HOOKS_TYPES_INITIALIZER): Update.
16011         * langhooks.h (lang_hooks_for_types): New hooks.
16012         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
16013         * tree.c (get_unwidened, get_narrower): Similarly.
16014         * tree.h (type_for_mode, type_for_size): Remove.
16015         * varasm.c (force_const_mem): Use new hooks.
16016         * utils2.c (nonbinary_modular_operation): Update.
16017 objc:
16018         * objc-act.c (handle_impent): Update.
16019         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
16020         Redefine.
16021
16022 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
16023
16024         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
16025         * config/ia64/ia64.c (basereg_operand): New.
16026         * config/ia64/ia64-protos.h (basereg_operand): Declare.
16027         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
16028
16029 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
16030
16031         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
16032         unwind information when frame_pointer_needed.
16033         (mmix_assemble_integer): Tweak wording in comment.
16034
16035 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16036
16037         * Makefile.in (except.o): Update.
16038         * except.c: Include langhooks.h.
16039         (init_eh): Use langhook.
16040         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
16041         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
16042         (LANG_HOOKS_INITIALIZER): Update.
16043         * langhooks.h (lang_hooks_for_types): New.
16044         (struct lang_hooks): Add it.
16045         * tree.c (make_lang_type_fn, make_lang_type): Remove.
16046         * tree.h (make_lang_type_fn, make_lang_type): Remove.
16047 config:
16048         * alpha/alpha.c: Include langhooks.h.
16049         (alpha_build_va_list): Use langhook.
16050         * d30v/d30v.c: Include langhooks.h.
16051         (d30v_build_va_list): Use langhook.
16052         * i386/i386.c: Include langhooks.h.
16053         (ix86_build_va_list): Use langhook.
16054         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
16055         * s390/s390.c: Include langhooks.h.
16056         (s390_build_va_list): Use langhook.
16057         * stormy16/stormy16.c: Include langhooks.h.
16058         (stormy16_build_va_list): Use langhook.
16059
16060 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
16061
16062         PR c++/5964
16063         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
16064         attributes.
16065         (length): Compute variable length for branches/calls/jumps here.
16066         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
16067         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
16068         define branch_type attribute.
16069         (divsi3_sp32): Maximum length is 6 not 7.
16070         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
16071         call_address_untyped_struct_value_sp32,
16072         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
16073         * config/sparc/sparc.c (empty_delay_slot): New function.
16074         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
16075         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
16076
16077 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
16078
16079         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
16080         nonzero_bits if not needed.
16081         (nonzero_bits) [XOR]: Likewise.
16082         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
16083         reg_last_set_mode and mode are both MODE_INT, but not equal.
16084         (record_value_for_reg): Compute reg_last_set_nonzero_bits
16085         in nonzero_bits_mode for MODE_INT modes.
16086
16087 2002-03-28  Richard Henderson  <rth@redhat.com>
16088
16089         PR target/5715
16090         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
16091         to GAS.  Correct drift between alternatives.
16092
16093 2002-03-28  Richard Henderson  <rth@redhat.com>
16094
16095         PR target/6087
16096         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
16097
16098 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
16099
16100         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
16101         emulation to the linker.
16102
16103 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
16104
16105         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
16106         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
16107
16108 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
16109
16110         * combine.c (simplify_and_const_int): Make sure to apply mask
16111         when force_to_mode returns a constant integer.  PR3311.
16112
16113 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16114
16115         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
16116
16117 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16118
16119         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
16120         and Objective-C Dialect Options.
16121
16122 2002-03-28  Richard Henderson  <rth@redhat.com>
16123
16124         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
16125         comparison should be done vs !=0 not >0 return code.  Tidy cases.
16126
16127 2002-03-28  Richard Henderson  <rth@redhat.com>
16128
16129         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
16130         on to c_expand_body.
16131         * c-tree.h (finish_function): Update decl.
16132         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
16133
16134 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
16135
16136         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
16137
16138 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
16139
16140         * rtlanal.c: Include flags.h
16141         (may_trap_p): Do not mark FP operations if trapping
16142         if !flag_trapping_math
16143         * Makefile.in (rtlanal.o): Add dependency on flag.h
16144         * ifcvt.c (noce_operand_ok): Avoid the lameness.
16145
16146 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
16147
16148         * mips.md: Use dconst1, not 1.0, as first argument of
16149         REAL_VALUE_LDEXP.  Don't use union real_extract.
16150
16151 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
16152
16153         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
16154         rather than $target.  Heed program_prefix and
16155         program_transform_name.  Search for gas in cross-compiler case too.
16156         "test -x" rather than "test -f".
16157         (gcc_cv_ld): Likewise.
16158         (gcc_cv_nm): Heed program_prefix and program_transform_name.
16159         (gcc_cv_objdump): Likewise.
16160         * configure: Regenerate.
16161
16162 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16163
16164         * Makefile.in (attribs.o): Update.
16165         * attribs.c: Include langhooks.h.
16166         (decl_attributes): Use langhook.
16167         * c-decl.c (insert_default_attributes): Rename.
16168         * c-tree.h (c_insert_default_attributes): New.
16169         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
16170         (LANG_HOOKS_INITIALIZER): Update.
16171         * langhooks.h (struct lang_hooks): New hook.
16172         * tree.h (insert_default_attributes): Remove.
16173 objc:
16174         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
16175
16176 2002-03-27  Andreas Schwab  <schwab@suse.de>
16177
16178         * config/i386/i386.c (classify_argument): Also check for
16179         QUAL_UNION_TYPE.
16180
16181 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16182
16183         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
16184         any more.
16185
16186 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16187
16188         * i960.md (ret): Set PC.
16189         (nonlocal_goto): Fix expander.
16190         * builtins.c (epxand_builin_longjmp): Check that we've emitted
16191         some jump or call.
16192
16193 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16194
16195         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
16196         of libcall regions.
16197
16198 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16199
16200         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
16201         assigning to BLOCK_FOR_INSN directly.
16202
16203 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16204
16205         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
16206
16207 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16208
16209         * c-common.c (c_expand_expr): Fix prototype.
16210         * c-common.h (c_expand_expr): Always declare, update.
16211         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
16212         * c-objc-common.c (c_objc_common_init): No global hook.
16213         * expr.c (expand_expr): Use langhook.
16214         * expr.h (enum expand_modifier): Conditionally declare.
16215         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
16216         (LANG_HOOKS_INITIALIZER): Update.
16217         * langhooks.c (lhd_expand_expr): New.
16218         * langhooks.h (struct lang_hooks): New hook.
16219         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
16220         (lang_independent_init): Don't default hook.
16221 objc:
16222         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
16223
16224 2002-03-27  Richard Henderson  <rth@redhat.com>
16225
16226         PR target/6054
16227         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
16228         TARGET_CONST_GP.  Simplify conditions.
16229
16230 2002-03-27  Richard Henderson  <rth@redhat.com>
16231
16232         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16233         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
16234         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
16235
16236 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
16237
16238         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
16239         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
16240         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
16241         Remove unnecessary masks.
16242         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
16243         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
16244         -mwindows, -mdll switches and their negations.
16245
16246 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16247
16248         * gcc-common.c (lang_mark_false_label_stack): Remove.
16249         * ggc.h (lang_mark_false_label_stack): Similarly.
16250
16251 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
16252
16253         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
16254
16255         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
16256         or __rtems_ is defined.
16257
16258 2002-03-26  Richard Henderson  <rth@redhat.com>
16259
16260         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
16261         if a non-trivial load was emitted.
16262         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
16263         in high+extra+low case.
16264
16265 2002-03-26  Richard Henderson  <rth@redhat.com>
16266
16267         * config.gcc (sparc*-solaris): Use float_format=sparc.
16268
16269 2002-03-26  Richard Henderson  <rth@redhat.com>
16270
16271         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16272         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
16273         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
16274         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
16275         (WINT_TYPE_SIZE): Fix at 32.
16276
16277 2002-03-26  Richard Henderson  <rth@redhat.com>
16278
16279         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
16280         until after eh landing pad generation.
16281         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
16282         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
16283
16284 2002-03-26  Richard Henderson  <rth@redhat.com>
16285
16286         * expr.h (ADD_PARM_SIZE): One more convert for INC.
16287
16288 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
16289
16290         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
16291         and warning switches.
16292         (cc1_options):  Likewise.
16293
16294 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
16295
16296         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
16297         Restore more of the signal context.  Set no_reg_stack_frame.
16298         * config/ia64/unwind-ia64.c (unw_state_record):
16299         Add no_reg_stack_frame, comments.
16300         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
16301         (uw_update_context): Adjust bsp when unwinding from leaf,
16302         but not signal frame.
16303
16304 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
16305
16306         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
16307
16308 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
16309
16310         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
16311
16312 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
16313
16314         PR target/5621
16315         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
16316         "Add a pool_range attribute", which was lost during the ARM/Thumb
16317         merge.
16318
16319 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
16320
16321         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
16322         a register into the MAC16 accumulator.
16323
16324 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
16325
16326         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
16327         (Warning Options): Document -Wswitch-enum.
16328         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
16329         -Wswitch.
16330         (warn_switch_enum): Define variables.
16331         * flags.h (warn_switch_enum): Declare variables.
16332         * stmt.c (expand_end_case_type): When warn_switch_enum /
16333         -Wswitch-enum, perform switch checks.
16334         Fix PR c/5044.
16335
16336 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
16337
16338         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
16339         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
16340         (reload_muladdsi_compare0_scratch): Delete.
16341
16342 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
16343
16344         * doc/install.texi (*-*-freebsd*): Update.
16345
16346 2002-03-26  Richard Henderson  <rth@redhat.com>
16347
16348         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
16349         (SUB_PARM_SIZE): Cast DEC to ssizetype.
16350
16351         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
16352         types from the normal argument frame.
16353
16354         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
16355         variable sized objects by reference.
16356         (sparc_va_arg): Receive them by reference too.
16357
16358 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
16359
16360         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
16361         code to not restoring global registers.
16362
16363 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
16364
16365         * Makefile.in (ggc-common.o): Update.
16366         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
16367         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
16368         * c-tree.h (c_mark_tree): New.
16369         * ggc-common.c: Include langhooks.h.
16370         (gcc_mark_trees): Use new langhook.
16371         * ggc-callbacks.c: Delete file.
16372         * ggc.h (lang_mark_tree): Remove.
16373         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
16374         (LANG_HOOKS_INITIALIZER): Update.
16375         * langhooks.h (struct lang_hooks): New hook.
16376 objc:
16377         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
16378
16379 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
16380
16381         * doc/cpp.texi: Exclude entire Top node from printed manual.
16382         Move option index after directive index.  Insert page breaks
16383         before GFDL and concept index.  Index environment variables
16384         with command line options.
16385         * doc/cppenv.texi: Use @vtable for environment variable list.
16386         Add paragraph explaining semantics of empty elements in path
16387         variables.  Exclude a cross-reference to Fishkill from the
16388         manpage.  Remove an unnecessary cross-reference of the entry
16389         right above the referer.  Don't use @anchor in text that goes
16390         into manpage.
16391         * doc/cppopts.texi: Cross-reference the environment variables
16392         section, not the specific environment variable, for consistency.
16393
16394 2002-03-25  Richard Henderson  <rth@redhat.com>
16395
16396         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
16397         anywhere in the block.  Don't refer to insns that have been
16398         removed from the chain.  Iterate backward through the new insns.
16399         Don't refer to edges that have been removed.
16400
16401 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
16402
16403         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
16404         test for overflow of constant.
16405
16406 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
16407
16408         PR target/2623
16409         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
16410         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
16411         these patterns on arm_archv4.
16412
16413 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
16414
16415         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
16416         int".
16417
16418 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
16419
16420         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
16421         float_handled, float_handler, float_signal, set_float_handler,
16422         and do_float_handler.  Set handler for SIGFPE to crash_signal.
16423         * toplev.h: Don't prototype do_float_handler.
16424
16425         * c-lex.c: Fold parse_float into lex_number.  Make warning
16426         about portability of hex float constants more informative, and
16427         don't issue it on top of a syntax error.
16428         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
16429         their callers.
16430         * real.h: Define REAL_VALUE_ABS here...
16431         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
16432         simplify_unary_real, simplify_binary_real, and
16433         simplify_binary_is2orm1 into their callers.
16434         * tree.c: Fold build_real_from_int_cst_1 into caller.
16435
16436         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
16437
16438         * tsystem.h: Include float.h here...
16439         * libgcc2.c: ... not here.
16440
16441 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
16442
16443         Fixes for: PR bootstrap/3591, target/5676
16444         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
16445         defined.  Do not disable exceptions or rtti.
16446         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
16447         mcore.h.  Disable exceptions and rtti, since they are not
16448         supported by EPOC.
16449
16450 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16451
16452         * c-decl.c (maybe_build_cleanup): Remove.
16453         * expr.c (expand_expr): Use langhook.
16454         * langhooks-def.h (lhd_return_null_tree,
16455         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
16456         (LANGHOOKS_INITIALIZER): Update.
16457         * langhooks.c (lhd_return_null_tree): New.
16458         * langhooks.h (struct lang_hooks): New hook.
16459         * tree-inline.c (initialize_inlined_parameters): Use langhook.
16460         * tree.h (maybe_build_cleanup): Remove.
16461
16462 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
16463
16464         * regrename.c (build_def_use): Move recog_memoized
16465         before extract_insn.
16466
16467 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
16468
16469         PR target/6043
16470         * expr.c (emit_group_store): Handle storing into CONCAT.
16471
16472 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
16473
16474         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
16475         corresponding MATCH_DUP.
16476
16477 2002-03-24  Richard Henderson  <rth@redhat.com>
16478
16479         * unroll.c (unroll_loop): Zero label_map.
16480
16481         * gcse.c: Include except.h.
16482         * Makefile.in (gcse.o): Update.
16483
16484 2002-03-24  Richard Henderson  <rth@redhat.com>
16485
16486         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
16487         Do resolve_unique_section before shared data clause.
16488
16489 2002-03-24  Richard Henderson  <rth@redhat.com>
16490
16491         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
16492
16493 2002-03-24  Richard Henderson  <rth@redhat.com>
16494
16495         * recog.c (peephole2_optimize): Split blocks when EH insns are
16496         generated in the middle of a block.  Do global life update if
16497         zapped EH edges.
16498
16499 2002-03-24  Richard Henderson  <rth@redhat.com>
16500
16501         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
16502
16503 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16504
16505         preprocessor/3951
16506         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
16507         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
16508         (init_dependency_output): Don't make no_output decision here.
16509
16510 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
16511
16512         * stmt.c (check_for_full_enumeration_handling): Remove tests of
16513         warn_switch.  Update description.
16514         (expand_end_case_type): Call check_for_full_enumeration_handling
16515         when warn_switch.
16516
16517 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16518
16519         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
16520         (m68hc11_split_move): Call it to see if the source and destination
16521         operands use the same direction auto inc/dec mode, otherwise make the
16522         source an offsetable memory operand and generate an add.
16523
16524 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16525
16526         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
16527         register for operand 2.
16528         ("*subsi3_zero_extendqi"): Likewise.
16529         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
16530         bits so that it is compatible with a pop.
16531         ("*andhi3_gen"): Likewise.
16532         ("xorhi3"): Likewise.
16533
16534 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16535
16536         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
16537         -pedantic here...
16538         (cpp_post_options): ... not here.
16539
16540 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16541             Aldy Hernandez  <aldyh@redhat.com>
16542
16543         Removal of separate preprocessor cpp0.
16544
16545         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
16546         cpp0, install-common): Update.
16547         * c-common.c (flag_preprocess_only): New.
16548         (c_common_init): Preprocess for -E.
16549         * c-common.h (flag_preprocess_only): New.
16550         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
16551         * c-objc-common.c (c_init_decl_processing): Exit quickly
16552         for NULL return from c_common_init.
16553         * cpplib.h (cpp_preprocess_file): New.
16554         * cppmain.c (main, general_init, pfile, progname): Remove.
16555         (do_preprocessing): Rename cpp_preprocess_file, don't call
16556         cpp_finish.  Don't close stdout here.
16557         (setup_callbacks): Update prototype.
16558         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
16559         Update.
16560         * tradcpp.c (main): Ignore -quiet.
16561 objc:
16562         * lang-specs.h (default_compilers): Preprocess with cc1obj.
16563
16564 2002-03-24  Richard Henderson  <rth@redhat.com>
16565
16566         PR optimization/5742
16567         * machmode.def: Add inner mode field to complex modes.
16568         * config/mips/mips.c (mips_function_value): Always define.  Add
16569         new argument to handle libcalls.
16570         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
16571         (FUNCTION_VALUE): Likewise.
16572         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
16573         * config/mips/mips-protos.h: Update.
16574
16575 2002-03-23  Richard Henderson  <rth@redhat.com>
16576
16577         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
16578         * config/sparc/sparc-protos.h: Update.
16579         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
16580
16581 2002-03-23  Richard Henderson  <rth@redhat.com>
16582
16583         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
16584         _start or _init begins the text segment.
16585
16586 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
16587
16588         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
16589         not HOST_WIDEST_INT.
16590         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
16591
16592 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
16593
16594         PR java/5489
16595         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
16596         operand argument to output_return_instruction.
16597         * arm.c (arm_print_operand, case 'd'): If the operand is
16598         const_true_rtx then just return.
16599         (arm_print_operand, case 'D'): If the operand is const_true_rtx
16600         then abort.
16601
16602 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
16603
16604         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
16605         (Warning Options): Document -Wswitch-default.
16606         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
16607         -Wswitch.
16608         (warn_switch_default): Define variable.
16609         (warn_switch): Update comment.
16610         * flags.h (warn_switch_default): Declare variable.
16611         (warn_switch): Update comment.
16612         * stmt.c (expand_end_case): Check for and, when
16613         warn_switch_no_default, warn of a missing default case.
16614
16615 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
16616
16617         * real.h (N): Special case 128 bit doubles.
16618
16619         * combine.c (simplify_comparison): When widening modes, ignore
16620         sign extension on CONST_INTs.
16621
16622 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
16623
16624         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
16625         passed to adjust_address.  Fix comment formatting.
16626
16627
16628 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
16629
16630         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
16631         Always make REAL_VALUE_TYPE a struct containing an array of
16632         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
16633         big it is.  Don't declare or use union real_extract.
16634
16635         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
16636         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
16637         (print_operand), config/arm/arm.c (output_move_double),
16638         config/arm/arm.md (consttable_4, consttable_8),
16639         config/romp/romp.c (output_fpops), config/s390/s390.h
16640         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
16641         (xtensa_output_literal): Don't use union real_extract.
16642
16643         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
16644         (sfmode_constant_to_ulong), config/ns32k/merlin.h
16645         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
16646         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
16647         (PRINT_OPERAND): Don't use local version of union
16648         real_extract.
16649
16650         * config/convex/convex.c (check_float_value), config/vax/vax.c
16651         (vax_float_literal), config/m88k/m88k.md (divdf3),
16652         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
16653         config/pdp11/pdp11.c (output_move_quad): Don't do host
16654         arithmetic on target floating point quantities.
16655
16656         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
16657         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
16658
16659         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
16660         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
16661
16662         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
16663         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
16664         INFINITY.
16665         * print-rtl.c (print_rtx): Disable code which needs
16666         floating-point emulator.
16667         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
16668         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
16669         depending on HOST_FLOAT_FORMAT to be defined properly.
16670
16671         * config/1750a/1750a.c (get_double, float_label): Delete.
16672         (print_operand): Delete huge commented-out chunk.  Use
16673         REAL_VALUE_TO_DECIMAL.
16674         * config/1750a/1750a-protos.h: Delete prototypes of deleted
16675         functions.
16676         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
16677         IEEE_FLOAT_FORMAT.
16678         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
16679         Use REAL_VALUE_TO_DECIMAL as ELF version does.
16680         * config/m88k/m88k.c (real_power_of_2_operand,
16681         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
16682         real_extract out of the union; run the input through
16683         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
16684         from that into the union.
16685         * config/pdp11/pdp11.c (output_move_double): Rearrange
16686         parentheses to make automatic indenter happy.
16687
16688         * doc/tm.texi (Cross-compilation): Rename node to "Floating
16689         Point" and rewrite to describe current situation.  Also adjust
16690         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
16691         match code.
16692         * doc/rtl.texi: Adjust cross reference.
16693
16694 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
16695
16696         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
16697         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
16698         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
16699         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
16700         prevent use of sp as a reload register.
16701         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
16702         non_acc_reg_operand.
16703         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
16704         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
16705         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
16706         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
16707
16708 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16709
16710         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
16711         * cpplex.c (unterminated): Delete.
16712         (parse_string): No string literal may extend over multiple
16713         lines.  Suppress the error when preprocessing assembly.
16714         * cppmain.c (scan_translation_unit): Strings are single-line.
16715
16716         * doc/cpp.texi: Update to match.
16717
16718 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
16719
16720         PR optimization/5854
16721         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
16722         Shut up warnings.
16723         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
16724         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
16725         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
16726         const0 if scratch register was not allocated.
16727         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
16728         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
16729         with GEN_INT (...).
16730         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
16731         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
16732         with GEN_INT (...) everywhere.  Remove constraints in define_split
16733         patterns.
16734         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
16735         require scratch register for setting 0 into regs/non-pushable memory.
16736
16737 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
16738
16739         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
16740         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
16741
16742 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
16743
16744         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
16745         * cppinit.c (cpp_create_reader):  On by default.
16746         (cpp_handle_option):  Handle -W[no-]endif-labels.
16747         (cpp_post_options):  Also enable if -pedantic.
16748         * cpplib.c (do_else):  Use it.
16749         (do_endif):  Likewise.
16750         * doc/cppopts.texi:  Document new option.
16751         * doc/invoke.texi:  Document new option.
16752
16753 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
16754
16755         * config/i386/i386.c, config/i386/i386.md: Change all occurences
16756         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
16757
16758 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
16759
16760         * flow.c (calculate_global_regs_live): Clear aux fields of
16761         ENTRY and EXIT.
16762
16763 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
16764
16765         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
16766         REG or MEM subregs, pass rtx * instead of rtx to it.
16767         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
16768         rtx * instead of rtx to alter_subreg.
16769         * config/m32r/m32r.c (gen_split_move_double): Likewise.
16770         * config/pj/pj.c (pj_output_rval): Likewise.
16771
16772 2002-03-22  Richard Henderson  <rth@redhat.com>
16773
16774         PR target/3177
16775         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
16776         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
16777         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
16778         (ia64_expand_prologue): Look at int_regs, not words, for number
16779         of incomming int regs.
16780
16781 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
16782
16783         * expr.c (expand_expr): A RESULT_DECL is part of a call.
16784
16785 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
16786
16787         * toplev.c (flag_loop_optimize, flag_crossjumping):
16788         New static variables.
16789         (rest_of_compilation): Conditionalize crossjumping and
16790         loop optimizer.
16791         (parse_options_and_default_flags): Default loop_optimize and
16792         crossjumping.
16793         (lang_independent_options): Add -fcrossjumping and -floop-optimize
16794         * invoke.texi (crossjumping, loop-optimize): Document.
16795
16796 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
16797
16798         * real.c (eiisneg): Move outside #ifdef NANS.
16799
16800 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
16801
16802         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
16803         frequencies match; avoid match on different loop depths.
16804         (try_crossjump_to_bb): Kill tests that no longer brings time
16805         savings.
16806         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
16807         updating code.
16808         (split_edge): Likewise.
16809
16810         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
16811         variable.
16812
16813         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
16814         * cfgrtl.c: Include insn-config.h
16815         (split_block) Dirtify block in presence of conditional execution
16816
16817 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
16818
16819         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
16820         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
16821         (function_arg): Constify CUMULATIVE_ARGS.
16822         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
16823         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
16824         (UNITS_PER_DOUBLE): New macro.
16825         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
16826         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
16827         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
16828         fp_regs and stack_words.
16829         (EABI_FLOAT_VARARGS_P): New macro.
16830         * config/mips/mips.c (struct mips_arg_info): New.
16831         (mips_arg_info): New function.
16832         (function_arg_advance): Use it.  Add adjustment instructions here
16833         rather than in function_arg.
16834         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
16835         for VOIDmode at the beginning of the function.
16836         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
16837         (function_arg_pass_by_reference): Likewise.
16838         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
16839         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
16840         (mips_va_start): Likewise.  Use the new stack_words field of
16841         CUMULATIVE_ARGS to set up overflow area.  Reformat.
16842         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
16843         doubles and other types, aligning the overflow pointer for non-doubles
16844         too.  Remove some code duplication.  Replace hard-coded constants.
16845
16846 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
16847
16848         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
16849         (CLASS_UNITS): Undefine.
16850         (CLASS_MAX_NREGS): Use FP_INC.
16851         * config/mips/mips.c (compute_frame_size): Likewise.
16852         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
16853
16854 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16855
16856         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
16857         prototype, and handle lexing numbers and identifiers.
16858         (parse_identifier): Update to new form of parse_slow.
16859         (parse_number): Fast path only, use parse_slow otherwise.
16860         (_cpp_lex_direct): Update calls to parse_number.
16861
16862 2002-03-21  DJ Delorie  <dj@redhat.com>
16863
16864         * bb-reorder.c (make_reorder_chain_1): Protect against
16865         when redundant edges are omitted.
16866         * predict.c (dump_prediction): Likewise.
16867
16868 2002-03-21  Richard Henderson  <rth@redhat.com>
16869
16870         PR target/5996
16871         * fixinc/inclhack.def (solaris_stdio_tag): New.
16872         * fixinc/fixincl.x: Regenerate.
16873
16874 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
16875
16876         PR c/5597
16877         * c-typeck.c (process_init_element): Flag non-static
16878         initialization of a flexible array member as illegal.
16879
16880 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
16881
16882         * config/rs6000/t-linux64: New.
16883         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
16884         t-ppccomm.  Use t-rs6000 and t-linux64.
16885         (powerpc64-*-gnu* <tmake_file>): Likewise.
16886         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
16887         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
16888         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
16889
16890 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
16891
16892         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
16893         flag_really_no_inline instead of optimize == 0.
16894
16895         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
16896
16897         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
16898
16899         * flags.h (flag_really_no_inline): New.
16900
16901         * c-common.c (c_common_post_options): Initialize
16902         flag_really_no_inline.
16903
16904         * toplev.c (flag_really_no_inline): New.
16905
16906 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
16907
16908         * config/avr/avr.md (length): Fix length computation for
16909         conditional branches.
16910
16911 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
16912
16913         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
16914         sdbout.o, profile.o): Update.
16915         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
16916         langhook.
16917         * c-common.h (gettags): Move here from tree.h.
16918         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
16919         insert_block, getdecls, kept_level_p, global_bindings_p): New.
16920         * dbxout.c (dbxout_init): Use getdecls langhook.
16921         * expr.c (expand_expr): Use insert_block langhook.
16922         * fold-const.c: Include langhooks.h.
16923         (fold_range_test, fold_binary_op_with_conditional_arg,
16924         fold): Use global_bindings_p langhook.
16925         * integrate.c (expand_inline_function): Use insert_block langhook.
16926         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
16927         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
16928         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
16929         LANG_HOOKS_GETDECLS): New.
16930         (LANG_HOOKS_INITIALIZER): Update.
16931         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
16932         langhook.
16933         * langhooks.h (struct lang_hooks_for_decls): New.
16934         (struct lang_hooks): Update.
16935         * profile.c: Include langhooks.h.
16936         (output_func_start_profiler): Use new langhooks.
16937         * sdbout.c: Include langhooks.h.
16938         (sdbout_init, sdbout_finish): Use getdecls langhook.
16939         * stmt.c: Include langhooks.h.
16940         (expand_fixup, fixup_gotos): Use new langhooks.
16941         * stor-layout.c: Include langhooks.h.
16942         (variable_size): Use global_bindings_p langhook.
16943         * toplev.c (compile_file): Use getdecls langhook.
16944         * tree-inline.c (remap_block): Use insert_block langhook.
16945         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
16946         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
16947
16948 2002-03-21  Richard Henderson  <rth@redhat.com>
16949
16950         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
16951         constants in .data when -fpic.
16952
16953 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16954
16955         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
16956         where appropriate.
16957
16958 2002-03-21  Tom Tromey  <tromey@redhat.com>
16959
16960         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
16961
16962 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16963
16964         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
16965
16966         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
16967
16968 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
16969             Richard Henderson  <rth@redhat.com>
16970
16971         PR c/5354
16972         * c-common.c (c_expand_expr): Preserve result of a statement
16973         expression if needed.
16974
16975 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
16976
16977         PR bootstrap/4195
16978         * genrecog.c (maybe_both_true_mode): Remove.
16979         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
16980         * machmode.def (Pmode): Likewise.
16981
16982 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
16983
16984         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
16985         (nonlocal_mentioned_p_1): New function.
16986         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
16987         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
16988         (mark_constant_function): Recognize pure functions.
16989         * rtl.h (global_reg_mentioned_p): New prototype.
16990         * rtlanal.c (global_reg_mentioned_p,
16991         global_reg_mentioned_p_1): New function.
16992
16993 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16994
16995         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
16996         UNIX assert.h.
16997         * fixinc/fixincl.x: Regenerate.
16998
16999 2002-03-20  Jason Merrill  <jason@redhat.com>
17000
17001         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
17002
17003 2002-03-20  Michael Meissner  <meissner@redhat.com>
17004
17005         * doc/invoke.texi (Optimize Options): Document that -O2 sets
17006         -fstrict-aliasing.
17007
17008 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
17009
17010         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
17011         ".literal_position" directive before the constant pool.
17012
17013 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17014
17015         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
17016         Add Craig Rodrigues.
17017         Add Brad Lucier to testers.
17018
17019 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
17020
17021         PR target/4792
17022         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
17023         to if_then_else.
17024         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
17025         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
17026         instead of insn_extract.
17027
17028 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
17029
17030         PR bootstrap/4192
17031         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
17032
17033         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
17034         stmt if some case has been output.
17035
17036 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
17037
17038         PR c/5972
17039         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
17040         movsfcc_1, movdfcc_1): Add %O2.
17041         * config/i386/i386.c (print_operand): Handle %ON.
17042         Print . before float condition codes in Sun as cmov syntax.
17043         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
17044         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
17045         no longer true.
17046
17047 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
17048
17049         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
17050         return instruction if PC was popped.
17051
17052 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
17053
17054         * config/xtensa/xtensa.md: Remove unused type attributes.
17055         (adddi_carry, subddi_carry): Change type attribute to "multi".
17056
17057 2002-03-19  Dale Johannesen  <dalej@apple.com>
17058
17059         PR optimization/5999, middle-end/5731
17060         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
17061         multiplications by reciprocals.
17062
17063 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17064
17065         * Makefile.in: Update.
17066         * c-common.c: Include langhooks.h.
17067         (inline_forbidden_p): Use new hook.
17068         * diagnostic.c: Include langhooks.h.
17069         (format_with_decl, announce_function,
17070         default_print_error_function): Use new hook.
17071         * dwarf2out.c (dwarf2_name): Use new hook.
17072         * function.c: Include langhooks.h.
17073         (init_function_start): Use new hook.
17074         * langhooks-def.h (lhd_decl_printable_name): New.
17075         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
17076         (LANGHOOKS_INITIALIZER): Update.
17077         * langhooks.c (lhd_decl_printable_name): New.
17078         * langhooks.h (struct lang_hooks): New hook.
17079         * toplev.c (decl_name, decl_printable_name): Remove.
17080         (open_dump_file): Use new hook.
17081         (process_options): Remove old hook.
17082         * tree.h (decl_printable_name): Remove.
17083 objc:
17084         * objc-act.c (objc_init): Remove old hook.
17085         (objc_printable_name): Export.
17086         * objc-act.h (objc_printable_name): New.
17087         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
17088
17089 2002-03-19  Jim Blandy  <jimb@redhat.com>
17090
17091         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
17092         the start_source_file debug hook, not the current line number.
17093
17094 2002-03-19  Richard Henderson  <rth@redhat.com>
17095
17096         * flow.c (EH_USES): Provide default.
17097         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
17098         * doc/tm.texi (EH_USES): New.
17099
17100         * config/ia64/ia64.c (ia64_eh_uses): New.
17101         * config/ia64/ia64-protos.h: Update.
17102         * config/ia64/ia64.h (EH_USES): New.
17103
17104 2002-03-19  Richard Henderson  <rth@redhat.com>
17105
17106         * varasm.c (output_constant_def): Fix stupid typo.
17107
17108 2002-03-19  Richard Henderson  <rth@redhat.com>
17109
17110         PR 5879
17111         * except.c (current_function_has_exception_handlers): New.
17112         * except.h: Declare it.
17113         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
17114         Combine tests that disable all sibcalls for the function.
17115
17116 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
17117
17118         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
17119         for INTEGER_CST.
17120
17121 2002-03-19  Richard Henderson  <rth@redhat.com>
17122
17123         PR 5977, 5991
17124         * config/ia64/ia64.c: Revert 2002-03-01 patch.
17125         * config/ia64/ia64.h (INIT_EXPANDERS): New.
17126
17127 2002-03-19  Jim Blandy  <jimb@redhat.com>
17128
17129         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
17130         name, even if the replacement list contains no tokens, as required
17131         by Dwarf.
17132
17133 2002-03-19  Jason Merrill  <jason@redhat.com>
17134
17135         * varasm.c (globalize_decl): Get the name from the RTL, not
17136         DECL_ASSEMBLER_NAME.
17137
17138         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
17139
17140 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
17141
17142         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
17143         subdi_carry): Define.
17144
17145 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
17146
17147         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
17148         about -fpic/-fPIC if extra_warnings set.
17149
17150 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
17151
17152         * expr.c (expand_expr): Sign-extend CONST_INT generated from
17153         TREE_STRING_POINTER.
17154         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
17155
17156 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17157
17158         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
17159         in favor of SP if FRAME_POINTER_REQUIRED is false.
17160
17161 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
17162
17163         * emit-rtl.c (gen_int_mode): New function.
17164         * rtl.h: Prototype for it.
17165         * combine.c (make_extraction, simplify_comparison), expmed.c
17166         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
17167         (convert_modes, store_field), optabs.c (expand_fix),
17168         simplify-rtx.c (neg_const_int, simplify_unary_real),
17169
17170         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
17171         Use it instead of GEN_INT (trunc_int_for_mode (...)).
17172
17173 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
17174
17175         PR c/5656
17176         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
17177         convert_parm_for_inlining.
17178         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
17179         Define.
17180         * langhooks-def.h: Likewise.
17181         * objc/objc-lang.c: Likewise.
17182         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
17183         function.
17184         * tree-inline.c (initialize_inlined_parameters):
17185         Call convert_parm_for_inlining lang hook if needed.
17186         * c-typeck.c (c_convert_parm_for_inlining): New function.
17187         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
17188
17189 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
17190
17191         * calls.c (precompute_arguments): Do not assume that temporaries
17192         can be destroyed after expanding the argument.
17193         (expand_call): Likewise.
17194
17195 2002-03-15  Eric Christopher  <echristo@redhat.com>
17196
17197         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
17198         Fix register preference on last change.
17199         * config/mips/mips.c (mips_return_in_memory): New function.
17200         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
17201         * config/mips/mips-protos.h: Declare.
17202         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
17203         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
17204
17205 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
17206
17207         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
17208         a register too.
17209         (anddi3, iorsi3): Likewise.
17210
17211         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
17212         use %gprel for symbols that are going to be placed in linkonce
17213         sections.
17214
17215         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
17216         RETURN_ADDRESS_POINTER_REGNUM to $ra.
17217         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
17218         not needed.  Disregard leaf_function_p().
17219         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
17220         mips16 frame pointer.
17221         * config/mips/mips.md (store ra): Only to small SP offsets.
17222         2001-08-22  Graham Stott  <grahams@redhat.com>
17223         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
17224         return a REG rtx for the return address register.
17225
17226 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
17227
17228         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
17229         constant-pool addresses as "mode-dependent".
17230         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
17231
17232 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
17233
17234         PR target/5740
17235         * expr.c (emit_group_load): Use extract_bit_field if
17236         needed for CONCAT arguments.
17237
17238 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
17239
17240         PR target/4863
17241         * arm.md (tablejump): Make this a define_expand.  For PIC add the
17242         offset to the base of the table.
17243         (thumb_tablejump): Matcher for Thumb tablejump insn.
17244         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
17245         as the difference of two labels.
17246         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17247         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
17248         tables in the code.
17249         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17250         * arm.c (get_jump_table_size): If the table is not in the text
17251         section, return zero.
17252
17253 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
17254
17255         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
17256         of gen_rtx_SUBREG.
17257         (arm_reload_out_hi): Use gen_lowpart instead of
17258         gen_rtx_SUBREG to access QImode components.
17259         * config/arm/arm.md: Disable zero_extend split for QImode
17260         subregs in BIG_ENDIAN mode.
17261         (storehi_bigend): Match use of least significant byte.
17262         (storeinthi): Remove extraneous SUBREG.
17263         Add missing construction of operands[2].
17264         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
17265         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
17266         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
17267
17268 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
17269
17270         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
17271         any_operand.
17272
17273 2002-03-17  Richard Henderson  <rth@redhat.com>
17274
17275         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
17276         explicitly.
17277
17278 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
17279
17280         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
17281         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
17282
17283 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17284
17285         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
17286
17287         * predict.c (estimate_bb_frequencies): Delete unused variables.
17288
17289 2002-03-17  Richard Henderson  <rth@redhat.com>
17290
17291         * config/ia64/ia64.c (ia64_attribute_table): Move before
17292         targetm definition.  Make static.
17293
17294 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
17295
17296         * c-common.h (yyparse, c_common_parse_file): New.
17297         * c-lang.c: Include c-common.h.
17298         (LANG_HOOKS_PARSE_FILE): Redefine.
17299         * c-lex.c: Include c-common.h.
17300         (yyparse): Rename c_common_parse_file.  Call yyparse.
17301         * c-parse.in (yyparse): Remove macro.
17302         * c-tree.h (yyparse_1): Remove.
17303         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
17304         (LANG_HOOKS_INITIALIZER): Update.
17305         * langhooks.h (struct lang_hoooks): New hook parse_file.
17306         * toplev.c (compile_file): Use parse_file hook.
17307         * tree.h (yyparse): Remove.
17308         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
17309
17310 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
17311
17312         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
17313         float_truncate, not fix.
17314         ("*truncdfsf2_real"): Ditto.
17315         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
17316
17317         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
17318
17319 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
17320
17321         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
17322         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
17323         where appropriate.  Make the second reference to
17324         leaf_function_p a function call, as intended.  Reindented.
17325
17326         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
17327         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
17328
17329         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
17330         add register to non-constant into sp.
17331
17332         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
17333         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
17334         (mips16_gp_pseudo_rtx): Lose.
17335         (INIT_EXPANDERS): Deleted.
17336         * config/mips/mips.c (mips_init_machine_status): New.
17337         (mips_free_machine_status): New.
17338         (mips_mark_machine_status): New.
17339         (override_options): Set them.
17340         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
17341         (struct machine_function): ... new.  Replaced all references.
17342         (mips_add_gc_roots): Don't mark them.
17343         (embedded_pic_fnaddr_reg): New, extracted from...
17344         (embedded_pic_offset): ... here.
17345         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
17346         (movsi): Likewise.
17347
17348 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
17349
17350         * cppinit.c: Revert -MD removal.
17351
17352 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17353
17354         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
17355         soft registers by default for 68HC12.
17356         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
17357         when compiling with -fomit-frame-pointer.
17358         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
17359         (expand_epilogue): Likewise.
17360         (m68hc11_gen_rotate): Use exg when rotating by 8.
17361
17362 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17363
17364         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
17365         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
17366         (splits): Remove unused add splits.
17367         ("*addhi3_68hc12"): Tune constraints.
17368         ("addhi_sp"): Try to use X instead of Y in all cases and if the
17369         constant fits in 8-bits and D is dead use abx/aby instructions.
17370         ("*addhi3"): Remove extern declaration of ix_reg.
17371         ("*subsi3"): Optimize and provide new split.
17372         ("subhi3"): Cleanup.
17373         ("*subhi3_sp"): Avoid saving X if we know it is dead.
17374         (arith splits): For 68hc12 save the address register on the stack
17375         and do the arithmetic operation with a pop.
17376
17377 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17378
17379         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
17380         allocating QImode in address registers.
17381         ("*movqi_m68hc11"): Likewise.
17382
17383 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
17384
17385         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
17386
17387 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
17388
17389         * cppinit.c (print_help): Display -MD and -MMD.
17390         Don't display usage string.  Update assertion syntax and
17391         typo.
17392         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
17393         (cpp_handle_option): Update.
17394
17395 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
17396
17397         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
17398         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
17399         and define it so that regardless of target CPU size,
17400         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
17401         of "int" rather than "long."
17402
17403 2002-03-15  Richard Henderson  <rth@redhat.com>
17404
17405         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
17406         size as a tree.
17407
17408 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17409
17410         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
17411         ("tstqi" split): Avoid using memory for tstqi on address register.
17412         (splits): Remove constraints.
17413         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
17414         ("cmpdf", "cmpsf"): Remove since not used.
17415         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
17416         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
17417
17418 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17419
17420         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
17421         ("neghi2"): Tighten constraints.
17422         ("one_cmplsi2"): Optimize and simplify split.
17423         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
17424
17425 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17426
17427         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
17428         and split of AND operation to clear the upper bits.
17429         ("*logicalsi3_zextqi"): Likewise.
17430         ("*logicallhi3_zexthi_ashift8"): Likewise.
17431         ("*logicalsi3_silshr16"): Likewise.
17432         ("logicalsi3_silshl16"): Likewise.
17433         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
17434
17435 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17436
17437         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
17438         (m68hc11_indirect_p): New function.
17439         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
17440         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
17441         TARGET_M6812.
17442         (asm_print_register): Likewise.
17443         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
17444         (m68hc11_indirect_p): Declare.
17445         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
17446         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
17447         (TARGET_SWITCHES): New option -mrelax.
17448         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
17449         destination.
17450         ("iorsi3", "xorsi3"): Likewise.
17451         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
17452         ("*andhi3_mem"): New to handle destination in memory with bclr
17453         and a scratch register.
17454         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
17455         ("*andhi3_const"): New when operand2 is constant.
17456         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
17457         ("*andhi3_gen"): Cleanup of the old "andhi3".
17458         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
17459         ("xorqi3"): Update constraints.
17460
17461 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17462
17463         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
17464         for reg_equiv_memory_loc when the operand is a register that does
17465         not get a hard register (stack location).
17466         (tst_operand): After reload, accept all memory operand.
17467         (symbolic_memory_operand): Fix detection of symbolic references.
17468         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
17469         accept symbols and any constant.
17470
17471 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17472
17473         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
17474         note on the insn that sets the soft frame register.
17475         (must_parenthesize): ix and iy are also reserved names.
17476         (print_operand_address): One more place where parenthesis are required
17477         to avoid confusion with register names.
17478         (m68hc11_gen_movhi): Allow push of stack pointer.
17479         (m68hc11_check_z_replacement): Fix handling of parallel with a
17480         clobber.
17481         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
17482         the replacement register is.
17483         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
17484         and D8_REGS classes.
17485         (MODES_TIEABLE_P): All modes are tieable except QImode.
17486
17487 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17488
17489         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
17490         (___subdi3): Likewise.
17491         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
17492         (__map_data_section): Optimize 68hc11 case.
17493
17494 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17495
17496         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
17497         than a shift to avoid adding a register with itself.
17498         (m68hc11_memory_move_cost): Take into account NO_REGS.
17499         (m68hc11_register_move_cost): Update and use memory move cost
17500         for soft registers.
17501         (m68hc11_address_cost): Make cost of valid offset not 0 so that
17502         it gives more opportunities to cse to optimize.
17503         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
17504         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
17505
17506 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
17507
17508         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
17509         * c-common.def (CLEANUP_STMT): New tree node.
17510         * c-common.h (CLEANUP_DECL): New macro.
17511         (CLEANUP_EXPR): Likewise.
17512         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
17513         * expr.c (expand_expr): Tidy.
17514         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
17515         * tree-inline.c (initialize_inlined_parameters): Clean up
17516         new local variables.
17517
17518 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
17519
17520         PR bootstrap/4128
17521         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
17522         before movrXX only, use reg_overlap_mentioned_p.
17523         Only special case NE if just one insn can be generated.
17524
17525 2002-03-15  Jason Merrill  <jason@redhat.com>
17526
17527         * varasm.c (assemble_variable): Call resolve_unique_section before
17528         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
17529         of error_mark_node.
17530
17531 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
17532
17533         PR target/5170
17534         * arm.md (split pattern for thumb shiftable immediates): Add comment
17535         explaining non-obvious test.
17536
17537 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
17538
17539         PR target/5712
17540         * arm.md (movaddr, movaddr_insn): Delete.
17541
17542 2002-03-15  Jason Merrill  <jason@redhat.com>
17543
17544         * toplev.c (wrapup_global_declarations): Clarify variable handling.
17545         -fkeep-static-consts doesn't apply to comdats.
17546
17547 2002-03-14  Richard Henderson  <rth@redhat.com>
17548
17549         * c-decl.c: Include c-pragma.h.
17550         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
17551         (finish_function): Tidy.
17552         * c-pragma.c: Include c-common.h.
17553         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
17554         (handle_pragma_weak): Use them.
17555         (init_pragma): Register pending_weaks.
17556         * c-pragma.h (maybe_apply_pragma_weak): Declare.
17557         * print-tree.c (print_node): Print DECL_WEAK.
17558         * varasm.c (mark_weak_decls): Remove.
17559         (remove_from_pending_weak_list): Remove.
17560         (add_weak): Remove.
17561         (asm_emit_uninitialised): Call globalize_decl for weak commons.
17562         (weak_decls): Make a tree_list.
17563         (declare_weak): Cons weak_decls directly.
17564         (globalize_decl): Remove weak_decls elements directly.
17565         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
17566         symbols.  Don't pretend to handle aliases.
17567         (init_varasm_once): Update weak_decls registry.
17568         * Makefile.in: Update dependencies.
17569
17570 2002-03-14  Richard Henderson  <rth@redhat.com>
17571
17572         PR target/5312
17573         * config/ia64/ia64.c: Include tm_p.h last.
17574         (gen_nop_type): Remove duplicate definition.
17575         (cycle_end_fill_slots): Set sched_data for second L slot.
17576         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
17577         (nop_cycles_until): Fix typos.
17578
17579 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
17580
17581         PR optimization/5891
17582         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
17583
17584 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
17585
17586         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
17587           descriptors correctly.
17588
17589 2002-03-14  Michael Meissner  <meissner@redhat.com>
17590
17591         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
17592         100, allowing MAX_UNROLLED_INSNS to be overridden.
17593
17594         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
17595         --param.
17596
17597         * unroll.c (params.h): Include.
17598         (MAX_UNROLLED_INSNS): Delete, now in params.h.
17599
17600         * doc/invoke.texi (--param max-unroll-insns): Document.
17601
17602         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
17603
17604 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
17605
17606         * arm.md: Fix warnings about constraints in peepholes and splits.
17607
17608 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
17609
17610         * cpphash.h (struct lexer_state): Remove line_extension member.
17611         * cpplib.c (dequote_string, do_linemarker): New functions.
17612         (linemarker_dir): New data object.
17613         (DIRECTIVE_TABLE): No longer need to interpret #line in
17614         preprocessed source.  Delete obsolete comment about return
17615         values of handlers.
17616         (end_directive, directive_diagnostics, _cpp_handle_directive):
17617         Don't muck with line_extension.
17618         (directive_diagnostics): No need to issue warnings for
17619         linemarkers here.
17620         (_cpp_handle_directive): Issue warnings for linemarkers here,
17621         when appropriate.  Dispatch linemarkers to do_linemarker, not
17622         do_line.
17623         (do_line): Code to handle linemarkers split out to do_linemarker.
17624         Convert escape sequences in filename argument, both places.
17625
17626         * cppmacro.c (quote_string): Rename cpp_quote_string and
17627         export.  All callers changed.
17628         * cpplib.h (cpp_quote_string): Prototype.
17629         * cppmain.c (print_line): Call cpp_quote_string on to_file
17630         before printing it.
17631
17632         * doc/cpp.texi: Document that escapes are now interpreted in
17633         #line and in linemarkers, and that non-printing characters are
17634         converted to octal escapes when linemarkers are generated.
17635
17636 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
17637
17638         * emit-rtl.c (try_split): Use delete_insns.
17639         * recog.c (split_all_insns): Fix terminating condition.
17640
17641 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
17642             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
17643
17644         PR target/5828
17645         * arm.c (arm_output_epilogue): Fix floating-point register save
17646         adjustment when using a frame pointer.
17647
17648 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
17649
17650         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
17651         * config/mips/mips.c (compute_frame_size): Retrofit them here.
17652         (save_restore_insns, mips_expand_epilogue): And here.
17653         (build_mips16_call_stub): And here.
17654         (mips_function_value): Use the new macros to decide whether a single
17655         or complex float can be returned in floating-point registers.  Return
17656         a parallel rtx in the complex case.
17657
17658 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
17659
17660         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
17661         call after liveness analysis.
17662
17663         * recog.c (split_insn): Use delete_insn_and_edges.
17664
17665         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
17666         instructions to have branch prediction notes.
17667         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
17668
17669 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
17670
17671         * configure.in: Don't pass -Wno-long-long to a ADA compiler
17672         that doesn't support it.
17673         * configure: Regenerate.
17674
17675 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
17676
17677         PR target/5626
17678         * config/sparc/sparc.md (normal_branch, inverted_branch,
17679         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
17680         inverted_fp_branch): Adjust calls to output_cbranch.
17681         Set length attribute.
17682         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
17683         output_v9branch.  Set length attribute.
17684         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
17685         predicates.
17686         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
17687         (output_cbranch): Likewise.  Handle far branches.
17688         (output_v9branch): Handle far branches.
17689         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
17690         Adjust prototypes.
17691         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
17692         noov_compare64_op predicates.
17693
17694 2002-03-13  Jason Merrill  <jason@redhat.com>
17695
17696         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
17697         into the function and constify it.
17698         * gthr-dce.h, gthr-solaris.h: Likewise.
17699
17700 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
17701
17702         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
17703         * config/rs6000/rs6000.c (rs6000_va_arg): Use
17704         std_expand_builtin_va_arg if not ABI_V4.
17705
17706 2002-03-13  Jason Merrill  <jason@redhat.com>
17707
17708         * varasm.c (globalize_decl): New fn.
17709         (assemble_start_function): Use it.
17710         (asm_emit_uninitialized): Use it.
17711         (assemble_alias): Use it.
17712         (assemble_variable): Use it.
17713
17714 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
17715
17716         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
17717         2002-03-12 internal visibility change.
17718         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
17719         visibility into SYMBOL_REF_FLAG.
17720
17721 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
17722
17723         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
17724         VOIDmode operand.  Add compile-time optimization for constant results.
17725
17726 2002-03-12  Jason Merrill  <jason@redhat.com>
17727
17728         * c-typeck.c (convert_for_assignment): Don't allow conversions
17729         between pointers and references.  Only allow lvalues to convert to
17730         reference.
17731
17732 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
17733
17734         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
17735         before prologue, to avoid scheduling problems.
17736
17737 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
17738
17739         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
17740         (ELIMINABLE_REGS): Add sfp->sp.
17741         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
17742
17743 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
17744
17745         PR optimization/5892
17746         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
17747
17748 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
17749
17750         * loop.c (basic_induction_var): Don't call convert_modes if mode
17751         classes are different.
17752
17753 2002-03-12  Richard Henderson  <rth@redhat.com>
17754
17755         PR optimization/5901
17756         * function.c (reposition_prologue_and_epilogue_notes): Position
17757         the markers after/before the last/first insn not deleted.
17758
17759 2002-03-12  Richard Henderson  <rth@redhat.com>
17760
17761         PR optimization/5878
17762         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
17763         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
17764         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17765
17766         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
17767         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
17768         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
17769
17770         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
17771         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
17772         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
17773         also.  Don't set it if not flag_pic.
17774         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
17775         to be INVALID_REGNUM when not used.
17776
17777 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
17778
17779         * expmed.c (store_bit_field): Reset alias set for memory.
17780         (extract_bit_field): Same.
17781
17782 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17783
17784         * c-common.c (c_tree_code_type, c_tree_code_length,
17785         c_tree_code_name, add_c_tree_codes): Delete.
17786         * c-common.h (add_c_tree_codes): Delete.
17787         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
17788         Define.
17789         * c-objc-common.c (c_objc_common_init): Don't call
17790         add_c_tree_codes, instead set lang_unsafe_for_reeval.
17791         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
17792         objc_tree_code_name, add_objc_tree_codes): Delete.
17793         (objc_init): Don't call add_objc_tree_codes.
17794         * objc/objc-lang.c (tree_code_type, tree_code_length,
17795         tree_code_name): Define.
17796         * toplev.c (lang_independent_init): Don't set
17797         tree_code_length[IDENTIFIER_NODE].
17798         * tree.c (tree_code_type, tree_code_length, tree_code_name):
17799         Delete definitions, moved to language front-ends.
17800         * tree.def (IDENTIFIER_NODE): Hardwire the length.
17801         * tree.h (tree_code_type, tree_code_length, tree_code_name):
17802         Const-ify.
17803         (tree_code_length): Change type to unsigned char.
17804
17805 2002-03-12  Richard Henderson  <rth@redhat.com>
17806
17807         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
17808         internal visibility change.
17809
17810 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
17811
17812         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
17813         validize_mem() instead of change_address to avoid clobbering
17814         memory attributes.
17815
17816 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
17817
17818         * c-lex.h (position_after_whitespace): Remove.
17819
17820 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
17821
17822         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
17823         (lex_string): Use unsigned char pointers.
17824
17825 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
17826
17827         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
17828         is not a valid memory_operand.
17829
17830 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
17831
17832         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
17833         * config/xtensa/lib1funcs.asm: Fix copyright to include
17834         special case for libgcc files.
17835         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
17836         (__divsi3): Likewise.
17837         (__umodsi3): Likewise.
17838         (__modsi3): Likewise.
17839         * config/xtensa/lib2funcs.S: Fix copyright to include
17840         special case for libgcc files.
17841
17842 2002-03-12  Tom Rix  <trix@redhat.com>
17843
17844         * collect2.c (resolve_lib_name): Move outside of
17845         OBJECT_FORMAT_COFF ifdef.
17846         (ignore_library): Same.
17847
17848 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
17849
17850         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
17851
17852 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
17853
17854         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
17855         to function_section before writing out the constant pool.
17856
17857 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
17858
17859         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
17860         zero_constant.
17861         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
17862
17863 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
17864
17865         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
17866         (adddi3): Likewise.
17867         (movdf): Likewise.
17868         (movdi): Likewise.
17869         (cmpsi splitter): Likewise.
17870         (modsi3): Fail if <= 0.
17871         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
17872         redundant test when HOST_BITS_PER_WIDE_INT != 32.
17873         (reg_or_sub_cint64_operand): Likewise.
17874         (num_insns_constant_wide): Optimize sign extension.
17875         (rs6000_legitimize_address): Likewise.
17876
17877 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
17878
17879         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17880         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17881
17882 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
17883
17884         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
17885         address calculation.
17886
17887 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
17888
17889         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
17890         scratch register to DImode / TImode.
17891         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
17892         register used does not overlap the target.
17893
17894 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17895
17896         * Makefile.in (debug.o): Depend on debug.h.
17897         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
17898         * debug.c (do_nothing_debug_hooks): Likewise.
17899         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
17900         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
17901         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
17902         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
17903         * dwarfout.c (dwarf_debug_hooks): Likewise.
17904         * integrate.c (output_inline_function): Likewise.
17905         * objc/objc-act.c (synth_module_prologue): Likewise.
17906         * sdbout.c (sdb_debug_hooks): Likewise.
17907         * toplev.c (debug_hooks): Likewise.
17908         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17909
17910 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17911
17912         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
17913         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
17914         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
17915         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
17916         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
17917         * defaults.h (POINTER_SIZE): Define.
17918         * doc/tm.texi (POINTER_SIZE): Document default.
17919
17920 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17921
17922         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
17923
17924 2002-03-11  Richard Henderson  <rth@redhat.com>
17925
17926         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
17927         if rebuild_label_notes_after_reload.
17928
17929 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
17930
17931         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
17932         emit pic register load if "internal" visibility.
17933         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
17934         (cris_expand_builtin_va_arg): Do all computations on trees.
17935
17936 2002-03-11  Richard Henderson  <rth@redhat.com>
17937
17938         * rtlanal.c: Include recog.h.
17939         (keep_with_call_p): Fix thinko.
17940         * Makefile.in (rtlanal.o): Update dependencies.
17941
17942 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
17943
17944         * genflags.c (gen_insn): Use IS_VSPACE.
17945         * genoutput.c (output_insn_data): Likewise.
17946         (process_template): Likewise.
17947
17948 2002-03-11  Richard Henderson  <rth@redhat.com>
17949
17950         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
17951
17952 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
17953
17954         * Makefile.in: Update.
17955         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
17956         Update documentation.
17957         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
17958         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
17959
17960 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
17961
17962         * Makefile.in: Give texi2pod its input file as a command line
17963         argument, not on stdin.
17964
17965 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
17966             Daniel Berlin  <dan@dberlin.org>
17967
17968         C++ alias analysis improvement.
17969         * alias.c (record_component_aliases): Record aliases for base
17970         classes too.
17971
17972 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
17973
17974         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
17975
17976 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
17977
17978         * toplev.c (vms_fopen): Remove, not needed.
17979
17980         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
17981
17982         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
17983
17984         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
17985         for FP, already done later.
17986
17987         * toplev.c (debug_args): Add entry for VMS_DEBUG.
17988         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
17989
17990 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
17991
17992         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
17993         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
17994         LARGEST_EXPONENT_IS_NORMAL for the given mode.
17995         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
17996         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
17997         (ediv, emul, eldexp, esqrt): Likewise.
17998         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
17999         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
18000         (saturate): New function.
18001         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
18002         (make_nan): Use a saturation value instead of a NaN if
18003         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
18004         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
18005         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
18006         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
18007         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
18008         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
18009         !ROUND_TOWARDS_ZERO.
18010         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
18011         (ROUND_TOWARDS_ZERO): Document.
18012
18013 2002-03-11  Andreas Jaeger  <aj@suse.de>
18014
18015         * cfg.c (dump_flow_info): Remove unused variable.
18016
18017 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
18018
18019         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
18020         computations on trees.
18021
18022 2002-03-10  Richard Henderson  <rth@redhat.com>
18023
18024         PR 5693:
18025         * reload.c (copy_replacements_1): New.
18026         (copy_replacements): Use it to recurse through the rtx.
18027
18028 2002-03-10  Richard Henderson  <rth@redhat.com>
18029
18030         * loop.c (strength_reduce): Compute number of iterations as
18031         unsigned HOST_WIDE_INT.
18032
18033 2002-03-10  Richard Henderson  <rth@redhat.com>
18034
18035         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
18036         to move away from the end of the block.
18037
18038 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
18039
18040         PR preprocessor/5899
18041         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
18042
18043 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18044
18045         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
18046
18047         * attribs.c (decl_attributes): Fix signed/unsigned warning.
18048
18049 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
18050
18051         * config/mmix/mmix.c: Improve comments.
18052         (mmix_target_asm_function_prologue): Drop variable
18053         empty_stack_frame.  Don't allocate unused slot above fp.
18054         (mmix_target_asm_function_epilogue): Mirror prologue changes.
18055         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
18056         brace in first column.
18057         (enum reg_class): Ditto.
18058         (FIRST_PARM_OFFSET): Now 0.
18059         (USER_LABEL_PREFIX): Remove #if 0:d definition.
18060
18061 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18062
18063         * combine.c (make_extraction): Fix error in last change.
18064
18065 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18066
18067         * c4x.c (c4x_fp_reglist): Const-ify.
18068         * cris.c (cris_print_operand): Likewise.
18069         * i386.c (ix86_va_arg): Likewise.
18070         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
18071         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
18072         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
18073         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
18074         * mcore.h (regno_reg_class): Likewise.
18075         * mips.c (gen_int_relational): Likewise.
18076         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
18077         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
18078         * pdp11.c (move_costs): Likewise.
18079         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
18080         * s390.c (s390_branch_condition_mnemonic, regclass_map):
18081         Likewise.
18082         * s390.h (regclass_map): Likewise.
18083         * sh.c (shift_amounts): Likewise.
18084         * sh.md (rotlsi3): Likewise.
18085
18086 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
18087
18088         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
18089         (ne0+5): Use new clobber to generate proper shift pattern.
18090         Patch by Michael Matz <matz@kde.org>.
18091
18092 2002-03-09  Andreas Schwab  <schwab@suse.de>
18093
18094         * gcc.c (validate_all_switches): Also handle `%W{...}'.
18095
18096 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
18097
18098         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
18099
18100 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
18101
18102         PR middle-end/5877
18103         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
18104         even for non-representable constants.
18105
18106 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18107
18108         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
18109         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
18110         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
18111         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
18112         (pop_function_context): Compute MAY_SHARE parameter for
18113         fixup_var_refs.
18114         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
18115         (gen_mem_addressof): Call fixup_var_refs with new parm.
18116
18117         * combine.c (make_extraction): Don't make extension of CONST_INT.
18118
18119 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
18120
18121         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
18122         in o32 and o64 ABIs.
18123         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
18124         but getting fixed-size structs passed in registers regardless of
18125         padding in o32 and o64 ABIs.
18126
18127         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
18128         offset before loading address of argument passed by transparent
18129         reference.
18130
18131 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18132
18133         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
18134
18135 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
18136
18137         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
18138         marker such that registers after it are saved.
18139
18140 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18141
18142         * sparc.c (arith_4096_operand): Fix error in last change.
18143
18144 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
18145
18146         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
18147         defaults for MEABI.
18148
18149 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
18150
18151         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
18152         vectors.
18153
18154 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
18155
18156         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
18157
18158 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
18159
18160         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
18161         removed; fix return value.
18162         * combine.c (combine_instructions): Dirtify blocks where we failed to
18163         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
18164         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
18165
18166 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18167
18168         * gcse.c (insert_insn_end_bb): Fix typo in last change.
18169
18170 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
18171
18172         * recog.c (peephole2_optimize): Re-distribute EH edges.
18173
18174 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
18175
18176         * expr.c (expand_expr): Use unsave lang hook.
18177         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
18178         (LANG_HOOKS_INITIALIZER): Update.
18179         * langhooks.h (struct lang_hooks): New hook unsave.
18180         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
18181         (unsave_expr_1): Remove unused lang_unsave_expr_now.
18182         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
18183         (unsave_expr_now): Remove.
18184         * tree.h (unsave_expr_now, lang_unsave,
18185         lang_unsave_expr_now): Remove.
18186         (lhd_unsave): New.
18187
18188 2002-03-08  Andreas Jaeger  <aj@suse.de>
18189
18190         * flow.c (propagate_block_delete_insn): Remove unused variable.
18191
18192 2002-03-08  Kazu Hirata  <kazu@hxi.com>
18193
18194         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
18195         insn length for memory load/store.
18196
18197 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18198
18199         * doc/install.texi (--with-libiconv-prefix): Document.
18200
18201 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
18202
18203         * doc/sourcebuild.texi: Fix typo.
18204
18205 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
18206
18207         PR c/3711
18208         * builtins.c (std_expand_builtin_va_arg): Do all computations on
18209         trees.
18210
18211 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18212
18213         * rtl.c (copy_most_rtx): Move from here ...
18214         * emit-rtl.c (copy_most_rtx): ... to here.
18215
18216 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
18217
18218         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
18219         SUBTARGET_CPP_SIZE_SPEC.
18220         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
18221
18222         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
18223
18224 2002-03-07  Matt Hiller  <hiller@redhat.com>
18225
18226         * gensupport.c (first_dir_md_include): Renamed from include;
18227         change all references.
18228         (last_dir_md_include): Renamed from last_include; change all
18229         references.
18230         (init_md_reader): Unconditionally initialize base_dir whether or
18231         not filename is a relative path.
18232
18233 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
18234
18235         * config/fp-bit.c (_unord_f2): Compile it in even if
18236         US_SOFTWARE_GOFAST is enabled.
18237
18238         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
18239         NULL_RTX.  Set all HFmode operations as NULL_RTX.
18240         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
18241         NULL_RTX, try reversing the comparison and the operands.
18242
18243 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
18244
18245         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
18246         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
18247         and MATCH_OP_DUP.
18248
18249 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
18250
18251         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
18252
18253 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18254
18255         * basic-block.h (fixup_abnormal_edges): Declare.
18256         * reload1.c (fixup_abnormal_edges): New function.
18257         * reg-stack.c (convert_regs): Use it.
18258
18259         * gcse.c (insert_insn_end_bb): Handle trapping insns.
18260
18261         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
18262
18263 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
18264
18265         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
18266         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
18267         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
18268         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
18269         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
18270         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
18271         unless x and y could be infinite.
18272         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
18273         Check that the common type of both arguments is a real, even for
18274         targets without unordered comparisons.  Allow an integer argument
18275         to be compared against a real.
18276         (expand_tree_builtin): Use expand_unordered_cmp.
18277         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
18278         * cse.c (fold_rtx): Likewise.  Fix indentation.
18279         * fold-const.c (fold_real_zero_addition_p): New.
18280         (fold): Use it, and the new HONOR_... macros.
18281         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
18282         * jump.c (reversed_comparison_code_parts): After searching for
18283         the true comparison mode, use HONOR_NANS to decide whether it
18284         can be safely reversed.
18285         (reverse_condition_maybe_unordered): Remove IEEE check.
18286         * simplify-rtx.c (simplify_binary_operation): Use the new macros
18287         to decide which simplifications are valid.  Allow the following
18288         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
18289         and (a - -b) to (a + b).
18290         (simplify_relational_operation): Use HONOR_NANS.
18291         * doc/tm.texi: Document the MODE_HAS_... macros.
18292
18293 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
18294
18295         * combine.c (simplify_comparison): If simplifying a logical shift
18296         right and compare with constant, force the comparison to unsigned.
18297
18298 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
18299
18300         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
18301
18302         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
18303         -mabi=no-altivec
18304         (alt_reg_names): Remove % for vrsave.
18305
18306 2002-03-06  Richard Henderson  <rth@redhat.com>
18307
18308         PR optimization/5844
18309         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
18310         if used indicates we've already emitted one copy of an operand.
18311         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
18312         (gen_split): Supply a non-null used.
18313
18314 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
18315
18316         * reload1.c (reload): Unshare all rtl after reload is done.
18317
18318         * simplify-rtx.c (simplify_plus_minus): Do not abort,
18319         but simply fail if the expression is too complex to simplify.
18320         (simplify_gen_binary): Handle simplify_plus_minus failures.
18321
18322 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
18323
18324         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
18325         consistently call delete_trivially_dead_insns after CSE and GCSE;
18326         fix DFI_life dumping; do jump threading after liveness; do crossjumping
18327         after liveness2; update comment in last crossjumping.
18328         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
18329
18330 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
18331
18332         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
18333         after completing fast dead code elimination.
18334
18335         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
18336         COMPARE operator.
18337
18338 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
18339
18340         * version.c:  Fix misplaced leading blanks on first line.
18341
18342 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
18343
18344         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
18345
18346 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
18347
18348         * cfgcleanup.c (mentions_nonequal_regs): New function.
18349         (thread_jump): Use it.
18350         * toplev.c (rest_of_compilation): Run jump threading after
18351         liveness.
18352
18353 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
18354
18355         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
18356         patch.
18357
18358 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
18359
18360         * predict.c (estimate_bb_frequencies): Do not reload the
18361         frequencies from notes.
18362
18363 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
18364
18365         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
18366         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
18367
18368         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
18369         delete_noop_moves): Return indeger.
18370         * flow.c (ndead): New variable.
18371         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
18372         BB argument; update callers.
18373         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
18374         (life_analysis): Do not call purge_all_dead_edges.
18375         (update_life_info): Return number of deleted insns; print statistics.
18376         (update_life_info_in_dirty_blocks): likewise.
18377         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
18378         return number of insns deleted.
18379
18380         * cse.c: Include timevar.h
18381         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
18382         iterate until stabilizes; print statistics; return number of killed
18383         insns.
18384         * Makefile.in: (cse.o): Add timevar.h dependency
18385         * rtl.h (delete_trivially_dead_insns): New.
18386         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
18387         * toplev.c (rest_of_compilation): Update callers.
18388
18389         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
18390         (try_optimize_cfg): Do not update liveness.
18391         (cleanup-cfg): Loop until try_optimize_cfg and dead code
18392         removal stabilizes; use delete_trivially_dead_insns.
18393
18394         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
18395
18396 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
18397
18398         * cppmain.c (setup_callbacks): Disable #pragma and #ident
18399         callbacks when processing assembly language.
18400
18401 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18402
18403         * pa.h (ASM_FILE_END): Define.
18404         * som.h (ASM_FILE_END): Delete.
18405
18406         * pa.c (function_arg): Don't pass floats in general registers in
18407         indirect calls if TARGET_ELF32.
18408
18409 2002-03-05  Richard Henderson  <rth@redhat.com>
18410
18411         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
18412
18413 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
18414
18415         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
18416
18417 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
18418
18419         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
18420         -r command line.  Don't hide any symbols if not building
18421         shared libgcc.
18422
18423 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
18424
18425         * cfg.c (dump_flow_info): Warn about profile mismatches.
18426         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
18427         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
18428
18429 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
18430
18431         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
18432         wide volatile memory by parts.
18433
18434 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
18435
18436         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
18437         is NULL.
18438
18439 2002-03-05  Richard Henderson  <rth@redhat.com>
18440
18441         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
18442
18443 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
18444
18445         * toplev.c (documented_lang_options): Document more
18446         language-specific options.
18447         * doc/invoke.texi (Warning Options): Correct documentation for
18448         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
18449         * c-decl.c (c_decode_option): Use a table to handle warning options.
18450
18451 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
18452
18453         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
18454         parameter to mmix_encode_section_info.
18455         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
18456         relocatably.  Always produce ELF, not mmo if linking relocatably.
18457         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
18458         first is non-zero, don't add symbol prefix.
18459         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
18460         prototype accordingly.
18461
18462 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
18463
18464         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
18465
18466 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
18467
18468         * configure.in: Increase required makeinfo version to 4.1.
18469         * configure: Regenerate.
18470
18471 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
18472
18473         * .cvsignore: Remove *.info* and genrtl*; these files are generated
18474         elsewhere now.
18475
18476 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
18477
18478         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
18479         * doc/invoke.texi: Fix @math uses.
18480
18481 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18482
18483         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
18484         removal
18485
18486 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
18487
18488         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
18489         (powerpc-*-eabisimaltivec*): Same.
18490
18491         * config/rs6000/t-ppcendian: New.
18492
18493 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18494
18495         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
18496         nonimmediate_src_operand and nonimmediate_lsrc_operand to
18497         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
18498
18499 2002-03-03  Richard Henderson  <rth@redhat.com>
18500
18501         * toplev.c (rest_of_decl_compilation): Revert last two changes.
18502
18503 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
18504
18505         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
18506         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
18507         tree.c, config/m68k/m68k.c:
18508         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
18509         REAL_ARITHMETIC blocks unconditional.  Delete some further
18510         #ifdef blocks predicated on REAL_ARITHMETIC.
18511         * flags.h, toplev.c: Delete remaining references to
18512         flag_pretend_float.
18513
18514         * doc/invoke.texi: Remove documentation of -fpretend-float.
18515         * doc/tm.texi: Describe the various REAL_* macros as provided by
18516         real.h, not by the target configuration files.
18517
18518         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
18519         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
18520         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18521         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
18522         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
18523         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
18524         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
18525         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
18526         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18527         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
18528         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18529         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18530         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
18531         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
18532         config/xtensa/xtensa.h:
18533         Do not define, undefine, or mention in comments any of
18534         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
18535         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
18536         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
18537         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
18538         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
18539         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
18540         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
18541         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
18542         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
18543
18544 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18545
18546         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
18547         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
18548         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
18549         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
18550         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
18551         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
18552         Delete.
18553         * defaults.h (BITS_PER_WORD): Define.
18554         * doc/tm.texi (BITS_PER_WORD): Document default value.
18555
18556         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
18557         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
18558         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
18559
18560 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18561
18562         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
18563         lieu of explicit sizeof/sizeof.
18564         * i386.c (override_options, ix86_init_mmx_sse_builtins,
18565         ix86_expand_builtin): Likewise.
18566         * mips.c (mips_add_gc_roots): Likewise.
18567         * mmix.c (mmix_output_condition): Likewise.
18568         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
18569         altivec_init_builtins): Likewise.
18570         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
18571         * cppexp.c (Nsuff, parse_number): Likewise.
18572         * cppinit.c (builtin_array_end): Likewise.
18573         * gcc.c (n_default_compilers, process_command): Likewise.
18574         * genpreds.c (output_predicate_decls): Likewise.
18575         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
18576         * lcm.c (N_ENTITIES): Likewise.
18577         * stor-layout.c (set_sizetype): Likewise.
18578
18579 2002-03-03  Richard Henderson  <rth@redhat.com>
18580
18581         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
18582         for types or labels.
18583
18584 2002-03-03  Richard Henderson  <rth@redhat.com>
18585
18586         * c-decl.c (start_decl): Initialized variables are not common.
18587
18588 2002-03-02  Per Bothner  <per@bothner.com>
18589
18590         * gcc.c (option_map):  Suport new --bootclasspath option.
18591         --CLASSPATH is now just an alias for --classpath.
18592
18593 2002-03-02  Richard Henderson  <rth@redhat.com>
18594
18595         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
18596         load if "internal" visibility.
18597         * doc/extend.texi: Document visibility meanings.
18598
18599 2002-03-02  Richard Henderson  <rth@redhat.com>
18600
18601         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
18602         to functions as well.
18603
18604 2002-03-02  Richard Henderson  <rth@redhat.com>
18605
18606         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
18607         (handle_visibility_attribute): Don't call assemble_visibility.
18608         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
18609         without asmspec.  Invoke assemble_alias when needed.
18610         * varasm.c (maybe_assemble_visibility): New.
18611         (assemble_start_function, assemble_variable, assemble_alias): Use it.
18612
18613 2002-03-02  Richard Henderson  <rth@redhat.com>
18614
18615         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
18616         invoke ENCODE_SECTION_INFO with first call flag.
18617
18618         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
18619         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
18620         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
18621         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
18622         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18623         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18624         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
18625         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
18626         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
18627         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
18628         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
18629         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
18630         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18631         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
18632         config/mcore/mcore-protos.h, config/mcore/mcore.c,
18633         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
18634         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
18635         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
18636         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
18637         config/sh/sh.h, config/sparc/sparc.h,
18638         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
18639         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
18640         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
18641         FIRST argument.  As needed, examine it and do nothing.
18642
18643         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
18644         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18645         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
18646
18647         * config/arm/t-pe (pe.o): Add dependencies.
18648
18649 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18650
18651         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
18652         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
18653         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
18654         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
18655         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
18656         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
18657         * defaults.h (BITS_PER_UNIT): Define.
18658         * doc/tm.texi (BITS_PER_UNIT): Document default value.
18659
18660 2002-03-02  Kazu Hirata  <kazu@hxi.com>
18661
18662         * config/h8300/h8300-protos.h: Add a prototype for
18663         compute_a_shift_length.
18664         * config/h8300/h8300.c (h8300_asm_insn_count): New.
18665         (compute_a_shift_length): Likewise.
18666         (h8300_adjust_insn_length): Do not adjust insn length of shift
18667         insns.
18668         * config/h8300/h8300.md (anonymous shift patterns): Use
18669         compute_a_shift_length.
18670
18671 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18672
18673         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
18674         trunc_int_for_mode.
18675
18676         * emit-rtl.c (offset_address): Call update_temp_slot_address.
18677
18678 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18679
18680         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
18681         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
18682         * flags.h (flag_zero_initialized_in_bss): Declare.
18683         * toplev.c (flag_zero_initialized_in_bss): New flag.
18684         (lang_independent_options): Add flag_zero_initialized_in_bss.
18685         * tree.c (initializer_zerop): New function.
18686         * tree.h (initializer_zerop): Declare.
18687         * varasm.c (assemble_variable): If we can emit bss, put zero
18688         initializers in the bss section.
18689
18690 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
18691
18692         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
18693         like more than one symbol per .weak directive.
18694
18695 2002-03-01  Richard Henderson  <rth@redhat.com>
18696
18697         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
18698         adjust argument_pointer by pretend_args_size.
18699         (ia64_va_start): Adjust va_start address by -pretend_args_size.
18700
18701 2002-03-01  Kazu Hirata  <kazu@hxi.com>
18702
18703         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
18704
18705 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
18706
18707         * toplev.c (rest_of_compilation): Delete dead jumptables before
18708         loop.
18709         * flow.c (delete_dead_jumptables): Make global.
18710         * rtl.h (delete_dead_jumptables): Declare.
18711
18712 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
18713
18714         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
18715         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
18716         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
18717
18718 2002-03-01  Kazu Hirata  <kazu@hxi.com>
18719
18720         * config/h8300/h8300-protos.h: Fix formatting.
18721         * config/h8300/h8300.c: Likewise.
18722         * config/h8300/h8300.h: Likewise.
18723
18724 2002-03-01  Kazu Hirata  <kazu@hxi.com>
18725
18726         * config/h8300/h8300.c (print_operand): Support 16-bit
18727         constant addresses.
18728         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
18729
18730 2002-02-28  Richard Henderson  <rth@redhat.com>
18731
18732         * expmed.c (store_bit_field): Prevent generation of CONCATs;
18733         pun complex values as integers; use gen_lowpart instead of
18734         gen_rtx_SUBREG.
18735         (extract_bit_field): Likewise.
18736
18737 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
18738             David Edelsohn  <edelsohn@gnu.org>
18739
18740         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
18741         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
18742         (SUPPORTS_WEAK): Likewise.
18743         * output.h (add_weak): Add tree param.
18744         * varasm.c (add_weak): Likewise.  Save decl.
18745         (struct weak_syms): Add decl field.
18746         (mark_weak_decls): New function.
18747         (init_varasm_once): ggc_add_root mark_weak_decls.
18748         (assemble_start_function): Use ASM_WEAKEN_DECL.
18749         (assemble_variable): Likewise.
18750         (assemble_alias): Likewise.
18751         (declare_weak): Pass decl to add_weak.
18752         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
18753         (remove_from_pending_weak_list): Declare and define for
18754         ASM_WEAKEN_DECL.
18755         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
18756         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
18757         * defaults.h (SUPPORTS_WEAK): Likewise.
18758         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18759         .weak for code sym.  Do emit .size for descriptor sym.
18760         (ASM_DECLARE_FUNCTION_SIZE): Define.
18761         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
18762         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
18763         .lglobl unless TARGET_XCOFF.  Formatting fixes.
18764         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18765         .weak for code sym.
18766         (HANDLE_PRAGMA_WEAK): Remove.
18767         (ASM_WEAKEN_LABEL): Remove.
18768         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
18769
18770 2002-03-01  Jason Merrill  <jason@redhat.com>
18771
18772         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
18773         (TARGET_EXPR_CLEANUP): New macro.
18774
18775 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
18776
18777         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
18778         to take ptr_extend into account as third type of extension.
18779         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
18780         fields used by SUBREG_PROMOTED_UNSIGNED_P.
18781         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
18782         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
18783         * calls.c (precompute_arguments): Use new macro.
18784         (expand_call): Ditto.
18785         * combine.c (nonzero_bits): Ditto.
18786         (record_promoted_value): Ditto.
18787         * expr.c (store_expr): Ditto.
18788         (expand_expr): Ditto.
18789         * function.c (assign_parms): Ditto.
18790
18791 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
18792
18793         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
18794         override -shared and -shared-libgcc.
18795
18796 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
18797
18798         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
18799         of "ultrasparc".
18800         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
18801         to be broken.
18802
18803 2002-02-28  Richard Henderson  <rth@redhat.com>
18804
18805         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
18806         4 cycle latency from MM producers.
18807         (ia64_internal_sched_reorder): Likewise with pipeline flush.
18808
18809 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
18810
18811         * mklibgcc.in: Don't use GNU make extension.
18812
18813 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
18814
18815         * c-parse.in (STATIC): New terminal.
18816         (scspec): New non-terminal.  Update productions accordingly.
18817         (program): Remove bogus ifc / end ifc.
18818         (array_declarator): Simplify production using STATIC.
18819
18820 2002-02-28  Jim Meyering  <meyering@lucent.com>
18821
18822         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
18823         \a still means TARGET_BELL.
18824
18825 2002-02-28  Richard Henderson  <rth@redhat.com>
18826
18827         * haifa-sched.c (sched_emit_insn): New.
18828         (schedule_block): Use last_scheduled_insn to track last insn.
18829         * sched-int.h (sched_emit_insn): Prototype.
18830         * config/ia64/ia64.c (last_issued): Remove.
18831         (ia64_variable_issue): Don't set it.
18832         (nop_cycles_until): Use sched_emit_insn.
18833
18834 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
18835
18836         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
18837         extended constants.
18838
18839 2002-02-28  Kazu Hirata  <kazu@hxi.com>
18840
18841         * config/h8300/h8300.c: Fix formatting.
18842         * config/h8300/h8300.h: Likewise.
18843
18844 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18845
18846         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
18847         which may overwrite the high byte of the frame pointer.
18848
18849 2002-02-28  Bo Thorsen  <bo@suse.de>
18850
18851         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
18852         (STARTFILE_SPEC): Add 64 bit files.
18853         (ENDFILE_SPEC): Likewise.
18854
18855 2002-02-28  Jason Merrill  <jason@redhat.com>
18856
18857         * c-decl.c (finish_function): Only warn about missing return
18858         statement with -Wreturn-type.
18859
18860 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
18861
18862         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
18863
18864         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
18865         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
18866
18867 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
18868
18869         * basic-block.h (BB_REACHABLE): Renumber.
18870         (BB_DIRTY, BB_NEW): New flags.
18871         (clear_bb_flags): Declare.
18872         (update_life_info_in_dirty_blocks): Declare.
18873         * cfg.c (clear_bb_flags): New function.
18874         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
18875         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
18876         reorder_insns, emit_insn_after): Mark block as dirty.
18877         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
18878         (update_life_info_in_dirty_blocks): New function.
18879         * recog.c (apply_change_group): Dirtify block.
18880
18881         * cse.c (cse_insn): Reorder emitting of jump insn to keep
18882         cfg consistent.
18883         * gcse.c (delete_null_pointer_checks): Likewise.
18884
18885         * toplev.c (dump_file_index): Move cse2 after bp,
18886         add DFI_null
18887         (dump_file_info): Similary.
18888         (rest_of_compilation): Avoid most of CFG rebuilds;
18889         do first if converision after null pointer checks, do cse2
18890         after branch prediction; avoid full liveness rebuild after
18891         initializing subregs.
18892         * invoke.texi (-d options): Document -du, renumber.
18893
18894         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
18895         (notice_new_block): Do not set BB_UPDATE_LIFE.
18896         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
18897          merge_blocks_move_successor_nojumps, merge_blocks,
18898          try_crossjump_to_edge): Likewise.
18899         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
18900         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
18901         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
18902         (merge_of_block): Do not use life_data_ok.
18903         (find_if_case_1): Do not use SET_UPDATE_LIFE.
18904         (if_convert): Use BB_DIRTY mechanizm to update life.
18905         * lcm.c (optimize_mode_switching): Update
18906         update_life_info_in_dirty_blocks
18907
18908 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
18909
18910         * Makefile.in (integrate.o): Update.
18911         * c-decl.c (copy_lang_decl): Rename.
18912         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18913         * integrate.c: Include langhooks.h.
18914         (copy_decl_for_inlining): Update to use langhook.
18915         * langhooks-def.h (lhd_do_nothing_t,
18916         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
18917         (LANG_HOOKS_INITIALIZER): Update.
18918         * langhooks.c (lhd_do_nothing_t): New.
18919         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
18920         * tree.h (copy_lang_decl): Remove.
18921 objc:
18922         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18923
18924 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
18925
18926         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
18927         POST_DEC, and POST_MODIFY.
18928
18929 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
18930
18931         * c-typeck.c (digest_init): Remove unused parameter; all
18932         callers changed.
18933
18934 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
18935
18936         * expmed.c (expand_shift): Correctly test for low part of a
18937         subreg.
18938
18939 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
18940
18941         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
18942         insn UIDs with insn addresses.
18943
18944 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
18945
18946         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
18947         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
18948         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
18949         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
18950         gcc.c, toplev.c: Delete code implementing -traditional mode.
18951
18952         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
18953         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
18954         Document removal of -traditional mode for compilation, and
18955         remove documentation only relevant to that mode.
18956
18957         * config/nextstep.h, config/ptx4.h, config/svr4.h,
18958         config/convex/convex.h, config/d30v/d30v.h,
18959         config/i386/dgux.h, config/i386/osf1elf.h,
18960         config/i386/osfelf.h, config/i386/osfrose.h,
18961         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
18962         config/m68k/hp310.h, config/m88k/dgux.h,
18963         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
18964         config/m88k/m88k.h, config/m88k/openbsd.h,
18965         config/mips/abi64.h, config/mips/osfrose.h,
18966         config/mips/svr4-5.h, config/mips/svr4-t.h,
18967         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
18968         config/stormy16/stormy16.h: Remove all references to
18969         -traditional from target specs.  Delete all mention of the
18970         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
18971         delete a couple of commented-out definitions of
18972         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
18973         to -traditional.
18974
18975         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
18976         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
18977
18978 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
18979
18980         * mklibgcc.in: Don't use \n in a line subject to
18981         interpretation by echo.
18982
18983 2002-02-27  Graham Stott  <grahams@redhat.com>
18984
18985         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
18986         Constify NAME.
18987
18988         * loop.c (prescan_loop): Handle PARALLEL.
18989
18990         * unroll.c (loop_iterations): Return 0 if the add_val for
18991         a BIV is REG.
18992
18993         * final.c (output_operand_lossage): Constify PFX_STR.
18994
18995         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
18996
18997 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
18998
18999         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
19000         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
19001
19002 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
19003
19004         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19005
19006 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19007
19008         * cpplex.c (_cpp_lex_token): Handle directives in macro
19009         arguments.
19010         * cpplib.c (_cpp_handle_directive): Save and restore state
19011         if parsing macro args when entering a directive.
19012         * cppmacro.c (collect_args): No need to handle directives
19013         in macro arguments.
19014         (enter_macro_context, replace_args): Use the original macro
19015         definition in case it was redefined whilst collecting arguments.
19016 doc:
19017         * cpp.texi: Update.
19018
19019 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
19020
19021         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
19022         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
19023         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
19024         method on AIX.
19025         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
19026         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
19027         (load_toc_v4_PIC_2): Same.
19028
19029 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
19030
19031         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
19032
19033 2002-02-26  Richard Henderson  <rth@redhat.com>
19034
19035         * config/alpha/alpha.md (ashldi_se): Re-enable.
19036
19037 2002-02-26  Richard Henderson  <rth@redhat.com>
19038
19039         * config/alpha/alpha.c (alpha_encode_section_info): Examine
19040         MODULE_LOCAL_P; improve commentary.
19041
19042 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
19043
19044         * doc/cpp.texi: Clarify documentation of relationship between
19045         #line and #include.
19046
19047 2002-02-26  Kazu Hirata  <kazu@hxi.com>
19048
19049         * config/h8300/h8300-protos.h: Update the prototype for
19050         compute_logical_op_length.  Add the prototype for
19051         compute_logical_op_cc.
19052         * config/h8300/h8300.c (compute_logical_op_length): Figure out
19053         code from operands.
19054         (compute_logical_op_cc): New.
19055         * config/h8300/h8300.md: Combine all the logical op patterns
19056         in HImode and SImode.  Use compute_logical_op_cc.
19057
19058 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
19059
19060         * config/i386/i386.c (print_operand): Don't append ATT-style
19061         length suffixs to x87 opcodes when in Intel mode.
19062
19063 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
19064
19065         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
19066         (init_emit_once): Update calls.
19067         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
19068         (init_syntax_once): Prototype.
19069
19070 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19071
19072         * pa-linux.h (LIB_SPEC): Update definition.
19073         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19074
19075 2002-02-26  Richard Henderson  <rth@redhat.com>
19076
19077         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
19078         if we emitted a stop bit.
19079
19080 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
19081
19082         * configure.in (libgcc_visibility): Substitute.
19083         * configure: Rebuilt.
19084         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
19085         defined symbols .hidden.
19086
19087 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
19088
19089         * attribs.c (c_common_attribute_table): Add visibility.
19090         (handle_visibility_attribute): New function.
19091         * varasm.c (assemble_visibility): New function.
19092         * output.h (assemble_visibility): Add prototype.
19093         * tree.h (MODULE_LOCAL_P): Define.
19094         * crtstuff.c (__dso_handle): Use visibility attribute.
19095         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
19096         for MODULE_LOCAL_P symbols too.
19097         * config/ia64/ia64.c (ia64_encode_section_info): Handle
19098         MODULE_LOCAL_P symbols the same way as local symbols.
19099         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
19100         into .sdata/.sbss by the user.
19101         * doc/extend.texi (Function Attributes): Document visibility
19102         attribute.
19103
19104 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
19105
19106         PR debug/5770
19107         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
19108         STRING_CST initializer spanning the whole variable without
19109         embedded zeros.
19110         If expand_expr returned MEM, don't use it.
19111
19112 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
19113
19114         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
19115         generate a die for the lexical block.
19116
19117 2002-02-26  Kazu Hirata  <kazu@hxi.com>
19118
19119         * config/h8300/h8300-protos.h: Add a prototype for
19120         compute_logical_op_length.
19121         * config/h8300/h8300.c (compute_logical_op_length): New.
19122         * config/h8300/h8300.md (anonymous logical patterns): Use
19123         compute_logical_op_length for length.
19124
19125 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
19126
19127         * dwarf2out.c (modified_type_die): Do not call type_main_variant
19128         for vectors.
19129         (gen_type_die): Same.
19130
19131         * attribs.c (handle_vector_size_attribute): Set debug information.
19132
19133 2002-02-26  Daniel Egger  <degger@fhm.edu>
19134
19135         * config/rs6000/rs6000.md: Swap define_insn attributes to
19136         fix incorrect generation of merge high instructions instead
19137         of merge low.
19138
19139 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
19140
19141         * c-typeck.c (really_start_incremental_init): Use
19142         bitsize_zero_node for vectors.
19143
19144 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
19145
19146         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
19147         ("*set_vrsave_internal"): Same.
19148
19149 2002-02-25  Richard Henderson  <rth@redhat.com>
19150
19151         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
19152         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
19153
19154 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
19155
19156         PR target/5755
19157         * config/i386/i386.c (ix86_return_pops_args): Only pop
19158         fake structure return argument if it was passed on the stack.
19159
19160 2002-02-25  Jason Merrill  <jason@redhat.com>
19161
19162         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
19163         RESULT_DECL.
19164
19165 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
19166
19167         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
19168         link with shared_name only.
19169         * doc/invoke.texi (Link Options): Document new behavior.
19170
19171 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
19172
19173         * c-typeck.c (push_init_level): Handle vectors.
19174
19175 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
19176
19177         * config/sparc/sparc.c (const64_high_operand): Zero-extend
19178         operands of SPARC_SETHI_P.
19179         (input_operand): Likewise.
19180         (sparc_emit_set_const32): Likewise.
19181         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
19182         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
19183         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
19184         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
19185         (movdi_insn_sp64_vis): Likewise.
19186         (movdi split, movdf split): Use SETHI32.
19187         * doc/md.texi: Document SPARC constraints L, M and N.
19188
19189 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
19190
19191         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
19192         ("*set_vrsave_internal"): use mfspr for Darwin.
19193
19194         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
19195         gen_get_vrsave_internal.
19196
19197 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19198
19199         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
19200
19201 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19202
19203         * cpplex.c (cpp_interpret_charconst): Get signedness or
19204         otherwise of wide character constants correct.
19205         * cppexp.c (lex): Get signedness of wide charconsts correct.
19206
19207 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19208
19209         * optabs.c (widen_operand): Only call convert_modes for
19210         promoted SUBREG if signedness matches.
19211         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
19212
19213 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19214
19215         * cpplib.c (glue_header_name): Use local buffer to build up
19216         header name.
19217
19218 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19219
19220         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
19221
19222 2002-02-23  Kazu Hirata  <kazu@hxi.com>
19223
19224         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
19225         H8/300[HS] separately.
19226         * config/h8300/h8300.md: Remove the early clobber constraint
19227         from bit field patterns.
19228
19229 2002-02-23  Kazu Hirata  <kazu@hxi.com>
19230
19231         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
19232         register_operand.
19233         (mulhisi3): Likewise.
19234         (umulqisi3): Likewise.
19235         (umulhisi3): Likewise.
19236
19237 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19238
19239         * cppinit.c (output_deps): Correct test for stdout output.
19240         (init_dependency_output): Cure warning.
19241
19242 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19243
19244         * expr.c (store_expr): When converting expression to promoted
19245         equivalent type, allow using SUBREG_REG of TARGET as the target
19246         of the expansion of EXP.
19247         * loop.c (basic_induction_var, case SUBREG): Always look inside.
19248         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
19249         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
19250         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
19251         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
19252
19253 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
19254
19255         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
19256         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
19257         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
19258
19259 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
19260
19261         PR optimization/5747
19262         * loop.c (scan_loop): Update reg info if move_movables created new
19263         pseudos.
19264
19265 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
19266
19267         * gcc.c (init_gcc_spec): Revert last change.
19268
19269 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
19270
19271         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
19272         gpc_reg_operand constraint.
19273
19274 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
19275
19276         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
19277         Simplify comparison of `low'.
19278         (add_operand): Fix formatting.
19279         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
19280         (mask_operand): Disallow mask to wrap in 64-bit mode.
19281         (rs6000_stack_info): Remove redundant test setting push_p.
19282         (output_toc): Fix formatting.
19283         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
19284         cc_reg_not_cr0_operand constraint.
19285         (booldi3, boolcdi3 splitters): Same.
19286
19287 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
19288
19289         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
19290
19291 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
19292
19293         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
19294         gcc invoked with -shared-libgcc.
19295
19296 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
19297
19298         PR c++/5748
19299         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
19300         decl if any of elements was TREE_USED.
19301
19302 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
19303
19304         * config/sparc/sol2.h: Don't include sys/mman.h.
19305         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
19306         (arith_4096_operand): Don't throw high bits away.
19307         (const64_operand): Take sign extension of CONST_INTs into account.
19308         (const64_high_operand, sparc_emit_set_const32): Likewise.
19309         (GEN_HIGHINT64): Likewise.
19310         (sparc_emit_set_const64_quick1): Likewise.
19311         (const64_is_2insns): Likewise.
19312         (print_operand): Use trunc_int_for_mode for sign extension.
19313         * config/sparc/sparc.h (SMALL_INT32): Likewise.
19314         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
19315         chars.  Assume CONST_INT is already properly sign-extended.
19316         (movdi split): Sign-extend each SImode part.
19317         (andsi3 split): Don't mask high bits off, so that result
19318         remains properly sign-extend.
19319         (iorsi3 split): Likewise.
19320         (xorsi3 split): Likewise.
19321
19322 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
19323
19324         * fold-const.c (fold): Fix typo in comments.
19325
19326 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
19327
19328         * Makefile.in (langhooks.o): Update dependencies.
19329
19330 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
19331
19332         * langhooks.c: Include flags.h.
19333
19334 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
19335
19336         * testsuite/gcc.dg/attr-alwaysinline.c: New.
19337
19338         * c-common.c (c_common_post_options): Set inline trees by
19339         default.
19340
19341         * doc/extend.texi (Function Attributes): Document always_inline
19342         attribute.
19343         Update documentation about inlining when not optimizing.
19344
19345         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
19346
19347         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
19348         unless DECL_ALWAYS_INLINE.
19349
19350         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
19351         unless DECL_ALWAYS_INLINE.
19352         (c_disregard_inline_limits): Disregard if always_inline set.
19353
19354         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
19355         Disregard if always_inline set.
19356         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
19357         unless DECL_ALWAYS_INLINE.
19358
19359         * attribs.c (handle_always_inline_attribute): New.
19360         (c_common_attribute_table): Add always_inline.
19361
19362         * config/rs6000/altivec.h: Add prototypes for builtins
19363         requiring the always_inline attribute.
19364
19365 2002-02-21  Eric Christopher  <echristo@redhat.com>
19366
19367         * expmed.c (store_bit_field): Try to simplify the subreg
19368         before generating a new one when when the mode size of
19369         value is less than maxmode.
19370
19371 2002-02-21  Richard Henderson  <rth@redhat.com>
19372
19373         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
19374         than gen_rtx_PLUS to form the sum.
19375         * explow.c (force_reg): Rearrange to not allocate new pseudo
19376         when force_operand returns a register.
19377         * expr.c (expand_assignment): Allow offset_rtx expansion to
19378         return a sum.  Do not force addresses into registers.
19379         (expand_expr): Likewise.
19380         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
19381         to canonicalize arithmetic that didn't simpify.
19382         (simplify_plus_minus): New argument force; update
19383         all callers.  Don't split CONST unless we can do something with it,
19384         and wouldn't lose the constness of the operands.
19385
19386         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
19387         that we generated earlier.
19388
19389 2002-02-21  Tom Tromey  <tromey@redhat.com>
19390
19391         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19392         (output_line_info): Use constant `1', with a long explanatory
19393         comment.
19394         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
19395
19396 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
19397
19398         * jump.c (redirect_jump): If old label has no UID, don't try to
19399         delete it.
19400
19401 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
19402
19403         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
19404         If input is constant, do shifts at compile time.
19405
19406 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19407
19408         * doc/extend.texi: Fix some more overfull hboxes.
19409
19410 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
19411
19412         PR optimization/4994
19413         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
19414         register moves.
19415
19416 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
19417
19418         PR c++/4574
19419         * expr.h (expand_and): Add mode argument.
19420         * expmed.c (expand_and): Add mode argument.
19421         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
19422         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
19423         * except.c (expand_builtin_extract_return_addr): Likewise.
19424         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19425         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
19426         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
19427         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
19428         * config/c4x/c4x.md: Use GEN_INT (x) instead of
19429         gen_rtx (CONST_INT, VOIDmode, x).
19430
19431 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
19432
19433         PR c/4697:
19434         * stmt.c (warn_if_unused_value): Move side effects test once more.
19435
19436 2002-02-20  Torbjorn Granlund  <tege@swox.com>
19437
19438         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
19439         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
19440
19441 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
19442
19443         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
19444         SUBREG or ZERO_EXTEND.
19445
19446 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
19447
19448         * sh.h (current_function_anonymous_args): Remove.
19449         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
19450         of current_function_varargs and current_function_stdarg is set.
19451         * sh.c (sh_expand_prologue): Check current_function_varargs /
19452         current_function_stdarg / TARGET_SH5 instead of
19453         current_function_anonymous_args.
19454
19455         * sh64.h (TARGET_VERSION): Define.
19456
19457 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
19458
19459         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
19460         VRSAVE_REGNO on TARGET_ALTIVEC.
19461
19462 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
19463
19464         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
19465         bits of SImode const_int.
19466         (includes_rshift_p): Likewise.
19467         (print_operand): Call mask_operand and mask64_operand with correct
19468         mode.
19469         (rs6000_output_function_epilogue): Pad traceback table to word.
19470         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
19471         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
19472         mask64_operand with correct mode.
19473         (FUNCTION_ARG_REGNO_P): Correct parentheses.
19474
19475 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
19476
19477         PR debug/4461
19478         * varasm.c (get_pool_constant_mark): New.
19479         * rtl.h (get_pool_constant_mark): Add prototype.
19480         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
19481         be represented if it has not been output.
19482
19483 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
19484
19485         * combine.c (do_SUBST): Sanity check substitutions of
19486         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
19487         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
19488         CONST_INT into its operand.
19489         (known_cond): Likewise, for ZERO_EXTEND.
19490         * simplify-rtx.c (simplify_unary_operation): Fix condition to
19491         allow for simplification of wide modes.  Reject CONST_INTs in
19492         ZERO_EXTEND when their actual mode is not given.
19493
19494 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
19495
19496         * c-decl.c (pushdecl): If no global declaration is found for an
19497         extern declaration in block scope, try a limbo one.
19498
19499 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
19500
19501         PR c++/4401
19502         * c-common.c (pointer_int_sum): Moved from...
19503         * c-typeck.c (pointer_int_sum): ...here.
19504         * c-common.h (pointer_int_sum): Add prototype.
19505
19506 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
19507
19508         PR c++/5713
19509         * c-decl.c (duplicate_decls): Return 0 if issued error about
19510         redeclaration.
19511
19512 2002-02-20  Roger Sayle  <roger@eyesopen.com>
19513             Jakub Jelinek  <jakub@redhat.com>
19514
19515         PR c/4389
19516         * tree.c (host_integerp): Ensure that the constant integer is
19517         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
19518         when pos is zero or non-zero respectively.  Clarify comment.
19519         * c-format.c (check_format_info_recurse): Fix host_integerp
19520         usage; the pos argument should be zero when assigning to a
19521         signed HOST_WIDE_INT.
19522
19523 2002-02-20  Richard Henderson  <rth@redhat.com>
19524
19525         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
19526         of the operand, rather than assuming TImode.
19527         (ix86_expand_binop_builtin): Cope with commutative patterns
19528         using nonimmediate_operand for both operands.
19529         (ix86_expand_timode_binop_builtin): Likewise.
19530         (ix86_expand_store_builtin): Validate operand 1.
19531         (ix86_expand_unop1_builtin): Likewise.
19532
19533 2002-02-20  Philip Blundell  <philb@gnu.org>
19534
19535         PR 5705
19536         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
19537
19538 2002-02-20  Richard Henderson  <rth@redhat.com>
19539
19540         PR c/5615
19541         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
19542
19543 2002-02-20  Tom Tromey  <tromey@redhat.com>
19544
19545         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19546         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19547         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19548         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19549         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
19550         unconditionally.
19551
19552 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
19553
19554         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
19555           for (const_int 0) in X not just INTVAL.
19556
19557 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
19558
19559         * doc/extend.texi: Avoid or reduce overfull hboxes.
19560
19561 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
19562
19563         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
19564         operations if the field does not start at a mode boundary.
19565
19566 2001-02-20      Joel Sherrill <joel@OARcorp.com>
19567
19568         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
19569         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
19570         Also done for -Acpu and -Amachine.
19571
19572 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
19573
19574         * cppinit.c (init_dependency_output): Take deps output file
19575         from -o if none given with -MF.  Suppress normal output.
19576         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
19577         * doc/cpp.texi, doc/invoke.texi: Update.
19578
19579 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
19580
19581         * toplev.c (output_quoted_string): Write unprintable
19582         characters with octal escapes.
19583
19584 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
19585
19586         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
19587         really_call_used[VRSAVE_REGNO] if not Altivec.
19588
19589 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
19590
19591         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
19592         MODE_MASK.
19593         (constant_pool_expr_1): Fix formatting.
19594         (rs6000_legitimize_reload_address): Likewise.
19595
19596 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19597
19598         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
19599         now that we have one.
19600
19601 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
19602
19603         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
19604         end of first block of bitfields (which was only seven bits);
19605         rename dummy to unused_1; remove comment which is no longer true.
19606
19607 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
19608
19609         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
19610
19611 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
19612
19613         PR 5399
19614         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
19615         if generating PIC.
19616
19617         PR 5054
19618         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
19619         arm_is_longcall_p rather than inspecting call-type cookie
19620         directly.
19621         (call_value_insn) [TARGET_THUMB]: Likewise.
19622
19623 2002-02-19  Graham Stott  <grahams@redhat.com>
19624
19625         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
19626
19627 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
19628
19629         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
19630         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
19631         (FP_SAVE_INLINE): Delete.
19632
19633         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
19634         * config/rs6000/eabi.asm: Remove ABI save restore routines.
19635         * config/rs6000/t-ppccomm: Build crtsavres.o.
19636         * config/rs6000/crtsavres.asm: New file.
19637
19638 2002-02-19  Philip Blundell  <philb@gnu.org>
19639
19640         * config/arm/arm.c (use_return_insn): Don't reject interrupt
19641         functions.
19642         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
19643         (output_return_instruction): Allow interrupt functions to return with
19644         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
19645         (arm_expand_prologue): Subtract 4 before stacking LR in an
19646         interrupt function.
19647
19648 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
19649
19650         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
19651         decl, not just FUNCTION_DECL.
19652         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
19653         (arm_assemble_integer): Likewise.
19654         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
19655         marked local.
19656
19657 2002-02-19  matthew green  <mrg@eterna.com.au>
19658
19659         * config.gcc (sparc-*-netbsdelf*): Enable target.
19660         (sparc64-*-netbsd*): New target.
19661         * config/sparc/netbsd-elf.h: New file.
19662         * config/sparc/t-netbsd64: New file.
19663
19664 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
19665
19666         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
19667
19668 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
19669
19670         * doc/invoke.texi: explicitly list the style guidelines that
19671         -Weffc++ checks for.
19672
19673 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
19674
19675         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
19676
19677 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
19678
19679         PR other/5718
19680         * gcc.c (cpp_unique_options): Treat -o as indicating object file
19681         only if not -E.  If -E, pass -o through to the preprocessor.
19682
19683 2002-02-19  Kazu Hirata  <kazu@hxi.com>
19684
19685         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
19686         register number with an appropriate macro.
19687
19688 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
19689
19690         * doc/rtl.texi (Constants): Close @code tag.
19691
19692 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
19693
19694         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
19695         ("mmx_uavgv4hi3"): Same.
19696         ("pmulhrwv4hi3"): Same.
19697
19698         * tree-inline.c (walk_tree): Handle vectors.
19699
19700         * c-common.c (constant_expression_warning): Handle vectors.
19701         (overflow_warning): Same.
19702
19703         * sched-deps.c (sched_analyze_2): Handle vectors.
19704
19705         * rtlanal.c (rtx_unstable_p): Handle vectors.
19706         (rtx_varies_p): Same.
19707         (count_occurrences): Same.
19708         (regs_set_between_p): Same.
19709         (modified_between_p): Same.
19710         (modified_in_p): Same.
19711         (volatile_insn_p): Same.
19712         (volatile_refs_p): Same.
19713         (side_effects_p): Same.
19714         (may_trap_p): Same.
19715         (inequality_comparisons_p): Same.
19716         (replace_regs): Same.
19717         (computed_jump_p_1): Same.
19718
19719         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
19720         argument.
19721         (inner_mode_array): New.
19722         (copy_rtx): Handle vectors.
19723         (copy_most_rtx): Same.
19724         (rtx_equal_p): Same.
19725         (get_mode_alignment): Adjust for vectors.
19726
19727         * resource.c (mark_referenced_resources): Handle vectors.
19728         (mark_set_resources): Same.
19729
19730         * reload1.c (eliminate_regs): Handle vectors.
19731         (elimination_effects): Same.
19732         (scan_paradoxical_subregs): Same.
19733
19734         * reload.c (subst_reg_equivs): Handle vectors.
19735
19736         * regrename.c (scan_rtx): Handle vectors.
19737
19738         * regclass.c (reg_scan_mark_refs): Handle vectors.
19739
19740         * recog.c (find_single_use_1): Handle vectors.
19741
19742         * local-alloc.c (equiv_init_varies_p): Handle vectors.
19743         (contains_replace_regs): Same.
19744         (memref_referenced_p): Same.
19745
19746         * integrate.c (copy_rtx_and_substitute): Handle vectors.
19747         (subst_constants): Same.
19748
19749         * genattrtab.c (attr_copy_rtx): Handle vectors.
19750         (encode_units_mask): Same.
19751         (clear_struct_flag): Same.
19752         (count_sub_rtxs): Same.
19753
19754         * gcse.c (want_to_gcse_p): Handle vectors.
19755         (oprs_unchanged_p): Same.
19756         (hash_expr_1): Same.
19757         (oprs_not_set_p): Same.
19758         (expr_killed_p): Same.
19759         (compute_transp): Same.
19760         (store_ops_ok): Same.
19761
19762         * function.c (purge_addressof_1): Do not allow paradoxical subregs
19763         of vectors.
19764         (fixup_var_refs_1): Same.
19765         (instantiate_virtual_regs_1): Same.
19766
19767         * fold-const.c (operand_equal_p): Handle vectors.
19768         (fold): Same.
19769         (rtl_expr_nonnegative_p): Same.
19770
19771         * flow.c (mark_used_regs): Handle vectors.
19772
19773         * df.c (df_uses_record): Handle vectors.
19774
19775         * cselib.c (cselib_subst_to_values): Handle vectors.
19776         (cselib_mem_conflict_p): Same.
19777         (hash_rtx): Same.
19778
19779         * cse.c (canon_reg): Handle vectors.
19780         (fold_rt): Same.
19781         (cse_process_notes): Same.
19782         (count_reg_usage): Same.
19783         (canon_hash): Same.
19784
19785         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
19786
19787         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
19788
19789         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
19790         (gen_rtx): Handle CONST_VECTOR.
19791         (gen_const_vector_0): New.
19792         (copy_rtx_if_shared): CONST_VECTORs can be shared.
19793         (reset_used_flags): Same.
19794         (copy_insn_1): Same.
19795         (initializer_constant_valid_p): Handle VECTOR_CST.
19796
19797         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
19798
19799         * doc/rtl.texi (Constants): Document const_vector.
19800         (CONST0_RTX): Update for vectors.
19801         (RTL sharing): Same.
19802
19803         * print-tree.c (print_node): Add case for VECTOR_CST.
19804
19805         * tree.h (TREE_VECTOR_CST_ELTS): New.
19806         (struct tree_vector): New.
19807         (union tree_node): Add vector node.
19808         (build_vector): Add prototype.
19809
19810         * tree.def (VECTOR_CST): New.
19811
19812         * tree.c (build_vector): New.
19813
19814         * expmed.c (make_tree): Handle CONST_VECTOR.
19815
19816         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
19817         (CONST_VECTOR_ELT): New.
19818         (CONST_VECTOR_NUNITS): New.
19819
19820         * machmode.h (GET_MODE_INNER): New.
19821         (DEF_MACHMODE): Accept 8th arg.
19822
19823         * machmode.def: Add 8th argument for vector inner mode.
19824         Add inner vector modes for vectors.
19825
19826         * rtl.def (VEC_CONST): Remove.
19827         (CONST_VECTOR): New.
19828
19829         * expr.c (clear_storage): Allow vectors.
19830         (is_zeros_p): Handle VECTOR_CST.
19831
19832         * varasm.c (output_constant_pool): Handle vectors.
19833         (rtx_const): Add veclo and vechi fields.
19834         (kind): Add RTX_VECTOR.
19835         (decode_rtx_const): Add case for vector.
19836
19837         * config/rs6000/rs6000-protos.h: Add zero_constant.
19838
19839         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
19840         constants.  Force easy vector constants into memory.
19841         (easy_vector_constant): New.
19842         (emit_easy_vector_constant): New.
19843         (rs6000_legitimize_reload_address): Do not generate bad reloads on
19844         darwin.
19845
19846         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
19847         instruction does.
19848         ("altivec_lvxl"): Same.
19849         (altivec_lvebx): Same.
19850         (altivec_lvehx): Same.
19851         (altivec_lvewx): Same.
19852         ("*movv4si_const0"): New.
19853         ("*movv4sf_const0"): New.
19854         ("*movv8hi_const0"): New.
19855         ("*movv16qi_const0"): New.
19856
19857 2002-02-18  Kazu Hirata  <kazu@hxi.com>
19858
19859         * config/h8300/h8300.c (notice_update_cc): Use
19860         cc_status.value2.
19861
19862 2002-02-18  Kazu Hirata  <kazu@hxi.com>
19863
19864         * config/h8300/h8300.md (divmod patterns): Change the
19865         constraints for operands[1] to register_operand.
19866
19867 2002-02-18  Kazu Hirata  <kazu@hxi.com>
19868
19869         * config/h8300/h8300-protos.h: Remove the prototype for
19870         p_operand.
19871         * config/h8300/h8300.c (p_operand): Remove.
19872         * config/h8300/h8300.md: Replace p_operand with
19873         const_int_operand.
19874
19875 2002-02-18 Philip Blundell <pb@nexus.co.uk>
19876
19877         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
19878         comment.
19879         (output_return_instruction): Allow use of LDR to unstack
19880         return addresss even for interrupt handlers or when
19881         interworking.  If compiling for ARMv5, use interworking-safe
19882         return instructions by default.  Remove duplicated code and
19883         lengthy "strcat" sequences.
19884
19885 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19886
19887         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
19888         (LINK_EH_SPEC): Define.
19889         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
19890
19891 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
19892
19893         * config/s390/s390.c (s390_emit_prologue): Do not set the
19894         frame_related flag for call-clobbered registers.
19895
19896 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
19897
19898         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
19899         (construct_container): Fix handling of SSE operands.
19900         (ix86_expand_builtin): Fix handling of 64bit pointers.
19901         (mmx_maskmovq_rex): New pattern.
19902
19903 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
19904
19905         * regrename.c (kill_set_value): Handle subregs properly.
19906
19907 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
19908
19909         * objc/objc-act.c (handle_impent): Remove leading '*'
19910         from objc_class_name.
19911
19912 2002-02-17  Richard Henderson  <rth@redhat.com>
19913
19914         * config/alpha/alpha.c (some_small_symbolic_operand,
19915         some_small_symbolic_operand_1, split_small_symbolic_operand,
19916         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
19917         Handle small SYMBOL_REFs anywhere, not just inside memories.
19918         * config/alpha/alpha-protos.h: Update.
19919         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19920         * config/alpha/alpha.md (small symbolic operand splitter): Update.
19921
19922 2002-02-17  Roland McGrath  <roland@frob.com>
19923
19924         * config.gcc (powerpc-*-gnu-gnualtivec*,
19925         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
19926         * config/rs6000/gnu.h: New file.
19927         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
19928         Grok "gnu" in rs6000_abi_name.
19929         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
19930         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
19931         Grok -mcall-gnu analogous to -mcall-linux et al.
19932         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19933         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
19934         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
19935
19936 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
19937
19938         PR c/3444:
19939         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
19940         shortening.
19941
19942 2002-02-17  Philipp Thomas  <pthomas@suse.de>
19943
19944         * config/cris/cris.h: Undefine STARTFILE_SPEC and
19945         ENDFILE_SPEC before (re)defining them.
19946
19947 2002-02-17  Kazu Hirata  <kazu@hxi.com>
19948
19949         * config/h8300/h8300.c: Fix formatting.
19950         * config/h8300/h8300.h: Likewise.
19951
19952 2002-02-17  Philipp Thomas  <pthomas@suse.de>
19953
19954         * doc/tm.texi: Explain why empty strings should not be
19955         marked for translation.
19956
19957 2002-02-17  Philipp Thomas  <pthomas@suse.de>
19958
19959         * final.c (output_operand_lossage): Changed to accept
19960         printf style arguments. Change calls where necessary.
19961         * output.h (output_operand_lossage): Change declaration
19962         accordingly. Update copyright.
19963         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
19964         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
19965         Update copyright date where necessary.
19966
19967         * config/i386/i386.c (print_operand): Likewise. Remove use of
19968         sprintf.
19969
19970         * config/cris/cris.c (cris_operand_lossage): Likewise.
19971         Rename parameter so that exgettext recognizes it as
19972         translatable message.
19973         (LOSE_AND_RETURN): Rename parameter to msgid.
19974
19975 2002-02-17  Kazu Hirata  <kazu@hxi.com>
19976
19977         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
19978         hard coded register number with an appropriate macro.
19979         (HARD_REGNO_MODE_OK): Likewise.
19980         (ARG_POINTER_REGNUM): Likewise.
19981         (STATIC_CHAIN_REGNUM): Likewise.
19982         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
19983         * config/h8300/h8300.md (define_constants): Define more
19984         register numbers.
19985
19986 2002-02-17  Philipp Thomas  <pthomas@suse.de>
19987
19988         * config/i386/i386.h: Don't mark empty strings for translation.
19989
19990 2002-02-16  H.J. Lu <hjl@gnu.org>
19991
19992         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
19993
19994 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
19995
19996         * cppinit.c (merge_include_chains): Check for brack being
19997         NULL before attempting to merge it with qtail.
19998
19999 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
20000
20001         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
20002         DBX_DEBUG.
20003
20004 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20005
20006         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
20007
20008 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20009
20010         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
20011         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
20012         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
20013
20014 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20015
20016         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
20017         now only if !TARGET_FIX.
20018         (*movsi_nt_vms_fix): New pattern.
20019
20020 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
20021
20022         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
20023         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
20024         (alpha_sa_mask, alpha_sa_size): Reflect above change.
20025         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
20026         (alpha_start_function, alpha_expand_epilogue): Likewise.
20027         (unicosmk_gen_dsib): Likewise.
20028
20029 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20030
20031         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
20032
20033 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
20034
20035         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
20036         check_and_change_labels, s390_final_chunkify): Delete.
20037         (s390_split_branches, s390_chunkify_pool): New functions.
20038         (s390_function_prologue): Call them.
20039
20040         * config/s390/s390.h (S390_REL_MAX): Delete.
20041         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
20042
20043         * config/s390/s390.md (cjump, icjump, jump): Fix length
20044         attribute calculation.
20045
20046
20047 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
20048
20049         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
20050         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
20051
20052 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20053
20054         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
20055         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
20056         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
20057
20058 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
20059
20060         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
20061
20062 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
20063
20064         * reload.c (find_dummy_reload): Check that an output register
20065         is valid for its mode.
20066
20067 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
20068
20069         * combine.c (known_cond): After replacing the REG of a SUBREG, try
20070         to simplify it.
20071
20072         * function.c (assign_parms): Demote promoted argument passed by
20073         transparent reference.
20074
20075 2001-02-14      Joel Sherrill <joel@OARcorp.com>
20076
20077         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
20078         -Acpu() and -Amachine() to eliminate warnings.
20079
20080 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
20081
20082         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
20083
20084 2002-02-14  Kazu Hirata  <kazu@hxi.com>
20085
20086         * config/h8300/h8300-protos.h: Update the prototype for
20087         const_costs.
20088         * config/h8300/h8300.c (const_costs): Treat SET as a little
20089         more expensive operation.
20090         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
20091         reference to const_costs.
20092
20093 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
20094
20095         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
20096
20097 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
20098
20099         PR c/5503:
20100         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
20101         use arguments from newtype.
20102
20103 2002-02-13  Eric Christopher  <echristo@redhat.com>
20104
20105         * config/mips/mips.c (override_options): Add check for march/mipsX
20106         on the same command line. Fix error message in cpu processing.
20107         Remove architecture and ISA checks.
20108
20109 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
20110
20111         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
20112
20113         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
20114
20115 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
20116
20117         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
20118         alternatives.
20119         ("*movv8hi_internal1"): Same.
20120         ("*movv16qi_internal1"): Same.
20121         ("*movv4sf_internal1"): Same.
20122
20123         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
20124         not push_reload for altivec modes.
20125
20126 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
20127
20128         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
20129         all RTEMS targets including removal of #includes from config/*/rtems*.h
20130         file and adding them to tm_file setting. Added xm_defines=POSIX to
20131         many targets.
20132         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
20133         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
20134         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
20135         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
20136         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
20137         config/m68k/rtemself.h: Ditto.
20138         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
20139         config/mips/rtems64.h: Ditto.
20140         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
20141         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
20142         Ditto.
20143         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
20144         config/sparc/rtemself.h: Ditto.
20145         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
20146         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
20147         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
20148         more like arm-elf.
20149         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
20150         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
20151         target made more similar to i386-elf.
20152         * config/i386/t-rtems-i386: Added soft float support and multilibs.
20153         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
20154         be similar to config/m68k/t-m68kelf.
20155         * gthr-rtems.h: Encapsulate with extern "C" for C++.
20156
20157 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
20158
20159         * regmove.c (kill_value): Handle subregs.
20160
20161 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
20162
20163         * i386.md (mul patterns): Allow memory operand to be first;
20164         add expanders where needed; fix constraints.
20165         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
20166         Allow memory operand to be the first.
20167
20168         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
20169         operands.
20170
20171 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
20172
20173         PR c/5681:
20174         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
20175         GET_MODE (x).
20176
20177 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
20178
20179         PR optimization/5547:
20180         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
20181         all valid IA-32 address modes involving non-scaled %ebx and
20182         GOT/GOTOFF as displacement.
20183
20184 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
20185
20186         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
20187         after emitting ltorg insns.
20188
20189         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
20190         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
20191         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
20192         *abssf2): Fix "op_type" attribute.
20193
20194 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
20195
20196         * mkconfig.sh: Avoid using a subshell redirect.
20197         ($output.T): Change to $(output)T.
20198         (ENABLE_NLS): Remove unneeded undef.
20199
20200         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
20201         * config/alpha/x-vms (libsubdir): Define.
20202
20203         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
20204         register frame procedures. Optimize retrieving context.
20205
20206         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
20207         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
20208         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
20209
20210 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20211
20212         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
20213         Make same change as for find_base_value.
20214
20215 2002-02-13  Kazu Hirata  <kazu@hxi.com>
20216
20217         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
20218         of QImode and SImode.
20219
20220 2002-02-13  Kazu Hirata  <kazu@hxi.com>
20221
20222         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
20223         length computation of movsi.
20224         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
20225
20226 2002-02-13  Kazu Hirata  <kazu@hxi.com>
20227
20228         * config/h8300/h8300.md (subqi3): Tighten the predicate for
20229         operands[2] to register_operand.
20230
20231 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
20232
20233         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
20234
20235 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
20236
20237         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
20238         for altivec_lvx* and altivec_stvx*.
20239         ("*movv4si_internal"): Add constraint for loading from GPRs.
20240         ("*movv8hi_internal1"): Same.
20241         ("*movv16qi_internal1"): Same.
20242         ("*movv4sf_internal1"): Same.
20243
20244         * config/rs6000/rs6000.c (altivec_register_operand): New.
20245
20246         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
20247         altivec_register_operand.
20248
20249 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
20250
20251         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
20252         handle SYMBOL_REF.
20253
20254 2002-02-13  Stan Shebs  <shebs@apple.com>
20255
20256         * c-typeck.c (digest_init): Handle vectors.
20257         (really_start_incremental_init): Same.
20258         (pop_init_level): Same.
20259         (process_init_element): Same.
20260
20261         * varasm.c (output_constant): Same.
20262
20263         * expr.c (clear_storage): Same.
20264         (store_constructor): Same.
20265
20266 2002-02-12  Eric Christopher  <echristo@redhat.com>
20267
20268         * explow.c (hard_function_value): Add comment explaining
20269         signed/unsigned comparison.
20270
20271 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
20272
20273         * jump.c (never_reached_warning): Add finish argument.
20274         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
20275         real insn after end.
20276         * rtl.h (never_reached_warning): Adjust prototype.
20277         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
20278         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
20279         never_reached_warning.
20280
20281 2002-02-12  Graham Stott  <grahams@redhat.com>
20282
20283         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
20284
20285 2002-02-12  Kazu Hirata  <kazu@hxi.com>
20286
20287         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
20288         logical shifts on H8/300.
20289         (shift_alg_si): Improve several shifts on H8/300.
20290         (get_shift_alg): Likewise.
20291
20292 2002-02-12  Graham Stott  <grahams@redhat.com>
20293
20294         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
20295
20296 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20297
20298         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
20299         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
20300
20301 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
20302
20303         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
20304         non-CONST_INT through default_assemble_integer.
20305         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
20306         <case 8>: Abort for CONST_DOUBLE.
20307
20308 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20309
20310         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
20311         is specified.
20312         * config/pa/pa-linux.h (LIB_SPEC): Delete.
20313         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
20314
20315 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
20316
20317         * config/stormy16/stormy16.md (zero_extendqihi2): New.
20318
20319 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
20320
20321         * regrename.c (regrename_optimize): Don't accept a
20322         part-clobbered register if the replaced register is not part
20323         clobbered.
20324
20325         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
20326         take padding into account when computing the argument value.
20327
20328         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
20329
20330         * combine.c (try_combine): Apply substitutions in
20331         CALL_INSN_FUNCTION_USAGE too.
20332
20333 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
20334
20335         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
20336         __builtin_altivec_abs*.
20337         (bdesc_abs): New.
20338
20339         * config/rs6000/rs6000.h (rs6000_builtins): Add
20340         ALTIVEC_BUILTIN_ABS*.
20341
20342         * config/rs6000/altivec.h: Use const char for builtins expecting
20343         literals.
20344         (vec_abs): New versions for C and C++.
20345         (vec_abss): Same.
20346
20347 2002-02-10  Kazu Hirata  <kazu@hxi.com>
20348
20349         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
20350         using Pmode.
20351
20352 2002-02-10  Kazu Hirata  <kazu@hxi.com>
20353
20354         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
20355         constant definition from h8300.md.
20356         (FRAME_POINTER_REGNUM): Likewise.
20357         * config/h8300/h8300.md (define_constants): Add FP_REG.
20358
20359 2002-02-10  Kazu Hirata  <kazu@hxi.com>
20360
20361         * config/h8300/h8300.c (print_operand): Remove redundant code.
20362
20363 2002-02-10  Kazu Hirata  <kazu@hxi.com>
20364
20365         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
20366         * config/h8300/h8300.c (byte_reg): Make it static.
20367
20368 2002-02-10  Richard Henderson  <rth@redhat.com>
20369
20370         PR c/5623
20371         * c-typeck.c (incomplete_type_error): Handle flexible array members.
20372
20373 2002-02-10  Richard Henderson  <rth@redhat.com>
20374
20375         PR c++/5624
20376         * tree.c (append_random_chars): Don't abort if main_input_filename
20377         does not exist.
20378
20379 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
20380
20381         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
20382
20383 2002-02-10  Kazu Hirata  <kazu@hxi.com>
20384
20385         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
20386         (pushhi1): Likewise.
20387
20388 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20389
20390         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
20391         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
20392
20393 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
20394
20395         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
20396         remove MASK_VIS.
20397         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
20398
20399 2002-02-09  Kazu Hirata  <kazu@hxi.com>
20400
20401         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
20402         a half of an SImode register on H8/300.
20403
20404 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
20405
20406         * i386.md (movdi_2): Add missing '!'.
20407
20408 2002-02-09  Kazu Hirata  <kazu@hxi.com>
20409
20410         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
20411         definitions.
20412
20413 2002-02-09  Kazu Hirata  <kazu@hxi.com>
20414
20415         * config/h8300/h8300.md (length): Correct the distance valid
20416         for the short branch.
20417
20418 2002-02-09  Kazu Hirata  <kazu@hxi.com>
20419
20420         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
20421
20422 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
20423
20424         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
20425         registers in SImode.
20426         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
20427         part-clobbered.
20428
20429         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
20430         patch.
20431
20432         Contribute sh64-elf.
20433         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
20434         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
20435         (sh_cannot_modify_jumps_p): New function.
20436         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
20437         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
20438         (sh_ms_bitfield_layout_p): New function.
20439         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
20440                     Zack Weinberg  <zack@codesourcery.com>
20441         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
20442         expand_simple_binop instead of expand_binop.
20443         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
20444         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
20445         use of .quad and .uaquad.
20446         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
20447         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
20448         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20449         * config/sh/sh.md (movdi_const, movdi_const_32bit,
20450         movdi_const_16bit): Make sure all CONSTs have modes.
20451         (sym2PIC): Ditto, but by adjusting all callers.
20452         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
20453         if the prologue calls the SHmedia argument decoder or register
20454         saver.
20455         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20456         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
20457         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
20458         (sh_expand_epilogue): Don't emit USE of return target register.
20459         (prepare_move_operands): Legitimize DImode PIC addresses.
20460         (sh_media_register_for_return): Skip tr0, used to initialize the
20461         PIC register.
20462         (sh_expand_prologue): Remove explicit USE of return register.
20463         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
20464         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
20465         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
20466         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
20467         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
20468         EXTRA_CONSTRAINT_T.
20469         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
20470         (MOVI_SHORI_BASE_OPERAND_P): New.
20471         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
20472         (EXTRA_CONSTRAINT_T): Define in terms of them.
20473         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
20474         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
20475         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
20476         alternatives supporting TARGET_REGS.
20477         (UNSPEC_GOTPLT): New constant.
20478         (movdi split): Move incrementing of LABEL_NUSES...
20479         (movdi_const, movdi_const_32bit): Here.  Use
20480         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
20481         (movdi_const_16bit): New.
20482         (call, call_value) [flag_pic]: Use GOTPLT.
20483         (call_pop, call_value_pop): New expands.
20484         (call_pop_compact, call_pop_rettramp): New insns.
20485         (call_value_pop_compact, call_value_pop_rettramp): New insns.
20486         (sibcall) [flag_pic]: Use GOT.
20487         (builtint_setjmp_receiver): Remove bogus, unused expand.
20488         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
20489         (*pt, *ptb, ptrel): New insns.
20490         (sym2GOT): Handle DImode GOT.
20491         (sym2GOTPLT, symGOTPLT2reg): New expands.
20492         (sym2PIC): New expand.
20493         (shcompact_return_tramp): Use GOTPLT to return trampoline.
20494         (shcompact_return_tramp_i): Use return register explicitly.
20495         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
20496         disable flag_reorder_blocks.
20497         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
20498         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
20499         clobbers, for clarity.
20500         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
20501         restoring of r0 in macl as MAYBE_DEAD.
20502         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
20503         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
20504         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
20505         alter_subreg all over.
20506         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
20507         reload, instead of emitting instructions that would require
20508         reloading.
20509         (casesi_load_media): Add missing modes.
20510         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
20511         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
20512         as used if the argument decoder is called.
20513         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
20514         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
20515         Pmode, then extend it to DImode if necessary.
20516         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
20517         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
20518         constants in FPU-enabled SHmedia, let them be loaded from memory.
20519         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
20520         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
20521         Adjust whitespace in assembly output templates.
20522         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
20523         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
20524         mode of if_then_else.
20525         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
20526         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
20527         sh.h.
20528         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
20529                     Joern Rennecke <amylaar@redhat.com>
20530         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
20531         (SUBTARGET_CPP_PTR_SPEC): New.
20532         (SUBTARGET_CPP_SPEC): Remove.
20533         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
20534         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
20535         Fix typo in previous checkin.
20536         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
20537         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
20538         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
20539                     Alexandre Oliva  <aoliva@redhat.com>
20540         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
20541         what single FP register can hold for SHmedia target.
20542         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
20543                     Alexandre Oliva  <aoliva@redhat.com>
20544         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
20545         Do not split into SUBREG.
20546         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
20547         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
20548         and added new functions as specified in SH5 ABI r9.
20549         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
20550         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
20551         8-byte boundary.
20552         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
20553         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
20554         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
20555         and consttable_window_ends.
20556         2001-06-03  Graham Stott  <grahams@redhat,com>
20557         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
20558         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
20559         * config/sh/sh.c (print_operand): Handle floating-point pair,
20560         vector and matrix registers.
20561         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
20562         vector modes into account.
20563         * config/sh/sh.md (movv2sf): Split move between registers into
20564         movdf.
20565         (movv4sf, movv16sf): Introduce insns that get split only after
20566         reload.
20567         * config/sh/shmedia.h: Fix Copyright dates.
20568         * config/sh/ushmedia.h: Likewise.  Move loop counter
20569         declarations into conditionals that uses them.
20570         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
20571         loop boundary.
20572         * config/sh/sshmedia.h: Fix Copyright dates.
20573         (sh_media_PUTCFG): Fix constraints.
20574         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
20575         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
20576         ptrmemfunc_vbit_in_delta for SH5.
20577         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
20578         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
20579         * invoke.texi: Likewise.
20580         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
20581         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
20582         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
20583         GCC_pop_shmedia_regs_nofpu): New global symbols.
20584         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
20585         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
20586         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
20587         compact function with nonlocal labels.
20588         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
20589         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
20590         (initial_elimination_offset): Account for their stack space.
20591         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
20592         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
20593         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
20594         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
20595         least one of the operands to be a register.
20596         (movv2sf): Likewise.  Renamed to movv2sf_i.
20597         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
20598         prepare_move_operands() before emitting SHmedia insns.
20599         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
20600         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
20601         Don't save nor initialize r12.  Don't mis-align the stack.
20602         Pad the code with a nop.
20603         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
20604         stack.
20605         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
20606         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
20607         [__SHMEDIA__]: Implement.
20608         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
20609         * config/sh/sh.md: Set latency of `pt' closer to reality.
20610         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
20611         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
20612         Set move, load and store type attributes.
20613         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
20614         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
20615         profiling.
20616         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
20617         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
20618         * config/sh/sh.c (sh_media_register_for_return): New function.
20619         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
20620         branch-target register.
20621         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
20622         * config/sh/sh.md (return_media_i): Use any call-clobbered
20623         branch-target register.
20624         (return_media): If r18 wasn't copied in the prologue, copy it
20625         here.
20626         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
20627         Clear class FP0_REGS.
20628         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
20629         from elf.h.
20630         2001-03-08  DJ Delorie  <dj@redhat.com>
20631         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
20632         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
20633         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
20634         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
20635         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
20636         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
20637         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
20638         return value correctly for call_cookie.
20639         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
20640         * config/sh/crt1.asm (start): Modified so as to call
20641         ___setup_argv_and_call_main.
20642         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
20643         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
20644         SHmedia mode.
20645         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
20646         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
20647         (STRIP_NAME_ENCODING): Use it.
20648         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
20649         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
20650         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
20651         prepare_scc_operands().
20652         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
20653         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
20654         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
20655         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
20656         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
20657         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
20658         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
20659         used in shcompact_incoming_args.
20660         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
20661         change.
20662         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
20663         mode.
20664         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
20665         Adjust accordingly.
20666         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20667         Simplify.  Adjust.  Add sanity check.
20668         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
20669         FPU_SINGLE_BIT.
20670         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
20671         TARGET_SHCOMPACT.
20672         (udivsi3, divsi3): Use them.
20673         (force_mode_for_call): New insn.
20674         (call, call_value, sibcall_value): Emit it before SHcompact
20675         calls.
20676         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
20677         * config/sh/sh.md (call, call_value, sibcall): Make sure the
20678         call cookie is non-NULL before taking its value.
20679         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
20680         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
20681         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
20682         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
20683         block.
20684         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
20685         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
20686         temporary for stack adjusts.  Use MACL and MACH to pass
20687         arguments to shcompact_incoming_args.
20688         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
20689         clobber r1.
20690         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
20691         (nested_trampoline): Load static chain address into r1.
20692         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
20693         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
20694         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
20695         fp_arith_reg_operand().
20696         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
20697         * config/sh/sh.md (casesi): Sign-extend the first two operands,
20698         and use signed compares for them.
20699         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
20700         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
20701         ones properly aligned.
20702         (find_barrier): Account for extra alignment needed for 8-byte wide
20703         constants.
20704         (machine_dependent_reorg): Require a label for the second 4-byte
20705         constant after an 8-byte one.
20706         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
20707         change.
20708         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
20709         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
20710         last_float when switching float modes.
20711         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
20712         auto-increment for general-purpose registers.
20713         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
20714         result.
20715         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
20716         for stack adjust.
20717         * config/sh/sh.c (sh_builtin_saveregs): Support using all
20718         registers for varargs.
20719         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
20720         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
20721         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
20722         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
20723         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
20724         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
20725         call_cookie accordingly.
20726         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
20727         (SHCOMPACT_BYREF): Likewise.
20728         (SHCOMPACT_FORCE_ON_STACK): New macro.
20729         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
20730         (sh_builtin_saveregs): Likewise.
20731         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20732         shcompact_incoming_args): Use new shift values.  Support
20733         sequences of consecutive and non-consecutive pushes/pops.
20734         * config/sh/sh.md (return): Don't explicitly use PR_REG.
20735         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
20736         * config/sh/sh.h (TEXT_SECTION): Define.
20737         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
20738         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
20739         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
20740         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
20741         return values on FPU-enabled SHmedia.
20742         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
20743         FPU-enabled SHmedia.
20744         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
20745         value is returned in a non-FP reg and is not returned by
20746         reference.
20747         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
20748         jump_ind.
20749         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
20750         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
20751         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
20752         quad-aligned to be passed by callee-copy reference.
20753         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
20754         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
20755         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
20756         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
20757         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
20758         copying low-numbered FP regs to r7 and r8.
20759         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
20760         FP regs to general-purpose regs only if the copy was passed on the
20761         stack.
20762         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
20763         copying FP reg to r9.
20764         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
20765         copy FP regs to general-purpose regs only in outgoing calls.
20766         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
20767         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
20768         HOST_WIDE_INT.
20769         * config/sh/sh.h (struct sh_args): Document all fields.
20770         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
20771         passed partially on the stack should not consider making
20772         sibcalls.
20773         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
20774         stack_regs only for incoming calls.  When passing FP args,
20775         make sure there are FP regs available before modifying
20776         call_cookie.
20777         (SHCOMPACT_BYREF): Pass double args in general-purpose
20778         registers by reference.
20779         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
20780         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
20781         attempt to generate sibcalls if the caller got any arguments
20782         by reference.
20783         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
20784         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
20785         to 8-byte boundaries.
20786         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
20787         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
20788         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
20789         stored in the stack.
20790         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
20791         for the offsets to have the ISA bit set.
20792         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
20793         invocation.  Use beq instead of bgt to mark end of sequence of
20794         loads.
20795         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
20796         bgt to mark end of sequence of stores.
20797         * config/sh/sh.c (arith_operand): Don't check whether
20798         CONST_OK_FOR_J for now.
20799         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
20800         instead of long for conversion.
20801         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
20802         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
20803         before passing it to fprintf.
20804         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
20805         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
20806         Call set_fpscr before reading/writing SR.
20807         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
20808         Call set_fpscr.
20809         * config/sh/lib1funcs.asm: Add `.align 2' directives before
20810         SHmedia code.
20811         (FMOVD_WORKS): Define on SH5 with FPU.
20812         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
20813         setting.
20814         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
20815         _fpscr_values.
20816         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
20817         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
20818         address.
20819         (ia_main_table): Ditto.
20820         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
20821         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20822         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
20823         the definitions from sh.h.
20824         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
20825         TARGET_SH5.
20826         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
20827         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
20828         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20829         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
20830         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
20831         Increment LABEL_NUSES.
20832
20833         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
20834         TARGET_SH5.
20835         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
20836         defined.
20837         * config/sh/elf.h (SIZE_TYPE): Likewise.
20838         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20839         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20840         shcompact_incoming_args): Load switch table addresses using
20841         datalabel.
20842         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20843         (NO_BUILTIN_SIZE_TYPE): Define.
20844         (SIZE_TYPE): Don't define.
20845         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20846         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
20847         definition of __SH5__=32 for -m5-compact-nofpu.
20848         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
20849         ADDR_DIFF_VEC.
20850         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
20851         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
20852         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
20853         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
20854         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
20855         (INSN_LENGTH_ALIGNMENT): Likewise.
20856         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
20857         * config/sh/sh.md (call, call_value, sibcall): Simplify
20858         copying of non-branch-target register.
20859         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
20860         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
20861         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
20862         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
20863         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
20864         floating-point values as structs.
20865         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
20866         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
20867         general-purpose register.
20868         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
20869         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
20870         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
20871         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
20872         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
20873         (ENCODE_SECTION_INFO): Enclose variables and constants in
20874         DATALABEL unspecs.
20875         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
20876         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
20877         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
20878         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
20879         only for LABEL_REFs.  For SYMBOL_REFs, prepend
20880         SH_DATALABEL_ENCODING to the symbol name.
20881         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
20882         convert_mode().
20883         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
20884         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
20885         UNSPEC_DATALABEL.
20886         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
20887         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
20888         (DATALABEL_REF_P): Don't require CONST.
20889         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
20890         REL label.
20891         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
20892         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
20893         right.
20894         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
20895         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
20896         Use shallow_copy_rtx and PUT_MODE to change the mode of
20897         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
20898         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
20899         on SHmedia using GENERAL_REGs.
20900         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20901         bltu_media_i): Fix reversion of conditions.
20902         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
20903         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
20904         * config/sh/sh.c (output_far_jump): Save r13 in macl.
20905         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
20906         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
20907         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
20908         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
20909         (GCC_nested_trampoline): Likewise.
20910         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
20911         * config/sh/sh.c (gen_datalabel_ref): Define.
20912         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
20913         (INITIALIZE_TRAMPOLINE): Likewise.
20914         (TRAMPOLINE_ADJUST_ADDRESS): Define.
20915         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
20916         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
20917         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
20918         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
20919         (ic_invalidate): Adjust for SH5.
20920         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
20921         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
20922         _nested_trampoline.
20923         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
20924         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
20925         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
20926         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
20927         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
20928         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
20929         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
20930         * config/sh/sh.c (target_reg_operand): Match only target-branch
20931         registers and pseudos that aren't virtual registers.
20932         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20933         Copy operands that don't match target_reg_operand to pseudos.
20934         (call_media, call_value_media, sibcall_media): Use
20935         target_reg_operand instead of target_operand.
20936         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
20937         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
20938         * config/sh/sh.c (target_reg_operand): Match hardware registers
20939         other than branch-target registers.
20940         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
20941         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
20942         (fpscr_values) [SH5 == 32]: Define.
20943         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
20944         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20945         Handle function addresses coming in SUBREGs.
20946         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
20947         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20948         shcompact_return_trampoline): Use datalabel where appropriate.
20949         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
20950         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
20951         general-purpose register to copy one branch-target register to
20952         another.
20953         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
20954         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
20955         SYMBOL_REFs with VOIDmode.
20956         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20957         bltu_media_i): New insns.
20958         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
20959         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
20960         (INIT_CUMULATIVE_ARGS): Likewise.
20961         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
20962         * machmode.def (V16SFmode): New mode.
20963         * c-common.c (type_for_mode): Support V2SF and V16SF.
20964         * tree.c (build_common_tree_nodes_2): Likewise.
20965         * tree.h (tree_index): Likewise.
20966         * calls.c (emit_call_1): Take args_so_far.  Adjust all
20967         callers.  Introduce CALL_POPS_ARGS.
20968         * tm.texi (CALL_POPS_ARGS): Document.
20969         * config/sh/crt1.asm: Implement in SHmedia mode.
20970         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
20971         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
20972         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
20973         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
20974         Implement divsi and udivsi in SHmedia mode.  Introduce
20975         SHcompact trampolines.
20976         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
20977         only in SHmedia64.
20978         (regno_reg_class): Rewrite.
20979         (fp_reg_names): Remove.
20980         (sh_register_names, sh_additional_register_names): New.
20981         (print_operand): Added `u'.  Support SUBREGs in addresses.
20982         Add parentheses around shifted CONSTs.
20983         (output_file_start): Output .mode and .abi directives.
20984         (shiftcosts, addsubcosts, multcosts): Adjust.
20985         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
20986         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
20987         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
20988         bytes, not registers.  Take into account the need for the
20989         SHcompact incoming args trampoline.  Adjust all callers.
20990         (sh_expand_prologue): Take stack_regs into account.  Call
20991         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
20992         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
20993         stack aligned as per SH5 ABI.
20994         (sh_builtin_saveregs): Support SH5 ABI.
20995         (sh_build_va_list, sh_va_start): Likewise.
20996         (initial_elimination_offset): Take alignment into account.
20997         Compute location of PR according to the SH5 stack frame.
20998         (arith_reg_operand): Reject branch-target registers.
20999         (shmedia_6bit_operand): New.
21000         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
21001         (target_reg_operand): Match DImode only.  Accept SUBREGs.
21002         (target_operand): New.
21003         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
21004         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
21005         SIBCALL_REGS for SHmedia.
21006         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
21007         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
21008         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
21009         (TARGET_SWITCHES): New SH5 flags.
21010         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
21011         VALID_REGISTER_P to disable unsupported registers.
21012         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
21013         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
21014         (FUNCTION_ARG_PADDING): Define.
21015         (FASTEST_ALIGNMENT): Adjust.
21016         (SH_REGISTER_NAMES_INITIALIZER): New.
21017         (sh_register_names): Declare.
21018         (DEBUG_REGISTER_NAMES): Define.
21019         (REGISTER_NAMES): Define based on sh_register_names.
21020         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
21021         (sh_additional_register_names): Declare.
21022         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
21023         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
21024         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
21025         (REGISTER_NATURAL_MODE): Define.
21026         (FIRST_PSEUDO_REGISTER): Adjust.
21027         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
21028         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
21029         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
21030         (VECTOR_MODE_SUPPORTED_P): Define.
21031         (REG_CLASS_CONTENTS): Adjust.
21032         (SMALL_REGISTER_CLASSES): Adjust.
21033         (REG_ALLOC_ORDER): Adjust.
21034         (INDEX_REG_CLASS): Adjust.
21035         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
21036         (CONST_OK_FOR_LETTER_P): Adjust.
21037         (PREFERRED_RELOAD_CLASS): Adjust.
21038         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
21039         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
21040         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
21041         (FIRST_FP_PARM_REG): Adjust.
21042         (CALL_POPS_ARGS): Define.
21043         (FUNCTION_ARG_REGNO_P): Adjust.
21044         (struct sh_args): New fields.
21045         (GET_SH_ARG_CLASS): Adjust.
21046         (INIT_CUMULATIVE_ARGS): Adjust.
21047         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
21048         (FUNCTION_ARG_ADVANCE): Adjust.
21049         (FUNCTION_ARG): Adjust.
21050         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
21051         (FUNCTION_ARG_CALLEE_COPIES): Define.
21052         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
21053         (STRICT_ARGUMENT_NAMING): Define.
21054         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
21055         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
21056         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
21057         (SETUP_INCOMING_VARARGS): Adjust.
21058         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
21059         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
21060         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
21061         (SUBREG_OK_FOR_INDEX_P): Adjust.
21062         (EXTRA_CONSTRAINT_S): Update.
21063         (EXTRA_CONSTRAINT_T): New.
21064         (EXTRA_CONSTRAINT): Adjust.
21065         (GO_IF_LEGITIMATE_INDEX): Adjust.
21066         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
21067         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
21068         (MOVE_MAX): Adjust.
21069         (MAX_MOVE_MAX): Define.
21070         (Pmode): Adjust.
21071         (CONST_COSTS): Adjust.
21072         (REGISTER_MOVE_COST): Adjust.
21073         (BRANCH_COST): Adjust.
21074         (TEXT_SECTION_ASM_OP): Adjust.
21075         (DBX_REGISTER_NUMBER): Adjust.
21076         (ASM_OUTPUT_DOUBLE_INT): New.
21077         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
21078         (PREDICATE_CODES): Adjust.
21079         (PROMOTE_MODE): Adjust.
21080         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
21081         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
21082         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
21083         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
21084         (DR0_REG, DR2_REG, DR4_REG): Renumber.
21085         (TR0_REG, TR1_REG, TR2_REG): New.
21086         (XD0_REG): Renumber.
21087         (UNSPEC_COMPACT_ARGS): New.
21088         (type): Added pt and ptabs.
21089         (length): Default to 4 on SHmedia.  Default pt length to 12
21090         and     20 on SHmedia32 and SHmedia64, respectively.
21091         (pt): New function unit.
21092         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
21093         Add whitespace between operands of SHmedia instructions.
21094         (movdicc): Fix.
21095         (adddi3_media, addsi3_media): Adjust constraints.
21096         (subsi3) [SHmedia]: Force operand 1 into a register.
21097         (udivsi3_i1_media, udivsi3_i4_media): New.
21098         (udivsi3): Support SHmedia.
21099         (divsi3_i1_media, divsi3_i4_media): New.
21100         (divsi3): Support SHmedia.
21101         (anddi3, iordi3, xordi3): Adjust constraints.
21102         (zero_extendhidi2, zero_extendqidi2): New.
21103         (extendsidi2, extendhidi2, extendqidi2): New.
21104         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
21105         (pop_e, pop_fpul, pop_4): Likewise.
21106         (movsi_media): Support FP and BT registers.
21107         (movsi_media_nofpu): New.  Adjust splits to DImode.
21108         (lduw, ldub): Renamed to zero_extend* above.
21109         (movqi_media): Fix typo.
21110         (movdi_media): Support FP and BT registers.
21111         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
21112         (movdi_const_32bit): New.
21113         (shori_media): Require immediate operand.  Use `u' for output.
21114         (movdf_media, movsf_media): Simplified.
21115         (movdf_media_nofpu, movsf_media_nofpu): New.
21116         (movdf, movsf): Adjust
21117         (movv2sf, movv2sf, movv16sf): New.
21118         (beq_media, beq_media_i): Adjust constraints.  Don't use
21119         scratch BT register.
21120         (bne_media, bne_media_i): Likewise.
21121         (bgt_media, bgt_media_i): Likewise.
21122         (bge_media, bge_media_i): Likewise.
21123         (bgtu_media, bgtu_media_i): Likewise.
21124         (bgeu_media, bgeu_media_i): Likewise.
21125         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
21126         bunordered): Emit jump insn.  Force operands to registers when
21127         needed.
21128         (jump_media, jump): Simplify.
21129         (call_compact, call_compact_rettramp): New.
21130         (call_value_compact, call_value_compact_rettramp): New.
21131         (call_media, call_value_media): Simplify.
21132         (sibcall_compact, sibcall_media): New.
21133         (call, call_value): Adjust for SHmedia and SHcompact.
21134         (sibcall, sibcall_value, untyped_call): Likewise.
21135         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
21136         (indirect_jump): Adjust for SHmedia.
21137         (casesi_jump_media): New.
21138         (nop): Re-enable for SHmedia.
21139         (call_site): Restrict to SH1.
21140         (casesi): Adjust for SHmedia.
21141         (casesi_shift_media, casesi_load_media): New.
21142         (return): Explicitly use PR register.  Call return trampoline
21143         on SHcompact.
21144         (return_i): Explicitly use PR register.
21145         (shcompact_return_tramp, shcompact_return_tramp_i): New.
21146         (return_media): Adjust.
21147         (shcompact_incoming_args): New.
21148         (epilogue): Adjust.
21149         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
21150         (movstrsi): Disable on SH5.
21151         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
21152         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
21153         (subsf3, subsf3_media): Likewise.
21154         (mulsf3, mulsf3_media, mac_media): Likewise.
21155         (divsf3, divsf3_media): Likewise.
21156         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
21157         (floatsisf2, fux_truncsfsi2): Likewise.
21158         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
21159         constraints.
21160         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
21161         (cmpunsf_media, cmpsf): Likewise.
21162         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
21163         (abssf2, abssf2_media): Likewise.
21164         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
21165         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
21166         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
21167         (floatsidf2, fix_truncdfsi2): Likewise.
21168         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
21169         constraints.
21170         (cmpeqdf_media, cmpgtdf_media): Likewise.
21171         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
21172         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
21173         (absdf2, absdf2_media): Likewise.
21174         (extendsfdf2, extendsfdf2_media): Likewise.
21175         (truncsfdf2, truncsfdf2_media): Likewise.
21176         * config/sh/sh64.h: New file.
21177         * config/sh/t-sh64: New file.
21178         * config/sh/shmedia.h: New file.
21179         * config/sh/ushmedia.h: New file.
21180         * config/sh/sshmedia.h: New file.
21181         * configure.in: Added sh64-*-elf.
21182         * configure: Rebuilt.
21183         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
21184         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
21185         (reg_class_from_letter): Use `b' for TARGET_REGS.
21186         (print_operand): Support `%M', `%m', `AND' and
21187         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
21188         (andcosts): Adjust for SHmedia.
21189         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
21190         Likewise.
21191         (target_reg_operand): New function.
21192         * config/sh/sh-protos.h (target_reg_operand): Declare.
21193         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
21194         FP registers on SH5.
21195         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
21196         on SH4.
21197         (TARGET_REGISTER_P): New macro.
21198         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
21199         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
21200         (EXTRA_CONSTRAINT_S): New macro.
21201         (EXTRA_CONSTRAINT): Adjust.
21202         (FLOAT_TYPE_SIZE): Define to 32.
21203         (Pmode): DImode on SHmedia.
21204         (CONST_COSTS): Adjust for SHmedia literals.
21205         (PREDICATE_CODES): Added target_reg_operand.
21206         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
21207         * config/sh/sh.md: Remove all attrs from SHmedia insns.
21208         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
21209         (cmpdi): Accept SHmedia.
21210         (movdicc_false, movdicc_true): New insns.
21211         (movdicc): New expand.
21212         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
21213         no_new_pseudos.
21214         (addsi3_media): Match `S' constraint.
21215         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
21216         (negdi2): Expand for SHmedia.
21217         (one_cmpldi2): New expand.
21218         (zero_extendsidi2): Change from expand to insn.
21219         (extendsidi2): Add constraints.
21220         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
21221         LD/ST address.  Fix SI immediate loading split.
21222         (movhi_media, movqi_media, lduw, ldub): New insns.
21223         (movhi, movqi): Accept SHmedia.
21224         (shori_media, movdi_media): Relax input constraints.  Split
21225         symbolic constants.
21226         (movdf_media, movsf_media): New insn.  New split to movdi.
21227         (movdf, movsf): Match on SHmedia.
21228         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
21229         bgeu_media): New insns and splits.  New insns with `_i' suffix.
21230         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
21231         (bunordered): New expand.
21232         (jump_compact): Renamed from `jump'.
21233         (jump_media): New insn.
21234         (jump): New expand.
21235         (call_media, call_value_media): New insns.
21236         (call, call_value): Adjust.
21237         (indirect_jump_compact): Renamed from `indirect_jump'.
21238         (indirect_jump_media): New insn.
21239         (indirect_jump): New expand.
21240         (untyped_call, return): Accept SHmedia.
21241         (return_media): New insn.
21242         (prologue, epilogue, blockage): Accept SHmedia.
21243         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
21244         (sunordered): New expand.
21245         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
21246         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
21247         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
21248         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
21249         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
21250         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
21251         abssf2_media): New insns.
21252         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
21253         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
21254         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
21255         floatdidf2, floatsidf2_media, fix_truncdfdi2,
21256         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
21257         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
21258         absdf2_media): New insns.
21259         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
21260         (extendsfdf2_media, truncdfsf2_media): New insns.
21261         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
21262         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
21263         * config/sh/sh.h (CONST_OK_FOR_J): Document.
21264         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
21265         * config/sh/sh.md (adddi3): New expand.
21266         (adddi3_media, adddi3z_media): New insns.
21267         (adddi3_compact): Renamed from adddi3.
21268         (addsi3_media): Use add.l r63 to add constant zero.
21269         (subdi3): New expand.
21270         (subdi3_media): New insn.
21271         (subdi3_compact): Renamed from subdi3.
21272         (mulsidi3): New expand.
21273         (mulsidi3_media): New insn.
21274         (mulsidi3_compact): Renamed from mulsidi3.
21275         (umulsidi3): New expand.
21276         (umulsidi3_media): New insn.
21277         (umulsidi3_compact): Renamed from umulsidi3.
21278         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
21279         (ashlsi3, ashrsi3, lshrsi3): Use them.
21280         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
21281         (ashldi3, ashrdi3, lshrdi3): Use them.
21282         (zero_extendsidi2): New expand.
21283         (extendsidi2): New insn.
21284         (movsi_media): New insn.  Split to movdi to load constants.
21285         (movsi): Enable for shmedia.
21286         (movdi_media): New insn.  Use shori_media to load wide constants.
21287         (short_media): New insn.
21288         (movdi): Enable for shmedia.
21289         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
21290         * config/sh/sh.h (CPP_SPEC): Added `m5'.
21291         (SUBTARGET_CPP_SPEC): Added `!m5'.
21292         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
21293         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
21294         to all other SH variants.
21295         (TARGET_DEFAULT): Set to SH1_BIT.
21296         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
21297         (BITS_PER_WORD): Raise to 64 on shmedia.
21298         (MAX_BITS_PER_WORD): Change to 64.
21299         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
21300         (INT_TYPE_SIZE): Keep as 32.
21301         (UNITS_PER_WORD): Raise to 8 on shmedia.
21302         (MIN_UNITS_PER_WORD): Keep as 4.
21303         (POINTER_SIZE): Raise to 64 on shmedia.
21304         (CONST_OK_FOR_J): New macro.
21305         (CONST_OK_FOR_LETTER_P): Use it.
21306         (processor_type): Add PROCESSOR_SH5.
21307         * config/sh/sh.md: Conditionalize all expands, insns and
21308         splits to TARGET_SH1.
21309         (cpu): Added sh5.
21310         (addsi3_compact): Renamed from...
21311         (addsi3): Now an expand.
21312         (addsi3_media, subsi3_media): New insns.
21313         (subsi3): Don't negate constants with SHmedia.
21314
21315         * hooks.c: New file.
21316         * hooks.h: New file.
21317         * Makefile.in (HOOKS_H): New.
21318         (TARGET_DEF_H): Added $(HOOKS_H).
21319         (OBJS): Added hooks.o.
21320         (cfgcleanup.o, bb-reorder.o): Added target.h.
21321         (hooks.o): Added dependencies.
21322         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
21323         (TARGET_INITIALIZER): this.
21324         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
21325         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
21326         * bb-reorder.c: Include target.h.
21327         (reorder_basic_blocks): Skip if cannot modify jumps.
21328         * cfgcleanup.c: Include target.h.
21329         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
21330
21331 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
21332
21333         * config/mips/mips.md (casesi_internal, casesi_internal_di):
21334         Protect jump delay slot instructions with .set noreorder and
21335         .set nomacro.
21336
21337 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
21338
21339         * config/mips/mips.md (casesi_internal_di): Calculate
21340         the index into the target offset table correctly.
21341
21342 2002-02-08  Richard Henderson  <rth@redhat.com>
21343
21344         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
21345         * final.c (output_addr_const): Accept and discard SUBREG.
21346         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
21347         mark them unknown instead.
21348         (simplify_subtraction): Handle RTX_UNKNOWN.
21349         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
21350
21351 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
21352
21353         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
21354
21355 2002-02-08  Richard Henderson  <rth@redhat.com>
21356
21357         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
21358
21359 2002-02-08  Andreas Jaeger  <aj@suse.de>
21360
21361         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
21362         * config/i386/t-linux64: New file.
21363
21364 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
21365
21366         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
21367         * c-parse.in (compstmt): Clear last_expr_type.
21368
21369 2002-02-07  Richard Henderson  <rth@redhat.com>
21370
21371         * loop.c (strength_reduce): Sink final_value when not
21372         eliminating a biv.
21373
21374 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
21375
21376         * config/sparc/freebsd.h: Fix mismatched spec {.
21377
21378 2002-02-07  Richard Henderson  <rth@redhat.com>
21379
21380         * cfgrtl.c: Include recog.h and insn-config.h.
21381         (keep_with_call_p): Fix general_operand invocation.
21382         * Makefile.in (cfgrtl.o): Update dependencies.
21383
21384 2002-02-07  Kazu Hirata  <kazu@hxi.com>
21385
21386         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
21387         comment.  Accept HImode only if TARGET_H8300.
21388
21389 2002-02-07  Eric Christopher  <echristo@redhat.com>
21390
21391         * config/mips/crtn.asm: Cleanup #ifdefs.
21392
21393 2002-02-07  Eric Christopher  <echristo@redhat.com>
21394
21395         * config/mips/crti.asm: Add changes for mips16. mips16 uses
21396         register 7 as RA instead of $31.
21397         * config/mips/crtn.asm: Ditto.
21398         * config/mips/mips.c (mips_move_2words): Add case for
21399         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
21400         (compute_frame_size): Fix typo.
21401         (save_restore_insns): Ditto.  Make documentation about using
21402         register $7 as return register more precise.
21403         (mips_expand_epilogue): Fix comment. Add code to work around not
21404         being able to add to the stack pointer directly.
21405         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
21406         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
21407         epilogue.
21408
21409 2002-02-07  Tom Rix  <trix@redhat.com>
21410
21411         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
21412         immediates in ldu and stdu DS opcode field.
21413         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
21414         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
21415         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
21416
21417 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
21418
21419         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
21420         offset for stack bias.
21421
21422 2002-02-07  H.J. Lu <hjl@gnu.org>
21423
21424         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
21425
21426 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
21427
21428         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
21429
21430 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
21431
21432         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
21433         * i386.c (x86_order_regs_for_local_alloc): New global function.
21434         * i386.h (REG_ALLOC_ORDER): CLeanup.
21435         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
21436
21437 2002-02-07  Richard Henderson  <rth@redhat.com>
21438
21439         PR optimization/2463
21440         * alias.c (find_base_value): Recall base values for fixed hard regs.
21441         * loop.c (loop_regs_update): Don't use single_set on non-insns.
21442
21443 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
21444
21445         * config/mips/mips.md (define_delay) [mips16]: Adjust required
21446         length.
21447
21448 2002-02-06  Richard Henderson  <rth@redhat.com>
21449
21450         PR c/5609
21451         * stmt.c (resolve_operand_name_1): Take more care with mixed
21452         named and unnamed operands.
21453
21454 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
21455             Jan Hubicka  <jh@suse.cz>
21456
21457         * loop.c (remove_constant_addition): Avoid clobbering a shared
21458         CONST expression.
21459
21460 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
21461
21462         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
21463         * config/s390/t-linux64: New file.
21464         * config/s390/libgcc-glibc.ver: New file.
21465
21466 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
21467
21468         * config/s390/linux64.h: Delete file.
21469         * config/s390/s390x.h: New file.
21470         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
21471         as target header file.
21472         * config/s390/linux.h (TARGET_VERSION): Define depending on
21473         DEFAULT_TARGET_64BIT.
21474         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
21475         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
21476         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
21477         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
21478         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
21479         (EXTRA_SPEC): New define.
21480         * config/s390/s390.h (TARGET_VERSION): Define depending on
21481         DEFAULT_TARGET_64BIT.
21482         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
21483
21484 2002-02-06  Jason Merrill  <jason@redhat.com>
21485
21486         * c-decl.c (finish_function): Warn about a non-void function with
21487         no return statement and no abnormal exit.
21488         (current_function_returns_abnormally): New variable.
21489         (start_function): Clear it.
21490         (struct c_language_function): Add returns_abnormally.
21491         (push_c_function_context): Save it.
21492         (pop_c_function_context): Restore it.
21493         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
21494         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
21495         an explicit return type.
21496         * c-tree.h: Declare current_function_returns_abnormally.
21497         (C_FUNCTION_IMPLICIT_INT): New macro.
21498         * c-typeck.c (build_function_call): Set it.
21499         (c_expand_return): Set current_function_returns_value even if the
21500         value is erroneous.
21501
21502 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
21503
21504         PR c/5420:
21505         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
21506         unsafe for reevaluation.
21507
21508 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
21509
21510         PR c/5482:
21511         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
21512         EXPR_STMT, but COMPOUND_STMT, recurse into it.
21513
21514 2002-02-06  Richard Henderson  <rth@redhat.com>
21515
21516         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
21517         be a general_operand.  Dest for function value must be a pseudo.
21518
21519 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
21520
21521         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
21522         as SYMBOL_REFs from the constant pool.
21523
21524 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
21525
21526         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
21527         passed by invisible reference.
21528
21529 2002-02-05  Richard Henderson  <rth@redhat.com>
21530
21531         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
21532
21533 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
21534
21535         Implement using "base addresses" in insn operands as default.
21536         * config/mmix/mmix.c (mmix_conditional_register_usage): if
21537         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
21538         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
21539         used to read the rtx value.
21540         (mmix_target_asm_function_epilogue): Fix spacing.
21541         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
21542         (mmix_legitimate_address): Ditto.
21543         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
21544         should be loaded with a GETA insn.  Don't allocate needless extra
21545         char for nul termination and fix misleading comment.
21546         (mmix_print_operand_address): Handle constants if
21547         TARGET_BASE_ADDRESSES.
21548         (mmix_output_register_setting): Use base addressing if
21549         TARGET_BASE_ADDRESSES and the number of insns is 3.
21550         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
21551         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
21552         to use R as constraint, add LDA to match s.
21553         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
21554         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
21555         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
21556         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
21557         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
21558         order with other fixed registers.
21559         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
21560         other parameter/call-clobbered registers.
21561         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
21562         -mbase-addresses, -mno-base-addresses.
21563         (MMIX Options): Ditto.
21564
21565 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21566
21567         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
21568
21569 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
21570
21571         * config/rs6000/altivec.h: Change elem to _S_elem.
21572
21573 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
21574
21575         * config/netbsd.h (WCHAR_TYPE): Define.
21576         (WCHAR_TYPE_SIZE): Ditto.
21577         (WINT_TYPE): Ditto.
21578         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
21579         (WCHAR_UNSIGNED): Ditto.
21580         (WCHAR_TYPE_SIZE): Ditto.
21581         (WINT_TYPE): Ditto.
21582         * config/arm/netbsd.h: Likewise.
21583         * config/i386/netbsd-elf.h: Likewise.
21584         * config/i386/netbsd.h: Likewise.
21585         * config/m68k/netbsd-elf.h: Likewise.
21586         * config/m68k/netbsd.h: Likewise.
21587         * config/ns32k/netbsd.h: Likewise.
21588         * config/sparc/netbsd.h: Likewise.
21589         * config/vax/netbsd.: Likewise.
21590
21591 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
21592
21593         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
21594         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
21595         (TARGET_INITIALIZER): this.
21596         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
21597         (BITFIELD_NBYTES_LIMITED): Markup fix.
21598         * tree.h (default_ms_bitfield_layout_p): Declare.
21599         (record_layout_info): Added prev_field.
21600         * tree.c (default_ms_bitfield_layout_p): New fn.
21601         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
21602         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
21603         * stor-layout.c: Include target.h.
21604         (start_record_layout): Initialize prev_field.
21605         (place_field): Handle MS bit-field layout, and disregard
21606         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
21607         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
21608         * Makefile.in (stor-layout.o): Adjust dependencies.
21609
21610 2002-02-05  Jason Merrill  <jason@redhat.com>
21611
21612         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
21613
21614 2002-02-05  Andreas Jaeger  <aj@suse.de>
21615
21616         * crtstuff.c: Fix comments.
21617
21618 2002-02-05  Richard Henderson  <rth@redhat.com>
21619
21620         PR fortran/3393
21621         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
21622         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
21623
21624         PR fortran/3392
21625         * config/mips/mips.c (function_arg): Handle TImode.
21626         (function_arg_advance): Likewise.
21627
21628 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
21629
21630         * config/rs6000/altivec.h (vec_step_help): Rename to
21631         __vec_step_help.
21632
21633 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
21634
21635         * config/rs6000/altivec.h: Fix typos.
21636
21637 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
21638
21639         * config/arm/netbsd.h: Correct a comment.
21640
21641 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
21642
21643         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
21644         building void typed builtins.
21645
21646         * config/rs6000/altivec.h (vec_ld*): Fix typos.
21647         (vec_step): Implement for C++.
21648
21649 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21650
21651         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
21652
21653 2002-02-04  Richard Henderson  <rth@redhat.com>
21654
21655         * combine.c (nonzero_bits): Re-introduce special case for
21656         sp/fp/ap wrt REGNO_POINTER_ALIGN.
21657
21658 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
21659
21660         * doc/extend.texi: Warn about unsupported usage of altivec
21661         builtins.
21662
21663         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
21664         (altivec_predicate_*): New.
21665
21666         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
21667         Add C++ version of vec_*() functions.
21668
21669         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
21670         (bdesc_2arg): Remove altivec predicates.
21671         (altivec_expand_builtin): Handle predicates.
21672         (altivec_init_builtins): Handle predicates.
21673         (altivec_expand_predicate_builtin): New.
21674
21675 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21676
21677         * pa.c (DO_FRAME_NOTES): Move forward.
21678         (store_reg): Revise handling of frame notes.
21679         (load_reg): Likewise.
21680         (set_reg_plus_d): Likewise.
21681         (hppa_expand_prologue): Likewise.
21682         (hppa_expand_epilogue): Likewise.
21683
21684 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21685
21686         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
21687
21688 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
21689
21690         PR c/4475, c++/3780:
21691         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
21692         * c-common.h (SWITCH_TYPE): Define.
21693         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
21694         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
21695         Rename spareness variable to sparseness.
21696         (expand_end_case_type): Renamed from expand_end_case, use orig_type
21697         if non-NULL instead of TREE_TYPE (orig_index).
21698         * tree.h (expand_end_case_type): Renamed from expand_end_case.
21699         (expand_end_case): Define using expand_end_case_type.
21700         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
21701         to expand_end_case_type.
21702         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
21703
21704 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21705
21706         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
21707         (BIGGEST_ALIGNMENT): Change to 128.
21708
21709 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21710
21711         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
21712
21713 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21714
21715         * pa.md (call_internal_reg_64bit): Remove unused variable.
21716
21717 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
21718
21719         * config/arm/arm.h (machine_function): Add uses_anonymous_args
21720         field.
21721         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
21722         * config/arm/arm.c (current_function_anonymous_args): Delete,
21723         replace uses with cfun->machine->uses_anonymous_args.
21724         (arm_reorg): Do not reset uses_anonymous_args.
21725
21726         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
21727         any geenral register.
21728
21729 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
21730
21731         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
21732         the entry block.
21733
21734 2002-02-04  Richard Henderson  <rth@redhat.com>
21735
21736         * combine.c (force_to_mode): Remove STACK_BIAS code.
21737         (nonzero_bits): Likewise.  Replace sp/fp special case with
21738         REGNO_POINTER_ALIGN.
21739
21740         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
21741         (HARD_FRAME_POINTER_REGNUM): New.
21742         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
21743         (FIXED_REGS, CALL_USED_REGS): Update.
21744         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
21745         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
21746         (HARD_REGNO_NREGS): Update for SFP.
21747         (STACK_POINTER_OFFSET): Include bias here ...
21748         (FIRST_PARM_OFFSET): ... not here.
21749         (STACK_BIAS): Remove.
21750         (INIT_EXPANDERS): New.
21751         (STARTING_FRAME_OFFSET): Do not include bias.
21752         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
21753         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
21754         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
21755         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
21756         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
21757         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
21758         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
21759         (MUST_SAVE_REGISTER): Likewise.
21760         (sparc_flat_function_prologue): Likewise.
21761         (sparc_flat_function_epilogue): Likewise.
21762         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
21763         (sparc_init_modes): SFP is GENERAL_REGS.
21764         (sparc_builtin_saveregs): SFP does not have bias applied.
21765
21766 2002-02-04  Richard Henderson  <rth@redhat.com>
21767
21768         * config/alpha/alpha.c (current_function_is_thunk): Don't check
21769         current_function_is_thunk.
21770         (alpha_sa_mask): Distinguish between current_function_is_thunk
21771         called from ASM_OUTPUT_MI_THUNK and not.
21772         (alpha_does_function_need_gp): Thunks always need gp.
21773         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21774         (alpha_output_mi_thunk_osf): New.
21775         * config/alpha/alpha-protos.h: Update.
21776         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
21777
21778 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
21779
21780         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
21781         function types, not when they're taken away.
21782
21783 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
21784
21785         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
21786         CODE_LABEL and jump table when replacing a table jump with a
21787         simple jump.
21788
21789 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
21790
21791         * config/s390/s390-protos.h (legitimize_la_operand,
21792         s390_secondary_input_reload_class, s390_plus_operand,
21793         s390_expand_plus_operand): Add prototypes.
21794
21795         config/s390/s390.c (s390_secondary_input_reload_class,
21796         s390_plus_operand, s390_expand_plus_operand): New functions.
21797
21798         (struct s390_address): New member 'pointer'.
21799         (s390_decompose_address): Compute it.
21800         (legitimate_la_operand_p): Use it.
21801         (legitimize_la_operand): New function.
21802         (movti, movdi, movdf splitters): Call it.
21803
21804         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
21805         (PREDICATE_CODES): Add s390_plus_operand.
21806
21807         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
21808         (la_ccclobber): Allow GENERAL_REGS as output operand.
21809
21810         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
21811         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
21812         (*la_64, *la_31, reload_indi, reload_insi): ... these.
21813
21814 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
21815
21816         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
21817         register names for regular asm () construct.
21818
21819 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
21820
21821         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
21822         registers.
21823
21824 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
21825
21826         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
21827         pat for recog.
21828
21829 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
21830
21831         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
21832         constant pool to be identical by string address and index.
21833
21834 2002-02-04  Anthony Green  <green@redhat.com>
21835
21836         * output.h (SECTION_OVERRIDE): Define.
21837         * varasm.c (named_section): Obey SECTION_OVERRIDE.
21838
21839 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
21840
21841         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
21842         by existing arm*-*-netbsd* (a.out) target.
21843         (ns32k-*-netbsdelf*): Likewise.
21844         (sparc-*-netbsdelf*): Likewise.
21845         (vax-*-netbsdelf*): Likewise.
21846
21847 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
21848
21849         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
21850         headers and libobjc headers.
21851
21852 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
21853
21854         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
21855         (_mingw.h): Remove duplicate include.
21856
21857 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
21858
21859         * config.gcc: Set cpu_type to m68k for 68010, as well.
21860         (m68010-*-netbsdelf*): New...
21861         (m68k*-*-netbsdelf*): ...targets.
21862         * config/m68k/netbsd-elf.h: New file.
21863
21864 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21865
21866         * config/h8300/h8300.c (hand_list): Move inside function_arg.
21867
21868 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21869
21870         * config/h8300/h8300.c (h8_push_ops): Move inside
21871         h8300_init_once.
21872         (h8_pop_ops): Likewise.
21873         (h8_move_ops): Likewise.
21874
21875 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21876
21877         * config/h8300/h8300.c (os_task): Make it static.
21878         (monitor): Likewise.
21879         (pragma_saveall): Likewise.
21880
21881 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
21882
21883         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
21884         constant is a valid sign-extension for Pmode.
21885
21886 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21887
21888         * config/h8300/h8300.c: Fix formatting.
21889
21890 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21891
21892         * config/h8300/h8300.md: Fix formatting.
21893
21894 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21895
21896         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
21897         predicates of operands[1].  Split the patterns for each
21898         processor variant.
21899
21900 2002-02-02  Kazu Hirata  <kazu@hxi.com>
21901
21902         * config/h8300/h8300.md (xor patterns): Tighten the predicates
21903         of operands[1] to register_operand.
21904
21905 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
21906
21907         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
21908         * cpphash.c (_cpp_init_hashtable): Similarly.
21909         * cppinit.c (cpp_create_reader): Default the signed_char flag.
21910         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
21911         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
21912         (cpp_handle_option): Handle the new options.
21913         * cpplex.c (cpp_interpret_charconst): Use new flag.
21914         * cpplib.h (struct cpp_options): New member signed_char.
21915         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
21916         (cpp_options): Handle -fsigned-char and -funsigned-char.
21917         (static_specs): Remove signed_char_spec.
21918         (do_spec1): Don't handle %c.
21919         * system.h: Poison SIGNED_CHAR_SPEC.
21920         * tradcif.y (yylex): Use flag_signed_char.
21921         * tradcpp.h (flag_signed_char): New.
21922         * tradcpp.c (flag_signed_char): New.
21923         (main): Handle new command-line options.
21924         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
21925 config:
21926         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
21927         * avr/avr.h: Remove old comments.
21928         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
21929         (CC1_SPEC): Pass -fsigned-char if -mic*.
21930         (SIGNED_CHAR_SPEC): Remove.
21931 doc:
21932         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
21933
21934 2002-02-01  Eric Christopher  <echristo@redhat.com>
21935
21936         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
21937         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
21938         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
21939         (ASM_OUTPUT_REG_POP): Ditto.
21940
21941 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
21942
21943         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
21944         patch.
21945
21946 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
21947
21948         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
21949
21950 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
21951
21952         PR c/5304:
21953         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
21954         unconditionally.
21955
21956 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
21957
21958         * cfganal.c: Include tm_p.h.
21959         (keep_with_call_p): Fix the test that determines if a register holds
21960         the return value of a call.
21961
21962 2002-02-01  DJ Delorie  <dj@redhat.com>
21963
21964         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
21965         we are given conflicting registers, switch to the other one we
21966         had allocated for us.
21967         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
21968         as TImode so we know when the "other" register is available.
21969
21970 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
21971
21972         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
21973         sparc/sparc_bi.h.
21974
21975 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
21976
21977         * cfganal.c (keep_with_call_p): New function.
21978         (flow_call_edges_add): Prevent splitting a block between a call and
21979         a single-set instruction that should be kept in the same block.
21980
21981 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21982
21983         * doc/install.texi (avr): Update outdated URL.
21984
21985 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
21986
21987         * config/stormy16/stormy16.md (pushqi): New.
21988         (popqi): New.
21989         (pushhi): New.
21990         (pophi): New.
21991         (movhi): Remove stack operands.
21992         (movqi): Likewise.
21993         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
21994         nonimmediate_nonstack_operand.
21995         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
21996         New.
21997         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
21998         New.
21999
22000 2002-01-31  Jason Merrill  <jason@redhat.com>
22001
22002         * Makefile.in (c-parse.c): Handle .output file.
22003         * objc/Make-lang.in (objc-parse.c): Likewise.
22004
22005 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
22006
22007         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
22008         the -me[lb] option is given.  Don't output the default flag
22009         twice.
22010
22011 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
22012
22013         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
22014         the primary source file; this has not been done yet.
22015         * c-decl.c (c_expand_body): Reset input_filename from
22016         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
22017
22018 2002-01-31  Kazu Hirata  <kazu@hxi.com>
22019
22020         * rtlanal.c (subreg_regno_offset): Do not use
22021         SUBREG_REGNO_OFFSET.
22022         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
22023         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
22024
22025 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
22026
22027         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
22028         version rather than GNATS version in --version output.
22029
22030 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
22031
22032         * ifcvt.c (noce_process_if_block): Make a copy of the destination
22033         when copying back from a temporary.
22034
22035 2002-01-30  Richard Henderson  <rth@redhat.com>
22036
22037         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
22038         and new_dest are the same.
22039
22040 2002-01-30  Richard Henderson  <rth@redhat.com>
22041
22042         PR opt/5076
22043         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
22044         * rtl.c (note_insn_name): Update.
22045         * emit-rtl.c (remove_unnecessary_notes): Kill it.
22046         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
22047         to perform loop rotation.
22048         (expand_exit_loop_top_cond): New.
22049         * tree.h (expand_exit_loop_top_cond): Declare it.
22050         * c-semantics.c (genrtl_while_stmt): Use it.
22051         (genrtl_for_stmt): Likewise.
22052
22053 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
22054
22055         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
22056         arguments to 64-bit boundaries on 64-bit ABIs.
22057
22058 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
22059
22060         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
22061
22062 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
22063
22064         * c-decl.c (grokdeclarator): Handle type being a typedef for an
22065         invalid type.
22066
22067 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
22068
22069         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
22070         * config/sparc/sparc_bi.h: Remove file.
22071         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
22072
22073 2002-01-30  Richard Henderson  <rth@redhat.com>
22074
22075         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
22076
22077 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
22078
22079         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
22080
22081 2002-01-30  Jason Merrill  <jason@redhat.com>
22082
22083         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
22084         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
22085         (reg_save): Use DW_CFA_offset_extended_sf instead.
22086
22087         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
22088
22089 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
22090
22091         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
22092         in cselib_lookup.
22093
22094 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
22095
22096         * rs6000.md ("*call_value_local32"): Remove constraints.
22097         ("*call_value_local64"): Same.
22098         ("*call_value_indirect_nonlocal_aix32"): Same.
22099         ("*call_value_nonlocal_aix32"): Same.
22100         ("*call_value_indirect_nonlocal_aix64"): Same.
22101         ("*call_value_nonlocal_aix64"): Same.
22102         ("*call_value_nonlocal_sysv"): Same.
22103
22104 2002-01-29  Richard Henderson  <rth@redhat.com>
22105
22106         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
22107
22108 2002-01-29  Richard Henderson  <rth@redhat.com>
22109
22110         * expr.c (force_operand): Ignore flag_pic for detecting pic
22111         address loads.
22112         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
22113         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
22114         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
22115         instead of open-coded loop.
22116         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
22117         be fixed when in use.
22118
22119 2002-01-29  Richard Henderson  <rth@redhat.com>
22120
22121         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
22122         * sched-rgn.c (propagate_deps): Update them.
22123         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
22124         clobbers list when either gets too long.
22125
22126 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
22127
22128         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
22129         and INDEX_REGS the same as GENERAL_REGS.
22130         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
22131
22132 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
22133
22134         * tree.c (build_nonstandard_integer_type): Correct prototype.
22135
22136 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
22137
22138         * config/s390/s390.md (movstrsico, movstrdix_64,
22139         movstrsix_31): Remove, replace by ...
22140         (movstrdi_short, movstrsi_short, movstrdi_long,
22141         movstrsi_long): ... these.  New.
22142         (movstrdi, movstrsi): Adapt.
22143
22144         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
22145         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
22146         Remove unnecessary CC clobber.
22147         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
22148         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
22149
22150         (divmoddi4): Don't partially initialize TImode register.
22151
22152 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
22153
22154         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
22155
22156 2002-01-29  Richard Henderson  <rth@redhat.com>
22157
22158         * flow.c (print_rtl_and_abort): Remove.
22159         (print_rtl_and_abort_fcn): Remove.
22160         (verify_local_live_at_start): Use dump_bb instead.
22161         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
22162         (verify_wide_reg_1): Return 2 on mode test failure.
22163
22164 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
22165
22166         PR c/3325, c/3326, c/2511, c/3347
22167         * c-decl.c (enum_decl_context): Remove BITFIELD.
22168         (grokdeclarator): Take bitfield width as an input.
22169         Ensure bitfields are given the correct type.  Perform
22170         bitfield width validation with build_bitfield_integer_type
22171         rather than waiting for finish_struct.
22172         (grok_typename, grok_typename_in_parm_context, start_decl,
22173         push_parmdecl, grokfield, start_function): Update calls to
22174         grokdeclarator.
22175         (build_bitfield_integer_type): New function.
22176         (finish_struct): Move bitfield validation to grokdeclarator
22177         and build_bitfield_integer_type.
22178         * tree.c (build_nonstandard_integer_type): New function.
22179         * tree.h (build_nonstandard_integer_type): New prototype.
22180 objc:
22181         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
22182
22183 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
22184
22185         PR other/1502:
22186         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
22187         don't ignore unrecognized -W* options.
22188         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
22189         * cpplib.h (cpp_handle_option): Adjust prototype.
22190         * c-decl.c (c_decode_options): Pass 0 as last argument to
22191         cpp_handle_option.
22192
22193         PR c/2896:
22194         * gcc.c (cpp_unique_options): Split from cpp_options.
22195         (cpp_options): Source cpp_unique_options.
22196         (default_compilers): Use cpp_unique_options instead of cpp_options
22197         when used together with cc1_options.
22198         (static_specs): Add cpp_unique_options.
22199         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
22200         when used together with cc1_options.
22201
22202 2002-01-29  Kazu Hirata  <kazu@hxi.com>
22203
22204         * config/h8300/h8300-protos.h: Update the prototype of
22205         output_a_shift.
22206         * config/h8300/h8300.c (output_a_shift): Remove an unused
22207         argument 'insn'.  Remove redundant code.
22208         * config/h8300/h8300.md: Adust to the new prototype of
22209         output_a_shift.
22210
22211 2002-01-29  Kazu Hirata  <kazu@hxi.com>
22212
22213         * config/h8300/h8300-protos.h: Update the prototypes of
22214         emit_a_rotate and expand_a_rotate.
22215         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
22216         first argument to 'enum rtx_code'.
22217         (expand_a_rotate): Likewise.
22218
22219 2002-01-28  Kazu Hirata  <kazu@hxi.com>
22220
22221         * config/h8300/h8300-protos.h: Update the prototype of
22222         output_simode_bld.
22223         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
22224         'log2'.
22225         * config/h8300/h8300.md: Adjust to the new prototype.
22226
22227 2002-01-28  Kazu Hirata  <kazu@hxi.com>
22228
22229         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
22230         redundant code.
22231
22232 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22233
22234         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
22235         is a fixed register before returning pic_offset_table_rtx.
22236         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
22237         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
22238
22239 2002-01-28  Jason Merrill  <jason@redhat.com>
22240
22241         * dwarf2.h: Sync with src version.
22242
22243 2002-01-28  Paul Koning  <pkoning@equallogic.com>
22244
22245         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
22246         BT_FN_VOID_PTR_VAR.
22247         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
22248         * doc/extend.texi (__builtin_prefetch): Update documentation:
22249         first argument is now const void ptr.
22250
22251 2002-01-28  Kazu Hirata  <kazu@hxi.com>
22252
22253         * config/h8300/h8300-protos.h: Remove an unused prototype.
22254
22255 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
22256
22257         * toplev.c (lang_independent_init): Round up identifier size.
22258
22259 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
22260
22261         * config.gcc: Revert previous change.
22262
22263 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
22264
22265         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
22266
22267 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
22268
22269         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
22270         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
22271         other non-elf netbsd config frags.
22272         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
22273         collect2 will does that.
22274         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
22275         shared-lib frobbing will work.
22276
22277 2002-01-28  Kazu Hirata  <kazu@hxi.com>
22278
22279         * config/h8300/h8300.h: Fix formatting.
22280         * config/h8300/h8300.md: Likewise.
22281
22282 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
22283
22284         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
22285         the old, removed AAA_standards fix.
22286         * fixinc/fixincl.x: Rebuilt.
22287
22288 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
22289
22290         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
22291         atexit call in crtbegin, hooked in after call to frame_dummy;
22292         register EH before registering __fini__start.
22293
22294 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
22295
22296         * config/rs6000/altivec.h: Remove spurious semicolons.
22297
22298 2002-01-27  Kazu Hirata  <kazu@hxi.com>
22299
22300         * config/h8300/h8300.md: Replace dead bit extraction patterns
22301         with ones that work.
22302
22303 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22304
22305         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
22306         if not STRICT_ALIGNMENT.
22307         * rtl.h (MEM_ALIGN): Likewise.
22308
22309 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22310
22311         * doc/invoke.texi (-fdump-translation-unit): Revert this
22312         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22313
22314 2002-01-27  Kazu Hirata  <kazu@hxi.com>
22315
22316         * config/h8300/h8300.md (define_constants): New.
22317         (anonymous patterns) Use defined constants appropriately.
22318
22319 2002-01-27  Kazu Hirata  <kazu@hxi.com>
22320
22321         * config/h8300/h8300.c (function_arg): Remove redundant code.
22322
22323 2002-01-26  Richard Henderson  <rth@redhat.com>
22324
22325         * sched-deps.c (reg_pending_uses_head): New.
22326         (reg_pending_barrier): Rename from reg_pending_sets_all.
22327         (find_insn_list): Don't mark inline.
22328         (find_insn_mem_list): Remove.
22329         (add_dependence_list, add_dependence_list_and_free): New.
22330         (flush_pending_lists): Replace only_write param with separate
22331         for_read and for_write parameters.  Update all callers.  Use
22332         add_dependence_list_and_free.
22333         (sched_analyze_1): Do not add reg dependencies here; just set
22334         the pending bits.  Use add_dependence_list.
22335         (sched_analyze_2): Likewise.
22336         (sched_analyze_insn): Replace schedule_barrier_found with
22337         reg_pending_barrier.  Add all dependencies for pending reg
22338         uses, sets, and clobbers.
22339         (sched_analyze): Don't add reg dependencies for calls, just
22340         set pending bits.  Use regs_invalidated_by_call.  Treat
22341         sched_before_next_call as a normal list, not a fake insn.
22342         (init_deps): No funny init for sched_before_next_call.
22343         (free_deps): Free pending mems lists.  Don't zero reg_last.
22344         (init_deps_global): Init reg_pending_uses.
22345         (finish_deps_global): Free it.
22346         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
22347         (find_insn_mem_list): Remove.
22348         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
22349         (propagate_deps): Use them.  Zero temp mem lists.
22350
22351 2002-01-26  Richard Henderson  <rth@redhat.com>
22352
22353         * Makefile.in (CRTSTUFF_CFLAGS): New.
22354         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
22355         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
22356         crtstuff.c instead of alpha assembly version.
22357         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
22358         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
22359         not FORCE_{INIT,FINI}_SECTION_ALIGN.
22360         (__do_global_dtors_aux): Mark used.
22361         (frame_dummy, __do_global_ctors_aux): Mark used.
22362         (fini_dummy, init_dummy): Remove.
22363
22364         * config/alpha/crtbegin.asm: Remove file.
22365         * config/alpha/crtend.asm: Remove file.
22366         * config/alpha/t-crtbe: Remove file.
22367         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
22368         (LINK_EH_SPEC): New.
22369
22370         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
22371         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
22372         calling constructors.
22373         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
22374
22375         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
22376         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
22377         CRT_END_INIT_DUMMY hack.
22378         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
22379         FORCE_{INIT,FINI}_SECTION_ALIGN.
22380
22381         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
22382         FORCE_{INIT,FINI}_SECTION_ALIGN.
22383
22384         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
22385         invocation sequence.
22386         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
22387
22388         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
22389         (FORCE_CODE_SECTION_ALIGN): New.
22390
22391 2002-01-26  Richard Henderson  <rth@redhat.com>
22392
22393         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
22394
22395 2002-01-26  Richard Henderson  <rth@redhat.com>
22396
22397         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
22398         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
22399
22400 2002-01-26  Kazu Hirata  <kazu@hxi.com>
22401
22402         * config/h8300/h8300.md: Remove bit extraction patterns that
22403         cannot be triggered.
22404         Restrict each bit extraction pattern to a variant on which the
22405         pattern is tested.
22406
22407 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
22408
22409         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
22410
22411 2002-01-26  Kazu Hirata  <kazu@hxi.com>
22412
22413         * config/h8300/h8300.md: Remove bit test patterns that cannot
22414         be triggered.
22415         Restrict each bit test pattern to a variant on which the
22416         pattern is tested.
22417
22418 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22419
22420         * builtins.c (expand_builtin_strncat): Remove redundant check for
22421         INTEGER_CST.
22422
22423 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
22424
22425         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
22426         default setting.
22427         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
22428         existing setting.
22429
22430 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
22431
22432         * dbxout.c (dbxout_init): Use assemble_name rather than just
22433         stripping off the first character.
22434         (dbxout_source_file): Likewise.
22435
22436 2002-01-25  DJ Delorie  <dj@redhat.com>
22437
22438         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
22439         using rtx_equal_p, not by comparing pointers.
22440
22441 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
22442
22443         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
22444         for PIC_OFFSET_TABLE_REGNUM.
22445         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
22446
22447 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
22448
22449         * config.gcc (x86_64-*-freebsd*): New target.
22450         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
22451         value.
22452         (i[34567]86-*-freebsd*): Don't include svr4.h.
22453         * config/i386/freebsd64.h: New file.
22454
22455 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
22456
22457         * config/alpha/x-vms (version): Make static.
22458
22459         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
22460         in previous checkin.
22461
22462         * Makefile.in (install-headers-cp): New target.
22463         * config.gcc (alpha-dec-*vms*): Install headers with
22464         install-headers-cp
22465
22466 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
22467
22468         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
22469         avoid it's copies.
22470
22471 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22472
22473         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
22474         of compare_tree_int.
22475         (expand_builtin_strncat): Likewise.
22476         * c-decl.c (finish_struct): Use tree_low_cst.
22477         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
22478         * tree.c (compare_tree_int): Likewise.
22479
22480 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
22481
22482         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
22483         adjustments even if they are implemented by more than two insns.
22484
22485 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
22486
22487         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
22488         * df.h (struct ref): Kill B.
22489         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
22490
22491         * basic-block.h (PROP_EQUAL_NOTES): New flag.
22492         * flow.c (propagate_one_insn): Use it.
22493         (mark_used_regs): Handle NIL.
22494
22495 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
22496
22497         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
22498         to help folding.
22499
22500 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
22501
22502         * rs6000.md (prefetch): Make address V4SI mode so that the address
22503         is restricted to legitimate form for instruction.
22504
22505 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
22506
22507         * doc/install.texi (xtensa-*-elf): New target.
22508         (xtensa-*-linux*): New target.
22509         * doc/contrib.texi: Add myself.
22510
22511 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
22512
22513         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
22514         purpose register to hold an SImode (or smaller) value.
22515
22516 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
22517
22518         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
22519         registry only.
22520         * crtstuff.c: Likewise.
22521
22522 2002-01-25  Kazu Hirata  <kazu@hxi.com>
22523
22524         * config/h8300/h8300.md (negation patterns): Tighten
22525         predicates to register_operand.
22526
22527 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
22528
22529         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
22530         mode, not Pmode.
22531
22532         * builtins.c (expand_builtin_prefetch): Same.
22533
22534 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
22535
22536         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
22537         modes.
22538
22539 2002-01-24  Kazu Hirata  <kazu@hxi.com>
22540
22541         * config/h8300/h8300.c (print_operand): Remove support for
22542         operand character 'A'.
22543         * config/h8300/h8300.md (three anonymous patterns): Replace
22544         operand character 'A' with either 'T' or 'S'.
22545
22546 2002-01-24  Kazu Hirata  <kazu@hxi.com>
22547
22548         * config/h8300/h8300.c (print_operand): Remove support for
22549         operand character 'U'.
22550
22551 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
22552
22553         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
22554
22555 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
22556
22557         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
22558         values to be assigned to the stack pointer.
22559
22560 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
22561
22562         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
22563         to const_double needs to be done right for big-endian systems.
22564
22565 2002-01-24  Jason Merrill  <jason@redhat.com>
22566
22567         PR c++/2432
22568         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
22569         to can_throw_internal.
22570
22571 2002-01-23  Richard Henderson  <rth@redhat.com>
22572
22573         * fold-const.c (fold): Change UINT_MAX test to check vs precision
22574         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
22575
22576 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
22577
22578         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
22579         (symGOT2reg): Use them, then set as GOT value as unchanging.
22580         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
22581         as a temporary, if possible.
22582         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
22583         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
22584
22585 2002-01-23  Kazu Hirata  <kazu@hxi.com>
22586
22587         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
22588         accept to accept 0x80 as operands[2].
22589
22590 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
22591
22592         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
22593
22594 2002-01-23  Richard Henderson  <rth@redhat.com>
22595
22596         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
22597
22598 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
22599
22600         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
22601         (parmlist_or_identifiers_1): Verify that only a parmlist follows
22602         an attribute.
22603
22604 2002-01-23  Richard Henderson  <rth@redhat.com>
22605
22606         * expr.c (move_by_pieces_1): Extend size before negation.
22607
22608         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
22609         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
22610         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
22611         * config/m68k/t-m68kelf: Likewise.
22612
22613 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
22614
22615         * config/xtensa/elf.h: New file.
22616         * config/xtensa/lib1funcs.asm: New file.
22617         * config/xtensa/lib2funcs.S: New file.
22618         * config/xtensa/linux.h: New file.
22619         * config/xtensa/t-xtensa: New file.
22620         * config/xtensa/xtensa-config.h: New file.
22621         * config/xtensa/xtensa-protos.h: New file.
22622         * config/xtensa/xtensa.c: New file.
22623         * config/xtensa/xtensa.h: New file.
22624         * config/xtensa/xtensa.md: New file.
22625         * config.gcc (xtensa-*-elf*): New target.
22626         (xtensa-*-linux*): New target.
22627         * cse.c (canon_hash): Compare rtx pointers instead of register
22628         numbers.  This is required for the Xtensa port.
22629         * integrate.c (copy_insn_list): Handle case where the static
22630         chain is in memory and the memory address has to be copied to
22631         a register.
22632         * doc/invoke.texi (Option Summary): Add Xtensa options.
22633         (Xtensa Options): New node.
22634         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
22635
22636 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
22637
22638         * diagnostic.c (internal_error): Do ICE suppression only
22639         when ENABLE_CHECKING is not defined.
22640
22641         * c-typeck.c (require_complete_type): Return error_mark_node
22642         if type is error_mark_node.
22643
22644 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
22645
22646         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
22647         -Os and issue a warning.
22648
22649 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
22650
22651         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
22652         current (lack of) need for host configuration by hand.
22653
22654         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
22655         references.  Documentation of some target macros moved from
22656         hostconfig.texi to tm.texi.
22657
22658 2002-01-23  Will Cohen  <wcohen@redhat.com>
22659
22660         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
22661         defined.
22662
22663 2002-01-23  Kazu Hirata  <kazu@hxi.com>
22664
22665         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
22666         operand[3].
22667
22668 2002-01-23  Jason Merrill  <jason@redhat.com>
22669
22670         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
22671
22672         * function.c (assign_parms): Don't put args of inline functions
22673         into registers when not optimizing.
22674
22675 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
22676
22677         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
22678         (prologue_use): New pattern.
22679         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
22680         preference to gen_rtx_USE.
22681         (thumb_expand_prologue): Use gen_prologue_use in preference to
22682         gen_rtx_USE.
22683         (thumb_expand_epilogue): Use gen_prologue_use in preference to
22684         gen_rtx_USE.
22685
22686 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
22687
22688         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
22689
22690 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22691
22692         PR c/3504
22693         * doc/extend.texi: Correct documentation of __alignof__.
22694
22695 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
22696
22697         * params.h: Rename arguments of DEFPARAM so that it will be
22698         recognized as a translation keyword.
22699
22700 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
22701
22702         * extend.texi: Document altivec functions.
22703         Fix N-bit adjectives in X86 builtin documentation.
22704
22705 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
22706
22707         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
22708         auto_inc_dec values.
22709
22710 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
22711
22712         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
22713         after backslash.
22714         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
22715
22716 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
22717
22718         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
22719
22720 2002-01-22  Richard Henderson  <rth@redhat.com>
22721
22722         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
22723         copy_insn not copy_rtx.
22724
22725 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
22726
22727         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
22728         "nonzero" as that might add "1" bits.  Ensure "constop" is
22729         properly sign extened.
22730         (force_to_mode): Tweak for sign extended constop.
22731
22732 2002-01-22  Richard Henderson  <rth@redhat.com>
22733
22734         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
22735         for_each_rtx instead of assuming we're already looking at the MEM.
22736         (split_small_symbolic_mem_operand): Likewise.
22737         * config/alpha/alpha.h (PREDICATE_CODES): Update.
22738         * config/alpha/alpha.md (small symbolic memory splitters): Update.
22739
22740 2002-01-22  Richard Henderson  <rth@redhat.com>
22741
22742         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
22743         sequence number for the literal.
22744         (divmoddi_internal_er): Likewise.
22745
22746 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22747
22748         PR java/4972
22749         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
22750         in LIBICONV variable.
22751         * configure: Regenerated.
22752
22753 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
22754
22755         * dependence.c (build_def_use): Remove array_idx.
22756
22757         * dwarfout.c (last_filename): Remove.
22758         (output_compile_unit_die): Remove last_filename.
22759
22760 2002-01-22  Roger Sayle  <roger@eyesopen.com>
22761             Richard Henderson  <rth@redhat.com>
22762
22763         PR opt/3640
22764         * fold-const.c (fold): Optimize unsigned comparisons against
22765         UINT_MAX (and similar unsigned constants).
22766
22767 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
22768
22769         * Makefile.in (loop.o): Depend on OPTABS_H.
22770         * loop.c (emit_prefetch_instructions): Check the prefetch operand
22771         against the predicate.
22772
22773         PR target/5379
22774         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
22775         for the address operand.
22776
22777 2002-01-22  Richard Henderson  <rth@redhat.com>
22778
22779         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
22780
22781 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22782
22783         PR other/5450
22784         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
22785         preprocessor flags.
22786
22787 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
22788
22789         * config.gcc (x86_64-*-netbsd*): New target.
22790         * config/i386/netbsd64.h: New file.
22791
22792 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
22793
22794         * regrename.c (kill_value): Fix typo.
22795
22796 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
22797
22798         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
22799
22800         * config/rs6000/rs6000.h: Same.
22801
22802         * function.c (instantiate_virtual_regs): Remove
22803         STARTING_FRAME_PHASE.
22804         (assign_stack_local_1): Same.
22805         Calculate frame phase.
22806
22807 2002-01-22  Nick Clifton  <nickc@redhat.com>
22808
22809         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
22810         variable declaration to outer scope in order to simplify
22811         future extensions.
22812         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
22813         arm_hard_regno_mode_ok.
22814         * config/arm/arm-protos.h: Add a prototype for
22815         arm_hard_regno_mode_ok.
22816         * config/arm/arm.c (soft_df_operand): Remove now redundant
22817         check for DImode values using IP_REGNUM.
22818         (nonimmediate_soft_df_operand): Remove now redundant check for
22819         DImode values using IP_REGNUM.
22820         (arm_hard_regno_mode_ok): New function. New check: make sure
22821         that DImode values are not stored in IP_REGNUM.
22822
22823         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
22824         note with a USE.
22825         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
22826
22827 2002-01-22  Jason Merrill  <jason@redhat.com>
22828
22829         * c-semantics.c (genrtl_compound_stmt): Only check nesting
22830         consistency if this COMPOUND_STMT is scoped.
22831
22832 2002-01-22  Kazu Hirata  <kazu@hxi.com>
22833
22834         * predict.c: Fix formatting.
22835         * print-tree.c: Likewise.
22836         * protoize.c: Likewise.
22837         * real.h: Likewise.
22838         * rtl.h: Likewise.
22839         * sbitmap.h: Likewise.
22840         * scan.c: Likewise.
22841         * sched-deps.c: Likewise.
22842         * sched-vis.c: Likewise.
22843         * sdbout.c: Likewise.
22844         * sibcall.c: Likewise.
22845         * ssa.c: Likewise.
22846         * ssa-ccp.c: Likewise.
22847         * ssa-dce.c: Likewise.
22848         * stmt.c: Likewise.
22849         * stor-layout.c: Likewise.
22850         * system.h: Likewise.
22851
22852 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22853
22854         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
22855         if fits in bounds of base type.
22856
22857         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
22858         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
22859         (add_bound_info, default): If can't find a context, make a
22860         SAVE_EXPR.
22861         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
22862
22863 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
22864
22865         * c-typeck.c (parser_build_binary_op): If result from
22866         build_binary_op is ERROR_MARK just return error_mark_node without
22867         further processing.
22868
22869 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
22870
22871         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
22872         Split a.out-specific bits into...
22873         * config/netbsd-aout.h: ...this.
22874         * config/netbsd-elf.h: New file.
22875         * config/alpha/netbsd-elf.h: Remove.
22876         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
22877         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
22878         (STARTFILE_SPEC): Remove redundant definition.
22879         (ENDFILE_SPEC): Likewise.
22880         (LINK_SPEC): Likewise.
22881         (CPP_SPEC): Likewise.
22882         (ASM_SPEC): Likewise.
22883         (LIB_SPEC): Likewise.
22884         (SWITCH_TAKES_ARG): Likewise.
22885         (TARGET_MEM_FUNCTIONS): Likewise.
22886         (CPP_PREDEFINES): Redefine.
22887         (ASM_FINAL_SPEC): Remove redefinition.
22888         (ASM_COMMENT_START): Redefine.
22889         (FUNCTION_PROFILER): Define.
22890         (TARGET_VERSION): Redefine.
22891         Comment and formatting cleanup.
22892         * config/i386/netbsd.h: Include <netbsd-aout.h>.
22893         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
22894         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
22895         big- or little-endian.
22896         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
22897         * config.gcc (*-*-netbsd*): Add definitions common to all
22898         NetBSD configs.
22899         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
22900         gnu_ld definitions.  Add netbsd-elf.h to and remove
22901         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
22902         tmake_file, and don't lose previous tmake_file contents.
22903         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
22904         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
22905         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
22906         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
22907         (mipsel-*-netbsd*): Rename this to...
22908         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
22909         mips/little.h to tm_file for mips*el-*.
22910         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
22911         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
22912         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
22913
22914 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22915
22916         * pa-protos.h (reg_before_reload_operand): New function prototype.
22917         * pa.c (reg_before_reload_operand): New function implementation.
22918         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
22919         contraints to "*m".
22920
22921 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22922
22923         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
22924
22925 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22926
22927         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
22928         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
22929         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
22930         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
22931         (ENDFILE_SPEC): Undefine.
22932         (STARTFILE_SPEC): Redefine for PA.
22933
22934 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22935
22936         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
22937
22938 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
22939
22940         * config.gcc: Add entries to supported PowerPC --with-cpu
22941         types.
22942
22943 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
22944
22945         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
22946         true for 64-bit mode only SSE registers in 32-bit mode.
22947
22948 2002-01-21  Kazu Hirata  <kazu@hxi.com>
22949
22950         * unwind-dw2.c: Fix formatting.
22951         * unwind-dw2-fde.c: Likewise.
22952         * unwind-dw2-fde.h: Likewise.
22953         * unwind-pe.h: Likewise.
22954         * varasm.c: Likewise.
22955         * varray.h: Likewise.
22956
22957 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
22958
22959         Remove workaround for register stack overwrite bug in mmix.
22960         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
22961         support for TARGET_REG_STACK_FILL_BUG.
22962         * config/mmix/mmix.h: Remove member has_call_without_parameters.
22963         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
22964         Delete.
22965         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
22966         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
22967         -mno-reg-stack-fill-bug-workaround.
22968         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
22969         machine member has_call_without_parameters.
22970         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
22971         -mreg-stack-fill-bug-workaround and
22972         -mno-reg-stack-fill-bug-workaround.
22973         (MMIX Options): Ditto.
22974
22975 2002-01-21  Kazu Hirata  <kazu@hxi.com>
22976
22977         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
22978         as appropriate.
22979         Remove redundant code.
22980
22981 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
22982
22983         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
22984         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22985         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22986         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
22987         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
22988         out target macro definitions and non-target-specific comments
22989         mostly taken from old versions of the manual.
22990
22991 2002-01-20  Kazu Hirata  <kazu@hxi.com>
22992
22993         * config/h8300/h8300.h: Fix comment formatting.
22994         * config/ia64/aix.h: Likewise.
22995         * config/ia64/ia64-protos.h: Likewise.
22996         * config/ia64/ia64.c: Likewise.
22997         * config/ia64/ia64.h: Likewise.
22998         * config/ia64/ia64intrin.h: Likewise.
22999         * config/ia64/linux.h: Likewise.
23000         * config/ia64/unwind-aix.c: Likewise.
23001         * config/ia64/unwind-ia64.c: Likewise.
23002
23003 2002-01-20  Kazu Hirata  <kazu@hxi.com>
23004
23005         * config/h8300/h8300.c: Revise comments about shift code.
23006
23007 2002-01-20  Kazu Hirata  <kazu@hxi.com>
23008
23009         * config/h8300/h8300.c (function_arg): Update a comment.
23010
23011 2002-01-20  Kazu Hirata  <kazu@hxi.com>
23012
23013         * config/h8300/h8300.md: Update the comments at the beginning
23014         of the file.
23015
23016 2002-01-20  Kazu Hirata  <kazu@hxi.com>
23017
23018         * config/i370/i370.c: Fix comment formatting.
23019         * config/i370/i370.h: Likewise.
23020         * config/i370/i370.md: Likewise.
23021         * config/i370/linux.h: Likewise.
23022
23023 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23024
23025         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
23026
23027         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
23028         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
23029         in incomplete case.
23030
23031 2002-01-20  Graham Stott  <grahams@redhat.com>
23032
23033         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
23034
23035 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23036
23037         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
23038
23039 2002-01-19  Tom Rix  <trix@redhat.com>
23040
23041         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
23042
23043 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
23044
23045         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
23046
23047         * function.c (assign_stack_local_1): Adjust x_frame_offset with
23048         STARTING_FRAME_PHASE.
23049         (STARTING_FRAME_PHASE): New.
23050         (instantiate_virtual_regs): Check saneness of
23051         STARTING_FRAME_PHASE.
23052
23053         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
23054
23055 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
23056
23057         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
23058
23059 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23060
23061         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
23062         be used for bootstrapping GCC 3.0.
23063
23064 2002-01-18  Kazu Hirata  <kazu@hxi.com>
23065
23066         * config/h8300/h8300.md: Fix an insn length.
23067
23068 2002-01-18  Kazu Hirata  <kazu@hxi.com>
23069
23070         * bitmap.h: Fix comment formatting.
23071         * combine.c: Likewise.
23072         * cppfiles.c: Likewise.
23073         * c-pragma.h: Likewise.
23074         * c-typeck.c: Likewise.
23075         * df.c: Likewise.
23076         * dwarf2out.c: Likewise.
23077         * function.c: Likewise.
23078         * gcc.c: Likewise.
23079         * genattrtab.c: Likewise.
23080         * gthr-win32.h: Likewise.
23081         * haifa-sched.c: Likewise.
23082         * predict.c: Likewise.
23083         * rtlanal.c: Likewise.
23084         * rtl.h: Likewise.
23085         * unwind-dw2-fde.h: Likewise.
23086         * unwind-pe.h: Likewise.
23087         * vmsdbgout.c: Likewise.
23088
23089 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23090
23091         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
23092         if type_required and passed decl.
23093
23094 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
23095
23096         * config.gcc (cpu_type): Include altivec.h in powerpc
23097         extra_headers.
23098         Same for darwin.
23099
23100         * config/rs6000/altivec.h: New.
23101
23102 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
23103
23104         * doc/install.texi (*-ibm-aix*): Update assembler and exception
23105         handling information.
23106         * doc/trouble.texi (Interoperation): Add libstdc++ information
23107         for AIX.
23108         (Misunderstandings): Add template instantiation and static template
23109         member information for AIX.
23110
23111 2002-01-17  Jason Merrill  <jason@redhat.com>
23112
23113         * dbxout.c (dbxout_type): Support const and volatile.
23114
23115         * except.c (add_partial_entry): Remove backwards compatibility code.
23116         (end_protect_partials): Likewise.
23117
23118 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
23119
23120         * config/ia64/ia64.md (prologue_use): New.
23121         * config/ia64/ia64.c (ia64_expand_prologue): Use
23122         gen_prologue_use instead of gen_rtx_USE.
23123         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
23124         as CODE_FOR_pred_rel_mutex.
23125         (ia64_sched_reorder2): Likewise.
23126
23127 2002-01-16  Eric Christopher  <echristo@redhat.com>
23128
23129         * config/mips/r3900.h: Reformat.
23130         (SUBTARGET_CPP_SIZE_SPEC): Remove.
23131         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
23132         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
23133         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
23134         * config/mips/t-elf: Remove mips3 multilib.
23135
23136 2002-01-16  H.J. Lu <hjl@gnu.org>
23137
23138         * config/mips/linux.h: Include "mips/abi64.h".
23139
23140 2002-01-16  H.J. Lu <hjl@gnu.org>
23141
23142         * config/mips/t-linux: New.
23143
23144         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
23145
23146         * config/mips/linux.h: Don't include "gofast.h".
23147         (INIT_SUBTARGET_OPTABS): Removed.
23148
23149 2002-01-16  Kazu Hirata  <kazu@hxi.com>
23150
23151         * config/h8300/h8300-protos.h: Replace emit_a_shift with
23152         output_a_shift.
23153         * config/h8300/h8300.c: Likewise.
23154         * config/h8300/h8300.md: Likewise.
23155
23156 2002-01-16  Kazu Hirata  <kazu@hxi.com>
23157
23158         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
23159         spaces after an opcode name.
23160         (pushqi1_h8300hs): Likewise.
23161         (pushhi1_h8300hs): Likewise.
23162
23163 2002-01-16  Kazu Hirata  <kazu@hxi.com>
23164
23165         * doc/extend.texi: Replace "option" with "attribute"
23166         appropriately.
23167
23168 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
23169
23170         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
23171         (and:DI () (const_int -8)).
23172         (split_small_symbolic_mem_operand): Split
23173         (mem (and:DI () (const_int -8)).
23174
23175 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
23176
23177         PR target/5309:
23178         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
23179         same way as TYPE_IMUL.
23180         (ultrasparc_sched_reorder): Likewise.
23181         * config/sparc/sparc.md (type): Add comment to update
23182         ultrasparc_sched_reorder when making changes.
23183
23184 2002-01-16  Kazu Hirata  <kazu@hxi.com>
23185
23186         * doc/invoke.texi: Change the dump file name of block
23187         reordering pass from 28.bbro to 29.bbro.
23188         Mention -dk option.
23189
23190 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
23191
23192         * i386.md (minsf splitter): Fix pasto.
23193
23194 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
23195
23196         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
23197         to frame pointer initialisation instruction.
23198         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
23199         initialisation instruction.
23200         (soft_df_operand): Do not accept the IP register.
23201         (nonimmediate_soft_df_operand): Do not accept the IP register.
23202
23203 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
23204
23205         PR target/5357:
23206         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
23207         MASK_V8 being both set.
23208
23209 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
23210
23211         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
23212         insn for GOT register; add REG_MAYBE_DEAD notes instead.
23213         config/s390/s390.md (call, call_value): Add GOT register to
23214         CALL_INSN_FUNCTION_USAGE where needed.
23215         (call_exp, call_value_exp): New.
23216
23217 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
23218
23219         * config/arm/arm.c: General formatting tidy up.
23220
23221 2002-01-16  Graham Stott  <grahams@redhat.com>
23222
23223         * calls.c (try_to_integrate): Use "(size_t)" intermediate
23224         cast and when casting an integer literal to "rtx" pointer.
23225         (expand_call): Likewise.
23226         * flow.c (try_pre_increment): Likewise.
23227         (find_use_as_address): Likewise.
23228         * integrate.c (expand_iline_function): Likewise.
23229         * regmove.c (try_auto_increment): Likewise.
23230
23231 2002-01-16  Graham Stott  <grahams@redhat.com>
23232
23233         * sched-rgn.c (passed): Use sbitmap_free.
23234         (header): Likewise.
23235         (inner): Likewise.
23236         (in_queue): Likewise.
23237         (in_stack): Likewise.
23238
23239 2002-01-15  Eric Christopher  <echristo@redhat.com>
23240
23241         * flow.c (propagate_one_insn): Change to use fatal_insn.
23242
23243 2002-01-15  Kazu Hirata  <kazu@hxi.com>
23244
23245         * expmed.c (extract_fixed_bit_field): Remove unused code.
23246         * system.h: Poison SLOW_ZERO_EXTEND.
23247         * doc/tm.texi: Remove.
23248         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
23249         * config/arm/arm.h: Likewise.
23250         * config/avr/avr.h: Likewise.
23251         * config/clipper/clipper.h: Likewise.
23252         * config/convex/convex.h: Likewise.
23253         * config/d30v/d30v.h: Likewise.
23254         * config/dsp16xx/dsp16xx.h: Likewise.
23255         * config/elxsi/elxsi.h: Likewise.
23256         * config/fr30/fr30.h: Likewise.
23257         * config/h8300/h8300.h: Likewise.
23258         * config/i370/i370.h: Likewise.
23259         * config/i386/i386.h: Likewise.
23260         * config/m68k/m68k.h: Likewise.
23261         * config/mips/mips.h: Likewise.
23262         * config/ns32k/ns32k.h: Likewise.
23263         * config/pdp11/pdp11.h: Likewise.
23264         * config/pj/pj.h: Likewise.
23265         * config/s390/s390.h: Likewise.
23266         * config/sh/sh.h: Likewise.
23267         * config/stormy16/stormy16.h: Likewise.
23268         * config/v850/v850.h: Likewise.
23269         * config/vax/vax.h: Likewise.
23270         * config/we32k/we32k.h: Likewise.
23271
23272 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
23273
23274         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
23275         (altivec_lvsl): Change constraint to b.
23276         (altivec_lvsr): Same.
23277         (altivec_lvebx): Same.
23278         (altivec_lvehx): Same.
23279         (altivec_lvewx): Same.
23280         (altivec_lvxl): Same.
23281         (altivec_lvx): Same.
23282         (altivec_stvx): Add parallel.
23283         (altivec_stvxl): Same.
23284         (altivec_stvehx): Same.
23285         (altivec_stvebx): Same.
23286         (altivec_stvebx): Same.
23287
23288 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
23289
23290         * config.gcc: Change altivec.h to altivec-defs.h.
23291
23292         * config/rs6000/altivec.h: Delete.
23293
23294         * config/rs6000/altivec-defs.h: Add.
23295
23296 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23297
23298         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
23299         and UMOD modes.
23300
23301         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
23302         less than or equal to eight bytes.
23303
23304         * vax.md (andsi3): Remove constraints and change SET destination
23305         operand type to nonimmediate_operand.
23306         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
23307         when it is a CONST_INT.
23308
23309 2002-01-15  Jason Merrill  <jason@redhat.com>
23310
23311         * c-common.def (FILE_STMT): New code.
23312         * c-common.c (statement_code_p): It's a statement.
23313         * c-common.h (stmt_tree_s): Add x_last_filename.
23314         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
23315         (last_expr_filename): New macro.
23316         * c-semantics.c (begin_stmt_tree): Initialize it.
23317         (add_stmt): If the filename changed, also insert a
23318         FILE_STMT.
23319         (expand_stmt): Handle seeing one.
23320
23321 2002-01-15  Eric Christopher  <echristo@redhat.com>
23322
23323         * flow.c (propagate_one_insn): Add error message and print out
23324         insn for debugging.
23325
23326 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
23327
23328         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
23329         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
23330         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
23331         TRAMPOLINE_ALIGNMENT.
23332         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
23333         to be in bits.
23334         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
23335         PCC_BITFIELD_TYPE_MATTERS.
23336         * config/interix.h (STDC_VALUE): Remove.  Use
23337         STDC_0_IN_SYSTEM_HEADERS.
23338         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
23339         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
23340         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
23341
23342 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23343
23344         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
23345         not work on this platform currently.
23346
23347 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
23348
23349         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
23350         readonly_warning in _().
23351
23352 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
23353
23354         * gcc.c (delete_if_ordinary): Backout previous change.
23355
23356 2002-01-15  Kazu Hirata  <kazu@hxi.com>
23357
23358         * config/h8300/h8300.c (print_operand): Remove support for
23359         unused operand characters.
23360
23361         * read-rtl.c: Fix formatting.
23362         * real.c: Likewise.
23363         * recog.c: Likewise.
23364         * regclass.c: Likewise.
23365         * regmove.c: Likewise.
23366         * reg-stack.c: Likewise.
23367         * reload1.c: Likewise.
23368         * rtlanal.c: Likewise.
23369
23370 2002-01-15  Kazu Hirata  <kazu@hxi.com>
23371
23372         * config/i386/i386.c: Fix formatting.
23373
23374 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
23375
23376         * c-typeck.c (process_init_element): Don't save_expr
23377         COMPOUND_LITERAL_EXPR if just its initializer will be used.
23378
23379 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
23380
23381         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
23382         emit optional traceback table if optimize_size or TARGET_ELF.
23383         * config/rs6000/rs6000.md (prefetch): New.
23384
23385 2002-01-15  Andreas Jaeger  <aj@suse.de>
23386
23387         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
23388
23389 2002-01-15  Kazu Hirata  <kazu@hxi.com>
23390
23391         * mips-tfile.c: Fix formatting.
23392
23393 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
23394
23395         * unroll.c (final_reg_note_copy): Fix previous commit.
23396
23397 2002-01-14  Kazu Hirata  <kazu@hxi.com>
23398
23399         * config/h8300/h8300-protos.h: Remove the prototype for
23400         eq_operator.
23401         * config/h8300/h8300.c (eq_operator): Remove.
23402
23403 2002-01-14  Richard Henderson  <rth@redhat.com>
23404
23405         * config/i386/i386.md (prefetch): Tidy.
23406         (prefetch_3dnow): Fix locality operand.
23407
23408 2002-01-14  Richard Henderson  <rth@redhat.com>
23409
23410         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
23411         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
23412
23413 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
23414
23415         * reload1.c (reload_combine): Pass reg_sum replacement through
23416         copy_rtx in loop performing multiple changes.
23417
23418 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
23419
23420         * except.c (remove_unreachable_regions): New.
23421         (free_eh_status): Clear exception_handler_labels.
23422         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
23423         (find_exception_handler_labels): Don't add the same label more than
23424         once.
23425         (remove_exception_handler_label): Don't die if
23426         find_exception_handler_labels hasn't been called for the current
23427         function yet.
23428
23429 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
23430
23431         * toplev.c (rest_of_compilation): Rebuild jump labels after
23432         gcse.
23433
23434 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
23435
23436         * doc/extend.texi: Move documentation of X86 built-in functions
23437         here.
23438         * doc/invoke.texi: From here.
23439         * doc/sourcebuild.texi: Document location of documentation for
23440         machine built-in functions.
23441
23442 2002-01-13  Christopher Faylor  <cgf@redhat.com>
23443
23444         * cppfiles.c (TEST_THRESHOLD): New macro.
23445         (SHOULD_MMAP): Ditto.
23446         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
23447         be used.
23448
23449 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
23450
23451         * unroll.c (final_reg_note_copy): Properly handle
23452         REG_LABEL
23453         (unroll_loops): Fix LOOP_CONDITION heuristics.
23454
23455 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
23456
23457         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
23458         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
23459
23460 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
23461
23462         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
23463         threaded loop.
23464
23465 2002-01-14  Tom Rix  <trix@redhat.com>
23466
23467         * config/rs6000/rs6000.md: Fix typo with sradi.
23468
23469 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
23470
23471         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
23472         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
23473         (clrstrdi, clrstrsi): Adapt callers.
23474
23475         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
23476
23477         (movti splitter): Never use register 0 as base register.
23478
23479 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
23480
23481         * combine.c (simplify_shift_const): Always generate new rtx
23482         for shift expression instead of reusing given expression.
23483
23484 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23485
23486         * config/alpha/alpha.c (alpha_expand_mov): Don't call
23487         alpha_legitimize_address unless mode is Pmode.
23488
23489 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
23490
23491         * doc/md.texi (Modifiers): Document the '*' constraint for the
23492         user.
23493
23494         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
23495         * doc/extend.texi (Function Attributes): 'interrupt' is valid
23496         for xstormy16 too.
23497
23498 2002-01-13  Richard Henderson  <rth@redhat.com>
23499
23500         * reload.c (find_reloads): Use a hard reg destination as reload reg
23501         for an input reload of the source.
23502
23503 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
23504
23505         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
23506         more generic.
23507
23508 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
23509
23510         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
23511         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
23512
23513         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
23514
23515 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23516
23517         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
23518
23519 2002-01-12  Tom Rix  <trix@redhat.com>
23520
23521         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
23522         TARGET_POWERPC64.
23523
23524 2002-01-12  Richard Henderson  <rth@redhat.com>
23525
23526         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
23527
23528         * doc/invoke.texi: Update Alpha options.
23529
23530         * doc/invoke.texi: Update i386 built-in function lists.
23531
23532 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
23533
23534         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
23535         referencing outside.
23536
23537 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23538
23539         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
23540         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
23541         offsets, and change line folding.
23542         * optabs.c (expand_binop): Remove warnings.
23543         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
23544
23545 2002-01-12  Graham Stott <grahams@redhat.com>
23546
23547         * attribs.c (handle_deprecated_attribute): constify WHAT.
23548         * diagnostic.c (warn_deprecated_use): Add braces, fixes
23549         dangling else warning and constify WHAT.
23550         * except.h (struct function, struct inline_remap): Move
23551         struct tag forward defs before all prototypes.
23552         (duplicate_eh_regions): Whitespace.
23553
23554 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
23555
23556         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23557         MODE_BASE_REG_CLASS.
23558         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
23559
23560 2002-01-12  Richard Henderson  <rth@redhat.com>
23561
23562         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
23563         (ix86_expand_vector_move): New.
23564         (bdesc_2arg): Remove andps, andnps, orps, xorps.
23565         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
23566         Remove old prefetch builtins.  Special case the logicals removed above.
23567         (ix86_expand_builtin): Likewise.
23568         (safe_vector_operand): Use V4SFmode, not TImode.
23569         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
23570         (ix86_expand_timode_binop_builtin): New.
23571         * config/i386/i386-protos.h: Update.
23572         * config/i386/i386.h (enum ix86_builtins): Update.
23573         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
23574         Use ix86_expand_vector_move in vector move expanders.
23575         (movti_internal, movti_rex64): Add xorps alternative.
23576         (sse_clrv4sf): Rename and adjust from sse_clrti.
23577         (prefetch): Don't work so hard.
23578         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
23579         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
23580         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
23581
23582 2002-01-11  Richard Henderson  <rth@redhat.com>
23583
23584         * config/i386/mmintrin.h: New file.
23585         * config/i386/xmmintrin.h: New file.
23586         * config.gcc (i?86-*-*): Add extra_headers.
23587         * simplify-rtx.c (simplify_unary_operation): Handle saturating
23588         truncation codes.
23589         (simplify_binary_operation): Handle saturating arithmetic codes.
23590         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
23591         not the lowpart subreg.
23592         (ix86_expand_builtin): Return a TImode dummy register instead of 0
23593         on error.
23594         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
23595
23596 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
23597
23598         * conflict.c (conflict_graph_compute): Free regsets when finished.
23599         * ssa.c (compute_coalesced_reg_partition): Likewise.
23600
23601 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23602
23603         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
23604         every where we allocate a register.
23605
23606 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
23607
23608         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
23609         * lcm.c (compute_earliest, compute_farthest): Likewise.
23610
23611 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
23612
23613         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
23614
23615 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
23616
23617         * doc/rtl.texi (Insns): Fix 2 typos.
23618
23619 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
23620
23621         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
23622         options.  Use @table @gcctabopt for MMIX options.  Add index
23623         entries for MMIX options.  Start new paragraph with first
23624         heading of the machine-dependent options.
23625
23626 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23627
23628         PR other/5299
23629         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
23630         * combine.c (force_to_mode): Same.
23631         * reload1.c (clear_reload_reg_in_use): Same.
23632
23633 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
23634
23635         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
23636         and 'subtargets'.
23637
23638 2002-01-11  Andreas Jaeger  <aj@suse.de>,
23639             Brad Lucier <lucier@math.purdue.edu>
23640
23641         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
23642         mcpu.
23643
23644 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
23645
23646         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
23647         Protect with IN_LIBGCC.
23648         (LINK_EH_SPEC): Add required trailing space.
23649
23650 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
23651
23652         * c-tree.h: Move function declarations so that they are listed
23653         under the filename which contains them.
23654         (check_identifier, finish_decl_top_level,
23655         lookup_name_current_level_global, shadow_record_fields): Remove.
23656
23657 2002-01-11  Andreas Jaeger  <aj@suse.de>
23658
23659         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
23660         march.
23661
23662 2002-01-10  Richard Henderson  <rth@redhat.com>
23663
23664         * config/alpha/alpha.c (print_operand): Add 'J'.
23665         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
23666         new operand with the sequence number for the lituse.  When splitting
23667         the insns, use gen_movdi_er_high_g and generate a sequence number.
23668         (gen_movdi_er_high_g): Print the sequence number if non-zero.
23669
23670 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
23671
23672         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
23673         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
23674         stvxl.
23675         (altivec_expand_builtin): Same.
23676         (altivec_expand_stv_builtin): New.
23677
23678         * config/rs6000/rs6000.h (rs6000_builtins): Same.
23679
23680         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
23681         ("altivec_lvehx"): New.
23682         ("altivec_lvewx"): New.
23683         ("altivec_lvxl"): New.
23684         ("altivec_lvx"): New.
23685         ("altivec_stvx"): New.
23686         ("altivec_stvebx"): New.
23687         ("altivec_stvehx"): New.
23688         ("altivec_stvewx"): New.
23689         ("altivec_stvxl"): New.
23690
23691 2002-01-10  Richard Henderson  <rth@redhat.com>
23692
23693         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
23694         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
23695         care not to delete instructions twice.
23696
23697 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
23698
23699         * toplev.c: Don't declare environ (it's not used anywhere).
23700         * configure.in: Don't check for declaration of environ.
23701         * config/i386/xm-mingw32.h: Don't #define environ.
23702         * config.in, configure: Regenerate.
23703
23704 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
23705
23706         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
23707         * configure: Regenerate.
23708
23709         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
23710         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
23711         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
23712         alpha/xm-vms.h.
23713         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
23714         LIMITS_H_TEST here, not in m68k/x-next.
23715         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
23716         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
23717
23718         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
23719         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
23720         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
23721
23722         * config/i386/x-djgpp: Renamed i386/t-djgpp.
23723         * config/m88k/x-dolph: Renamed m88k/t-dolph.
23724         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
23725         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
23726         replacement of quadlib.asm with quadlib.c.
23727
23728         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
23729         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
23730         config/rs6000/xm-beos.h: Delete file.
23731
23732         * config.gcc: Update to match above changes.
23733
23734 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23735
23736         * config/h8300/h8300.h: Fix comment typos.
23737         * config/h8300/h8300.md: Likewise.
23738         * config/h8300/lib1funcs.asm: Likewise.
23739
23740 2002-01-10  Dale Johannesen  <dalej@apple.com>
23741
23742         PR optimization/5269
23743         * unroll.c (precondition_loop_p): Make *increment be the correct
23744         sign when n_iterations known, to avoid confusing caller.
23745
23746 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23747
23748         * doc/extend.texi (deprecated): Fix a typo.
23749
23750 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
23751
23752         * basic-block.h (update_br_prob_note): Declare.
23753         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
23754         (try_forward_edges): Care negative frequencies and update note.
23755         (outgoing_edges_match): Tweek conditional merging heuristics.
23756         (try_crossjump_to_edge): use update_br_prob_note.
23757         * cfglayout.c (fixup_reorder_chain): Likewise.
23758         * cfrtl.c (update_br_prob_note): New.
23759         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
23760
23761         * i386.c (ix86_decompose_address): Return -1 if address contains
23762         shift.
23763         (legitimate_address_p): Require ix86_decompose_address to return 1.
23764
23765         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
23766         (cprop_insn): Likewise.
23767
23768 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23769
23770         * toplev.c: Fix formatting.
23771         * tree.c: Likewise.
23772         * tree-dump.c: Likewise.
23773         * unroll.c: Likewise.
23774         * unwind-dw2.c: Likewise.
23775         * unwind-dw2-fde.c: Likewise.
23776         * unwind-dw2-fde-glibc.c: Likewise.
23777         * unwind-sjlj.c: Likewise.
23778
23779 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
23780
23781         * doc/invoke.texi: Document PDP-11 options.
23782
23783 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23784
23785         * config/h8300/h8300.h: Fix formatting.
23786
23787 2002-01-10  Ira Ruben   <ira@apple.com>
23788
23789         Add __attribute__ ((deprecated)).
23790         * extend.texi: Document __attribute__ ((deprecated)).
23791         * invoke.texi: Document -Wno-deprecated-declarations.
23792         * testsuite/g++.dg/other/deprecated.C: New C++ test.
23793         * testsuite/gcc.dg/deprecated.c: New C test.
23794         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
23795         (c_common_attribute_table): Add "deprecated" entry.
23796         (handle_deprecated_attribute): New function.
23797         * c-decl.c (deprecated_states): New enum.
23798         deprecated_state: State of "deprecated" handling.
23799         (start_decl): Set deprecated_state based on attributes.
23800         (grokdeclarator): Test for deprecated uses, propagate attribute.
23801         * c-typeck.c (build_component_ref): Test for deprecated fields.
23802         (build_external_ref): Test for deprecated primaries.
23803         * diagnostic.c (warn_deprecated_use) New function to issue
23804         warnings about __attribute__ ((depricated)) references.
23805         * flags.h (warn_deprecated_decl): Extern declared for
23806         -W[no-]deprecated-declarations option.
23807         * print-tree.c (print_node): Show deprecated flag status.
23808         * toplev.c (warn_deprecated_decl): Defined.
23809         (W_options): Added "deprecated-declaration".
23810         * toplev.h (warn_deprecated_use): Extern declared.
23811         * tree.h (struct tree_common): Define deprecated_flag.
23812         (TREE_DEPRECATED): New macro to access flag.
23813         * cp/call.c (build_call): Test for deprecated calls.
23814         * cp/class.c (add_implicitly_declared_members): Set global
23815         flag to tell grokdeclarator to not issue deprecated warnings.
23816         * cp/cp-tree.h: Add extern for adding_implicit_members.
23817         * cp/decl.c (deprecated_states): New enum.
23818         (start_decl): Set deprecated_state based on attributes.
23819         (grokdeclarator): Test for deprecated uses, propagate attribute.
23820         * cp/lex.c (do_identifier): Test for deprecated primaries.
23821         * cp/typeck.c (build_component_ref): Test for deprecated fields.
23822
23823 2002-01-10  Ira Ruben   <ira@apple.com>
23824
23825         Fix to assign attributes to inline member functions.
23826         * cp/decl.c (start_method): Handle attrlist.
23827
23828 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23829
23830         * combine.c (expand_field_assignment): Use subreg_lsb().
23831
23832 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
23833
23834         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
23835         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
23836         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
23837         Recurse for any operand of AND as long as constant is non-zero.
23838
23839 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23840
23841         * config/h8300/h8300.md: Remove constraints from expanders.
23842
23843 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23844
23845         * varasm.c: Fix formatting.
23846         * varray.c: Likewise.
23847         * vmsdbgout.c: Likewise.
23848         * xcoffout.c: Likewise.
23849
23850 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
23851
23852         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
23853         update edge probabilities to match.
23854
23855 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
23856
23857         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
23858         dependencies.
23859         * doc/languages.texi, doc/sourcebuild.texi: New files.
23860         * doc/configfiles.texi: Make a subsubsection.  Update.
23861         * doc/configterms.texi: Add @node.  Remove warning that this isn't
23862         instructions for building GCC.
23863         * doc/makefile.texi: Make a subsection.
23864         * doc/gccint.texi: Update.
23865
23866 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
23867
23868         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
23869
23870 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
23871
23872         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
23873
23874 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
23875
23876         * optabs.c (expand_fix): Look for wider integer modes first.
23877
23878         * i386.md (mov?f): Avoid the fake const double trick for medium
23879         memory model.
23880         (min?f*/max?f*): Prohibit memory operands for i387 variant.
23881         (fop_df_4): Disable for SSE compilation.
23882
23883 2002-01-10  Graham Stott  <grahams@redhat.com>
23884
23885         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
23886         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
23887
23888 2002-01-10  Richard Henderson  <rth@redhat.com>
23889
23890         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
23891
23892 2002-01-10  Richard Henderson  <rth@redhat.com>
23893
23894         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
23895         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
23896
23897 2002-01-10  Kazu Hirata  <kazu@hxi.com>
23898
23899         * combine.c (can_combine_p): Fix a comment typo.
23900
23901 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
23902
23903         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
23904         empty list correctly.  Change loop index $t to $f for
23905         consistency with rest of Makefile.
23906
23907 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
23908
23909         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
23910         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23911
23912         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
23913         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
23914         (altivec_init_builtins): Same.
23915         (altivec_expand_unop_builtin): Return NULL_RTX on error.
23916         (altivec_expand_binop_builtin): Same.
23917         (altivec_expand_ternop_builtin): Same.
23918         (bdesc_dst): New.
23919
23920         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
23921         ("altivec_vctuxs"): Fix typo.
23922         ("altivec_vnmsubfp"): Same.
23923         ("altivec_dssall"): New.
23924         ("altivec_mfvscr"): New.
23925         ("altivec_dss"): New.
23926         ("altivec_lvsl"): New.
23927         ("altivec_lvsr"): New.
23928         ("altivec_dstt"): New.
23929         ("altivec_dstst"): New.
23930         ("altivec_dststt"): New.
23931         ("altivec_dst"): New.
23932
23933         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
23934         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23935
23936 2002-01-09  Richard Henderson  <rth@redhat.com>
23937
23938         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
23939
23940 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
23941
23942         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
23943         function.
23944         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
23945         prototype.
23946         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
23947
23948 2002-01-09  Kazu Hirata  <kazu@hxi.com>
23949
23950         * read-rtl.c: Fix formatting.
23951         * real.c: Likewise.
23952         * regclass.c: Likewise.
23953         * regrename.c: Likewise.
23954         * reg-stack.c: Likewise.
23955         * reload1.c: Likewise.
23956         * reload.c: Likewise.
23957         * rtl.c: Likewise.
23958
23959 2002-01-09  Kazu Hirata  <kazu@hxi.com>
23960
23961         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
23962         to extract items in the expr_list chain.
23963
23964 2002-01-09  Richard Henderson  <rth@redhat.com>
23965
23966         * config/vax/vax.c (vax_rtx_cost): Never abort.
23967
23968         * config/vax/vax.h (REAL_ARITHMETIC): Define.
23969
23970 2002-01-09  Jan Hubicka  <jh@suse.cz>
23971
23972         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
23973
23974 2002-01-09  Richard Henderson  <rth@redhat.com>
23975
23976         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
23977         Unify code from various alternatives.
23978
23979 2002-01-09  Richard Henderson  <rth@redhat.com>
23980
23981         * regrename.c (copy_value): Ignore the copy if the source register
23982         is present in the value chain with a narrower mode.
23983
23984 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
23985
23986         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
23987         for the c4x target. Also improve layout.
23988
23989 2002-01-09  Richard Henderson  <rth@redhat.com>
23990
23991         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
23992         * config/m32r/m32r.md (and ior xor splitters): Swap operands
23993         to match insn patterns.
23994
23995 2002-01-09  Richard Henderson  <rth@redhat.com>
23996
23997         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
23998         (copyprop_hardreg_forward_1): Likewise.
23999
24000 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24001
24002         * pa.md (decrement_and_branch_until_zero): Change predicate for
24003         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
24004
24005 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
24006
24007         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
24008         gets undefined. For Darwin.
24009
24010 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
24011
24012         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
24013
24014 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
24015
24016         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
24017
24018 2002-01-08  Richard Henderson  <rth@redhat.com>
24019
24020         * regrename.c (copy_value): Ignore overlapping copies.
24021
24022 2002-01-08  Richard Henderson  <rth@redhat.com>
24023
24024         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
24025         as needed to avoid shared structure.
24026
24027 2002-01-08  Kazu Hirata  <kazu@hxi.com>
24028
24029         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
24030         H8/300H and H8/S.
24031
24032 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
24033
24034         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
24035         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
24036         documentation of obsolete macros.
24037         * system.h: Poison these macros.
24038         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
24039         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
24040         config/c4x/c4x.h, config/clipper/clipper.h,
24041         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
24042         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
24043         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
24044         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
24045         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
24046         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
24047         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
24048         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
24049         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
24050         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
24051         config/sparc/sparc.h, config/stormy16/stormy16.h,
24052         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
24053         definitions and commented out definitions of obsolete macros.
24054         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
24055         of MAX_INT_TYPE_SIZE.
24056
24057 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
24058
24059         * config/s390/s390.c (s390_preferred_reload_class): Never
24060         return ADDR_REGS if it isn't a subset of the given class.
24061         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
24062         FP_REGS, but all superclasses as well.
24063
24064         * config/s390/s390.c (s390_function_profiler): Fix thinko.
24065
24066         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
24067         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
24068         must not be a const_int.
24069
24070 2002-01-08  Richard Henderson  <rth@redhat.com>
24071
24072         * Makefile.in (toplev.o): Depend on options.h.
24073         (gcc.o): Depend on specs.h.
24074
24075 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
24076
24077         * expr.c (store_expr): Convert VOIDmode constants back to target's
24078         mode.
24079
24080 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
24081
24082         * doc/invoke.texi: Markup gcc as @command.  Refer to
24083         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
24084         of http://gcc.gnu.org/thanks.html.
24085
24086 2002-01-08  Dale Johannesen  <dalej@apple.com>
24087
24088         * config/rs6000/rs6000.md: Add missing int register
24089         target case to movdf_low.
24090
24091 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
24092
24093         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
24094         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
24095         (cppinit.o): Depend on except.h.
24096         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
24097         s-specs): New rules.
24098
24099         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
24100         Don't create specs.h/options.h/gencheck.h here.  Remove
24101         unnecessary variable settings from last argument of AC_OUTPUT.
24102         * config.in, configure: Regenerate.
24103         * intl.c: Hardcode package name as "gcc".
24104
24105         * cppinit.c: Include except.h.
24106         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
24107         appropriate.
24108         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
24109         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
24110         (!)USING_SJLJ_EXCEPTIONS.
24111         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
24112
24113 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
24114
24115         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
24116         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
24117         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
24118         documentation of obsolete macros.
24119         * system.h: Poison these macros.
24120         * config/d30v/d30v.h, config/ns32k/encore.h,
24121         config/stormy16/stormy16.h: Remove definitions and commented out
24122         definitions of obsolete macros.
24123
24124 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
24125
24126         * objc/objc-act.c (handle_class_ref): Mark the declaration of
24127         %sobjc_class_ref_%s as used - to prevent unwanted compiler
24128         warnings.
24129
24130 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
24131
24132         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
24133         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
24134         to insn adjusting stack/frame pointer.
24135         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
24136         accept operands that cause the insn to be non-splittable.
24137
24138 2002-01-08  Graham Stott  <grahams@redhat.com>
24139
24140         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
24141         (C_TYPE_FIELDS_VOLATILE): Likewise.
24142         (C_TYPE_BEING_DEFINED): Likewise.
24143         (C_IS_RESERVED_WORD): Likewise.
24144         (C_TYPE_VARIABLE_SIZE): Likewise.
24145         (C_DECL_VARIABLE_SIZE): Likewise.
24146         (C_MISSING_PROTOTYPE_WARNED): Likewise.
24147         (C_SET_EXP_ORIGINAL_CODE): Likewise.
24148         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
24149         parenthesis.
24150         (C_DECL_ANTICIPATED): Likewise.
24151         (c_build_type_variant): Add parenthesis.
24152
24153 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
24154
24155         * gcc.c (option_map): Remove --version.
24156         (process_command): Handle -fversion following the GNU Coding
24157         Standards.  Partially addresses PR other/704.
24158
24159 2002-01-08  Graham Stott  <grahams@redhat.com>
24160
24161         * combine.c (combine_instructions): Fix typo.
24162
24163 2002-01-08  Graham Stott  <grahams@redhat.com>
24164
24165         * debug.h: Use "tree" and "rtx" throughout.
24166
24167         * debug.c: Likewise.
24168
24169 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
24170
24171         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
24172         constant pool, use the pool's version of the symbol instead.
24173
24174 2002-01-07  Richard Henderson  <rth@redhat.com>
24175
24176         * regrename.c (find_oldest_value_reg): Ignore the value chain if
24177         the original register was copied in a mode with a fewer number of
24178         hard registers than the desired mode.
24179         (copyprop_hardreg_forward_1): Likewise.
24180         (debug_value_data): Fix loop test.
24181         * toplev.c (parse_options_and_default_flags): Reenable
24182         -fcprop-registers at -O1.
24183
24184 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
24185
24186         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
24187         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
24188
24189         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
24190         predicates.
24191
24192         * config/rs6000/rs6000.md: Add altivec predicate patterns.
24193
24194 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24195
24196         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
24197         (pa_output_function_prologue): Output local label at the beginning of
24198         the prologue when profiling.
24199         (hppa_profile_hook): Use the local label rather than the function label.
24200         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
24201
24202 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
24203
24204         * config/rs6000/rs6000.c (print_operand): Remove extra space.
24205         (altivec_expand_unop_builtin): Fix thinko.
24206         (altivec_expand_binop_builtin): Same.
24207         (altivec_expand_ternop_builtin): Same.
24208         (altivec_expand_builtin): Same.
24209
24210 2002-01-07  Richard Henderson  <rth@redhat.com>
24211
24212         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
24213
24214 2002-01-07  Jason Merrill  <jason@redhat.com>
24215
24216         * unwind-dw2.c (execute_cfa_program): Use < again.
24217
24218 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
24219
24220         * predict.c (combine_predictions_for_insn): Avoid division by zero.
24221
24222 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
24223
24224         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
24225         Don't allow -1 - x -> ~x simplifications in the first pass.
24226
24227 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
24228
24229         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
24230         arguments.
24231         (altivec_expand_binop_builtin): Same.
24232         (altivec_expand_unop_builtin): Same.
24233         (print_operand): Fix typo.
24234         (bdesc_1arg): Add vupk* variants.
24235
24236         * rs6000.h (rs6000_builtins): Add vupk* enums.
24237
24238         * rs6000.md: Add altivec_vupk* variants.
24239
24240 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
24241
24242         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
24243         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
24244         and last update dates.
24245
24246 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
24247
24248         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
24249
24250 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
24251
24252         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
24253         * config/avr/avr.h (CPP_SPEC): Likewise.
24254         (LINK_SPEC): Likewise.
24255         (CRT_BINUTILS_SPECS): Likewise.
24256         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
24257         * doc/invoke.texi (AVR Options): Document them.
24258
24259 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
24260
24261         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
24262         LABEL_NUSES.
24263
24264 2002-01-07  Graham Stott  <grahams@redhat.com>
24265
24266         * config/i386/i386.h: Update copyright date.
24267         (HALF_PIC_PTR): Add parenthesis.
24268         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
24269         (CONSTANT_ALIGNMENT): Add parenthesis.
24270         (DATA_ALIGNMENT): Likewise.
24271         (LOCAL_ALIGNMENT): Likewise.
24272         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
24273         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
24274         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
24275         (HARD_REGNO_NREGS): Add paranethesis.
24276         (VALID_SSE_REG_MODE): Whitespace.
24277         (VALID_MMX_REG_MODE): Whitespace.
24278         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
24279         (ix86_hard_regno_mode_ok): Add parenthesis.
24280         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
24281         (RETURN_IN_MEMORY): Whitespace.
24282         (N_REG_CLASSES): Add parenthesis.
24283         (INTEGER_CLASS_P): Add parenthesis and wrap.
24284         (FLOAT_CLASS_P): Likewise.
24285         (SSE_CLASS_P): Likewise.
24286         (MMX_CLASS_P): Likewise.
24287         (MAYBE_INTEGER_CLASS_P): Likewise.
24288         (MAYBE_FLOAT_CLASS_P): Likewise.
24289         (MAYBE_SSE_CLASS_P): Likewise.
24290         (MAYBE_MMX_CLASS_P): Likewise.
24291         (Q_CLASS_P): Likewise.
24292         (GENERAL_REGNO_P): Uppercase macro parameter.
24293         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
24294         (FP_REGNO_P): Likewise.
24295         (ANY_FP_REGNO_P): Uppercase macro parameter.
24296         (SSE_REGNO_P): Likewise.
24297         (SSE_REGNO): Likewise.
24298         (SSE_REG_P): Likewise.
24299         (SSE_FLOAT_MODE_P): Likewise.
24300         (MMX_REGNO_P): Likewise.
24301         (MMX_REG_P):Likewise.
24302         (STACK_REG_P): Likewise.
24303         (NON_STACK_REG_P): Likewise.
24304         (STACK_TOP_P): Likewise.
24305         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
24306         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
24307         (SECONDARY_MEMORY_NEEDED): Likewise.
24308         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
24309         (MD_ASM_CLOBBERS): Whitespace and wrap.
24310         (MUST_PASS_IN_STACK): Whitespace and wrap.
24311         (RETURN_POPS_ARGS): Add parenthesis.
24312         (INIT_CUMULATIVE_ARGS): Likewise.
24313         (FUNCTION_ARG): Likewise.
24314         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
24315         (SETUP_INCOMING_VARARGS): Likewise.
24316         (BUILD_VA_LIST_TYPE):  Add parenthesis.
24317         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
24318         parenthsis.
24319         (EXPAND_BUILTIN_VA_ARG): Likewise.
24320         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
24321         (INITIALIZE_TRAMPOLINE): Add parenthesis.
24322         (INITIAL_ELIMINATION_OFFSET): Likewise.
24323         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
24324         (REGNO_OK_FOR_BASE_P): Likewise.
24325         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
24326         (REGNO_OK_FOR_DIREG_P): Likewise.
24327         (REG_OK_FOR_INDEX_P): Whitespace.
24328         (REG_OK_FOR_BASE_P): Whitespace.
24329         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
24330         parenthesis.
24331         (FIND_BASE_TERM): Fix typo.
24332         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
24333         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
24334         (SYMBOLIC_CONST; Whitespace.
24335         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
24336         (ENCODE_SECTION_INFO): Whitespace.
24337         (FINALIZE_PIC): Remove do { ... } while (0).
24338         (PROMOTE_MODE): Wrap in do { ... } while (0).
24339         (CONST_COSTS): Whitespace.
24340         (RTX_COSTS): Add paramethesis, whitespace and wrap.
24341         (REGISTER_MOVE_COST): Add parenthesis.
24342         (MEMORY_MOVE_COST): Likewise.
24343         (EXTRA_CC_MODES): Whitespace.
24344         (SELECT_CC_MODE): Add parenthesis and whitespace.
24345         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
24346         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
24347         (ASM_OUTPUT_LABEL): Add paramethesis.
24348         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
24349         (ASM_OUTPUT_REG_POP): Likewise.
24350         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
24351         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24352
24353         * config/i386/i386.c: Update copyright.
24354         (CHECK_STACK_LIMIT): Add parenthesis.
24355         (AT_BP): Uppercase macro parameter.
24356         (x86_64_int_parameter_registers): Constify.
24357         (x86_64_int_return_registers): Likewise.
24358         (ix86_compare_op0): Use rtx.
24359         (construct_container): Constify INTREG parameter.
24360         (function_arg): Use rtx.
24361
24362         * diagnostic.h: Update copyright date.
24363         (output_buffer_state): Add parenthesis.
24364         (output_buffer_format_args): Likewise.
24365
24366         * combine.c (combine_instructions): Replace XEXP (links, 0)
24367         with link.
24368
24369 2002-01-06  H.J. Lu <hjl@gnu.org>
24370
24371         * cfgcleanup.c (thread_jump): Fix 2 typos.
24372
24373 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
24374
24375         * config.gcc: Add support for --enable-altivec.
24376
24377 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24378
24379         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
24380
24381 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
24382
24383         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
24384         __objc_class_name_*.
24385
24386 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24387
24388         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
24389
24390 2002-01-06  Richard Henderson  <rth@redhat.com>
24391
24392         * reorg.c (emit_delay_sequence): Remove death notes, not merely
24393         nop them out.  Increment label reference count for REG_LABEL.
24394         (fill_slots_from_thread): Frob label reference count around
24395         delete_related_insns.
24396
24397 2002-01-05  Richard Henderson  <rth@redhat.com>
24398
24399         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
24400         jump threading.
24401
24402 2002-01-05  Richard Henderson  <rth@redhat.com>
24403
24404         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
24405         * integrate.c (output_inline_function): Likewise.
24406         * toplev.c (rest_of_compilation): Do it here instead.  Move call
24407         to remove_unnecessary_notes after emitting abstract instance.
24408         Force an emitted nested function to have its parent emited as well.
24409         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
24410         for null.
24411         (rtl_for_decl_location): Do not look at reload data structures
24412         before reload has run.
24413
24414 2002-01-05  Kazu Hirata  <kazu@hxi.com>
24415
24416         * cse.c: Fix formatting.
24417         * dwarf2asm.c: Likewise.
24418         * dwarf2out.c: Likewise.
24419         * explow.c: Likewise.
24420         * expmed.c: Likewise.
24421         * function.c: Likewise.
24422         * gcov.c: Likewise.
24423         * gencheck.c: Likewise.
24424         * genrecog.c: Likewise.
24425         * ggc-common.c: Likewise.
24426         * ggc-page.c: Likewise.
24427         * global.c: Likewise.
24428
24429 2002-01-05  Kazu Hirata  <kazu@hxi.com>
24430
24431         * combine.c: Fix formatting.
24432
24433 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
24434
24435         PR middle-end/1557
24436         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
24437
24438 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
24439
24440         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
24441         as 1 for __powerpc64__ as well.
24442
24443         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
24444
24445         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
24446         return it.
24447
24448 2002-01-05  Daniel Berlin  <dan@dberlin.org>
24449
24450         * lcm.c: Revert change, due to performance regression it causes on
24451         SPEC because it's slightly more conservative (sigh, I hate
24452         edge-based LCM).
24453
24454 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
24455
24456         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
24457
24458 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
24459
24460         * doc/cppinternals.texi: Update.
24461
24462 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
24463
24464         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
24465         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
24466         negatives.
24467         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
24468         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
24469         kludge for pre-october-14th mmix versions to handle new-found bug
24470         with PUSHJ/PUSHGO and the register stack.
24471         * config/mmix/mmix.h (struct machine_function): Rename member
24472         has_call_value_without_parameters to has_call_without_parameters.
24473         All referers changed.
24474         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
24475         TARGET_MASK_BRANCH_PREDICT): New macros.
24476         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
24477         -mno-reg-stack-fill-bug-workaround.
24478         * config/mmix/mmix.md ("call"): Set struct machine member
24479         has_call_without_parameters.
24480
24481 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
24482
24483         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
24484
24485 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
24486
24487         * cfgcleanup.c: Include tm_p.h
24488         (mark_effect): Fix handling of hard register; fix handling of SET
24489
24490 2002-01-04  Kazu Hirata  <kazu@hxi.com>
24491
24492         * config/h8300/h8300.md (anonymous patterns): Check that
24493         operands are registers before using REGNO on them.
24494
24495 2002-01-03  Roland McGrath  <roland@frob.com>
24496
24497         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
24498
24499 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
24500
24501         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
24502         * c-common.h (genrtl_expr_stmt_value): Likewise.
24503         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
24504         (expand_expr_stmt_value): Add maybe_last argument.
24505         Don't warn about statement with no effect if it is the last statement
24506         in expression statement.
24507         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
24508         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
24509         expand_expr_stmt_value.
24510         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
24511         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
24512         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
24513         as maybe_last to expand_expr_stmt_value.
24514
24515 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
24516
24517         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
24518         be passed in, do not build it.
24519         (c_begin_if_stmt): New function.
24520         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
24521         * c-common.h (c_expand_start_cond): Update prototype.
24522         (c_begin_if_stmt): Prototype new function.
24523         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
24524         * c-parse.in (if_prefix): Use c_begin_if_stmt,
24525         c_begin_while_stmt and c_finish_while_stmt_cond.
24526
24527 2002-01-04  William Cohen  <wcohen@redhat.com>
24528
24529         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
24530         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
24531         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
24532         * config/pa/som.h (ASM_FILE_START): Likewise.
24533
24534 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
24535
24536         * lcm.c: Include df.h.
24537         Add available_transfer_function prototype.
24538         (compute_available): Rework to use iterative dataflow framework.
24539         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
24540         with bb_info in df.h
24541         (available_transfer_function): New function.
24542
24543         * Makefile.in (lcm.o): add df.h to dependencies.
24544
24545 2002-01-04  Richard Henderson  <rth@redhat.com>
24546
24547         * config/alpha/alpha.c (some_operand): Accept HIGH.
24548         (input_operand): Likewise; accept simple references to globals.
24549         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
24550         (alpha_const_double_ok_for_letter_p): Likewise.
24551         (alpha_extra_constraint): Likewise.
24552         (alpha_preferred_reload_class): Likewise.  Do not force
24553         symbolic constants to memory.
24554         (alpha_legitimate_address_p): Accept simple references
24555         to small_symbolic_operand.
24556         (alpha_legitimize_address): New arg scratch.  Be prepared to be
24557         called when no_new_pseudos.  Emit simple symbolic references.
24558         Split integers into low, high, and rest.
24559         (alpha_expand_mov): Use alpha_legitimize_address.
24560         (some_small_symbolic_mem_operand): New.
24561         (split_small_symbolic_mem_operand): New.
24562         * config/alpha/alpha-protos.h: Update.
24563         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
24564         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
24565         (EXTRA_CONSTRAINT): Likewise.
24566         (PREFERRED_RELOAD_CLASS): Likewise.
24567         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
24568         (PREDICATE_CODES): Update.
24569         * config/alpha/alpha.md: New post-reload splitters to convert
24570         simplfied symbolic operands to the form that references $29.
24571         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
24572         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
24573
24574 2002-01-03  Richard Henderson  <rth@redhat.com>
24575
24576         * local-alloc.c (function_invariant_p): Update commentary.
24577
24578 2002-01-04  H.J. Lu <hjl@gnu.org>
24579
24580         * toplev.c (rest_of_compilation): Fix a typo when calling
24581         cleanup_cfg.
24582
24583 2002-01-03  Kazu Hirata  <kazu@hxi.com>
24584
24585         * c-common.c: Fix formatting.
24586         * diagnostic.c: Likewise.
24587         * doloop.c: Likewise.
24588         * dwarf2out.c: Likewise.
24589
24590 2002-01-03  Kazu Hirata  <kazu@hxi.com>
24591
24592         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
24593         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
24594
24595 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
24596
24597         * cpperror.c: Update comments and copyright.
24598         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
24599         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
24600
24601 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24602
24603         * collect2.c (main): Use strcmp when testing for "-shared".
24604
24605 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
24606
24607         * cppmacro.c: Don't include intl.h.  Update comments.
24608         (new_number_token): Allocate enough buffer for 64-bit unsigned
24609         integers; update prototype.
24610         * cppmain.c: Update comments.
24611
24612 2002-01-03  William Cohen  <wcohen@redhat.com>
24613
24614         * function.h (struct function): Add profile.
24615         (current_function_profile): New.
24616         doc/extend.texi: Update documentation.
24617         * final.c (final_start_function): Use current_function_profile
24618         instead of profile_flag.
24619         (profile_after_prologue): Likewise.
24620         * function.c (expand_function_start): Likewise.
24621         (expand_function_start): Likewise.
24622         * config/alpha/alpha.c (direct_call_operand):
24623         (alpha_does_function_need_gp): Likewise.
24624         (alpha_expand_prologue): Likewise.
24625         * config/arm/arm.c (arm_expand_prologue): Likewise.
24626         thumb_expand_prologue: Likewise.
24627         * config/d30v/d30v.c (d30v_stack_info): Likewise.
24628         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
24629         (fr30_expand_prologue): Likewise.
24630         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
24631         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
24632         * config/i386/i386.h (FINALIZE_PIC): Likewise.
24633         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
24634         * config/i960/i960.c (i960_output_function_prologue): Likewise.
24635         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
24636         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
24637         (m32r_expand_prologue): Likewise.
24638         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
24639         (m88k_expand_prologue): Likewise.
24640         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
24641         * config/mips/mips.c (compute_frame_size): Likewise.
24642         (mips_expand_prologue): Likewise.
24643         (mips_can_use_return_insn): Likewise.
24644         * config/pa/elf.h (ASM_FILE_START): Likewise.
24645         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
24646         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
24647         * config/pa/som.h (ASM_FILE_START): Likewise.
24648         * config/romp/romp.c (romp_using_r14): Likewise.
24649         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
24650         (rs6000_stack_info): Likewise.
24651         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
24652         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
24653         * config/v850/v850.c (compute_register_save_size): Likewise.
24654
24655 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
24656
24657         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
24658         gen_lowpart_common fails, use gen_lowpart_SUBREG.
24659
24660 2002-01-03  Turly O'Connor  <turly@apple.com>
24661
24662         * darwin.c (machopic_output_possible_stub_label): Don't generate
24663         stub routines for pseudo-stubs which we've just defined.
24664
24665 2002-01-03  Kazu Hirata  <kazu@hxi.com>
24666
24667         * builtins.c: Fix formatting.
24668         * c-typeck.c: Likewise.
24669         * combine.c: Likewise.
24670         * expr.c: Likewise.
24671         * loop.c: Likewise.
24672
24673 2002-01-03  Andreas Schwab  <schwab@suse.de>
24674
24675         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
24676         and return true if _cpp_push_next_buffer pushed a new include
24677         file.
24678         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
24679         _cpp_pop_file_buffer did not push a new file.
24680         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
24681
24682 2002-01-02  Eric Christopher  <echristo@redhat.com>
24683
24684         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
24685         FIND_REG_INC_NOTE call. Update copyright.
24686         * loop.c (canonicalize_condition): Ditto.
24687         * reorg.c (delete_scheduled_jump): Ditto.
24688
24689 2002-01-03  Kazu Hirata  <kazu@hxi.com>
24690
24691         * gcse.c: Fix formatting.
24692
24693 2002-01-03  Graham Stott  <grahams@redhat.com>
24694
24695         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
24696         forward defs for struct tags rtx_def, union_tree, rtvec_def
24697         also output corresponding typedefs for rtx, tree, and rtvec.
24698
24699         * system.h: Move forward defs for struct tags rtx_def, union_tree,
24700         rtvec_def along with corresponding typedefs for rtx, tree, and
24701         rtvec to config.h, hconfig.h, tconfig.h.
24702
24703 2002-01-03  Graham Stott  <grahams@redhat.com>
24704
24705         * tree.h: Update copyright date.
24706         (IS_EXPR_CODE_CLASS): Add parenthesis.
24707         (TREE_SET_CODE): Add whitespace.
24708         (TREE_CHECK): Add parenthesis.
24709         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
24710         (CST_OR_CONSTRUCTOR_CHECK):
24711         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
24712         (TREE_SYMBOL_REFERENCED): Whitespace.
24713         (INT_CST_LT): Likewise.
24714         (INT_CST_LT_UNSIGNED): Likewise.
24715         (tree_real_cst): Unwrap comment.
24716         (tree_string): Likewise.
24717         (tree_complex): Likewise.
24718         (IDENTIFIER_POINTER): correct cast.
24719         (SAVE_EXPR_CONTEXT): Whitespace.
24720         (EXPR_WFL_FILENAME_NODE): Likewise.
24721         (EXPR_WFL_FILENAME): Remove parenthesis.
24722         (DECL_ORIGIN): Add parenthesis.
24723         (DECL_FROM_INLINE): Use NULL_TREE.
24724         (build_int_2): Whitespace.
24725         (build_type_variant): Add parenthesis.
24726
24727         * gcc/jcf-parse.c: Update copyright date.
24728         (yyparse): Constify resource_filename.
24729
24730 2002-01-03  Graham Stott  <grahams@redhat.com>
24731
24732         * rtl.h: Update copyright date.
24733         (RTL_CHECK1): Wrap long line.
24734         (RTL_CHECK2): Likewise.
24735         (RTL_CHECKC1): Wrap long line and whitespace.
24736         (RTL_CHECKC2): Likewise.
24737         (XWINT): Whitespace.
24738         (XINT): Likewise.
24739         (XSTR): Likewise.
24740         (XEXP): Likewise.
24741         (XVEC): Likewise.
24742         (XMODE): Likewise.
24743         (XBITMAP): Likewise.
24744         (XTREE): Likewise.
24745         (XBBDEF): Likewise.
24746         (XTMPL): Likewise.
24747         (X0WINT): Likewise.
24748         (X0INT):Likewise.
24749         (X0UINT): Likewise.
24750         (X0STR): Likewise.
24751         (X0EXP): Likewise.
24752         (X0VEC): Likewise.
24753         (X0MODE): Likewise.
24754         (X0BITMAP): Likewise.
24755         (X0TREE): Likewise.
24756         (X0BBDEF): Likewise.
24757         (X0ADVFLAGS): Likewise.
24758         (X0CSELIB): Likewise.
24759         (X0MEMATTR): Likewise.
24760         (XCWINT): Likewise.
24761         (XCINT): Likewise.
24762         (XCUINT): Likewise.
24763         (XCSTR): Likewise.
24764         (XCEXP): Likewise.
24765         (XCVEC): Likewise.
24766         (XCMODE): Likewise.
24767         (XCBITMAP): Likewise.
24768         (XCTREE): Likewise.
24769         (XCBBDEF): Likewise.
24770         (XCADVFLAGS): Likewise.
24771         (XCCSELIB): Likewise.
24772         (XC2EXP): Likewise.
24773         (INSN_UID): Likewise.
24774         (PREV_INSN): Likewise.
24775         (PATTERN): Likewise.
24776         (INSN_CODE): Likewise.
24777         (PUT_REG_NOTE_KIND): Likewise.
24778         (CODE_LABEL_NUMBER): Likewise.
24779         (NOTE_SOURCE_FILE): Likewise.
24780         (NOTE_BLOCK): Likewise.
24781         (NOTE_EH_HANDLER): Likewise.
24782         (NOTE_RANGE_INFO): Likewise.
24783         (NOTE_LIVE_INFO): Likewise.
24784         (NOTE_BASIC_BLOCK): Likewise.
24785         (NOTE_EXPECTED_VALUE): Likewise.
24786         (NOTE_LINE_NUMBER): Likewise.
24787         (LABEL_NAME): Likewise.
24788         (LABEL_NUSES): Likewise.
24789         (LABEL_ALTERNATE_NAME): Likewise.
24790         (ADDRESSOF_DECL): Likewise.
24791         (JUMP_LABEL): Likewise.
24792         (LABEL_NEXTREF): Likewise.
24793         (REGNO): Likewise.
24794         (ORIGINAL_REGNO: Likewise.
24795         (HARD_REGISTER_NUM_P): Add parenthesis.
24796         (SUBREG_REG): Whitespace.
24797         (SUBREG_BYTE): Likewise.
24798         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
24799         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
24800         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
24801         (ASM_OPERANDS_INPUT_VEC): Likewise.
24802         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
24803         (ASM_OPERANDS_INPUT): Likewise.
24804         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
24805         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
24806         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
24807         (ASM_OPERANDS_INPUT_MODE): Likewise.
24808         (ASM_OPERANDS_SOURCE_FILE): Likewise.
24809         (ASM_OPERANDS_SOURCE_LINE): Likewise.
24810         (MEM_SET_IN_STRUCT_P): Minor reformat.
24811         (TRAP_CONDITION): Whitespace.
24812         (TRAP_CODE): Likewise.
24813         (COND_EXEC_TEST): Likewise.
24814         (COND_EXEC_CODE): Likewise.
24815         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
24816         (PHI_NODE_P): Add parenthesis.
24817         (plus_constant): Whitespace and add parenthesis.
24818
24819 2002-01-03  Kazu Hirata  <kazu@hxi.com>
24820
24821         * config/avr/avr.c: Fix comment typos.
24822         * config/c4x/c4x.md: Likewise.
24823         * config/dsp16xx/dsp16xx.h: Likewise.
24824         * config/dsp16xx/dsp16xx.md: Likewise.
24825         * config/i386/i386.md: Likewise.
24826         * config/ia64/ia64.c: Likewise.
24827         * config/m32r/m32r.h: Likewise.
24828         * config/m68hc11/m68hc11.md: Likewise.
24829         * config/mmix/mmix.c: Likewise.
24830         * config/mn10200/mn10200.c: Likewise.
24831         * config/romp/romp.c: Likewise.
24832         * config/sh/sh.c: Likewise.
24833         * config/stormy16/stormy16.c: Likewise.
24834         * config/stormy16/stormy16.h: Likewise.
24835         * config/stormy16/stormy16.md: Likewise.
24836
24837 2002-01-03  Graham Stott  <grahams@redhat.com>
24838
24839         * loop.h: Update copyright date.
24840         (LOOP_MOVABLES): Fix typo.
24841         (LOOP_REGS): Likewise.
24842         (LOOP_IVS): Likewise.
24843
24844 2002-01-03  Graham Stott  <grahams@redhat.com>
24845
24846         * cppinit.c: Update copyright date.
24847         Don't include output.h
24848         * Makefile.in: Update copyright date.
24849         Update dependency.
24850
24851 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24852
24853         PR c/5226
24854         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
24855         (-pthread) Add to RS/6000 options.
24856
24857 2002-01-02  Kazu Hirata  <kazu@hxi.com>
24858
24859         * except.c: Fix comment typos.
24860         * loop.c: Likewise.
24861         * varasm.c: Likewise.
24862         * doc/tm.texi: Fix a typo.
24863
24864 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
24865
24866         * c-typeck.c (output_init_element): Allow initializing static storage
24867         duration objects with compound literals.
24868
24869 2002-01-02  Richard Henderson  <rth@redhat.com>
24870
24871         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
24872         after abusing it.
24873
24874 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24875
24876         * gcc.c (default_compilers): Const-ify.
24877         * mips-tdump.c (stab_names): Likewise.
24878         * mips-tfile.c (map_coff_types, map_coff_storage,
24879         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
24880         pseudo_ops_t, pseudo_ops): Likewise.
24881         * protoize.c (default_include): Likewise
24882
24883         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
24884         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
24885         Add array size in declaration.
24886         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
24887         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
24888         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
24889         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
24890         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
24891         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
24892         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
24893         emtens, make_nan): Const-ify.
24894         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
24895         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
24896
24897 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
24898
24899         * config.gcc (ia64-*-*): Set extra_headers.
24900         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
24901         * config/alpha/t-osf: Remove.
24902         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
24903
24904 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
24905
24906         * config/rs6000/t-aix43: Revert previous change.
24907
24908 2002-01-02  Jason Merrill  <jason@redhat.com>
24909
24910         * c-decl.c (c_expand_body): Call outlining_inline_function when
24911         emitting an inline function out of line.
24912
24913 2002-01-02  Richard Henderson  <rth@redhat.com>
24914
24915         * dwarf2out.c (limbo_die_node): Add created_for member.
24916         (new_die): New argument created_for.  Update all callers.
24917         (mark_limbo_die_list): New.
24918         (dwarf2out_init): Register limbo_die_list as a root.
24919         (dwarf2out_finish): Force insert limbo dies into their function
24920         context.
24921
24922 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
24923
24924         PR c++/5089
24925         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
24926
24927 2002-01-02  Kazu Hirata  <kazu@hxi.com>
24928
24929         * config/h8300/fixunssfsi.c: Update copyright.
24930         Fix comment typos.
24931         Fix formatting.
24932         * config/h8300/h8300.c: Update copyright.
24933         Eliminate warnings.
24934
24935 2002-01-02  Kazu Hirata  <kazu@hxi.com>
24936
24937         * config/romp/romp.c: Fix comment formatting.
24938         * config/romp/romp.h: Likewise.
24939         * config/romp/romp.md: Likewise.
24940         * config/s390/s390.c: Likewise.
24941         * config/stormy16/stormy16.c: Likewise.
24942         * config/stormy16/stormy16.h: Likewise.
24943
24944 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
24945
24946         * c-common.h (genrtl_expr_stmt_value): Declare.
24947         * c-semantics.c (genrtl_goto_stmt): Redirect to...
24948         (genrtl_goto_stmt_value): ... this new function.  Pass new
24949         argument down to expand_expr_stmt_value, taking
24950         TREE_ADDRESSABLE into account.
24951         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
24952         STMT_EXPR as addressable, i.e., one whose result we want.
24953         * expr.c (expand_expr): Don't save expression statement value
24954         of labeled_blocks or loop_exprs.
24955         * stmt.c (expand_expr_stmt): Redirect to...
24956         (expand_expr_stmt_value): ... this new function.  Use new
24957         argument to tell whether to save expression value.
24958         (expand_end_stmt_expr): Reset last_expr_type and
24959         last_expr_value if we don't have either.
24960         * tree-inline.c (declare_return_variable): Mark its use
24961         statement as addressable.
24962         * tree.h: Document new use of TREE_ADDRESSABLE.
24963         (expand_expr_stmt_value): Declare.
24964
24965 2002-01-01  Tom Rix  <trix@redhat.com>
24966
24967         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
24968         rs6000_emit_allocate_stack.
24969
24970 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
24971
24972         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
24973         ${srcdir}/ginclude/ to every entry in extra_headers.
24974         * configure: Regenerate.
24975         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
24976         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
24977         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
24978         * ginclude/proto.h: Rename to config/convex/proto.h.
24979
24980 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24981
24982         * attribs.c (handle_vector_size_attribute): Use host_integerp
24983         and tree_int_cst; remove warnings.
24984         * caller-save.c (insert_restore): Add cast to get rid of warning.
24985         (insert_save): Likewise.
24986         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
24987         * regmove.c (find_matches): Add temporary var to kill a warning.
24988
24989 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
24990
24991         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
24992         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
24993         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
24994         (vms-dwarf2eh.o): Add Makefile rule.
24995         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
24996         * config/alpha/vms-dwarf2eh.asm: New file.
24997
24998         * gcc.c (delete_if_ordinary): Delete all versions.
24999
25000 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
25001
25002         * config/mmix/mmix.md: Update FIXME to not mention
25003         define_constants.
25004         (MMIX_rJ_REGNUM): New define_constants constant.
25005         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
25006         "*movdicc_real"): Adjust contraints formatting.
25007         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
25008         for branch prediction.
25009         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
25010         output template.
25011         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
25012         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
25013         number.  Delete related FIXMEs.
25014         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
25015         from number to MMIX_rJ_REGNUM.
25016         (TARGET_MASK_BRANCH_PREDICT): New.
25017         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
25018         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
25019         value.  Add -mbranch-predict and -mno-branch-predict.
25020         (TARGET_VERSION): Drop date.
25021         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
25022         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
25023         for finding out global symbols.
25024         (mmix_asm_output_labelref): Revert condition for global symbol.
25025         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
25026         (mmix_print_operand_punct_valid_p): A '+' is valid.
25027
25028 See ChangeLog.6 for earlier changes.