* extend.texi: Update for CPP.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * extend.texi: Udate for CPP.
4
5 2001-01-13  Andreas Jaeger  <aj@suse.de>
6
7         * reload1.c: Add prototype for replace_pseudos_in_call_usage.
8
9         * regmove.c: Add prototype for replace_in_call_usage.
10
11 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12
13         * cpplib.h (cpp_pool, mi_state, mi_ind, struct cpp_macro,
14         struct cpp_chunk, struct htab, struct toklist,
15         struct cpp_context, CPP_STACK_MAX, struct lexer_state,
16         struct spec_nodes, struct cpp_reader, CPP_OPTION, CPP_BUFFER,
17         CPP_BUF_LINE, CPP_BUF_COL, CPP_BUF_COLUMN, U, ustrcmp, ustrncmp,
18         ustrlen, uxstrdup, ustrchr, ufputs): Move to cpphash.h.
19         (struct macro_args): Delete.
20         * cpphash.h: See above.
21
22 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
23
24         * cppmain.c (struct printer): Remove no_line_dirs.
25         (options, cb): New.
26         (main, setup_callbacks, scan_buffer, printer_init, cb_define)
27         : Use options rather than CPP_OPTION.
28         (setup_callbacks): Use cb rather than pfile->cb.
29         (main): No need to check for a buffer.  Use cpp_errors.
30         (printer_init): Don't set no_line_dirs.
31         (maybe_print_line): Use options not no_line_dirs.
32         (cb_file_change): Don't call print_line if -P.
33
34 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
35
36         * c-lex.c (init_c_lex): Use cpp_get_callbacks to set
37         callbacks.
38         * c-parse.in (finish_parse): Use cpp_errors.
39         (__yylex): Use return value of cpp_pop_buffer.
40         * cp/lex.c (finish_parse): Use cpp_errors.
41         * cp/spew.c (read_token): Use return value of cpp_pop_buffer.
42
43 Sat Jan 13 16:57:40 2001  Denis Chertykov  <denisc@overta.ru>
44
45         * README.AVR: URLs corrected.
46
47 Sat Jan 13 07:30:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
48
49         * c-decl.c (start_function): Don't warn if old prototype is builtin
50         that's not in C's namespace.
51         * libgcc2.c (_varargs): Update definition of __builtin_saveregs.
52         (_bb): Add prototype for ctime.
53         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Add missing protos.
54
55 Sat Jan 13 09:53:32 MET 2001  Jan Hubicka  <jh@suse.cz>
56
57         * i386.c (ix86_fp_comparison_arithmetics_cost,
58         ix86_fp_comparison_fcomi_cost, ix86_fp_comparison_sahf_cost,
59         ix86_fp_comparison_cost): New functions.
60         (ix86_expand_fp_compare): Use the costs to choose best bethod; add
61         two new parameters SECOND_TEST and BYPASS_TEST; allow generating
62         two-branch sequences; make static.
63         (ix86_use_fcomi_compare): Do decision according to the costs.
64         (split_fp_branch): New.
65         * i386.md (compare-and-branch patterns): Use split_fp_branch.
66         * i386-protos.h (ix86_expand_fp_compare): Remove
67         (ix86_split_fp_branch): Declare.
68
69         * i386.h (PREDICATE_CODES): Update codes from fcmov_comparison_operand
70         and ix86_comparison_operator.
71
72         * i386.c (ix86_prepare_fp_compare_args): Try to rearange the comparison
73         to make it cheaper.
74
75         * i386.c (put_condition_code): Output properly the unordered/ordered
76         compares in fp case.
77         (ix86_expand_fp_movcc): Use ix86_expand_compare infrastructure.
78
79         * tm.texi (REVERSE_CONDITION): Document.
80         * i386.c (ix86_fp_compare_mode): Simplify; return always CCFPmode
81         in -ffast-math mode.
82         * i386.h (REVERSE_CONDITION, REVERSIBLE_CC_MODE): New macro.
83
84 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
85
86         * config/sh/sh.c (sh_expand_epilogue): Use PR explicitly.
87
88         * config/sh/sh.c (sh_expand_prologue): Let the second toggle_sz be
89         optimized away.
90
91         * config/sh/sh.c (mova_p): Fix test for mova_const.
92
93 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
94
95         * fix-header.c (read_scan_file): Use cpp_get_callbacks and
96         cpp_get_options rather than dereferencing pfile and using
97         CPP_OPTION.
98         * scan-decls.c (scan_decls): Use return value of
99         cpp_pop_buffer rather than CPP_BUFFER.
100
101 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
102
103         * cppinit.c (cpp_handle_option): help_only is now part of the
104         cpp_options structure.
105         * cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks,
106         cpp_set_callbacks): New functions.
107         * cpplib.h (cpp_callbacks): Break out as a named structure.
108         (cpp_options): Move help_only here from cpp_reader.
109         (CPP_FATAL_ERRORS): Update to use cpp_errors.
110         (cpp_errors, cpp_get_options, cpp_get_callbacks,
111         cpp_set_callbacks): New prototypes.
112         * cppmain.c (main): Update for help_only.
113
114 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
115
116         * Makefile.in (info, maintainer-clean, install-info, uninstall):
117         Also build and remove and install and uninstall c-tree.info and
118         cppinternals.info.
119         ($(srcdir)/gcc.info): Add dependency on contrib.texi.
120         ($(srcdir)/cppinternals.info): New target.
121         * c-tree.texi: Change file name used when makeinfo used without -o
122         from ir.info to c-tree.info.  Add info directory entry.
123         * cppinternals.texi: Add info directory entry.
124         * .cvsignore: Update.
125
126 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
127
128         * c-typeck.c (store_init_value): Don't require constant initializer
129         elements with -pedantic -std=c99.
130         (digest_init): Change error about non-constant initializer elements
131         into pedwarn.
132         (constructor_range_end): Remove.
133         (constructor_incremental, designator_depth,
134         designator_errorneous): New variables.
135         (struct constructor_stack): Remove range_end, add incremental.
136         (struct constructor_range_stack, constructor_range_stack): New.
137         (struct initializer_stack): Add constructor_range_stack.
138         (finish_init): Set it.
139         (start_init): Likewise.  require_constant_elements for non-static
140         trees only if not flag_isoc99.
141         (really_start_incremental_init): Remove constructor_range_end, add
142         constructor_incremental.
143         (pop_init_level): Likewise.
144         (push_init_level): Likewise.  If implicit and the subobject had some
145         value set already, preinitialize the level with it.
146         Warn about missing braces only if not pushing due to designators.
147         (set_designator, push_range_stack): New functions.
148         (set_init_label): Use them.
149         (set_init_index): Likewise.  Remove constructor_range_end.
150         Error if designator index is outside of array bounds.
151         (add_pending_init): Compare values of purpose index trees, not the
152         trees themselves.  Allow overwriting of already initialized element.
153         Issue a warning if it had side-effects.
154         (set_nonincremental_init, set_nonincremental_init_from_string): New
155         functions.
156         (pending_init_member): Rename to...
157         (find_init_member): ...this function.  Call set_nonincremental_init
158         if necessary.  Compare values of purpose index trees, not the trees
159         themselves.  Return the actual value, not just non-zero if something
160         is found.
161         (output_init_element): Remove checks for duplicates.
162         If field has zero size, only check the initializer for correctness.
163         Call set_nonincremental_init if necessary.  Push RECORD/ARRAY into AVL
164         if constructor_incremental is zero.  Change error about initializers
165         not computable at load time into pedwarn.
166         (output_pending_init_elements): Compare bit positions, not
167         FIELD_DECLs to take into account zero-sized fields.
168         (process_init_element): Use constructor_range_stack to fill all
169         ranges in the designator lists from current level up.
170         * extend.texi: Update documentation for labeled elements.
171
172 2001-01-12  Alexandre Oliva  <aoliva@redhat.com>
173
174         * calls.c (emit_library_call_value_1): Add USEs and CLOBBERs
175         to function usage for arguments passed by reference.  Optimize
176         callee-copied arguments.
177         * regmove.c (replace_in_call_usage): New function.
178         (fixup_match_1): Call it.
179         * cse.c (cse_insn): Canonicalize registers in function usage.
180         * reload1.c (replace_pseudos_in_call_usage): New function.
181         (reload): Call it.
182
183         * Makefile.in: Reverted yesterday's wrong patch.  Installed the
184         right version.
185
186 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
187
188         * config/alpha/alpha.c (alpha_expand_block_move): GET_MODE of tmp,
189         not XEXP (tmp, 0).
190
191 2001-01-12  DJ Delorie  <dj@redhat.com>
192
193         * Makefile.in (bootstrap): rename stages to be mnemonic.  Add
194         restageN, unstageN, bubblestrap, quickstrap, and cleanstrap
195         targets.
196
197 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
198
199         * cpp.texi, extend.texi, gcc.texi, install.texi, invoke.texi,
200         tm.texi: Consistently refer to ISO C instead of ANSI C.  Refer to
201         -std options alongside references to -ansi.  Update some
202         documentation for C99.
203         * cpp.1: Regenerate.
204
205 2001-01-12  Andreas Jaeger  <aj@suse.de>
206
207         * haifa-sched.c (restore_line_notes): Remove argument block B
208         since it's unused.
209         * sched-ebb.c (schedule_ebb): Change caller.
210         * sched-rgn.c (schedule_region): Likewise.
211         * sched-int.h (restore_line_notes): Adjust prototype.
212
213         * loop.h: Remove wrong declaration of doloop_condition_get.
214
215 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
216
217         * extend.texi:  Move C++-extension-related node from the C section
218           into the C++ section.
219
220 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
221
222         * extend.texi: Refer to an array of pointers to functions instead
223         of one of functions.
224
225 Fri Jan 12 12:08:12 MET 2001  Andreas Jaeger  <aj@suse.de>
226                               Jan Hubicka  <jh@suse.cz>
227
228         * combine.c (reversed_comparison): Fix typo in last patch.
229         Check X for NULL.
230         (combine_reversed_comparison_code): Make static to follow
231         prototype declaration.
232
233 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
234
235         * install.texi:  Remove misplaced duplicate entry.
236
237 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
238
239         * config/float-i386.h: Define FLT_EVAL_METHOD and DECIMAL_DIG for C99.
240
241 Thu Jan 11 17:06:30 EST 2001  John Wehle  (john@feith.com)
242
243         * final.c: (leaf_function_p): Fix typo.
244
245 2001-01-11  Zack Weinberg  <zack@wolery.stanford.edu>
246
247         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Completely rewritten.
248         Now defines HAVE_MMAP_DEV_ZERO and/or HAVE_MMAP_ANON depending
249         which you have.
250         (AC_FUNC_MMAP_FILE): Don't AC_REQUIRE AC_FUNC_MMAP_ANYWHERE.
251         * configure.in: Set GGC to ggc-page if any of mmap_dev_zero,
252         mmap_anon, and valloc is available.
253         * ggc-page.c: Restructure ifdef logic to match new autoconf
254         spec.  Don't throw away the test page in init_ggc.
255
256         * configure, config.in: Regenerate.
257
258 2001-01-12  Michael Hayes  <mhayes@redhat.com>
259
260         * loop.h (total_biv_increment): Constify iv_class pointer.
261         (struct induction): Replace `mem_mode' with `mem' rtx.
262         * unroll.c (total_biv_increment): Constify iv_class pointer.
263         * loop.c (loop_giv_reduce_benefit): Derive mem mode from mem rtx.
264         (find_mem_givs, combine_givs_p): Likewise.
265         (debug_ivs, debug_iv_class, loop_ivs_dump, loop_iv_class_dump): New.
266
267 2001-01-10  Thomas Pfaff <tpfaff@gmx.net>
268
269         * gthr-win32.h (__gthread_objc_thread_get_data): Save and restore Win32
270         LastError.
271         (__gthread_getspecific): Ditto.
272
273 Fri Jan 12 00:04:00 MET 2001  Jan Hubicka  <jh@suse.cz>
274
275         * i386.c (ix86_comparison_operator, fcmov_comparison_operator,
276         put_condition_code): Convert fp comparison codes to integer
277         before handling.
278         (ix86_expand_fp_compare): Postnote the fp comparison code converison
279         to final.
280
281         * i386.c (unsigned_comparison, no_comparison_operator): Kill.
282         * i386-protos.h (no_comparison_operator): Kill.
283
284         * i386.c (ix86_expand_fp_compare): Fix ordered/unordered confussion.
285
286         * combine.c (REVERSIBLE_CC_MODE): Remove.
287         (reversible_comparison_p): Remove.
288         (combine_reversed_comparison_code): New.
289         (reversed_comparison): New.
290         (combine_simplify_rtx): Use
291         combine_reversed_comparison_code/reversed_comparison instead
292         of reversible_comparison_p.
293         (simplify_if_then_else): Likewise.
294         (simplify_set): Likewise.
295         (simplify_logical): Likewise.
296         (if_then_else_cond): Likewise.
297         (known_cond): Likewise.
298         (simplify_comparison): Likewise.
299
300 2001-01-11  Alan Lehotsky  <lehotsky@tiac.net>
301
302         * builtins.c (std_expand_builtin_va_start): Handle varargs when
303         sizeof (int) is larger than sizeof(__word__).
304
305 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
306
307         * cppinit.c (do_includes): Fix typo.
308
309 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
310
311         * config/m68hc11/m68hc11.md (cmphi_1): Make sure reloading
312         in S_REGS does not occur because not all sources are possible
313         when a S_REGS is a destination (sometimes needs a clobber).
314         (movqi_const0, zero_extendhisi2, zero_extendqisi2): Likewise.
315         (zero_extendhidi2, extendqisi2, extendqihi2, extendhisi2): Likewise.
316         (anddi3, iordi3, xordi3, negqi2, one_cmplhi2, one_cmplqi2: Likewise.
317         (ashldi3_const32, ashldi3_const1, ashlsi3_const16): Likewise.
318         (ashlsi3_const1, ashlhi3_2, ashlqi3_const1, ashrhi3): Likewise.
319         (ashrqi3_const1, lshrdi3_const32, lshrdi3_const63): Likewise.
320         (lshrdi_const1, lshrsi3_const16): Likewise.
321         (*addhi3, lshrsi3_const1, lshrqi3_const1): Likewise.
322         (*movhi_68hc12, *movqi_68hc12): Likewise.
323         (movstrictqi): Make sure reloading in D_REGS as a destination
324         does not happen.
325
326 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
327
328         * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
329
330 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
331
332         * cppinit.c (cpp_start_read): If -fpreprocessed, ignore
333         -D, -U and -A, and don't initialize the builtins.
334         (do_includes): Error if -include or -imacros with -fpreprocessed.
335         * cppmain.c (cb_define, cb_undef): Unconditionally process
336         the callback.
337         * tradcpp.c (main): Fix typo.
338
339 2000-01-11  Mark Elbrecht  <snowball3@bigfoot.com>
340
341          * cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
342            (read_name_map): Use IS_ABSOLUTE_PATH.
343          * tradcpp.c (get_filename): Likewise.
344
345 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
346
347         * config/m68hc11/m68hc11.md (*adcq, *subcq): Fix operand numbers.
348         (*ashlsi3_const16_zexthi, *ashlsi3_const1): Likewise.
349         (*lshrsi3_const, *lshrsi3_const1, *lshrsi3_const16): Likewise.
350         (*ashrsi3, *ashrsi3_const, *ashlsi3, *ashlsi3_const): Likewise.
351         (*ashlsi3_const1, *lshrsi3, *ashlsi3_const16): Likewise.
352         (cmphi_z_used): Don't use '@' for the output.
353         (tstqi_z_used): Likewise.
354         (cmpqi_z_used): Likewise.
355         (one_cmplsi2): Likewise.
356
357 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
358
359         * config/sh/sh.c (barrier_align): Recognize branch around far
360         branch and redundant insn.
361
362 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
363
364         * invoke.texi: Restore documentation of the drivers' switches -MD
365         and -MMD.
366
367 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
368
369         * config/sh/sh.h (LABEL_ALIGN): Use UNSPECV_ALIGN instead of 1.
370
371         * Makefile.in (check-gcc//%, check-g++//%, check-g77//%,
372         check-objc//%): Support parallel testing of multilibs.
373         (TESTSUITEDIR): Set to testsuite by default, but override for
374         parallel testing.
375         (check-gcc, check-g++, check-g77, check-objc): Enter
376         $(TESTSUITEDIR).
377
378 2001-01-11  Bernd Schmidt  <bernds@redhat.com>
379
380         * alias.c (throughout): Use REGNO, rather than ORIGINAL_REGNO.
381         * sched-deps.c (deps_may_trap_p): Likewise.
382         * basic-block.h: Remove a comment.
383         * flow.c (PROP_POSTRELOAD): Remove.
384         (update_life_info): Don't add it to prop_flags.
385         (mark_set_1): Lose the code that was enabled by it.
386
387 2001-01-11  Michael Hayes  <mhayes@redhat.com>
388
389         * flow.c (flow_call_edges_add): New.
390         * basic_block.h (flow_call_edges_add): New.
391
392 2001-01-11  J"orn Rennecke <amylaar@redhat.com>
393
394         * reload1.c (move2add_note_store): Update reg_set_luid even if
395         base reg remains the same.
396
397 2001-01-10  Nick Clifton  <nickc@redhat.com>
398
399         * config/d30v/d30v.c (d30v_init_machine_status): Initialise
400         machine_function structure to zero.
401         Add prototypes for machine_status functions.
402
403 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
404
405         * c-common.h (CTI_VOID_LIST): Remove.
406         (void_list_node): Likewise.
407         * tree.h (TI_VOID_LIST_NODE): New enumeral.
408         (void_list_node): New macro.
409         * config/arm/arm.c (arm_init_builtins): Use void_list_node.
410         * config/i386/i386.c (ix86_init_builtins): Likewise.
411         * config/ia64a/ia64.c (ia64_init_builtins): Likewise.
412
413 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
414
415         * Makefile.in (tradcpp0): Depend on mkdeps.h.  Link mkdeps.o
416         * cppinit.c (cpp_start_read): Update comment, remove unneeded
417         if statement.
418         * tradcpp.c: Include mkdeps.h.
419         (deps, print_deps_phony_targets, deps_append, output_deps,
420         init_dependency_output, output_deps): New.
421         (deps_buffer, deps_allocated_size, deps_size, deps_column,
422         deps_output): Delete.
423         (print_deps_missing_files): Rename deps_missing_files.
424         (inhibit_output): Make global.
425         (main): Delete inhibit_output, deps_stream, deps_target.
426         Use mkdeps functionality in the same way as cpplib.  Remove
427         -g3 handling.  Handle -MF, -MP, -MQ, -MT.  Update handling of
428         -M and -MM.  Remove old handling of deps via deps_out, and
429         old reading of environment variables.
430         (get_filename): Update to use deps_add_dep.
431
432 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
433
434         * output.h (make_function_rtl): Remove prototype.
435         (make_decl_rtl): Likewise.
436         * varasm.c (make_function_rtl): Remove.
437         (make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
438         than from a third parameter.
439         * tree.h (make_decl_rtl): Remove last parameter.
440         * c-decl.c (builtin_function): Remove last argument in call to
441         make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
442         (start_function): Likewise.
443         * except.c (call_get_eh_context): Likewise.
444         * expr.c (emit_block_move): Likewise.
445         (clear_storage): Likewise.
446         * profile.c (output_func_start_profiler): Likewise.
447         * toplev.c (rest_of_decl_compilation): Likewise.
448         * objc/objc-act.c (create_builtin_decl): Likewise.
449         (synth_module_prologue): Likewise.
450         (generate_static_reference): Likewise.
451         (build_selector_reference_decl): Likewise.
452         (build_class_reference_decl): Likewise.
453         (build_objc_string_decl): Likewise.
454         (build_protocol_reference): Likewise.
455
456 2001-01-10  Richard Henderson  <rth@redhat.com>
457
458         * hwint.h: Revert yesterday's change.
459
460 2001-01-10  Nick Clifton  <nickc@redhat.com>
461
462         * function.h (save_machine_status): Delete.
463         (restore_machine_status): Delete.
464         Amend comment describing {init|mark|free}_machine_status.
465
466         * function.c (save_machine_status): Delete.
467         (restore_machine_status): Delete.
468         Amend comment describing {init|mark|free}_machine_status.
469         (push_function_context_to): Remove invocation of
470         save_machine_status.
471         (pop_function_context_from): Remove invocation of
472         restore_machine_status.
473
474         * emit-rtl.c (init_emit_once): Amend comment describing
475         {init|mark|free}_machine_status.
476
477         * tm.texi (Per-Function Data): New node.  Describe the
478         INIT_EXPANDERS macro and the {init|mark|free}_machine_status
479         function pointers.
480
481 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
482
483         * cppinit.c (OPT_g): Remove.
484         (cpp_handle_option): Update for removed -g3.
485         (print_help): Update.
486         * cpplib.h (struct cpp_options): Remove debug_output.
487         * cppmain.c (setup_callbacks, cb_define): Update.
488         * gcc.c (cpp_options): Translate -g3 to -dD.
489
490 2001-01-10  Aldy Hernandez  <aldyh@redhat.com>
491
492         * config/i960/i960.md: Change modifier to + on the zero_extract
493         pattern after the (rotate -2 reg) canonicalization pattern.
494
495 2001-01-10  Richard Henderson  <rth@redhat.com>
496
497         * config/alpha/alpha.c (alpha_free_machine_status): New.
498         (override_options): Install it.
499         (alpha_mark_machine_status): Verify machine non-null.
500         * config/i386/i386.c (ix86_free_machine_status): New.
501         (override_options): Install it.
502         (ix86_init_machine_status): Use xcalloc.
503         (ix86_mark_machine_status): Verify machine non-null.
504         * config/ia64/ia64.c (ia64_free_machine_status): New.
505         (ia64_override_options): Install it.
506         (ia64_mark_machine_status): Verify machine non-null.
507
508 Wed Jan 10 11:34:39 2001  Jeffrey A Law  (law@cygnus.com)
509
510         * function.c (instantiate_virtual_regs): Instantiate virtual
511         registers found in CALL_INSN_FUNCTION_USAGE.
512
513 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
514
515         * i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
516         equivalent to -ansi in disabling -Di386.
517
518 Wed Jan 10 16:38:31 MET 2001  Jan Hubicka  <jh@suse.cz>
519
520         * i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
521         new functions.
522         (ix86_expand_fp_compare): Make trivial use of new infrastructure.
523
524 2001-01-10  Richard Earnshaw  <rearnsha@arm.com>
525
526         * arm.c (arm_init_builtins): Temporarily disable xscale builtins.
527
528 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
529
530         * invoke.texi: Document that -fcond-mismatch isn't supported for
531         C++.
532
533 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
534
535         * gcc.texi: Define macro gcctabopt.
536         * invoke.texi: Add manpage sections BUGS and AUTHOR.  Use
537         @command, @env and @option in some places where appropriate.  Use
538         @gcctabopt where appropriate.  Put URLs and email addresses inside
539         @w.
540
541 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
542
543         * gcc.c (cpp_options): Set MD file name from output
544         filename, if specified.
545         (suffix_subst): New static variable.
546         (do_spec): Clear it.
547         (do_spec_1, case '.'): Handle new `%.suffix' spec.
548         Clear it.
549         (give_switch): Handle suffix_subst.
550
551 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
552
553         * invoke.texi:  Fix another typo.
554
555 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
556
557         * invoke.texi:  Fix typo.
558
559 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
560
561         * c-lang.c (lang_hooks): Update.
562         (lang_decode_option): Remove.
563         (lang_init_options): Rename c_init_options.
564         * toplev.c (main): Use lang_hooks for lang_init_options
565         and lang_decode_option.
566         * toplev.h (lang_hooks): Add 2 new hooks.
567         * tree.h: Remove lang_init_options and lang_decode_option.
568         * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
569         * cp/decl2.c: Similarly.
570         * cp/lex.c (lang_init_options): Rename cxx_init_options.
571         (lang_hooks): Update.
572         * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
573         for consistency.
574         (lang_init_options): Rename ffe_init_options.
575         (lang_hooks): Update.
576         (lang_decode_option): Remove.
577         * java/lang.c (lang_init_options): Rename java_init_options.
578         (lang_decode_option): Rename java_decode_option.
579         (lang_hooks): Update.
580         * objc/objc-act.c (lang_init_options): Rename objc_init_options.
581         (lang_decode_option): Rename objc_decode_option.
582         (lang_hooks): Update.
583
584 2001-01-09  Nick Clifton  <nickc@redhat.com>
585
586         * config/d30v/d30v.c (d30v_eh_epilogue_sp_ofs): Delete.
587         (d30v_return_addr_rtx): Delete.
588         (d30v_expand_epilogue): Use eh_epilogue_sp_ofs field in the
589         cfun->machine structure.
590         (struct machine_function): Move to d30v.h
591         (d30v_save_machine_status): Delete.
592         (d30v_restore_machine_status): Delete.
593         (d30v_init_machine_status): New Function.
594         (d30v_mark_machine_status): New Function.
595         (d30v_free_machine_status): New Function.
596         (d30v_init_expanders): Use new functions.
597         (d30v_return_addr): Use ra_rtx field in cfun->machine.
598         (d30v_add_gc_roots): Remove d30v_eh_epilogue_sp_ofs and
599         d30v_return_addr_rtx.
600
601         * config/d30v/d30v.h (struct_machine): Move here.
602         Add eh_epilogue_sp_ofs field.
603
604         *config/d30v/d30v.md (epilogue): Initialise eh_epilogue_sp_ofs
605         field in cfun->machine structure.
606
607 Tue Jan  9 21:34:57 2001  John David Anglin  <dave@hiauly1.hia.nrc.ca>
608
609         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
610         PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
611         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
612
613 Tue Jan  9 21:25:19 2001  Jeffrey A Law  (law@cygnus.com)
614
615         * objc/lang-options.h: Remove bogus reference to
616         Java trademark.
617
618 2001-01-09  Kazu Hirata  <kazu@hxi.com>
619
620         * config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
621         return the result.
622
623 2001-01-09  Alan Lehotsky  <lehotsky@tiac.net>
624
625         * reload.c (find_reloads_address): Check for eliminable registers
626                   when substituting a constant expression for a pseudo.
627
628 2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
629
630         * c-common.c (enum format_type): Add format_type_error.
631         (decode_format_type): New function.
632         (decl_attributes): Use it.
633         (format_kind_info): Adjust comment.
634
635 2001-01-09  David O'Brien  <obrien@BSDi.com>
636
637         * config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
638         i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
639         files in tm_file.
640         * config/i386/gnu.h: Don't include required platform specific .h files,
641         tm.h will do it instead.
642         * config/i386/i386elf.h: Likewise.
643         * config/i386/linux.h: Likewise.
644         * config/i386/moss.h: Likewise.
645         * config/mips/gnu.h: Likewise.
646
647 2001-01-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
648
649         * config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
650         (rs6000-ibm-aix3.[01]*): Likewise.
651         (rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
652         (rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
653         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
654         (rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
655         (powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
656         (powerpc-*-eabiaix*): Likewise.
657         (powerpc-*-eabisim*): Likewise.
658         (powerpc-*-elf*): Likewise.
659         (powerpc-*-eabi*): Likewise.
660         (powerpc-*-rtems*): Likewise.
661         (powerpc-*-linux*libc1): Likewise.
662         (powerpc-*-linux*): Likewise.
663         (powerpc-wrs-vxworks*): Likewise.
664         (powerpcle-wrs-vxworks*): Likewise.
665         (powerpcle-*-sysv*): Likewise.
666         (powerpcle-*-elf*): Likewise.
667         (powerpcle-*-eabisim*): Likewise.
668         (powerpcle-*-eabi*): Likewise.
669         (powerpcle-*-solaris2*): Likewise.
670         * config/rs6000/aix31.h: Delete includes.
671         * config/rs6000/aix3newas.h: Likewise.
672         * config/rs6000/aix41.h: Likewise.
673         * config/rs6000/aix43.h: Likewise.
674         * config/rs6000/beos.h: Likewise.
675         * config/rs6000/rtems.h: Likewise.
676         * config/rs6000/sysv4.h: Likewise.
677
678 2001-01-09  Kazu Hirata  <kazu@hxi.com>
679
680         * config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
681         Change an argument mode of machine_mode to shift_mode of
682         shift_mode.  Remove an extra error check.
683         (emit_a_shift): Adopt to the new calling prototype of
684         get_shift_alg.
685         (function_prologue): Fix code for a monitor
686         function.  Support H8/S.
687         (function_epilogue): Do not output pop for a monitor function.
688
689 2001-01-09  Nick Clifton  <nickc@redhat.com>
690
691         * config/rs6000/rs6000.c (rs6000_sysv_varargs_p): Delete.
692         (setup_incoming_varargs): Use sysv_varargs_p field of the
693         cfun->machine structure.
694         (struct machine_function): Move to rs6000.h
695         (rs6000_save_machine_status): Delete.
696         (rs6000_restore_machine_status): Delete.
697         (rs6000_init_machine_status): New Function.
698         (rs6000_free_machine_status): New Function.
699         (rs6000_init_expanders): Use new functions.
700
701         * config/rs6000/rs6000.h (rs6000_sysv_varargs_p): Delete
702         export.
703         (struct machine_function): Move here.
704
705         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
706         sysv_varargs_p field of the cfun->machine structure.
707
708         * config/rs6000/rs6000-protos.h (rs6000_save_machine_status):
709         Remove prototype.
710         (rs6000_restore_machine_status): Remove prototype.
711
712 2001-01-09  Richard Henderson  <rth@redhat.com>
713
714         * sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
715         reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
716         * sched-deps.c (sched_analyze_1): Update uses of struct deps.
717         (sched_analyze_2, sched_analyze_insn): Likewise.
718         (sched_analyze, init_deps): Likewise.
719         (free_deps): Likewise.  Iterate with EXECUTE_IF_SET_IN_REG_SET.
720         * sched-rgn.c (propagate_deps): Likewise.  Remove max_reg argument.
721         (compute_block_backward_dependences): Update propagate_deps call.
722
723 2001-01-09  Mark Elbrecht  <snowball3@bigfoot.com>
724
725         * gcc.c (process_command): Set switches[n_switches].ordering to 0.
726
727 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
728
729         * cppinit.c (OPT_MD, OPT_MMD): Restore.
730         (cpp_handle_option): Handle them.
731         (cpp_post_options): Ensure one of -M or -MM is specified with
732         any other -M? option.
733         (init_dependency_output): Suppress output with -MG.
734
735 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
736
737         * cpp.texi: Update.
738         * invoke.texi: Update.
739
740 2001-01-09  Bernd Schmidt  <bernds@redhat.com>
741
742         * sh.md (reload_outsf): Generate recognizable patterns for
743         TARGET_SH3E.
744
745 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
746
747         * c-lang.c (lang_hooks): Update.
748         (lang_init): Rename c_init.
749         (lang_finish): Remove.
750         * toplev.c (compile_file): Use lang_hooks for lang_init ()
751         and lang_finish ().
752         * toplev.h (lang_hooks): Add init () and finish ().
753         * tree.h (lang_init, lang_finish): Remove.
754         * cp/tree.h (lang_init, lang_finish): Remove.
755         * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
756         * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
757         lang_hooks): New.
758         (lang_init, lang_finish): Remove.
759         * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
760         (lang_hooks): Update.
761         * java/lang.c (lang_init): Rename java_init.
762         (lang_finish): Remove.
763         (lang_hooks): Update.
764         * objc/objc-act.c (lang_init): Rename objc_init.
765         (lang_finish): Remove.
766         (lang_hoooks): Update.
767
768 20001-01-09  Graham Stott  <grahams@redhat.com>
769
770         * cppfiles.c (_cpp_execute_include): Move `len` initialisation
771         after `ptr` is initialised.
772
773 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
774
775         * config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
776         (INITIALIZE_TRAMPOLINE): Adjust accordingly.
777         * config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
778         stack adjusts, instead of r3.
779
780 2001-01-09  Michael Hayes  <mhayes@redhat.com>
781
782         * flow.c (flow_loop_scan): Break out of ...
783         (flow_loops_find) ... here.
784         * basic-block.h (flow_loop_scan): New.
785         (LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
786         (LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.
787
788 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
789
790         * cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
791         macro_buffer_len.
792         * cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
793         realloc()ing macro_buffer.
794
795         * hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
796         if it's wider than long and the target's long is wider than the
797         host's.
798
799 2001-01-09  Mark Mitchell  <mark@codesourcery.com>
800
801         Remove support for using UWIN as a host machine.
802         * configure.in: Issue an error message.
803         * configure: Regenerated.
804         * config.gcc: Remove xm_* UWIN configury.
805         * config/i386/xm-uwin.h: Remove.
806
807 2001-01-08  Nick Clifton  <nickc@redhat.com>
808
809         * config/v850/v850.c (ra_rtx): Delete.
810         (v850_save_machine_status): Delete.
811         (v850_restore_machine_status): Delete.
812         (v850_init_machine_status): New function.
813         (v850_mark_machine_status): New function.
814         (v850_free_machine_status): New function.
815         (v850_return_addr): Use ra_rtx field in machine structure.
816         (v850_init_expanders): Use new functions.
817
818         * config/v850/v850-protos.h: Fix prototypes for v850_output_*
819         * config/v850/v850.c: Change arguments to v850_output+* functions
820         to take a const char *, to avoid compile time warning.
821         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Undefine, not needed.
822         (USER_LABEL_PREFIX): Redefine.
823
824 2000-01-08  Jim Wilson  <wilson@redhat.com>
825
826         * sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
827         1 to unsigned HOST_WIDE_INT before left shift.
828
829 2001-01-08  Nick Clifton  <nickc@redhat.com>
830
831         * config/arm/arm.c (arm_mark_machine_status): Check to see if
832         the machine structure has been allocated.
833         (arm_free_machine_status): New function: Free the machine
834         specific function structure.
835
836 2001-01-08  Richard Henderson  <rth@redhat.com>
837
838         * jump.c (simplejump_p): Revert last change.
839
840 2001-01-08  Neil Booth  <neil@daikokuya.demon.co.uk>
841
842         * cppinit.c (init): Rename init_library.
843         (cpp_create_reader): Update.
844         * gcc.c (cpp_options): If -o given, use it as the target of
845         any -M options.
846
847 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
848
849         * arm.c (arm_arch5e): New variable.
850         (all_cores): XScale is a 5TE device.
851         (arm_override_options): Set arm_arch5e.
852         (arm_init_builtins): __builtin_prefetch is in arch5e.
853         * arm.h (arm_arch5e): Declare it.
854
855         * arm.h (PREDICATE_CODES): Add arm_hard_register_operand.
856
857         * arm.md (define_constants): Add defines for UNSPEC and
858         UNSPEC_VOLATILE insns.  Update all users.
859         (define_constants): Add constants for IP_REGNUM, SP_REGNUM, PC_REGNUM.
860         * arm.c (multi_register_push, note_invalid_constants)
861         (emit_multi_reg_push, emit_sfm, expand_prologue): Use constants.
862         * arm.h (SP_REGNUM, IP_REGNUM, PC_REGNUM): Delete defines.
863         (STACK_POINTER_REGNUM): Define in terms of SP_REGNUM.
864
865 Mon Jan  8 16:14:56 MET 2001  Jan Hubicka  <jh@suse.cz>
866
867         * jump.c (jump_optimize_1): Use reversed_comparison_code
868         instead of can_reverse_comparison_p.
869         (jump_back_p): Likewise.
870         (invert_exp_1): Likewise.
871         (thread_jumps): Likewise.
872         * simplify-rtx.c (simplify_unary_operation): Likewise.
873         (simplify_ternary_operation): Likewise.
874         * cse.c (find_comparison_args): Convert to use
875         can_reverse_comparison_p.
876         (record_jump_equiv): Likewise.
877
878 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
879
880         * arm.h (HARD_REGNO_RENAME_OK): Delete.
881         (EPILOGUE_USES): Define.
882         (INITIAL_ELIMINATION_OFFSET): Current prologue code does not
883         automatically stack the LR if it isn't live.
884
885 Mon Jan  8 13:46:02 MET 2001  Jan Hubicka  <jh@suse.cz>
886
887         * i386.c (ix86_expand_int_movcc): Take care to reverse fp conditions
888         properly.
889
890 Sun Jan  7 18:37:43 2001  Mark P Mitchell  <mark@codesourcery.com>
891
892         * ggc-page.c (max_alignment): New structure.
893         (MAX_ALIGNMENT): New macro.
894         (init_ggc): Use it to round up the sizes in the
895         extra_order_size_table.
896
897 2001-01-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
898
899         * config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
900         after reload.
901
902 2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
903
904         * builtins.def (BUILT_IN_FPRINTF): New entry.
905
906         * c-common.c (c_expand_builtin_fprintf): New function.
907         (init_function_format_info): Handle __builtin_fprintf.
908         (c_common_nodes_and_builtins): Declare fprintf/__builtin_fprintf.
909         (c_expand_builtin): Handle BUILT_IN_FPRINTF.
910
911         * c-decl.c (duplicate_decls): Adjust comment.
912
913         * extend.texi (fprintf): Document new builtin.
914
915 2001-01-07  Richard Henderson  <rth@redhat.com>
916
917         * jump.c (simplejump_p): Recognize any single_set jump
918         of the proper form.
919
920 2001-01-07  Richard Henderson  <rth@redhat.com>
921
922         * configure.in (slibdir): Accept an --with-slibdir option.
923         Use "test" not "[" in configure.  Default to $(libdir).
924
925         * config/t-linux (SHLIB_INSTALL): Double quote slibdir;
926         fix typo in rm -f.
927         * config/t-aix43 (SHLIB_INSTALL): Likewise.
928         * config/alpha/t-osf4 (SHLIB_INSTALL): Likewise.
929         (SHLIB_LINK): Create links for the soname.
930         * config/mips/t-iris6: Likewise.
931         * config/sparc/t-slibgcc: Likewise.
932         * config/sparc/t-slibgcc-sld: Likewise.
933
934 2001-01-07  Jakub Jelinek  <jakub@redhat.com>
935
936         * config/i386/i386.c (constant_call_address_operand): Accept
937         (const (plus (symbol_ref) (const_int))).
938         * config/i386/i386.h (PREDICATE_CODES): Add CONST for
939         constant_call_address_operand.
940
941 2001-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
942
943         * libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1
944         and LONG_LONG_TYPE_SIZE > 32.
945
946 2001-01-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
947
948         * jump.c (reversed_comparison_code_parts): Fix typo introduced by
949         the previous change.
950
951 Sun Jan  7 19:37:48 MET 2001  Jan Hubicka  <jh@suse.cz>
952
953         * jump.c (reversed_comparison_code_parts, reversed_comparison_code):
954         New.
955         (can_reverse_comparison_p): Rewrite to use reversed_comparison_code.
956         (reverse_condition_maybe_unordered): Abort on unsigned comparisons.
957         * rtl.h (reversed_comparison_code_parts, reversed_comparison_code):
958         Declare.
959
960 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
961
962         * fix-header.c (read_scan_file): s/pfile/scan_in/.
963
964 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
965
966         * c-lang.c (c_post_options): Call cpp_post_options.
967         * objc/objc-act.c (objc_post_options): Similarly.
968         * cppmain.c (main): Similarly.
969         * fix-header.c (read_scan_file): Similarly.
970         * cppinit.c (cpp_start_read): Move option consistency checks
971         to cpp_post_options.  Don't call init_dependency_output.
972         If needed, add default target and main file dependency.
973         (OPT_MD, OPT_MMD): Remove.
974         (OPT_MF): New.
975         (cpp_handle_option): Update for OPT_* changes.
976         (cpp_post_options): New.
977         (init_dependency_output): Command line -MF overrides environment
978         variables.  Don't set default target etc.  Suppress output
979         if dependencies are going to stdout.
980         (print_help): Update.
981         * cpplib.h (cpp_post_options): New.
982         * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
983
984 Sun Jan  7 14:44:19 MET 2001  Jan Hubicka  <jh@suse.cz>
985
986         * jump.c (comparison_dominates_p): Support unordered compares.
987
988 Sun Jan  7 14:39:07 MET 2001  Jan Hubicka  <jh@suse.cz>
989
990         * simplify-rtx.c (simplify_relational_operation): Always simplify
991         ORDERED and UNORDERED when FLAG_FAST_MATH.  Handle properly UNLE
992         and UNGE.
993
994 Sun Jan  7 14:35:13 MET 2001  Jan Hubicka  <jh@suse.cz>
995
996         * combine.c (combine_simplify_rtx): Recognize the unordered compares.
997         (nonzero_bits): Likewise.
998         (simplify_comparison): Likewise.
999         (num_sign_bit_copies): Likewise; return more sane value depending
1000         on STORE_FLAG_VALUE.
1001         (known_cond): Do not assume EQ to be always true for equivalent
1002         operands.
1003
1004 Sun Jan  7 14:31:57 MET 2001  Jan Hubicka  <jh@suse.cz>
1005
1006         * cse.c (fold_rtx): Handle unordered comparisons.
1007
1008 Sun Jan  7 13:49:19 MET 2001  Jan Hubicka  <jh@suse.cz>
1009
1010         * rtlanal.c (set_of_1): New static function.
1011         (reg_set_last_1, reg_set_p_1, reg_set_reg, reg_set_flag,
1012          reg_set_last_unknown, reg_set_last_value, reg_set_last_first_regno,
1013          reg_set_last_last_regno): Remove.
1014         (set_of): New global function.
1015         (set_of_data): New structure.
1016         (reg_set_p, reg_set_last): Revamp for set_of.
1017         * rtl.h (set_of): New.
1018
1019 2001-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1020
1021         * c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
1022         * extend.texi: Document _Exit builtin.
1023
1024 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1025
1026         * (initialize, initialize_builtins,
1027         initialize_dependency_output, initialize_standard_includes):
1028         Rename s/initialize/init. Update.
1029         (init_dependency_output): Move to after
1030         cpp_handle_options, the correct location temporally at least.
1031         (opt_comp): Move next to init (), its caller.  Fix prototype.
1032         (init): Make "initialized" local scope.
1033         (cpp_create_reader): Always call init ().
1034         (cpp_start_read): Update.
1035         (output_deps): New function, broken out of cpp_finish.
1036         (cpp_finish): Break out output_deps.
1037
1038 2001-01-07  Richard Henderson  <rth@redhat.com>
1039
1040         * collect2.c (COFF specific stuff): Revert 12-06 patch
1041         to prototype system functions.
1042
1043 2001-01-07  Michael Hayes  <mhayes@redhat.com>
1044
1045         * hard-reg-set.h: Add multiple include guard.
1046         * basic-block.h (struct loop): Add `sink' field.
1047         * loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h.
1048         (emit_iv_add_mult): Delete.
1049         (loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define.
1050         (loop_iv_add_mult_emit_before, loop_insn_sink): Define.
1051         (unroll_loop): Remove end_insert_before argument.
1052         * loop.c (loop_givs_rescan): Remove end_insert_before argument.
1053         (maybe_eliminate_biv_1): Likewise.
1054         (emit_iv_add_mult): Delete.
1055         (gen_add_mult, loop_regs_update): New.
1056         (loop_insn_emit_after, loop_insn_emit_before): New.
1057         (loop_insn_sink, loop_insn_sink_or_swim): New.
1058         (emit_iv_add_mult): Delete.
1059         (scan_loop): Set loop->sink.
1060         (loop_givs_reduce): Use loop_insn_sink and its ilk.
1061         (loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise.
1062         (maybe_eliminate_biv_1): Likewise.
1063         (maybe_eliminate_biv_1): Add basic block argument.
1064         * unroll.c (unroll_loop): Remove end_insert_before argument.
1065         (find_splittable_regs): Likewise.
1066         (find_splittable_regs): Use loop_insn_sink and its ilk.
1067         (find_splittable_givs, final_biv_value, final_giv_value): Likewise.
1068
1069 2001-01-07  Michael Hayes  <mhayes@redhat.com>
1070
1071         * loop.h (loop_insn_hoist): New prototype.
1072         * loop.c (loop_insn_hoist, loop_insn_emit_before): New.
1073         (move_movables, loop_givs_rescan): Use loop_insn_hoist.
1074         (check_dbra_loop, load_mems): Likewise.
1075         * unroll.c (unroll_loop, find_splittable_regs): Likewise.
1076         (find_splittable_givs): Likewise.
1077
1078 2001-01-07  Michael Hayes  <mhayes@redhat.com>
1079
1080         * loop.c (emit_iv_add_mult): Use single_set to examine new insn.
1081
1082 2001-01-07  Richard Henderson  <rth@redhat.com>
1083
1084         * sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.
1085
1086 2001-01-07  Richard Henderson  <rth@redhat.com>
1087
1088         * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and
1089         NO_SHARED_LIBGCC_MULTILIB as required for the target.
1090         * gcc.c (init_spec): Massage the existing libgcc_spec into a
1091         variant that handles a shared libgcc.
1092         (process_command): Always validate -{static,shared}-libgcc.
1093         (do_spec_1): New 'M' case.
1094         * invoke.text (Link Options): Document -{static,shared}-libgcc.
1095
1096 2001-01-07  Richard Henderson  <rth@redhat.com>
1097
1098         * Makefile.in (slibdir): New variable.
1099         (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc.
1100         (installdirs): Create slibdir.
1101         (install-libgcc, install-multilib): Defer to libgcc.mk.
1102         * configure.in (slibdir): Substitute.
1103         * mklibgcc.in (install): New target.
1104
1105         * config/t-linux (SHLIB_LINK): Create links for the soname.
1106         (SHLIB_INSTALL): New.
1107         * config/alpha/t-osf4 (SHLIB_INSTALL): New.
1108         * config/mips/t-iris6 (SHLIB_INSTALL): New.
1109         * config/rs6000/t-aix43 (SHLIB_INSTALL): New.
1110         * config/sparc/t-slibgcc (SHLIB_INSTALL): New.
1111         * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New.
1112
1113 2001-01-07  Richard Henderson  <rth@redhat.com>
1114
1115         * config/rs6000/aix.h (LINK_LIBGCC_SPECIAL_1): New.
1116         * config/rs6000/rs6000.h (LIBGCC_SPEC): Remove.
1117         * config/rs6000/sysv4.h (LIBGCC_SPEC): Remove.
1118
1119 2001-01-07  Michael Hayes  <mhayes@redhat.com>
1120
1121         * loop.c (count_loop_regs_set): Delete.
1122         (load_mems_and_recount_loop_regs_set): Delete.
1123         (loop_regs_scan): Merge common code from count_loop_regs_set,
1124         scan_loop, and load_mems_and_recount_loop_regs_set.
1125         (scan_loop): Call load_mems directly and loop_regs_scan
1126         again if new registers created.
1127
1128 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1129
1130         * toplev.c (main): Call the front-end specific post_options
1131         hook if one is given.
1132         * toplev.h (struct_lang_hooks, lang_hooks): New.
1133         * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
1134         for the C front end.
1135         * cp/decl2.c (cxx_post_options, lang_hooks): Implement
1136         lang_hooks for the C++ front end.
1137         * objc/objc-act.c (objc_post_options, lang_hooks): Implement
1138         lang_hooks for the ObjC front end.
1139         * f/com.c (lang_hooks): Hooks for the Fortran front end.
1140         * java/lang.c (lang_hooks): Hooks for the Java front end.
1141
1142 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1143
1144         * c-lex.c (init_c_lex): Request #define / #undef callbacks
1145         for verbose DWARF[2] debugging.
1146         (cb_define, cb_undef): The new callbacks.
1147         * toplev.h (debug_define, debug_undef): Make const correct.
1148         * toplev.c (debug_define, debug_undef): Similarly.  Do not
1149         perform the verbosity tests here anymore.
1150
1151 2001-01-07  Alexandre Oliva  <aoliva@redhat.com>
1152
1153         * reload.c (subst_reloads): Take INSN argument.  When
1154         replacing a LABEL_REF in a JUMP_INSN, add a REG_LABEL note.
1155         * reload.h (subst_reloads): Adjust prototype.
1156         * reload1.c (reload_as_needed): Pass INSN to subst_reloads.
1157         * jump.c (mark_all_labels): Canonicalize any REG_LABEL notes
1158         present in JUMP_INSNs and copy them to JUMP_LABEL.
1159         * flow.c (find_label_refs, find_basic_blocks_1): Skip
1160         JUMP_INSNs and insns with REG_LABELs that are followed by
1161         JUMP_INSNs with the same REG_LABEL.
1162         * sched-rgn.c (is_cfg_nonregular): Likewise.
1163         * rtlanal.c (computed_jump_p): Make it false if a REG_LABEL
1164         note is available.
1165         * unroll.c (unroll_loop): Look for REG_LABEL notes in
1166         JUMP_INSNs too.
1167         * rtl.texi (REG_LABEL): Document usage in JUMP_INSNs.
1168
1169 2001-01-06  Richard Henderson  <rth@redhat.com>
1170
1171         * loop.c (scan_loop): Use xcalloc for the regs array.
1172         (load_mems_and_recount_loop_regs_set): Zero the new memory
1173         received from xrealloc.
1174
1175 2001-01-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1176
1177         * mkdeps.c (deps_add_dep): Fix vector re-allocation.
1178
1179 Sat Jan  6 00:09:34 2001  J"orn Rennecke <amylaar@redhat.com>
1180
1181         * integrate.c (copy_rtx_and_substitute): When copying
1182         an ignored return value, strip REG_FUNCTION_VALUE_P.
1183
1184 2001-01-06  Michael Hayes  <mhayes@redhat.com>
1185
1186         * loop.c (debug_biv, debug_giv): New.
1187         (loop_biv_dump): Break out from ...
1188         (record_biv): ... here.
1189         (loop_giv_dump): Break out from ...
1190         (record_giv): ... here.
1191         (loop_bivs_check): Use print_simple_rtl.
1192         * unroll.c (loop_iterations): Use print_simple_rtl.
1193
1194 2000-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1195
1196         * pa.md (return, return_internal): Modify patterns to prevent regrename
1197         mucking with the return pointer.
1198
1199 2001-01-05  Richard Henderson  <rth@redhat.com>
1200
1201         * dwarf2out.c (mem_loc_descriptor) [case MEM]: Revert 10-31 change.
1202
1203 Fri Jan  5 16:34:18 2001  Nick Clifton  <nickc@redhat.com>
1204
1205         * config/v850/lib1funcs.asm: Replace __mulsi3 routine with faster
1206         version supplied by Matteo Frigo.
1207
1208 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1209
1210         * cpp.texi: Update for -MQ.
1211         * cppinit.c (cpp_create_reader): Always create pfile->deps.
1212         (cpp_cleanup): Always free pfile->deps.
1213         (initialize_dependency_output): Don't create pfile->deps.
1214         (cpp_handle_option): Similarly.
1215         (OPT_MQ): New.
1216         * gcc.c (cpp_options): Handle -MQ.
1217         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
1218         * mkdeps.c (base_name): Remove.
1219         (deps_init): Don't allocate vector space until it's needed.
1220         (deps_free): Only free vectors if allocated.
1221         (deps_add_target, deps_add_dep): Update for initial allocation.
1222         (deps_add_default_target): Don't strip to the base_name.
1223
1224 2001-01-05  DJ Delorie <dj@redhat.com>
1225
1226         * config/v850/v850.h (RETURN_ADDR_RTX): Define.
1227         (INIT_EXPANDERS): Define.
1228
1229         * config/v850/v850.c (struct machine_function): Define.
1230         (v850_save_machine_status): New function.
1231         (v850_restore_machine_status): New function.
1232         (v850_return_addr): New function.
1233         (v850_init_expanders): New function.
1234
1235         * config/v850/v850-protos.h: Add prototypes for v850_return_addr
1236         and v850_init_expanders.
1237
1238 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
1239
1240         * cpplib.h (struct cpp_reader): Add help_only field.
1241         * cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
1242         (cpp_handle_option): Set pfile->help_only if we see -h,
1243         --help, -target-help, or --version.  Print version string but
1244         do not set help_only if we see -v or -version.  Make text
1245         printed by -v match that printed by (-)-version.
1246
1247         * cppmain.c (main): Exit after option parsing if
1248         pfile->help_only is true.
1249
1250         * toplev.c (independent_decode_option): Call print_version,
1251         then exit, if we see --version (but not -version).
1252         (print_version): Split lengthy message into two lines.
1253
1254 2001-01-05  Nick Clifton  <nickc@redhat.com>
1255
1256         * config/v850/v850.c (v850_encode_data_area): Use alloca to create
1257         temporary string for initialisation before calling ggc_alloc_string.
1258
1259 2001-01-06  Michael Hayes  <mhayes@redhat.com>
1260
1261         * rtl.h (print_simple_rtl): New.
1262         * print-rtl.c (print_simple_rtl): New.
1263         (flag_simple): New.
1264         (print_rtx): Disable printing of flags and modes, etc.,
1265         if `flag_simple` nonzero.
1266
1267 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
1268
1269         * function.c (fixup_var_refs): Use push_to_full_sequence where
1270         possible.
1271
1272 2001-01-05  Michael Meissner  <meissner@redhat.com>
1273
1274         * flags.h (flag_reorder_blocks): Add declaration.
1275         (flag_rename_block): Ditto.
1276
1277 2001-01-05  DJ Delorie  <dj@redhat.com>
1278
1279         * function.c (reorder_blocks): Make sure the flags are all reset
1280         before using them to mark blocks, else a second invocation will
1281         corrupt the block chain.
1282         (reorder_blocks_0): New, resets the flags.
1283
1284 Fri Jan  5 20:34:06 2001  J"orn Rennecke <amylaar@redhat.com>
1285
1286         * cse.c (find_comparison_args): Stop if the argument is known to
1287         be constant.
1288
1289 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
1290
1291         * config/sh/sh.md (movdf): When splitting load into pair of
1292         registers, don't clobber the register used in the address too
1293         early.
1294
1295 2001-01-05  Jeffrey Oldham  <oldham@codesourcery.com>
1296
1297         * varasm.c (mark_constant_pool): Improve initial comments.
1298         (mark_constants): Move marking of constants to mark_constant.
1299         (mark_constant): New function to recursively mark all constants
1300         referred to by a constant.
1301
1302 2001-01-05  Catherine Moore  <clm@redhat.com>
1303
1304         * dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
1305
1306 2001-01-05  Phil Edwards  <pme@sources.redhat.com>
1307
1308         * cp/lang-options.h:  Bring comment in line with reality.
1309         * f/lang-options.h:  Likewise.
1310         * java/lang-options.h:  Likewise.
1311         * objc/lang-options.h:  Likewise.
1312         * ch/lang-options.h:  Likewise.
1313         * f/g77.texi:  And update the manual.
1314
1315 2001-01-05  Marek Michalkiewicz  <marekm@linux.org.pl>
1316             Denis Chertykov  <denisc@overta.ru>
1317
1318         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
1319         * config/avr/avr.c (avr_peep2_scratch_safe): New function.
1320         * config/avr/avr.md (all peepholes that request a scratch register):
1321         Call it, FAIL the peephole if not safe (in interrupt functions).
1322
1323 2001-01-05  Mark Mitchell  <mark@codesourcery.com>
1324
1325         * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
1326
1327 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1328
1329         * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
1330         Define.
1331         * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
1332         BUILT_IN_CREAL and BUILT_IN_CIMAG.
1333         * c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
1334         conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
1335         (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
1336         BUILT_IN_CIMAG.
1337         * extend.texi: Document these builtins.
1338
1339 2001-01-05  Daniel Berlin  <dberlin@redhat.com>
1340
1341         * c-common.c (lang_get_alias_set): Say we know nothing of
1342         VECTOR_TYPE aliasing.
1343
1344         * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
1345
1346 2001-01-05  Bruce Korb  <bkorb@gnu.org>
1347
1348         * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
1349         their x* equivalent versions for atexit-less systems
1350         * fixinc/fixincl.c(main): do not return from main() on atexit-less
1351         systems (or any other system any more).
1352
1353 2001-01-05  Richard Earnshaw  <rearnsha@arm.com>
1354
1355         * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
1356         output operands.  Use arm_hard_register_operand for operand 4.
1357         (stmsi_postinc): Similarly.
1358         (ldmsi): Use arm_hard_register_operand for opernand 2.
1359         (stmsi): Similarly.
1360         * arm.c (arm_hard_register_operand): New function.
1361         * arm-protos.h (arm_hard_register_operand): Prototype it.
1362
1363         * arm.h (HARD_REGNO_RENAME_OK): Define.
1364
1365 Fri Jan  5 16:29:49 MET 2001  Jan Hubicka  <jh@suse.cz>
1366
1367         * simplify-rtx.c (cfc_args): add "unordered" field.
1368         (check_fold_consts): Set unordered field.
1369         (simplify_relational_operation): Simplify the unordered
1370         comparisons.
1371
1372         * reg-stack.c (swap_rtx_condition): Ensure that the transformation
1373         is valid.
1374
1375         * emit-rtl.c (try_split): Fix code to mark labels.
1376         * jump.c (mark_jump_label): Make global.
1377         * rtl.h (mark_jump_label): Declare.
1378
1379         * predict.c (estimate_probability): Handle unordred comparisons.
1380
1381 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1382
1383         * cpp.texi: Update for -MP.  Clarify behaviour of -MT.
1384         * cppinit.c (initialize_dependency_output):  Update.
1385         (cpp_finish): Output dummy targets for -MP.
1386         (OPT_MP): New.
1387         (cpp_handle_option): Handle -MP.  Don't quote -MT options.
1388         * cpplib.h (struct cpp_options): Add deps_phony_targets.
1389         * gcc.c (cpp_options): Update to handle -MP.
1390         * mkdeps.c (deps_add_target, deps_add_default_target): Update
1391         to quote only the default target.
1392         (deps_phony_targets): Insert a preceding newline.  Rename from
1393         deps_dummy_targets for consistency.
1394         * mkdeps.h: Update
1395
1396 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
1397
1398         * calls.c (emit_library_call_value_1): Support
1399         INIT_CUMULATIVE_LIBCALL_ARGS.
1400         * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
1401
1402 2001-01-04  Richard Henderson  <rth@redhat.com>
1403
1404         * c-decl.c (finish_struct): Detect flexible array members
1405         used in an inappropriate context.
1406         * c-typeck.c (really_start_incremental_init): Special case
1407         constructor_max_index for zero length arrays.
1408         (pop_init_level): Allow initialization of flexible array
1409         members.  Deprecate initialization of zero length arrays.
1410         Don't issue missing initializer warning for flexible array
1411         members or zero length arrays.
1412         (process_init_element): Don't dereference null DECL_SIZE.
1413         * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
1414         Don't abort for empty constructors.  Use size_binop
1415         (output_constructor): Add commentary regarding zero length
1416         array futures.  Abort if we try to initialize an array of
1417         unspecified length with a non-empty constructor in the middle
1418         of a structure.
1419
1420         * extend.texi (Zero Length): Update and clarify documentation
1421         on static initialization.
1422
1423 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1424
1425         * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
1426         with more than 32767 words of local storage.
1427
1428 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1429
1430         * config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
1431         for 'abs', 'labs', and 'fabs'.
1432         (c4x_expand_builtin): Likewise.
1433         * config/c4x/c4x.h (enum c4x_builtins): Likewise.
1434
1435 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
1436
1437         * config/sh/sh.md (prget, prset): New insn types.
1438         (return delay slot): Dont' allow prset.
1439         (call, sfunc delay slot): Don't allow prget.
1440         (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
1441         for prset and prget.
1442
1443 2001-01-05  Michael Hayes  <mhayes@redhat.com>
1444
1445         * loop.h (struct loop_reg): New.
1446         (struct loop_regs): Change to use array of `struct loop_reg'.
1447         * loop.c: Replace assortment of varrays with single regs array.
1448         (count_one_set): Delete may_not_move array argument
1449         and use regs array instead.  All caller's changed.
1450         (count_loop_regs_set): Delete may_not_move and single_usage
1451         arguments and use regs array instead.  All caller's changed.
1452         (find_single_use_in_loop): Replace usage array argument with pointer
1453         to regs structure.  All caller's changed.
1454         (loop_optimize): Delete `moved_once' array.
1455
1456 2001-01-05  Michael Hayes  <mhayes@redhat.com>
1457
1458         * loop.c (prescan_loop): Set loop_info->has_nonconst_call.
1459         Use it instead of loop_info->has_call for scanning loop mems.
1460         (check_dbra_loop): Replace loop_info->has_call test with
1461         loop_info->has_nonconst_call.
1462
1463 2000-01-04  Matthew Hiller  <hiller@redhat.com>
1464
1465         * config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
1466         for TARGET_SH3E.
1467
1468 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1469
1470         * fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
1471         use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
1472
1473 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1474
1475         * c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
1476         (flag_short_double, flag_short_wchar): Define.
1477         (c_common_nodes_and_builtins): Create many tree nodes shared
1478         between C and C++ here instead of in cp/decl.c and ...
1479         * c-decl.c (init_decl_processing): ... here.
1480         (SIZE_TYPE, WCHAR_TYPE): Don't define.
1481         (flag_short_double, flag_short_wchar): Don't define.
1482         (record_builtin_type): New function.
1483         (build_void_list_node): New function.
1484         * c-common.h (flag_short_double, flag_short_wchar,
1485         record_builtin_type, build_void_list_node): Declare.
1486
1487 Thu Jan  4 21:09:47 2001  J"orn Rennecke <amylaar@redhat.com>
1488
1489         * integrate.c (expand_inline_function): Don't put a virtual
1490         register into the reg map.
1491
1492         * function.c (fixup_var_refs_1): If force_operand didn't put
1493         the address into the target, move it there.
1494
1495 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
1496
1497         Special-case tree_decl/tree_list allocations.
1498         * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
1499         (OBJECT_SIZE): New macro.
1500         (NUM_EXTRA_ORDER): Likewise.
1501         (extra_order_size_table): New variable.
1502         (NUM_ORDERS): New macro.
1503         (objects_per_page_table): New variable.
1504         (object_size_table): New variable.
1505         (G.pages): Use NUM_ORDERS to bound the array.
1506         (G.page_tails): Likewise.
1507         (DIV_ROUND_UP): Remove.
1508         (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
1509         (alloc_page): Use OBJECT_SIZE.
1510         (size_lookup): Don't make it const.
1511         (ggc_alloc): Use OBJECT_SIZE.
1512         (ggc_set_mark): Likewise.
1513         (ggc_get_size): Likewise.
1514         (init_ggc): Set up the object_size_table, objects_per_page_table,
1515         and adjust size_lookup.
1516         (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
1517         (ggc_pop_context): Use NUM_ORDERS.
1518         (clear_marks): Likewise.
1519         (sweep_pages): Likewise.
1520         (poison_pages): Likewise.
1521         (ggc_print_statistics): Use OBJECT_SIZE.
1522
1523 Thu Jan  4 15:54:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1524
1525         * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
1526         Only call array_size_for_constructor if last field and array type
1527         with no upper bound.
1528
1529 2001-01-04  Philip Blundell  <philb@gnu.org>
1530
1531         * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
1532         from bit 31 downwards, if this requires no more insns.
1533         (count_insns_for_constant): New helper function for above.
1534
1535 2001-01-04  Alexandre Oliva  <aoliva@redhat.com>
1536
1537         * gencodes.c (output_predicate_decls): Remove empty initializer.
1538
1539 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
1540
1541         * tree.c (copy_node): Remove documentation about obstacks.
1542         (buidl1): Check that nobody tries to build 2-argument nodes this
1543         way.
1544
1545 2001-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1546
1547         * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
1548         fp_high_losum_p.
1549
1550         * gencodes.c (output_predicate_decls): Fill empty initializer
1551         braces.
1552
1553 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
1554
1555         * tradcpp.c (deps_file, print_deps_missing_files): New variables.
1556         (main): Handle -MG, -MD, -MMD.  Bail out if -MG is given without -M
1557         or -MM.
1558         (do_include): Handle missing headers like cpp0.
1559         * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
1560         paths with first include pathname.  Don't strcat to uninitialized
1561         string.
1562
1563 2001-01-04  Bernd Schmidt  <bernds@redhat.com>
1564
1565         * regrename.c (regrename_optimize): Don't rename from frame pointer
1566         if frame_pointer_needed.
1567         (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
1568         * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
1569         (ia64_reorg): Use it instead of scheduling if ! optimize.
1570         (errata_emit_nops): Properly call asm_noperands.
1571         (ia64_sched_reorder): Finish cycle if we see an asm.
1572         (ia64_variable_issue): Clear scheduling state after asms.
1573
1574 2001-01-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1575
1576         * cpp.texi: Update for -MT.
1577         * cppinit.c (initialize_dependency_output): Add a default
1578         target if none has been given already.
1579         (no_tgt, OPT_MT): New.
1580         (cpp_handle_option): Handle -MT.  Update -M etc.
1581         * cpplib.h (struct cpp_options): Remove deps_target.
1582         * gcc.c (cpp_options): Handle -MT.
1583         * mkdeps.c (struct deps): Move from mkdeps.h.
1584         (deps_calc_target): Rename deps_add_default_target.  Add a
1585         default target if none has been specified already.
1586         * mkdeps.h (struct deps): Move to mkdeps.c.
1587         (deps_calc_target): Rename deps_add_default_target.
1588
1589 2000-01-03  Richard Henderson  <rth@redhat.com>
1590
1591         * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
1592         Remove dead code.
1593         * c-typeck.c (push_init_level): Move checks for flexible array
1594         members and zero length arrays ...
1595         (pop_init_level): ... here.  Silently discard empty initializations.
1596         Remove dead code.
1597         * varasm.c (output_constructor): Update for sizeof change to
1598         zero-length arrays.
1599
1600         * extend.texi (Zero Length): Clarify semantics.
1601
1602 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
1603
1604         * configure.in (tm.h): Include isns-codes.h last.
1605         * configure: Rebuilt.
1606
1607 2001-01-03  Richard Henderson  <rth@redhat.com>
1608
1609         * config/alpha/alpha.md (addvsi3, addvdi3): New.
1610         (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
1611
1612 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1613
1614         * tradcpp.c (main): Make sure finclude() is called with a valid
1615         indepth value while handling -include.
1616
1617 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
1618
1619         * gencodes.c (output_predicate_decls): New function.
1620         (main): Call it.
1621         * machmode.h (GET_MODE_MASK): Arrange for it to be defined
1622         even if it is not the first time machmode.h is #included.
1623         * config/sh/sh.c (fpul_operand): Declare MODE argument.
1624         * tm.texi (PREDICATE_CODES): Document predicate declarations.
1625         * gcc.texi (Copyright): Added 2001.
1626
1627 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1628
1629         * c-common.c (c_common_lang_init): New function.  Warn if format
1630         warning options which only have effects when used with -Wformat
1631         are used without -Wformat.
1632         * c-common.h (c_common_lang_init): Declare.
1633         * c-lang.c (lang_init): Call c_common_lang_init.
1634         * objc/objc-act.c (lang_init): Call c_common_lang_init.
1635
1636 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1637
1638         * configure.in: Check for the mktemp command.
1639         * configure: Regenerate.
1640         * gccbug.in: Use a separate temporary file $TEMP0 for one use of
1641         $TEMP.  Create temporary files with mktemp, if available at
1642         configure time; otherwise use set -C.  Remove temporary files
1643         before exit.
1644
1645 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1646
1647         * configure.in: Require at least texinfo 4.0.  Check for whether
1648         Pod::Man is sufficiently recent to regenerate GCC manpages.
1649         * configure:  Regenerate.
1650         * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
1651         on #!.
1652         (GENERATED_MANPAGES): Define.
1653         (generated-manpages): New target.  Depend on cpp.1 as well as
1654         gcov.1.
1655         (install-man): Depend on $(GENERATED_MANPAGES) (defined by
1656         configure to generated-manpages or empty) rather than on the
1657         manpages directly.  Remove execute permission from installed
1658         gcov.1 as well as cpp.1.
1659         * cpp.1, gcov.1: Regenerate.
1660
1661 2001-01-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1662
1663         * builtins.c (expand_builtin_strncmp): Use host_integerp and
1664         tree_low_cst.  Allow using cmpstrsi in more cases.
1665
1666 Wed Jan  3 10:48:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1667
1668         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
1669         sized types.
1670
1671 Wed Jan  3 12:22:32 2001  Alexandre Oliva  <aoliva@redhat.com>
1672
1673         * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
1674         * Makefile.in (HOST_CFLAGS): Mention build-make.
1675
1676 Wed Jan  3 08:53:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1677
1678         * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
1679         as JUMP_INSN.
1680
1681 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
1682
1683         * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
1684         a REG rtx.
1685
1686         * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg.  All
1687         callers changed.
1688
1689         * alias.c (throughout): Use ORIGINAL_REGNO when accessing
1690         reg_base_value and reg_known_value arrays.
1691         (init_alias_analysis): Add more cases to detect known values.
1692         * sched-deps.c (deps_may_trap_p): New function.
1693         (sched_analyze_2): Use it.
1694
1695 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
1696
1697         * combine.c (simplify_shift_const): Even if we're sign-extracting,
1698         don't discard an ASHIFTRT if we're shifting in a wider mode.
1699
1700 2000-01-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1701
1702         * toplev.c (rest_of_compilation): Don't print basic block information
1703         when CFG isn't up to date.
1704
1705 2001-01-02  Mark Elbrecht  <snowball3@bigfoot.com>
1706
1707         * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
1708         (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
1709         (UNALIGNED_SHORT_ASM_OP): Define.
1710         (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
1711
1712 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
1713
1714         * fold-const.c (fold_convert): Fix typo.
1715
1716 2001-01-02  Richard Henderson  <rth@redhat.com>
1717
1718         * c-common.h (ASM_INPUT_P): New.
1719         * c-parse.in (asm): Set it when needed.
1720         * c-semantics.c (genrtl_asm_stmt): Test it instead of the
1721         existance of an operand.
1722
1723 Tue Jan  2 20:27:07 MET 2001  Jan Hubicka  <jh@suse.cz>
1724
1725         * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
1726         (dwarf2out_frame_debug_expr): Likewise.
1727         (mem_loc_descriptor): Handle PRE and POST_MODIFY.
1728
1729 Tue Jan  2 20:21:31 MET 2001  Jan Hubicka  <jh@suse.cz>
1730
1731         * i386.c (ix86_split_to_parts): Return number of part required;
1732         handle TFmodes.
1733         (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
1734         TFmodes.
1735         (ix86_split_long_move): Use number of part returned
1736         by ix86_split_to_parts
1737         * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
1738         New macros.
1739         (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
1740         (LONG_DOUBLE_TYPE_SIZE): Change from constant.
1741         (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
1742         (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
1743         (ALIGN_MODE_128): Add TFmode.
1744         (IS_STACK_MODE): Likewise.
1745         (HARD_REGNO_NREGS): TFmode needs 3 registers.
1746         (HARD_REGNO_OK): Support TFmodes.
1747         (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
1748         * i386.md (scheduler definitions): Use memory operand to determine
1749         fst/fld instructions; use mode attribute to determine real mode of
1750         the instruction.
1751         (*tf): New patterns, expanders and splitters; based on XFmode patterns.
1752         * invoke.texi (128bit-long-double, 96bit-long-double): Document.
1753
1754 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
1755
1756         * tree.def (TRUTH_NOT_EXPR): Improve documentation.
1757
1758 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
1759
1760         * expr.c (store_constructor_field): Update ALIGN before calling
1761         store_constructor.
1762
1763 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
1764
1765         * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
1766         host_integerp.
1767
1768 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
1769
1770         * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
1771         incomplete type.
1772
1773 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
1774
1775         * c-decl.c (start_function): Don't warn on third parameter to main.
1776
1777 2001-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1778
1779         * tsystem.h: Define HAVE_DECL_GETOPT.
1780
1781 2001-01-02  Philip Blundell  <pb@futuretv.com>
1782
1783         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
1784         of input operand.
1785
1786 2001-01-02  Richard Henderson  <rth@redhat.com>
1787
1788         * alpha.md (*ze_and_ne): Duplicate insn condition to split.
1789
1790 2001-01-02  Andreas Jaeger  <aj@suse.de>
1791
1792         * c-decl.c (c_decode_option): Remove support of
1793         -Wmissing-noreturn.
1794
1795         * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
1796         (W_options): Add -Wmissing-noreturn here.
1797
1798         * flow.c: Define lang_missing_noreturn_ok_p.
1799         (check_function_return_warnings): Use it.
1800
1801         * c-common.h: Declare lang_missing_noreturn_ok_p.
1802
1803         * c-lang.c (c_missing_noreturn_ok_p): New function.
1804         (lang_init): Set lang_missing_noreturn_ok_p.
1805
1806         * invoke.texi (Warning Options): Document this.
1807
1808 2000-12-27  Phil Edwards  <pme@sources.redhat.com>
1809
1810         * extend.texi (C++ Extensions):  New node for C++ attributes;
1811           describe init_priority and com_interface.
1812         * invoke.texi:  Remove -finit-priority as it now has zero effect.
1813         * install.texi:  Fix xref syntax.
1814         * md.texi:  Likewise.
1815
1816 Mon Jan  1 21:28:29 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1817
1818         * config.gcc (sparc64-wrs-vxworks*): New case.
1819         * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
1820
1821         * config/sparc/sparc.c (sparc_override_options): Do support different
1822         pointer and architecture size.
1823         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
1824         (POINTERS_EXTEND_UNSIGNED): Define.
1825         (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
1826         (FUNCTION_MODE): Define to be Pmode.
1827         * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
1828
1829         * function.c (expand_function_end): Properly handle DECL_RESULT
1830         and copy when ptr_mode != Pmode.
1831         * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
1832
1833 2001-01-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1834
1835         * c-common.c (c_common_nodes_and_builtins): Set prototype
1836         parameters for __builtin_fputs, __builtin_fputc and
1837         __builtin_fwrite.  Don't declare plain fputc as a builtin.
1838
1839 2001-01-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1840
1841         * loop.c (add_label_notes): Increment the label usage count when
1842         a note is added to an insn which refers to a CODE_LABEL.
1843         * gcse.c (add_label_notes): Likewise.
1844
1845 2001-01-01  Andreas Jaeger  <aj@suse.de>
1846
1847         * loop.c (scan_loop): Use xmalloc to allocate movables.
1848
1849 2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
1850
1851         * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
1852         * reload.c (REGISTER_MOVE_COST): Likewise.  Adjust all callers.
1853         * reload1.c (REGISTER_MOVE_COST): Likewise.
1854         * regclass.c (REGISTER_MOVE_COST): Likewise.
1855         (move_cost, may_move_in_cost, may_move_out_cost): Add mode
1856         dimension.  Adjust all users.
1857         (init_reg_sets_1): Iterate on all modes.
1858         * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
1859         * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
1860         * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
1861         * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
1862         * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
1863         * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
1864         * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
1865         * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
1866         * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
1867         * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
1868         * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
1869         * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
1870         * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
1871         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
1872         * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
1873         * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
1874         * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
1875         * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
1876         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
1877         * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
1878         * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
1879         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
1880         * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
1881         * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
1882         * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
1883         * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
1884         * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
1885
1886 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
1887
1888         * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
1889         arg VARIES_P.  Call it with extra arg.
1890         (true_dependence): Likewise.
1891         * rtl.h (rtx_addr_can_trap_p): Declare.
1892         (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
1893         prototypes.
1894         * rtlanal.c (rtx_addr_can_trap_p): No longer static.
1895         (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
1896         pic offset table register if it's zero.  All callers changed.
1897         (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
1898
1899 Mon Jan  1 07:38:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1900
1901         * explow.c (convert_memory_address, case SYMBOL_REF): Copy
1902         STRING_POOL_ADDRESS_P.
1903
1904         * config/sparc/sparc.c (input_operand): Properly test for short op.
1905
1906         * config.gcc (sparc-*-elf): Include sparc/sol2.h.
1907         (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
1908         (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
1909         * config/sparc/elf.h: No longer include sol2.h.
1910         * config/sparc/lifeelf.h: No longer include sparc/elf.h.
1911         * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
1912
1913         * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
1914
1915 2001-01-01  Michael Hayes  <mhayes@redhat.com>
1916
1917         * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
1918         (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
1919         (record_initial): Likewise.
1920         * unroll.c (copy_loop_body, loop_iterations): Likewise.
1921         (remap_split_bivs): Likewise.
1922
1923 2001-01-01  Michael Hayes  <mhayes@redhat.com>
1924
1925         * loop.c (loop_ivs_free): New function.
1926         (strength_reduce): Break out from...
1927
1928 2001-01-01  Michael Hayes  <mhayes@redhat.com>
1929
1930         * loop.h (struct iv): New.
1931         (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
1932         (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
1933         'reg_biv_class' fields with 'regs' and 'n_regs'.
1934         (struct ivs): Rename 'loop_iv_list' field to 'list'.
1935         * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
1936         * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
1937
1938 2000-12-31  Alexandre Oliva  <aoliva@redhat.com>
1939
1940         * resource.c (mark_referenced_resources): Abort() before
1941         attempting to mark a pseudo register.
1942         (mark_set_resources): Likewise.
1943
1944 2001-01-01  Michael Hayes  <mhayes@redhat.com>
1945
1946         * loop.h (REG_IV_CLASS): New accessor macro.
1947         * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
1948         * unroll.c (REG_IV_CLASS): Likewise.
1949
1950 See ChangeLog.4 for earlier changes.