OSDN Git Service

2000-08-22 Steven King <sxking@uswest.net>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-08-22 Steven King <sxking@uswest.net>
2
3         * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
4         machinery.
5         (LDBL_MAX): Same here.
6
7 2000-08-22  Richard Henderson  <rth@cygnus.com>
8
9         * flow.c (tidy_fallthru_edge): Update b->end properly.
10
11 2000-08-22  Stan Cox  <scox@redhat.com>
12
13         * Makefile.in (OBJS): Add dependence.o.
14         * dependence.c: New file.
15         
16 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
17
18         * invoke.texi (SH Options): Document -m4-nofpu,
19         -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
20         -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
21
22 2000-08-22  Joseph S. Myers  <jsm28@cam.ac.uk>
23
24         * c-common.c (check_format_info): Give the 'some locales' warning
25         for strftime %Ey rather than the unconditional 'only last 2 digits
26         of year' one.
27
28 2000-08-22  Richard Henderson  <rth@cygnus.com>
29
30         * alias.c (init_alias_analysis): Do not register
31         struct_value_incoming_rtx or static_chain_rtx as pointing
32         to stack memory.
33
34 Tue Aug 22 01:44:43 2000  Jeffrey A Law  (law@cygnus.com)
35
36         * protoize.c (munge_compile_params): Fix typo and formatting buglets.
37
38 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
39
40         * diagnostic.h (report_problematic_module): Declare.
41         * diagnostic.c (report_problematic_module): New function.
42         (report_error_function): Tweak.
43
44 Tue Aug 22 02:31:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
45
46         * stmt.c (expand_goto_internal, fixup_gotos): Only check
47         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
48
49 2000-08-21  Richard Henderson  <rth@cygnus.com>
50
51         * flow.c (calculate_global_regs_live): Mark frame pointer live
52         everywhere before reload.
53
54 2000-08-21  Jim Wilson  <wilson@cygnus.com>
55
56         * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
57         INTEL_EXTENDED_IEEE_FORMAT.
58         (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
59         clear last two bytes of output FP value.
60
61 2000-08-21  Graham Stott  <grahams@cygnus.co.uk>
62
63         * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
64
65 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
66
67         * unroll.c (loop_find_equiv_value): If ret is modified between
68         insn and loop_start, ret might not be equivalent to reg.
69
70 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
71
72         * c-common.c (init_dollar_format_checking,
73         maybe_read_dollar_number, finish_dollar_format_checking): New
74         functions.
75         (dollar_arguments_used, dollar_arguments_count,
76         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
77         New variables.
78         (check_format_info): Support $ formats for scanf and printf width
79         and precision.  Always increment format_chars to advance past the
80         '*' of precision, not just when the format parameters are
81         available to check.
82
83 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
84
85         * mips.c (block_move_loop, expand_block_move,
86         function_arg_partial_nregs, save_restore_insns, function_prologue,
87         mips_expand_prologue, RA_MASK): Avoid using the `U' integer
88         constant suffix.
89         (function_arg_advance, function_arg): Match argument to format
90         specifier `%p'.
91
92 2000-08-21  Nix  <nix@esperi.demon.co.uk>
93
94         * gcc.c (do_spec_1): Implement %j spec flag.
95         Remove dead comment.
96
97         * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
98         * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
99         * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
100         * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
101
102         * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
103         writable) instead of hardcoded value.
104
105         * toplev.c (compile_file): Output to a file even if -fsyntax-only.
106
107         * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
108         MKTEMP_EACH_FILE.
109
110         * gcc.c (cc1_options): Do not process -o or run the assembler if
111         -fsyntax-only.
112         * objc/lang-spec.h: Likewise.
113
114 2000-08-21  Eli Zaretskii  <eliz@is.elta.co.il>
115
116         * fixinc/fixincl.c (fix_with_system): Pipe the output of
117         "external" fixes through `cat', to avoid truncating the input
118         file by redirection.
119
120 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
121
122         * config/i386/i386.md (lea_general_1): Copy insn condition to split
123         condition.
124         (lea_general_2, lea_general_3): Likewise.
125
126 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
127
128         * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
129         warnings to user code.
130
131         * c-lex.c (readescape, yylex): Likewise.
132
133         * c-typeck.c (store_init_value, process_init_element): Likewise
134         (c_expand_start_case): Format.
135
136 2000-08-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
137
138         * mips/linux.h (LINK_SPEC): Use %(endian_spec).
139
140         * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
141         and linker_endian_spec to endian_spec. 
142         (ENDIAN_SPEC): Add %{EB} and %{EL}.
143         (LINK_SPEC): Remove %{EB} and %{EL}.
144         (ASM_SPEC): Likewise.  Use %(endian_spec). 
145
146 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
147
148         * c-tree.h (flag_hosted): Move declaration from here...
149         * c-common.h (flag_hosted): ... to here.
150         (flag_noniso_default_format_attributes): New declaration.
151         * c-decl.c (flag_noniso_default_format_attributes): New variable.
152         (c_decode_option): Set it appropriately for options choosing
153         language standard variant.
154         * c-common.c (init_function_format_info): Only provide default
155         format attributes if flag_hosted.  Only provide the gettext
156         formats if flag_noniso_default_format_attributes.  Update
157         comments.
158         (check_format_info): Disable treatment of %a as a scanf flag in
159         C99 mode.
160
161 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
162
163         * c-common.c (scan_char_table): Add 'w' to flags for all formats
164         except 'n'.
165         (check_format_info): Set 'wide' for scanf format widths.  Warn for
166         a zero scanf width.  Make the check for writing into a constant
167         object at the first level of indirection; at later levels, warn if
168         any type qualifiers are encountered.
169
170 Mon Aug 21 07:41:12 2000  Jeffrey A Law  (law@cygnus.com)
171
172         * reload.c (reload_inner_reg_of_subreg): New function broken out of
173         push_reload.
174         (push_reload): Use reload_inner_reg_of_subreg.
175         (combine_reloads): Do not combine reloads if the input reload
176         is a SUBREG in which the inner part will need reloading.
177
178         * global.c (global_alloc): Avoid passing dumpfile argument to
179         reload routines.
180         * toplev.c (rest_of_compilation): Likewise.
181         * reload.h (reload): Remove dumpfile argument.  Callers changed.
182         (debug_reload, debug_reload_to_stream): Move prototypes here.
183         * rtl.h  (reload): Remove dumpfile argument.
184         * reload.c (debug_reload): Remove prototype.
185         (debug_reload_to_stream): Likewise.
186         * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
187         instead.
188
189 2000-08-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
190
191         * diagnostic.c (context_as_prefix): Export.
192         (need_error_newline): Remove.
193         (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
194         (error_module_changed, record_last_error_module,
195         error_function_changed, record_last_error_function): New functions.
196         (initialize_diagnostics): Default intialize
197         lang_diagnostic_starter, lang_diagnostic_finalizer.
198         (init_output_buffer): Tweak.
199         (file_name_as_prefix): New function.
200         (announce_function, default_print_error_function,
201         report_error_function, set_diagnostic_context): Tweak.
202
203 2000-08-21  Richard Earnshaw  <rearnsha@arm.com>
204
205         * flow.c (init_propagate_block_info): Handle SUBREG in a jump
206         condition expression.
207
208 2000-08-20  Richard Henderson  <rth@cygnus.com>
209
210         * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
211
212 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
213
214         * cppinit.c (cpp_init): Set global flag when called.
215         (cpp_reader_init): Bomb out if cpp_init hasn't been called.
216
217 Sun Aug 20 01:41:35 MSD 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
218
219         * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
220         before `process_directive' so that newlines won't be missed
221         for directives.
222         (cpp_printf): Increment `print->lineno' when newline is emitted.
223
224         * cppmain.c (cb_ident): Likewise.
225         (cb_define): Likewise.
226         (cb_undef): Likewise.
227         (cb_include): Likewise.
228         (cb_def_pragma): Likewise.
229         (dump_macros_helper): Likewise.
230
231 2000-08-20  Richard Henderson  <rth@cygnus.com>
232
233         * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
234         assigned before a loop.
235
236         * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
237         (ashrsi3, lshrsi3): Likewise.
238
239 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
240
241         * c-lang.c: #include diagnostic.h
242         (c_tree_printer): New function.
243         (lang_init): Initialize lang_printer.
244
245         * Makefile.in (c-lang.o): Depends on diagnostic.h
246
247 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
248
249         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
250
251         * diagnostic.c (default_diagnostic_starter,
252         default_diagnostic_finalizer): New functions.
253         (diagnostic_for_asm, diagnostic_for_decl): Tweak.
254         (pedwarn, pedwarn_with_file_and_line, error,
255         error_with_file_and_line, fatal, warning,
256         warning_with_file_and_line): Adjust call to report_diagnostic.
257         (report_diagnostic): Rework.
258         (set_diagnostic_context): New function.
259
260         * diagnostic.h (struct diagnostic_context): New data structure.
261         (diagnostic_message, diagnostic_argument_list,
262         diagnostic_file_location, diagnostic_line_location,
263         diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
264         diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
265         (set_diagnostic_context): Declare.
266         (report_diagnostic): Change prototype.
267
268 Sun 20-Aug-2000 09:25:45 BST  Neil Booth  <NeilB@earthling.net>
269
270         * fix-header.c (main): Initialize cpplib.
271
272 2000-08-19  Michael Meissner  <meissner@redhat.com>
273
274         * ifcvt.c (find_if_block): Do not assume that a THEN block has any
275         instructions in it before checking for indirect jumps.
276
277         * ifcvt.c (find_if_block): Do not consider a THEN block that ends
278         in a indirect jump as a potential for conditional execution.
279
280         * d30v.h (d30v_init_expanders): Don't declare here.
281         * d30v-protos.h (d30v_init_expanders): Declare here with a valid
282         prototype.
283
284 Sat 19-Aug-2000 21:11:45 BST  Neil Booth  <NeilB@earthling.net>
285
286         * cpp.texi: Add @section for assertions.
287
288 Sat Aug 19 12:37:08 EDT 2000  John Wehle  (john@feith.com)
289
290         * loop.c (scan_loop): Use CONST_CALL_P instead of
291         checking for REG_LIBCALL / REG_RETVAL.
292
293 Sat Aug 19 09:18:47 2000  Jeffrey A Law  (law@cygnus.com)
294
295         * reload1.c (reload_as_needed): Accept dumpfile argument,
296         pass it to emit_reload_insns.
297         (emit_reload_insns): Add new dumpfile argument.  If non-null
298         then dump the reloads for each insn into the dumpfile.
299         (reload): Pass dumpfile to reload_as_needed.
300
301         * invoke.texi: Clean up linux-gnu vs linux comments.
302
303 2000-08-19  Richard Henderson  <rth@cygnus.com>
304
305         * config/ia64/ia64.c (reg_or_5bit_operand): New.
306         (ia64_depz_field_mask): New.
307         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
308         (PREDICATE_CODES): Update.
309         * config/ia64/ia64.md: Update commentary.
310         (depz_internal): New.
311         (ashlsi3): Implement directly.
312         (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
313         (ashldi3): Use shladd.
314         * config/ia64/ia64-protos.h: Update.
315
316 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
317
318         * toplev.c (independent_decode_option): Always process -g.
319         Remove third argument, now unused.  Adjust caller to match.
320
321 2000-08-18  Richard Henderson  <rth@cygnus.com>
322
323         * combine.c (make_compound_operation): Break after creating
324         the extraction.
325
326 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
327
328         * cpplib.c (cpp_register_pragma_space): Just return if the
329         namespace is already registered.
330
331 2000-08-18  Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton  <nickc@redhat.com>
332
333         * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
334         constant amount.  Do not generate ROTL instruction.
335
336 Fri Aug 18 16:22:20 2000  Alexandre Oliva  <aoliva@redhat.com>
337
338         * config/sh/elf.h: Do not include sh/sh.h.
339         * config/sh/rtems.h: Likewise.
340         * config/sh/rtemself.h: Do not include sh/elf.h.
341         * configure.in: Get them included with `tm_file's.
342         * configure: Rebuilt.
343
344         * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
345         * config/sh/sh.c (fpscr_set_from_mem): Use them.
346
347 Fri Aug 18 14:23:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
348
349         * stor-layout.c (compute_record_type): Don't use mode of single
350         field as mode of record if not integer mode of same type.
351
352         * regmove.c (perhaps_ends_bb_p): New function.
353         (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
354         (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
355         (fixup_match_1): Likewise.
356         (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
357         avoid signed/unsigned warnings.
358         
359         * function.c (fixup_var_refs_1, case MEM): Update CODE after
360         updating X.
361
362 Fri 18-Aug-2000 18:33:45 BST  Neil Booth  <NeilB@earthling.net>
363
364         * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
365         (_cpp_trigraph_map): Declaration moved from cpplex.c
366
367         * cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
368         instead of 256.  Use consistent test for designated initializers.
369         (cpp_init): Initialize trigraph_map.
370         (initialize_standard_includes, parse_option):  Use memcmp
371         instead of strncmp.
372
373         * cpplex.c (init_trigraph_map): Remove.
374         (trigraph_ok, trigraph_replace, lex_line): Refer to
375         _cpp_trigraph_map.
376
377         * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
378         (do_unassert): Remove unused "next" local.
379
380         * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
381
382 2000-08-18  Emmanuel Marty  <emarty@suntech.fr>
383
384         * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
385         insn.
386
387 2000-08-17  Richard Henderson  <rth@cygnus.com>
388
389         * config/ia64/ia64.c (spill_restore_mem): Handle emitting
390         the first insn in a sequence.
391
392 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
393
394         * alias.c (true_dependence, write_dependence_p): A read
395         involving a label_ref or the constant pool doesn't create
396         a dependency.
397
398         * rtl.h (unchanging): Improve documentation.
399
400 2000-08-17  Rodney Brown  <RodneyBrown@mynd.com>
401
402         * cse.c (insert_regs): Remove unused `regno'.
403
404 2000-08-17  Neil Booth  <NeilB@earthling.net>
405
406         * (cppinit.c) merge_include_chains: Use remove_dup_dir,
407         remove_dup_dirs.  If qtail == brack, remove brack not
408         qtail.
409         (remove_dup_dir, remove_dup_dirs): New functions.
410
411 2000-08-17  Neil Booth  <NeilB@earthling.net>
412
413         * cppinit.c (cpp_cleanup): Free include dir chains.
414         * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
415         (do_unassert): Free the assert with _cpp_free_definition.
416         * cppmacro.c (_cpp_free_definition): Free memory allocated for
417         assertions.  Make the node a T_VOID node.
418
419 2000-08-17  Neil Booth  <NeilB@earthling.net>
420
421         * cppinit.c (path_include, append_include_chain):
422         Remove 2nd parameter (struct cpp_pending *).
423         (path_include, initialize_standard_includes, cpp_handle_option):
424         Update callers appropriately.
425         (cpp_handle_option): Use pend.
426
427 2000-08-17  Neil Booth  <NeilB@earthling.net>
428
429         * cppinit.c (sort_options): Remove, put functionality in
430         cpp_init.
431         (cpp_init): New.
432         (initialize_builtins): Free memory.
433         (cpp_start_read): Move init_IStable to cpp_init.
434
435         * cpplib.h (cpp_init): New prototype.
436         * cppmain.c (main): Call cpp_init.
437
438 Thu Aug 17 13:20:32 EDT 2000  John Wehle  (john@feith.com)
439
440         * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
441         (rtx_unstable_p, rtx_varies_p): Process vectors.
442
443 2000-08-16  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
444
445         * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
446         references to GLOBAL symbols.  Use LOCAL where appropriate.
447
448 2000-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
449
450         * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
451         use t-aix41 when host == target.
452
453 2000-08-16  Richard Henderson  <rth@cygnus.com>
454
455         * reload.c (push_secondary_reload): Revert last change.
456         If we use a reload_in/out pattern, make the when the same
457         as the primary reload.
458         (find_reloads): Likewise.
459
460 2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
461
462         * configure.in (libstdcxx-v3): Fix test.
463         * configure: Regenerate.
464
465 Wed Aug 16 08:10:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
466
467         * calls.c (calls_function_1, expand_call): Only test
468         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
469         * function.c (thread_prologue_and_epilogue_insns): Likewise.
470
471 2000-08-16  Richard Henderson  <rth@cygnus.com>
472
473         * combine.c (simplify_shift_const): Revert previous two
474         changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
475         before the main loop.
476
477 2000-08-15  Richard Henderson  <rth@cygnus.com>
478
479         * combine.c (simplify_shift_const): Bound shift count when
480         combining shifts.
481
482 Tue Aug 15 17:33:05 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
483
484         * calls.c (ECF_SP_DEPRESSED): New macro.
485         (calls_function_1): Treat calling sp-depressed function as alloca.
486         (emit_call_1): Don't adjust SP if calling sp-depressed function.
487         (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
488         If sp-depressed, ensure block saves and restores SP.
489         * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
490         for INTEGER_TYPE.
491         * function.c (keep_stack_depressed): New function.
492         (thread_prologue_and_epilogue_insns): Call it.
493         * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
494         to print DECL_OFFSET_ALIGN.
495         Print no-force-blk and transparent-union flags properly.
496         * stmt.c (expand_goto_internal): Don't restore stack if last block
497         and function returns with sp depressed.
498         (fixup_gotos): Likewise.
499         (save_stack_pointer): New function, from code in expand_decl.
500         (expand_decl): Call new function.
501         * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
502         (TYPE_RETURNS_STACK_DEPRESSED): New macro.
503         (save_stack_pointer): New declaration.
504
505         * diagnostic.c (fatal_function): New variable.
506         (set_fatal_function): New function.
507         (fatal): Call it.
508         * diagnostic.h (set_fatal_function): New declaration.
509
510 2000-08-15  William Cohen  <wcohen@redhat.com>
511
512         * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
513         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
514         (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
515
516 2000-08-15  Richard Henderson  <rth@cygnus.com>
517
518         * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
519
520 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
521
522         * arm.c (arm_function_ok_for_sibcall): New function.
523         * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
524         * arm.md (call expanders): Don't check here for calls that can't
525         be sibling calls.
526
527 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
528
529         * arm.md (splits generating cond_exec): Disable.
530
531 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
532
533         * arm/linux-elf.h (text_section): Delete declaration.
534
535 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
536
537         ARM support for unordered FP operations.
538         * arm-protos.h (arm_comparison_operator): Declare.
539         * arm.c (arm_comparison_operator): New function.
540         (arm_select_cc_mode): Add unordered comparison codes.
541         (get_arm_condition_code): Likewise.
542         (arm_final_prescan_insn): Can't handle unordered jumps that can't
543         be done in one insn.
544         * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
545         * arm.md (all uses of comparison_operator): Replace with
546         arm_comparison_operator.
547         (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
548         expands.
549         (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
550         patterns.
551         
552 Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
553
554         * gthr-posix.h: Conditionally include <sched.h>; include
555         <config.h> from libobjc/.
556
557 2000-08-14  Richard Henderson  <rth@cygnus.com>
558
559         * config/i386/i386.c (legitimize_pic_address): Use Pmode
560         for all CONSTs.
561
562 2000-08-14  Richard Henderson  <rth@cygnus.com>
563
564         * configure.in (ia64-*): Set float_format for i386 long double.
565
566         * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
567         as we would for i386 XFmode.
568         (PUT_REAL): Likewise.
569         (endian, ereal_atof, real_value_truncate): Likewise.
570         (ereal_isneg, toe64, etens, make_nan): Likewise.
571         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
572
573         * config/ia64/ia64-protos.h: Update.
574         * config/ia64/ia64.c (general_tfmode_operand): New.
575         (destination_tfmode_operand): New.
576         (tfreg_or_fp01_operand): New.
577         (ia64_split_timode): New.
578         (spill_tfmode_operand): New.
579         (ia64_expand_prologue): Use TFmode not XFmode.
580         (ia64_expand_epilogue): Likewise.
581         (ia64_function_arg): Likewise.
582         (ia64_function_arg_advance): Likewise.
583         (ia64_return_in_memory): Likewise.
584         (ia64_function_value): Likewise.
585         (ia64_print_operand): Likewise.
586         (ia64_register_move_cost): Set GR<->FR to 5.
587         (ia64_secondary_reload_class): Get GR for TImode memory op.
588         * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
589         (ROUND_TYPE_ALIGN): Remove.
590         (LONG_DOUBLE_TYPE_SIZE): Set to 128.
591         (INTEL_EXTENDED_IEEE_FORMAT): Define.
592         (HARD_REGNO_NREGS): Use TFmode, not XFmode.
593         (HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
594         (MODES_TIEABLE_P): Use TFmode, not XFmode.
595         (CLASS_MAX_NREGS): Likewise.
596         (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
597         (PREDICATE_CODES): Update.
598         * config/ia64/ia64.md (movti): New.
599         (movti_internal): Use a clobber for memory alternatives.
600         (reload_inti, reload_outti): New.
601         (movsfcc_astep): Predicate properly.
602         (movdfcc_astep): Likewise.
603         (movxf): Remove.
604         (movtf): New.
605         (extendsftf2, extenddftf2): New.
606         (trunctfsf2, trunctfdf2): New.
607         (floatditf2, fix_trunctfdi2): New.
608         (floatunsditf2, fixuns_trunctfdi2): New.
609         (addtf3, subtf3, multf3, abstf2): New.
610         (negtf2, nabstf2, mintf3, maxtf3): New.
611         (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
612         (cmptf): New.
613         (fr_spill): Use TFmode, not XFmode.
614         (fr_restore): Likewise.
615         * config/ia64/lib1funcs.asm (__divtf3): New.
616         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
617
618 2000-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
619
620         * cse.c (fold_rtx): Avoid empty body in an if-statement.
621         
622         * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
623         `U' integer constant suffix.
624
625         * dwarf2out.c (add_subscript_info): Avoid empty body in an
626         else-statement.
627
628         * sparc/sol2.h (__enable_execute_stack): Prototype.
629
630 2000-08-14  David Edelsohn  <edelsohn@gnu.org>
631
632         * collect2.c: Remove use of AIX import file.
633
634         * longlong.h: Test ARCH_PWR not ARCH_POWER.
635
636         * rs6000.c (print_operand, case 'E'): Add else.
637
638 2000-08-14  Richard Henderson  <rth@cygnus.com>
639
640         * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
641         (movdi_symbolic): New.
642
643 2000-08-14  Jim Wilson  <wilson@cygnus.com>
644
645         * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
646         to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
647         * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
648         to GNU as.
649
650 2000-08-14  Richard Henderson  <rth@cygnus.com>
651
652         * expr.c (emit_group_load): Don't force constants into registers.
653         Special case source already in the correct mode.
654
655 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
656
657         * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
658         * fixinc/inclhack.def: Likewise.
659         * fixinc/mkfixinc.sh: Likewise. 
660         * configure: Regenerate.
661         * fixinc/fixincl.x: Regenerate.
662         * install.texi: Document equivalence of linux and linux-gnu.
663
664 Mon Aug 14 18:51:44 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
665
666         * cse.c (insert_regs): Also in REG case: When finding an invalid
667         value, and we make a new quantity, make sure that it won't be
668         mistaken by for a valid one by mention_regs.
669
670 >>>>>>> 1.7497
671 2000-08-13  Ralf Gütlein <ralf.guetlein@aranea.de>
672
673         * h8300.md: Remove obsolete peepholes.
674
675 2000-08-13  Kazu Hirata  <kazu@hxi.com>
676
677         * invoke.texi (H8/300 Options): Fix typos.
678         * config/h8300.c: Fix formatting.
679         * config/h8300.h: Fix comment typos.
680         (OVERRIDE_OPTIONS): Fix formatting.
681
682         * function.c: Fix formatting.
683
684         * cse.c: Fix formatting.
685
686 2000-08-13  Geoff Keating  <geoffk@cygnus.com>
687
688         * flow.c (attempt_auto_inc): Remove unused variable `bb'.
689         (attempt_auto_inc): Suppress parentheses warning.
690         * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
691         * loop.c (load_mems): Remove `u' suffix in two places.
692         * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
693         hex constants.
694         * config/rs6000/rs6000.h: Likewise.
695         * config/rs6000/sol-c0.c: Prototype some functions.  Remove the
696         __eabi dummy routine.
697         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
698         variable `buf_ptr'.
699
700         * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
701         not put stuff in .sdata unnecessarily.
702         (rs6000_unique_section): New function.
703         * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
704         * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
705
706         * c-typeck.c (build_array_ref): Don't complain about non-lvalue
707         arrays in C99.  Don't try to look at DECL_REGISTER of a
708         COMPONENT_REF.  Don't complain twice about the same error.
709
710         * fixinc/inclhack.def (aix_pthread): New fix.
711         (aix_sysmachine): New fix.
712         * fixinc/fixincl.x: Regenerate.
713
714         * expr.c (expand_expr): Call convert_modes when turning a large
715         multiply into a small one.
716
717 2000-08-12  Geoff Keating  <geoffk@cygnus.com>
718
719         * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
720         the tree structure an exponent rather than an explicit alignment
721         so it doesn't overflow.
722         (SET_DECL_OFFSET_ALIGN): New macro.
723         * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
724         rather than DECL_OFFSET_ALIGN.
725         (place_field): Likewise.
726         * expmed.c (store_bit_field): Abort on align==0 to avoid
727         antisocial machine behaviour.
728
729 2000-08-12  Richard Henderson  <rth@cygnus.com>
730
731         * sibcall.c (uses_addressof): Accept both addressof and
732         current_function_internal_arg_pointer inside a mem.
733         (optimize_sibling_and_tail_recursive_call): Fail tail recursion
734         if current_function_uses_addressof.
735         * stmt.c (expand_return): Kill tail recursion and HAVE_return
736         optimizations.
737
738 2000-08-11  Richard Henderson  <rth@cygnus.com>
739
740         * config/ia64/ia64.md (addsi3): Remove expander.
741         (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
742         (*addsi3_shladd): New.
743
744 2000-08-11  Richard Henderson  <rth@cygnus.com>
745
746         * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
747         (do_restore): Likewise.
748         (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
749         (ia64_expand_prologue, ia64_expand_epilogue): Use them.
750         (rtx_needs_barrier): Track actual bit manipulation for 
751         ar.unat moves, gr_spill, and gr_restore.
752         (emit_insn_group_barriers): Special case gr_spill/gr_restore.
753         (process_set): Don't handle varargs spills.
754         * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
755         .mem.offset here instead of in process_set.
756         (gr_restore): Likewise.
757
758 2000-08-11  Richard Henderson  <rth@cygnus.com>
759
760         * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
761
762 2000-08-11  Mark Elbrecht  <snowball3@bigfoot.com>
763  
764         * gcc.texi (The Configuration File): Document
765         COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
766         UPDATE_PATH_HOST_CANONICALIZATION.
767
768 2000-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
769
770         * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
771         unprototyped function pointer casts on integer constants.
772
773 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
774
775         * fixproto: Recognize DOS paths with drive letters as absolute paths.
776
777 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
778
779         * extend.texi (Volatiles): Fix typos.
780
781 2000-08-11  Kazu Hirata  <kazu@hxi.com>
782
783         * flow.c: Fix formatting.
784
785 2000-08-11  Richard Henderson  <rth@cygnus.com>
786
787         * reload.c (push_secondary_reload): When invoking a reload_{in,out}
788         pattern, always allocate a tertiary scratch register.
789
790         * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
791         (reload_inhi): Likewise.
792
793 2000-08-11  Richard Henderson  <rth@cygnus.com>
794
795         * function.c (put_reg_into_stack): Allow type to be NULL.
796         (schedule_fixup_var_refs): Likewise.
797         (gen_mem_addressof): Allow decl to be NULL.
798         (put_addressof_into_stack): Likewise.
799
800         * flow.c (merge_blocks_nomove): Be more careful about
801         locating the beginning of block A.
802
803         * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
804
805 Thu Aug 10 22:47:09 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
806
807         * configure.in:
808         * configure:
809         * gthr-posix.h:
810         * config.in: Reverted the check for <sched.h>.
811
812 2000-08-10  Chris Demetriou  <cgd@sibyte.com>
813
814         * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
815         macros define the name of CTOR and DTOR sections.
816         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
817         DTOR_LIST_END): Change to use attributes to specify
818         sections.
819         * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
820         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
821         DTOR_LIST_END): Same as in mips/elf.h.
822
823 2000-08-10  Drew Moseley  <dmoseley@redhat.com>
824
825         * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
826         disabling just crt0.o.
827
828 2000-08-10  Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton  <nickc@cygnus.com>
829
830         * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
831         (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
832         (EXTRA_SPECS): Add them.
833         * arm/lib1funcs.asm: Support builds for interworking.
834         Use macros to eliminate duplicated pieces of code.
835
836 2000-08-10  Kazu Hirata  <kazu@hxi.com>
837
838         * h8300.c (expand_a_rotate): New.
839         (emit_a_rotate): Likewise.
840         (h8300_adjust_insn_length): Add support for the rotate insns.
841         * h8300.md (rotlqi3): New.
842         (*rotlqi3_1): Likewise.
843         (rotlhi3): Likewise.
844         (*rotlhi3_1): Likewise.
845         (rotlhi3): Likewise.
846         (*rotlhi3_1): Likewise.
847         * h8300-proto.h: Add prototypes for expand_a_rotate and
848         emit_a_rotate.
849
850         * h8300.c: Fix comment typos.
851         (dosize): Declare the variable amount as unsigned.
852         (get_shift_alg): Fix a comparison between signed and unsigned.
853         (emit_a_shift): Likewise.
854         (h8300_adjust_insn_length): Simplify the code.
855
856         * c-decl.c: Fix formatting.
857
858 2000-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
859
860         * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
861         warning about non-traditional numeric constant suffixes.
862
863         * cppexp.c (parse_number): Likewise.
864
865         * invoke.texi: (-Wtraditional): Document new behavior.
866
867 Thu Aug 10 00:11:04 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
868
869         * gthr-posix.h: Include auto-host.h. Conditionally include
870         <sched.h>.
871         * configure.in: Check for the <sched.h> header file.
872         * config.in: Added define for HAVE_SCHED_H.
873
874 2000-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
875
876         * c-typeck.c (process_init_element): For -Wtraditional, warn about
877         initialization of unions.
878
879         * invoke.texi (-Wtraditional): Document new behavior.
880
881 2000-08-09  Zack Weinberg  <zack@wolery.cumb.org>
882
883         * configure.in (--enable-c-cpplib): Uncomment.  Use AC_DEFINE
884         instead of extra_c_flags.
885         (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
886         * configure: Regenerate.
887         * config.in: Regenerate.
888
889         * cpperror.c (cpp_type2name): New function.
890         * cpplex.c (lex_line): If we issued an error for an invalid
891         preprocessing directive, discard that logical line.
892         * cpplib.c (do_line): Call a hook function if the current file
893         is renamed by #line.
894         (do_ident): Pass the contents of the string, not the entire
895         token, to the callback function.
896         * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
897         (cb.rename_file): New hook function.
898         (cb.ident): Adjust prototype.
899         (cpp_type2name): Prototype.
900         * cppmacro.c (dump_macro_args): Correct precedence lossage.
901
902         * cppmain.c (cb_ident): Update for changed interface.
903         (cb_rename_file): New function.
904         (main): Set rename callback.
905
906 2000-08-09  Alexandre Oliva  <aoliva@redhat.com>
907
908         * caller-save.c (mark_referenced_regs): Mark partially-overwritten
909         multi-word registers.
910
911 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
912
913         * c-common.c (combine_strings, check_format_info): Refer to ISO C
914         or ISO C89 instead of ANSI C.
915         * c-decl.c (grokdeclarator, xref_tag, finish_struct,
916         build_enumerator, do_case): Likewise.
917         * c-lex.c (parse_float, yylex): Likewise.
918         * c-parse.in: Likewise.
919         * c-typeck.c (common_type, build_array_ref, build_binary_op,
920         build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
921         build_c_cast, convert_for_assignment, set_init_index,
922         set_init_label, c_expand_start_case): Likewise.
923         * toplev.c (documented_lang_options, display_help): Likewise.
924
925 2000-08-08  Kazu Hirata  <kazu@hxi.com>
926
927         * h8300.c: Fix formatting.
928         * h8300.h: Likewise.
929         * h8300.md: Likewise.
930         (movsi_h8300hs): Fix formatting of the resulting assembly code.
931
932         * reload1.c: Fix formatting.
933
934 2000-08-08  Rodney Brown  <RodneyBrown@mynd.com>
935
936         * alpha/alpha.c (alpha_emit_xfloating_libcall):
937         Use GEN_CALL_VALUE define.
938         * alpha/alpha.md (untyped_call): Use GEN_CALL define.
939         * clipper/clipper.md (untyped_call): Likewise.
940         * dsp16xx/dsp16xx.md (untyped_call): Likewise.
941         * fx80/fx80.md (untyped_call): Likewise.
942         * mips/mips.md (untyped_call): Likewise.
943         * ns32k/ns32k.md (untyped_call): Likewise.
944         * pa/pa.md (untyped_call): Likewise.
945         * romp/romp.md (untyped_call): Likewise.
946         * sparc/sparc.md (untyped_call): Likewise.
947
948 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
949
950         * config/i860/i860.c (singlemove_string): Do not generate assembler
951         pseudo instructions that must be expanded (that is, with signed
952         constants larger than 16 bits).
953
954 2000-08-08  Richard Henderson  <rth@cygnus.com>
955
956         * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
957         PROP_AUTOINC at -O0.  Don't collect alias info at -O0.
958         (init_propagate_block_info): Don't kill memory stores at -O0.
959         (mark_set_1, mark_used_regs): Likewise.
960
961 2000-08-08  David Edelsohn  <edelsohn@gnu.org>
962
963         * rs6000.c (optimization_options): Decorate 'level' as
964         ATTRIBUTE_UNUSED. 
965         (mask64_operand): Remove sign-extend thinko.
966         (rldic_operand): New function.
967         (load_multiple_operation): regno's are unsigned ints.
968         (store_multiple_operation): Likewise.
969         (lmw_operation): Likewise.
970         (stmw_operation): Likewise.
971         (includes_lshift_p): shift_mask is unsigned int.
972         (includes_lshift64_p): New function.
973         (addrs_ok_for_quad_peep): unsigned int reg1.
974         (print_operand): Consistently add "else" after
975         output_operand_lossage().
976         (print_operand, case 'b'): Fold in case 'W'.
977         (print_operand, case 'W'): Print rldic MB value.
978         (output_epilogue): Update Objective-C language string.
979         (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
980         * rs6000.h (PREDICATE_CODES): Add rldic_operand.
981         * rs6000.md (ashldi3): Add rldic instruction.
982         (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
983         (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
984         modifier.
985
986 2000-08-08  Richard Henderson  <rth@cygnus.com>
987
988         * config/ia64/ia64-protos.h: Remove duplicates.  Update
989         for massive code rearrangements.
990         * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
991         (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
992         (ia64_local_regs, ia64_need_regstk): Remove.
993         (ar_ccv_reg_operand): New.
994         (ia64_gp_save_reg): New.
995         (struct ia64_frame_info): Combine most of the size elements;
996         add new gr save elements.
997         (find_gr_spill): New.
998         (next_scratch_gr_reg): New.
999         (mark_reg_gr_used_mask): New.
1000         (ia64_compute_frame_size): Rewrite.  Allocate special AR regs
1001         to GR backing store regs when possible.
1002         (ia64_initial_elimination_offset): New.
1003         (ia64_rap_fp_offset): Remove.
1004         (save_restore_insns): Remove.
1005         (setup_spill_pointers): New.
1006         (finish_spill_pointers): New.
1007         (spill_restore_mem): New.
1008         (do_spill, do_restore): New.
1009         (ia64_expand_prologue): Rewrite to use them.
1010         (ia64_expand_epilogue): Likewise.
1011         (ia64_direct_return): Update for current_frame_info changes.
1012         (ia64_function_prologue): Simplify .prologue emission.  Emit
1013         .spill when needed.
1014         (ia64_setup_incoming_varargs): Don't ever emit rtl.
1015         (ia64_dbx_register_number): New.
1016         (ia64_initialize_trampoline): New.
1017         (ia64_secondary_reload_class): Request GR_REGS for integer
1018         arithmetic destined for FR_REGS.
1019         (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
1020         (ia64_mark_machine_status): Mark ia64_gp_save.
1021         (rws_access_regno): Rename from rws_access_reg; don't treat
1022         predicates specially.
1023         (rws_access_reg): New.  Update all callers.
1024         (rtx_needs_barrier): Remove dead unspecs.
1025         (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
1026         (ia64_encode_section_info): Silence signed/unsigned warnings.
1027         (spill_offset, sp_offset, spill_offset_emitted): Remove.
1028         (tmp_reg, tmp_saved): Remove.
1029         (process_set): Rewrite to expect complicated bits via 
1030         REG_FRAME_RELATED_EXPR.
1031         (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
1032         in the use of ar.ccv; never set RTX_UNCHANGING_P.
1033         (ia64_expand_op_and_fetch): Likewise.
1034         (ia64_expand_compare_and_swap): Likewise.
1035         (ia64_expand_builtin): Likewise.
1036         * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
1037         (FIRST_PSEUDO_REGISTER): Update.
1038         (AR_M_REGNO_P): Update.
1039         (FIXED_REGS): Don't mark three local registers as used.
1040         (EXTRA_CC_MODES): New.
1041         (SELECT_CC_MODE): New.
1042         (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
1043         (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
1044         (FRAME_GROWS_DOWNWARD): Unset.
1045         (STARTING_FRAME_OFFSET): Zero.
1046         (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
1047         (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
1048         (HARD_FRAME_POINTER_REGNUM): New.
1049         (CAN_DEBUG_WITHOUT_FP): Define.
1050         (TRAMPOLINE_TEMPLATE): Remove.
1051         (TRAMPOLINE_SIZE): Lower to 32.
1052         (TRAMPOLINE_ALIGNMENT): Lower to 64.
1053         (INITIALIZE_TRAMPOLINE): Defer to out of line function.
1054         (PREDICATE_CODES): Update.
1055         (struct machine_function): Add ia64_gp_save.
1056         * config/ia64/ia64.md: Purge unused unspecs.
1057         (movsi patterns): Allow moves to/from AR_M_REGS.
1058         (movdi patterns): Allow moves to/from p0.
1059         (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
1060         (gr_spill, gr_restore): Indicate ar.unat read/written.
1061         (nonlocal_goto): Don't pass old frame_pointer.
1062         (nonlocal_goto_receiver): Remove.
1063         (exception_receiver): New.
1064         (builtin_setjmp_setup): New.
1065         (builtin_setjmp_receiver): New.
1066         * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
1067         (__ia64_nonlocal_goto): Bundle.  Don't kill r7.
1068         (__ia64_restore_stack_nonlocal): Likewise.
1069         (__ia64_trampoline): New.
1070         * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
1071         function.
1072         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
1073
1074 2000-08-08  Richard Henderson  <rth@cygnus.com>
1075
1076         * frame.h (ia64_frame_state): Add my_psp.
1077         * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
1078         (__throw): Pass it in.  Don't clobber r7.
1079         * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
1080         (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
1081         and nothing to do with sp.
1082         (normalize_reg_loc): Use frame->my_psp.
1083         (frame_translate): Handle frame-pointer-less functions.  Set
1084         spill_base correctly, in absence of being told.
1085         (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
1086         (__ia64_backtrace_helper): New sp argument.  Use
1087         builtin_return_address instead of label addresses.
1088         (print_record) [mem_stack_v]: No size member.
1089
1090 2000-08-08  Richard Henderson  <rth@cygnus.com>
1091
1092         * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
1093
1094 2000-08-08  Richard Henderson  <rth@cygnus.com>
1095
1096         * tm.texi (LOCAL_REGNO): Document.
1097         * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
1098         (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
1099         * reload1.c (reload): Likewise when considering nonlocal labels.
1100
1101         * config/ia64/ia64.h (LOCAL_REGNO): New.
1102         * config/sparc/sparc.h (LOCAL_REGNO): New.
1103
1104 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1105
1106         * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
1107
1108 2000-08-07  Nick Clifton  <nickc@redhat.com>
1109
1110         * config/mips/mips.c: Fix compile time warning messages.
1111         * config/mips/mips-protos.h: Add prototype for equality_op.
1112
1113         * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
1114
1115 2000-08-07  Graham Stott  <grahams@cygnus.co.uk>
1116
1117         * mn10300.md: Use nonimmediate_operand instead of general_operand
1118         on output operands.
1119         
1120         * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
1121
1122 2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
1123
1124         * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
1125         * sh.c (expand_block_move): Break long lines.
1126         (expand_ashiftrt, fpscr_set_from_mem): Likewise.
1127         * sh.md (mulsi3): Likewise.
1128         (movdi): Adjust spacing.
1129
1130 2000-08-07  Richard Henderson  <rth@cygnus.com>
1131
1132         * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
1133         * expr.c (emit_group_store): Don't set it.
1134
1135 2000-08-07  Kazu Hirata  <kazu@hxi.com>
1136
1137         * invoke.texi (Options for Debugging Your Program or GCC): Remove
1138         duplicate entries for 'w' and 'z'.
1139
1140         * flow.c: Fix a comment typo.
1141
1142 Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
1143
1144         * c-parse.in: Changed the language string for Objective-C to "GNU
1145         Objective-C".
1146
1147 Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
1148
1149         * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
1150         to improve the Posix thread support for Objective-C.
1151
1152 2000-08-06  Joseph S. Myers  <jsm28@cam.ac.uk>
1153
1154         * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
1155         CTI_UNSIGNED_PTRDIFF_TYPE.
1156         (signed_size_type_node): Define.
1157         (unsigned_ptrdiff_type_node): Define.
1158         * c-decl.c (init_decl_processing): Create the
1159         signed_size_type_node and unsigned_ptrdiff_type_node types.
1160         * c-common.c (T_SC): Define.
1161         (T_SST): Define.
1162         (T_UPD): Define.
1163         (print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
1164         %to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
1165         %s and %p.
1166         (scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
1167         %zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
1168         flags for %c, %s and %[.
1169         (check_format_info): Only allow leniency for signedness of targets
1170         of character pointers (when pedantic) for formats flagged with
1171         "c", so for strings but not for %hh formats.  When pedantic, don't
1172         allow character pointers to substitute for void pointers if a
1173         second level of indirection is present.
1174
1175 2000-08-06  Kazu Hirata  <kazu@hxi.com>
1176
1177         * invoke.texi (Options for Debugging Your Program or GCC): Update
1178         the names of dump files.
1179
1180         * h8300.c (dosize): Rearrange code for conciseness.
1181         (split_adds_subs): Likewise.
1182
1183         * loop.c: Fix formatting.
1184
1185         * dwarf2out.c: Fix formatting.
1186
1187         * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
1188
1189         * expr.c: Fix formatting.
1190
1191 2000-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1192
1193         * rs6000.c (rs6000_maybe_dead): Prototype.
1194
1195 2000-08-06  Richard Henderson  <rth@cygnus.com>
1196
1197         * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
1198         HAVE_nonlocal_goto as well.
1199         * config/i960/i960.md (nonlocal_goto): Don't do it here.
1200         * config/pj/pj.md (nonlocal_goto): Likewise.
1201
1202 2000-08-07  Michael Hayes  <mhayes@cygnus.com>
1203
1204         * loop.c (try_swap_copy_prop): New function.
1205         (load_mems): Rename copies to load_copies and add new regset
1206         store_copies.  Check for sets of shadow registers and mark
1207         in store_copies.   Call try_swap_copy_prop for registers
1208         marked in store_copies.
1209
1210 Sun Aug  6 00:54:42 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
1211
1212         * objc/objc-act.c: New command line option -fconstant-string-class
1213         to allow specifying a user defined constant string class,
1214         different from NXConstantString.
1215
1216         * toplev.c: Moved the Objective-C specific options to
1217         objc/lang-options.h.
1218
1219         * objc/lang-options.h: Moved the Objective-C specific options from
1220         toplev.c. Added -fconstant-string-class.
1221
1222 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
1223
1224         * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
1225         DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
1226         __CTOR_LIST__ from func_ptr array to just func_ptr, to
1227         avoid extra alignment imposed on arrays.
1228         * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
1229         DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
1230
1231         * mips.h: Clean up comments and spacing near MASKs.
1232         (TARGET_UNIX_ASM): Delete.
1233         (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
1234         MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
1235         values contiguous.
1236
1237 2000-08-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1238
1239         * c-common.c (print_char_table): Add entries for the X/Open '
1240         format flag (print decimals with locale's thousands grouping
1241         character).  Make %C expect wint_t.
1242         (check_format_info): If pedantic, warn when the %n$ operand
1243         number form is used.  Allow for the ' flag; warn about it if
1244         pedantic.
1245
1246 2000-08-05  Zack Weinberg  <zack@wolery.cumb.org>
1247
1248         * i386.h (FUNCTION_OK_FOR_SIBCALL):  Not OK if DECL's return
1249         type is a float mode, cfun->decl's return type is not, and
1250         TARGET_FLOAT_RETURNS_IN_80387.
1251
1252 2000-08-04  Andreas Schwab  <schwab@suse.de>
1253
1254         * cppmain.c (cb_def_pragma): Skip the first two tokens from the
1255         token list, which are always `#' and `pragma'.
1256
1257 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
1258
1259         * tree.c (tree_expr_nonnegative_p): Move to...
1260         * fold-const.c: ... here.  Also handle BIND_EXPR and RTL_EXPR.
1261         (rtl_expr_nonnegative_p): New.                                
1262         * tree.h: Add prototype for rtl_expr_nonnegative_p.
1263
1264         * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
1265         CONST_DOUBLE_CHAIN: Move to...
1266         * rtl.h: ...here.  Use XCINT/XCEXP.
1267
1268         * Makefile.in: Remove toplev.o from OBJS.  Add rule to make
1269         libbackend.a; add libbackend.a to STAGESTUFF.  Add BACKEND
1270         variable.  Use BACKEND when linking cc1, not OBJS.  Add BACKEND
1271         to VOL_FILES.
1272
1273         * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
1274
1275 2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1276
1277         * config/c4x/c4x.md (return_indirect_internal): New.
1278         * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
1279
1280 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1281
1282         * c-common.c (time_char_table): Mark up formats added in C99 and
1283         make other corrections.  %D and %g were added in C99.  %Og is an
1284         extension.  %EX is permitted.  %R, %T, %n, %r, %t were added in
1285         C99.  %e was added in C99.  %Oj is an extension.  %G and %z are in
1286         C99 rather than GNU extensions, but %OG and %Oz are extensions.
1287         %h was added in C99.  %C was added in C99.  %OY and %OC are
1288         extensions.  Add the C99 format %F.
1289         (check_format_info): If pedantic and not in C99 mode, warn for C99
1290         formats, %E and %O.
1291
1292 Fri Aug  4 23:01:58 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1293
1294         * function.c (schedule_fixup_var_refs): New function, broken out
1295         of put_reg_into_stack.
1296         (put_reg_into_stack): Use it.
1297         (put_var_into_stack): In CONCAT case, fixup up references for
1298         components only after fixing up references to the whole concat.
1299
1300 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
1301
1302         * alias.c (mark_constant_function): Use INSN_P.
1303         (init_alias_analysis): Likewise.
1304         * combine.c (combine_instructions): Use INSN_P.
1305         (can_combine_p): Likewise.
1306         (try_combine): Likewise.
1307         (distribute_notes): Likewise.
1308         (distribute_links): Likewise.
1309         * cse.c (cse_around_loop): Use INSN_P.
1310         (invalidate_skipped_block): Likewise.
1311         (cse_set_around_loop): Likewise.
1312         (cse_end_of_basic_block): Likewise.
1313         (delete_trivially_dead_insns): Likewise.
1314         * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
1315         (unshare_all_rtl_1): Likewise.
1316         (next_cc0_user): Likewise.
1317         (try_split make_insn_raw): Likewise.
1318         (remove_unnecessary_notes): Likewise.
1319         * final.c (shorten_branches): Use INSN_P.
1320         (leaf_renumber_regs): Likewise.
1321         (leaf_renumber_regs_insn): Likewise.
1322         * flow.c (find_label_refs): Use INSN_P.
1323         (verify_wide_reg): Likewise.
1324         (notice_stack_pointer_modification): Likewise.
1325         (count_or_remove_death_notes): Likewise.
1326         (verify_flow_info): Likewise.
1327         (clear_log_links): Likewise.
1328         * function.c (fixup_var_refs_insns): Use INSN_P.
1329         (compute_insns_for_mem): Likewise.
1330         * gcse.c (alloc_gcse_mem): Use INSN_P.
1331         (compute_sets): Likewise.
1332         (compute_hash_table): Likewise.
1333         (classic_gcse): Likewise.
1334         (cprop): Likewise.
1335         (insert_insn_end_bb): Likewise.
1336         (delete_null_pointer_checks_1): Likewise.
1337         * global.c (expand_preferences): Use INSN_P.
1338         (build_insn_chain): Likewise.
1339         * graph.c (node_data): Use INSN_P.
1340         * haifa-sched.c (priority): Use INSN_P.
1341         (rm_line_notes): Likewise.
1342         (rm_other_notes): Likewise.
1343         (find_insn_reg_weight): Likewise.
1344         (init_target_units): Likewise.
1345         (schedule_block): Likewise.
1346         (compute_block_forward_dependences): Likewise.
1347         (debug_dependencies): Likewise.
1348         (set_priorities): Likewise.
1349         * integrate.c (function_cannot_inline_p): Use INSN_P.
1350         (save_parm_insns): Likewise.
1351         (copy_insn_list): Likewise.
1352         * jump.c (mark_all_labels): Use INSN_P.
1353         (never_reached_warning): Likewise.
1354         * lcm.c (optimize_mode_switching): Use INSN_P.
1355         * local-alloc.c (validate_equiv_mem): Use INSN_P.
1356         (memref_used_between_p): Likewise.
1357         (update_equiv_regs): Likewise.
1358         (block_alloc): Likewise.
1359         (no_conflict_p): Likewise.
1360         * loop.c (scan_loop): Use INSN_P.
1361         (find_and_verify_loops): Likewise.
1362         (count_loop_regs_set): Likewise.
1363         (loop_reg_used_before_p): Likewise.
1364         (strength_reduce): Likewise.
1365         (recombine_givs): Likewise.
1366         (check_dbra_loop): Likewise.
1367         (load_mems): Likewise.
1368         (try_copy_prop): Likewise.
1369         * print-rtl.c (print_rtx): Use INSN_P.
1370         * recog.c (find_single_use): Use INSN_P.
1371         * reg-stack.c (stack_regs_mentioned): Use INSN_P.
1372         (next_flags_user): Likewise.
1373         (swap_rtx_condition): Likewise.
1374         * regmove.c (mark_flags_life_zones): Use INSN_P.
1375         (optimize_reg_copy_1): Likewise.
1376         (optimize_reg_copy_2): Likewise.
1377         (optimize_reg_copy_3): Likewise.
1378         (reg_is_remote_constant_p): Likewise.
1379         (fixup_match_2): Likewise.
1380         (regmove_optimize): Likewise.
1381         (fixup_match_1): Likewise.
1382         * regrename.c (build_def_use): Use INSN_P.
1383         (replace_reg_in_block): Likewise.
1384         (consider_use): Likewise.
1385         * reload.c (find_equiv_reg): Use INSN_P.
1386         * reload1.c (reload): Use INSN_P.
1387         (maybe_fix_stack_asms): Likewise.
1388         (calculate_needs_all_insns): Likewise.
1389         (reload_as_needed): Likewise.
1390         (emit_output_reload_insns): Likewise.
1391         (delete_address_reloads_1): Likewise.
1392         (reload_cse_regs_1): Likewise.
1393         (reload_combine): Likewise.
1394         (reload_cse_move2add): Likewise.
1395         * reorg.c (redundant_insn): Use INSN_P.
1396         (dbr_schedule): Likewise.
1397         * resource.c (find_dead_or_set_registers): Use INSN_P.
1398         (mark_target_live_regs): Likewise.
1399         * rtlanal.c (reg_used_between_p): Use INSN_P.
1400         (reg_referenced_between_p): Likewise.
1401         (reg_set_between_p): Likewise.
1402         (reg_set_p): Likewise.
1403         (single_set): Likewise.
1404         (multiple_sets): Likewise.
1405         (find_last_value): Likewise.
1406         (reg_set_last): Likewise.
1407         (find_reg_note): Likewise.
1408         (find_regno_note): Likewise.
1409         * sibcall.c (sequence_uses_addressof): Use INSN_P.
1410         * simplify-rtx.c (cselib_process_insn): Use INSN_P.
1411         * ssa.c (find_evaluations): Use INSN_P.
1412         (rename_block): Likewise.
1413         (rename_equivalent_regs): Likewise.
1414         * unroll.c (loop_find_equiv_value): Use INSN_P.
1415         (set_dominates_use): Likewise.
1416         * varasm.c (mark_constant_pool): Use INSN_P.
1417         (mark_constants): Likewise.
1418         * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
1419         (alphaev4_next_group): Likewise.
1420         (alphaev5_next_group): Likewise.
1421         * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
1422         (c4x_rptb_rpts_p): Likewise.
1423         * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
1424         * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
1425         (rs6000_adjust_priority): Likewise.
1426         * config/sh/sh.c (sh_loop_align): Use INSN_P.
1427         (machine_dependent_reorg): Likewise.
1428         (split_branches): Likewise.
1429         * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
1430
1431 Fri Aug  4 11:43:49 2000  John Wehle  (john@feith.com)
1432
1433         * combine.c (recog_for_combine): Remove the old notes
1434         prior to attempting to recognize the new pattern.
1435         (distribute_notes): Ignore REG_NONNEG notes.
1436
1437 2000-08-04  Chandrakala Chavva  <cchavva@redhat.com>
1438
1439         * varasm.c (output_constructor): Add .align 0 for packed vars.
1440
1441 2000-08-04  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1442
1443         * configure.in: Use default thread_file even when enable_threads is
1444         yes or dce because hpux10.20 pa port uses MULTILIB implementation.
1445         * configure: Rebuilt.
1446
1447         * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
1448
1449 2000-08-04  Donn Terry (donnte@microsoft.com)
1450
1451         * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
1452
1453 2000-08-04  Mark Elbrecht  <snowball3@bigfoot.com>
1454
1455         * i386/x-djgpp: Delete code that conditionally modifies target_alias.
1456         Delete code that conditionally modifies 'version'.
1457         Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
1458         * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
1459         * gcc.c (main): Use it.
1460         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
1461         * prefix.c (update_path): Use it.
1462         * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
1463         (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
1464         (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
1465         code.
1466         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
1467         (SUBTARGET_SWITCHES): Adjust.
1468         (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
1469         defining.
1470         (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
1471
1472 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1473
1474         * c-common.h (flag_isoc94): Declare.
1475         * c-decl.c (flag_isoc94): Define.
1476         (c_decode_option): Set flag_isoc94 as appropriate.
1477         * c-common.c (T_PD, T_IM, T_UIM): Define.
1478         (format_char_info): Add tlen and jlen.
1479         (print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
1480         %F.  Allow %lf.
1481         (scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
1482         %l[.
1483         (time_char_table): Add NULL entries for %t and %j.
1484         (check_format_info): Allow for %t and %j.  Warn for %F if pedantic
1485         and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
1486         Warn for printf %lf if pedantic and not C99.  Don't warn for empty
1487         precision.  Allow precision argument to be unsigned int.  If
1488         pedantic, warn for %p passed an argument not a pointer to possibly
1489         qualified void or a possibly qualified character type, and for
1490         pointer targets of the wrong sign, except for character pointers.
1491
1492 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1493
1494         * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
1495         * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
1496         (wint_type_node): Define.
1497         * c-decl.c (WINT_TYPE): Define.
1498         (init_decl_processing): Create the wint_type_node type.
1499         * c-common.c (T_WI): Define.
1500         (print_char_table): Use T_WI for %lc format.
1501
1502 2000-08-04  Bruce Korb  <bkorb@gnu.org>
1503
1504         * fixinc/:  Verified that the MSDOS patch does not break
1505         the UNIX functionality and applied the next three patches
1506         from July:
1507
1508 2000-07-28  Eli Zaretskii  <eliz@is.elta.co.il>
1509
1510         * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
1511         output file with the temporary one by appending ".X" to generate
1512         the temporary fuile's name.  If the output file already has an
1513         extension, replace it with ".X".
1514
1515         * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
1516         not $DESTDIR, to find applyfix.  Use sprintf instead of snprintf;
1517         reallocate the command buffer while copying the command-line
1518         argument.  Redirect the output directly to the temporary file,
1519         instead of going through another temporary file.
1520         (process): Close the temporary file before unlinking it.
1521         (machine_matches) [__MSDOS__]: If the machine doesn't match, set
1522         the FD_SKIP_TEST flag.  Pay attention to the FD_MACH_IFNOT flag.
1523         (run_compiles): Pass p_fixd argument to machine_matches, as it
1524         expects.
1525
1526         * fixinc/fixincl.sh: Export ORIGDIR.  If $DJDIR is set in the
1527         environment, assume there are no symlinks in the include
1528         directory.  When cleaning up the DONE files, look for them
1529         case-insensitively.  Don't try to remove symlinks if they aren't
1530         there.
1531
1532         * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
1533         all callers changed.  Declare pz "const char *", to avoid compiler
1534         warnings.
1535
1536         * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
1537         Change prototype of make_raw_shell_str.
1538
1539 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
1540
1541         * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
1542         (initialize) [__MSDOS__]: Use tempnam.
1543         (initialize): Don't use SIGPIPE if it is not defined.
1544
1545         * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
1546         return stdout.
1547
1548 2000-07-25  Bruce Korb  <bkorb@gnu.org>
1549
1550         * fixinc/fix*.[ch]: substantially reworked to make it possible
1551         to run this program without using fork(2) or pipe(2) (i.e. in
1552         a DOS environment).
1553
1554 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1555
1556         * cppdefault.h (WINT_TYPE): Define.
1557         * cppinit.c (builtin_array): Define __WINT_TYPE__.
1558         * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
1559         * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
1560
1561 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
1562
1563         * (mips_legitimate_address_p): Don't allow register+offset              
1564         if the offset is large and negative, and we are compiling               
1565         for 64 bit registers.                                                   
1566
1567 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1568
1569         * gencodes.c (main): Define CODE_FOR_nothing as the last possible
1570         insn_code_number + 1.
1571
1572 2000-08-04  Kazu Hirata  <kazu@hxi.com>
1573
1574         * h8300.c (function_prologue): Rearrange code for conciseness.
1575         (function_epilogue): Likewise.
1576         * h8300.h (OK_FOR_U): Fix formatting.
1577
1578         * cse.c: Fix a comment typo. Fix formatting.
1579
1580 2000-08-03  Richard Henderson  <rth@cygnus.com>
1581
1582         * config/i386/i386.md (return_indirect_internal): New.
1583         * config/i386/i386.c (ix86_expand_epilogue): Use it.
1584
1585 2000-08-03  Zack Weinberg  <zack@wolery.cumb.org>
1586
1587         * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
1588         before the name.
1589         (lex_line): Glue @ onto the beginning of identifiers and
1590         string constants, in Objective-C mode.
1591         (output_token, spell_token): Handle CPP_OSTRING.
1592         (can_paste, maybe_paste_with_next): Handle pasting @ onto the
1593         beginning of a NAME or a STRING, in objc mode.
1594
1595         * cpplib.c (get_define_node): Do not permit identifiers that
1596         begin with @ to be #defined.
1597         * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
1598         * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
1599
1600         * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
1601         * c-tree.h (build_objc_string): Delete prototype.
1602         * objc/objc-tree.def: Delete OBJC_STRING_CST.
1603         * c-lex.c (yylex): Use build_string for all three kinds of strings.
1604
1605         * c-parse.in, objc/objc-act.c: Update commentary.
1606
1607 2000-08-03  Mark Mitchell  <mark@codesourcery.com>
1608
1609         * extend.texi: Fix typo in last change.
1610
1611         * extend.texi: Add commentary on statement-expressions and their
1612         interactions with C++.
1613
1614 2000-08-03  Nick Clifton  <nickc@cygnus.com>
1615
1616         * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
1617         * dwarf.h (LANG_JAVA): Change value to 0x000b.
1618
1619 2000-08-03  Anthony Green  <green@cygnus.com>
1620
1621         * dwarf2out.c (gen_compile_unit_die): Add java language support.
1622         (add_bound_info): Check for java language.
1623         (is_java): New function.
1624         * dwarfout.c (output_compile_unit_die): Ditto.
1625         * dwarf.h (dwarf_source_language): Add java source language type.
1626         * dwarf2.h (dwarf_source_language): Ditto.
1627
1628 Thu Aug  3 20:32:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1629
1630         * reg-stack.c (subst_stack_regs_pat):  Use replace_reg to swap
1631         operands.
1632
1633         * i386.c (ix86_expand_branch): Mode of comparison in
1634         IF_THEN_ELSE is VOIDmode.
1635
1636 Thu Aug  3 10:05:53 2000  Akiko Matsushita <matusita@sra.co.jp>
1637
1638         * gengenrtl.c, rtl.c: Avoid #elif.
1639
1640 2000-08-03  Michael Poole  <poole@troilus.org>
1641
1642         * tm.texi (Register Classes): Clarify order of sub-initializers
1643         in REG_CLASS_CONTENTS.
1644
1645 Thu Aug  3 15:53:03 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1646
1647         From SAITOH Masanobu:
1648         * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
1649
1650 2000-08-03  David Billinghurst  <David.Billinghurst@riotinto.com.au>
1651
1652         * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
1653         is not supported by tradcpp and isn't actually needed for cygwin.
1654
1655 2000-08-03  Kazu Hirata  <kazu@hxi.com>
1656
1657         * h8300.c: Fix a comment typo.
1658         * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
1659
1660         * jump.c: Fix formatting.
1661
1662         * toplev.c: Fix formatting.
1663
1664 Thu Aug  3 01:05:32 2000  Jeffrey A Law  (law@cygnus.com)
1665
1666         * flow.c (find_auto_inc): Verify that we've got a REG before
1667         peeking at its regno.  Fail, don't abort if we can't find
1668         the increment of the desired register.
1669
1670         * pa.md (shadd height reduction patterns/splitters): Remove.
1671
1672 2000-08-02  Jim Wilson  <wilson@cygnus.com>
1673
1674         * config/ia64/ia64-protos.h (flag_ssa): Declare.
1675         * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
1676
1677 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
1678
1679         * dce.c: Remove all uses of assert.
1680         * dwarf2out.c: Likewise.
1681         * dwarfout.c: Likewise.
1682         * ssa.c: Likewise.
1683
1684 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
1685
1686         * gcc.h (lang_specific_driver): Constify second argument.
1687         * gcc.c (translate_options, process_command, main): Likewise.
1688         Constify variables to match.  Cast second argument to
1689         pexecute.
1690
1691         * cppspec.c, gccspec.c: Adjust type of second argument to
1692         lang_specific_driver, and update code as necessary.
1693
1694 2000-08-02  Jakub Jelinek  <jakub@redhat.com>
1695
1696         * loop.c (scan_loop): Ensure update_end label does not
1697         go away until reg_scan_update is run.
1698
1699 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
1700
1701         * c-common.h: Prototype min_precision and c_build_qualified_type here...
1702         * c-tree.h: ... not here.
1703         * errors.h: Prototype fancy_abort.
1704
1705         * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
1706         HOST_BITS_PER_WIDE_INT == 64 ifdef block.
1707         * regrename.c (regrename_optimize): Make control flow explicit.
1708         (replace_reg_in_block): Initialize reg_use to 0.
1709
1710         * i386.c (legitimate_address_p): Rename error label to
1711         report_error to avoid namespace clash.
1712
1713 2000-08-02  Kazu Hirata  <kazu@hxi.com>
1714
1715         * fold-const.c: Fix formatting.
1716
1717 Wed Aug  2 16:26:15 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1718
1719         * i386.c (legitimate_address_p): Accept other bases than
1720         pic_offset_table_rtx for GOTOFF constructs.
1721
1722 Wed Aug  2 15:59:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1723
1724         * i386.md (shift to lea splitter): Use const_int_operand.
1725
1726 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
1727
1728         * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
1729         cppspec.c: Do not use 'legal' or 'illegal' in error messages
1730         and comments.
1731
1732         * cppmain.c (cb_define, cb_undef): Don't generate any output
1733         if not done_initializing.
1734         * cpplex.c (maybe_paste_with_next): When the token after a ##
1735         is an omitted rest argument, only delete the token before it
1736         if that token is a comma.  Do not warn about bogus token
1737         pastes for , ## rest_arg.
1738
1739         * cpp.texi: Update.
1740         * cpp.1: Regenerate.
1741
1742 2000-08-02  Fred Fish  <fnf@be.com>
1743
1744         * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
1745         when user gives -p option.  Add init_term_dyn.o for BeOS 5.0
1746         and later.
1747
1748         * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
1749         Be directories to search path.
1750
1751         Remove support for __declspec(dllimport) and __declspec(dllexport).
1752         This is leftover cruft from the earlier BeOS gcc port when BeOS
1753         used Microsoft's PE object file format.
1754         * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
1755         * config/i386/t-beos (winnt.o): Remove Makefile frag.
1756         * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
1757         (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1758         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1759         (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
1760         (REDO_SECTION_INFO_P): Remove.
1761         (ASM_EXPORT_DECL): Remove.
1762         (ASM_DECLARE_FUNCTION_NAME): Remove.
1763         (ASM_DECLARE_OBJECT_NAME): Remove.
1764         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
1765         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
1766         (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
1767         (STRIP_NAME_ENCODING): Remove.
1768
1769         Remove support for obsolete version of BeOS that is no longer
1770         supported by Be.
1771         * configure.in (i*86-*-beospe*): Remove.
1772         * config/i386/beos-pe.h: Remove.
1773
1774 2000-08-01  Jeffrey Oldham  <oldham@codesourcery.com>
1775             Mark Mitchell <mark@codesourcery.com>
1776
1777         * Makefile.in (OBJS): Added dce.o.
1778         (ssa.o): Updated target to include ssa.h.
1779         (flow.o): Likewise.
1780         (toplev.o): Likewise.
1781         (dce.o): Created target.
1782         * basic-block.h: Added comments.
1783         (INVALID_BLOCK): Added definition.
1784         (connect_infinite_loops_to_exit): Added declaration.
1785         Moved SSA declarations to ssa.h.
1786         * flow.c: Added inclusion of ssa.h.
1787         (struct depth_first_search_dsS, depth_first_search_ds):
1788         Added definitions.
1789         (compute_immediate_postdominators): Added definition.
1790         (connect_infinite_loops_to_exit): Likewise.
1791         (flow_dfs_compute_reverse_init): Likewise.
1792         (flow_dfs_compute_reverse_add_bb): Likewise.
1793         (flow_dfs_compute_reverse_execute): Likewise.
1794         (flow_dfs_compute_reverse_finish): Likewise.
1795         * rtl.h (rtx/in_struct): Added use to determine insn necessity.
1796         (LABEL_P): Added definition.
1797         (JUMP_P): Likewise.
1798         (NOTE_P): Likewise.
1799         (BARRIER_P): Likewise.
1800         (JUMP_TABLE_DATA_P): Likewise.
1801         (INSN_DEAD_CODE_P): Likewise.
1802         * ssa.c: Replaced inclusions with ssa.h inclusion.
1803         (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
1804         (rename_registers): Removed unnecessary variables.
1805         * ssa.h: Created by moving declarations from ssa.c and
1806         basic-block.h.
1807         * timevar.def: Defined TV_DEAD_CODE_ELIM.
1808         * toplev.c: Added ssa.h inclusion.
1809         (dump_file_index): Added DFI_dce.
1810         (dump_file): Added "dce" entry.
1811         Defined flag_ssa.
1812         (f_options): Added dce entry.
1813         * invoke.texi: Document -fdce.  Emphasize experimental status of
1814         -fssa.
1815         * dce.c: New file.
1816
1817 2000-08-01  Zack Weinberg  <zack@wolery.cumb.org>
1818
1819         * cpperror.c (v_message): Split into _cpp_begin_message and
1820         v_message macro.  All callers updated.
1821         (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
1822         checks here.
1823
1824         * cppfiles.c (cpp_syshdr_flags): New function.
1825         (read_include_file): Don't call cpp_output_tokens.  Call
1826         enter_file hook.
1827         * cppinit.c (dump_macros_helper): Moved to cppmain.c.
1828         (cpp_reader_init): Don't initialize token_buffer.  Call
1829         _cpp_init_internal_pragmas.
1830         (cpp_cleanup): Don't clear token_buffer.
1831         (cpp_start_read): Don't worry about output from -D processing.
1832         Don't call cpp_output_tokens.
1833         (cpp_finish): Don't dump macros here.  Don't call
1834         cpp_output_tokens.
1835         * cppmacro.c (_cpp_dump_definition): Rename
1836         cpp_dump_definition.  Write directly to a FILE *.
1837         (dump_funlike_macro): Delete.
1838         (dump_macro_args): New.
1839
1840         * cpplex.c (TOKEN_LEN): Convert to inline function.
1841         (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
1842         cpp_scan_line, _cpp_dump_list): Delete.
1843         (cpp_printf, cpp_output_list): New.
1844         (output_line_command): Don't worry about entering or leaving files.
1845         (cpp_scan_buffer): Just output each token as we hit it.
1846         (process_directive): Don't call cpp_output_tokens.
1847         (_cpp_glue_header_name): Don't use token_buffer.
1848         (output_token, dump_param_spelling): Write directly to a FILE *.
1849
1850         * cpplib.c (pass_thru_directive, dump_macro_name,
1851         pragma_dispatch, do_pragma_gcc): Delete.
1852         (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
1853         do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
1854         functions.
1855         (do_error, do_warning, pragma_dependency): Call
1856         _cpp_begin_message, then cpp_output_list.
1857         (cpp_register_pragma, cpp_register_pragma_space,
1858         _cpp_init_internal_pragmas): New.
1859         (do_pragma): Walk the pragmas table here.
1860         (do_pragma_once, do_pragma_poison, do_pragma_system_header,
1861         do_pragma_dependency): Return void.
1862         (do_pragma_implementation): Moved to cppmain.c.
1863
1864         * cpplib.h: Update prototypes.
1865          (struct cpp_reader): Remove printer, token_buffer,
1866         token_buffer_size, and limit.  Add struct cb, and pragmas.
1867         (struct cpp_printer): Remove last_id and written.
1868         (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
1869         CPP_ADJUST_WRITTEN): Delete.
1870         * cpphash.h: Update prototypes.
1871         (ufputs): New wrapper.
1872
1873         * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
1874         cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
1875         (main): Set up callbacks.  Register #pragma implementation.
1876         Dump macros from here.
1877
1878 2000-08-01  Geoff Keating  <geoffk@cygnus.com>
1879
1880         * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
1881         * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
1882         * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
1883         insns if they have a REG_MAYBE_DEAD note attached.
1884         * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
1885         (rs6000_emit_load_toc_table): TOC loads may go dead.
1886
1887 2000-08-01  Jim Wilson  <wilson@cygnus.com>
1888
1889         * config/ia64/ia64.c (ia64_function_arg): Fix last change.  Verify
1890         type exists before using it.  Use number of words as alignment
1891         otherwise.
1892         (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
1893         ia64_va_arg): Propagate ia64_function_args changes here.
1894
1895 2000-08-01  Richard Henderson  <rth@cygnus.com>
1896
1897         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
1898         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1899
1900 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
1901
1902         From Joern Rennecke:
1903         * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
1904         * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
1905         unless TARGET_SH3E is set.
1906         * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
1907
1908         * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
1909         (ashlsi3_std): New pattern.
1910         (ashlsi3 expander): Use it for TARGET_SH3.
1911         * sh.c (gen_ashift): Use it instead of ashlsi3_k.
1912
1913 Tue Aug  1 12:34:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1914
1915         * loop.c (canonicalize_condition):  Use destination, not source to
1916         determine SET's mode.
1917
1918 2000-07-31  Mark Mitchell  <mark@codesourcery.com>
1919
1920         * flow.c (clear_log_links): Fix typo.
1921
1922 Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
1923
1924         * loop.c (check_dbra_loop): Make change from July 17, 2000 work
1925         on targets which need more than one insn for a compare/cbranch
1926         operation.
1927
1928 2000-07-31  Jim Wilson  <wilson@cygnus.com>
1929
1930         * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
1931         when computing offset.
1932
1933 Mon Jul 31 20:35:50 2000  Denis Chertykov  <denisc@overta.ru>
1934
1935         * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
1936
1937 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
1938
1939         * flow.c (clear_log_links): Nuke global_live_at_start and
1940         global_live_at_end data, since if the log_links stuff is invalid
1941         so is global_live_at_*.
1942
1943 2000-07-31  Richard Henderson  <rth@cygnus.com>
1944
1945         * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
1946
1947 2000-07-31  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
1950         (_cpp_get_token): Don't macro expand a just pasted token if it
1951         was pasted at no_expand_level.
1952
1953 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
1954
1955         * cppmacro.c (find_param, count_params, save_expansion):
1956         Permit 'defined' as a macro parameter name.
1957
1958 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
1959
1960         * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
1961         xcpp to cpp throughout.
1962         (native): Remove unnecessary dependency on cpp.
1963
1964         * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
1965         tradcpp to tradcpp0.
1966         (.i spec): Add missing output-file spec to cc1 command line.
1967         * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
1968
1969 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
1970
1971         * c-decl.c (mesg_implicit_function_declaration): Init to -1.
1972         (implicit_decl_warning): New function.
1973         (implicitly_declare): Use it.
1974         * c-typeck.c (build_external_ref): Use implicit_decl_warning
1975         to complain about implicit decls of builtins.
1976
1977         * c-lang.c (lang_init): Set mesg_implicit_function_declaration
1978         based on pedantic && flag_isoc99, if not already set.
1979         * c-tree.h: Declare mesg_implicit_function_declaration.
1980         Prototype implicit_decl_warning.
1981
1982 2000-07-30  Jeffrey D. Oldham  <oldham@codesourcery.com>
1983
1984         * Makefile.in (ssa.o): Updated header files in dependences.
1985         * basic-block.h: Added compute_immediate_postdominators declaration.
1986         * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
1987         definition.
1988         * flow.c (compute_immediate_dominators): Updated comment.
1989         (compute_immediate_postdominators): Added definition.
1990         * rtl.h (HARD_REGISTER_P): Added definition.
1991         * ssa.c: Include additional header files.
1992         (assert): Added definition.
1993         (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
1994         include select hard registers.
1995         (ssa_rename_to_insert): Likewise.
1996         (ssa_rename_from_initialize): Likewise.
1997         (ssa_rename_from_lookup): Likewise.
1998         (original_register): Likewise.
1999         (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
2000         include select hard reigsters.
2001         (ssa_rename_from_traverse): Likewise.
2002         (ssa_rename_from_free): Likewise.
2003         (ssa_rename_from_print): Likewise.
2004         (ssa_rename_from_print_1): Likewise.
2005         (ssa_rename_from_hash_function): Likewise.
2006         (ssa_rename_from_equal): Likewise.
2007         (ssa_rename_from_delete): Likewise.
2008         (simplify_to_immediate_dominators): Removed in favor of
2009         flow.c:compute_immediate_dominators.
2010         (find_evaluations_1): Modified to work with hard registers.
2011         (insert_phi_node): Likewise.
2012         (insert_phi_nodes): Likewise.
2013         (struct rename_set_data): Updated prev_reg comment.
2014         (create_delayed_rename): Modified to work with hard registers.
2015         (RENAME_NO_RTX): Updated comment.
2016         (apply_delayed_renames): Modified to work with hard registers.
2017         (rename_insn_1): Likewise and added handling of CLOBBER rtls.
2018         (rename_block): Updated to use revised ssa_rename_to interface.
2019         (rename_registers): Updated to use revised ssa_rename_to and
2020         ssa_rename_from interface.
2021         (convert_to_ssa): Revised to use compute_immediate_dominators and
2022         deal with hard registers.
2023         (make_regs_equivalent_over_bad_edges): Modified to work with hard
2024         registers.  Added check for illegal unification of hard register.
2025         (make_equivalent_phi_alternatives_equivalent): Modified to work
2026         with hard registers.
2027         (compute_conservative_reg_partition): Likewise.
2028         (coalesce_if_unconflicting): Modified to work with hard registers
2029         and check for conflicting hard registers.
2030         (mark_phi_and_copy_regs): Revised loop to work only on pseudo
2031         registers.
2032         (rename_equivalent_regs_in_insn): Modified to work with hard
2033         registers.
2034         (record_canonical_element_1): Added definition.
2035         (check_hard_regs_in_partition): Added definition.
2036         (convert_from_ssa): Added data structure deallocation and check
2037         for illegal hard register unification.
2038         (conflict_hard_regs_p): Added definition.
2039         * toplev.c (rest_of_compilation): Added comment.
2040
2041 2000-07-31  Anthony Green  <green@redhat.com>
2042
2043         * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
2044
2045 2000-07-31  Jason McMullan  <jmcmullan@linuxcare.com>
2046
2047         * builtins.c (expand_builtin_apply): Don't defer pop during
2048         argument setup.
2049
2050 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2051
2052         * calls.c (combine_pending_stack_adjustment_and_call): Only use
2053         preferred_unit_stack_boundary when it is > 1.
2054
2055 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
2056
2057         * c-common.c (init_function_format_info): Add C99 format functions
2058         in C99 mode.
2059
2060         * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
2061         void' or 'register void' as being the special case of 'void' alone
2062         in a parameter list.
2063
2064         * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
2065         discarding qualifiers into a plain warning.
2066
2067 2000-07-31  Kazu Hirata  <kazu@hxi.com>
2068
2069         * combine.c: Fix formatting.
2070
2071         * h8300.md: Fix formatting.
2072
2073         * local-alloc.c: Fix formatting.
2074
2075         * h8300.c (get_shift_alg): Remove the variable alg.
2076         (emit_a_shift): Rearrange code to improve readability.
2077
2078         * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
2079
2080         * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
2081         HImode on all architectures and a combination of HImode and SImode
2082         on H8/300H and H8/S.
2083
2084         * h8300.c (split_adds_subs): Rearrange code for conciseness.
2085
2086 Mon Jul 31 12:27:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2087
2088         * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
2089         in my last checkin.
2090
2091 Mon Jul 31 10:41:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2092
2093         * recog.c (extract_insn): Set operand_mode according to
2094         operand if match_operand is VOIDmode.
2095
2096 Mon Jul 31 10:36:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2097
2098         * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
2099
2100 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
2101
2102         * c-parse.in (extdefs): Call ggc_collect between external
2103         definitions.
2104
2105 2000-07-30  Michael Hayes  <mhayes@cygnus.com>
2106             Richard Henderson  <rth@cygnus.com>
2107
2108         * Makefile.in (OBJS): Add doloop.o.
2109         * doloop.c: New file.
2110
2111         * final.c (insn_current_reference_address): Return 0 before final.
2112         * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
2113         * jump.c (any_uncondjump_p): Likewise.
2114         * loop.c (indirect_jump_in_function): Make static.
2115         (strength_reduce): Call doloop_optimize.
2116         (insert_bct, instrument_loop_bct): Remove.
2117         * loop.h (doloop_optimize): Prototype.
2118         * recog.c (split_all_insns): Split all INSN_P.
2119         * toplev.c (flag_branch_on_count_reg): Default on.
2120
2121         * config/c4x/c4x.c (c4x_optimization_options): Don't set
2122         flag_branch_on_count_reg.
2123         * config/i386/i386.c (override_options): Likewise.
2124         * config/rs6000/rs6000.c (optimization_options): Likewise.
2125
2126         * config/i386/i386.md (decrement_and_branch_on_count): Remove.
2127         (doloop_end): New.
2128         (dbra_ge): Remove, as well as all it's splitters.
2129
2130         * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
2131         (doloop_end): New.
2132
2133         * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
2134         (ia64_register_move_cost): Declare.
2135         * config/ia64/ia64.c (ar_lc_reg_operand): New.
2136         (struct ia64_frame_info): Add ar_size.
2137         (ia64_compute_frame_size): Set it.
2138         (save_restore_insns): Save and restore ar.lc.
2139         (ia64_register_move_cost): New, moved from header file.  Handle
2140         application registers.
2141         (REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
2142         (emit_insn_group_barriers): Special case doloop_end_internal.
2143         (ia64_epilogue_uses): Mark ar.lc live at end.
2144         * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
2145         (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
2146         (FIRST_PSEUDO_REGISTER): Make room.
2147         (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
2148         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
2149         (REG_ALLOC_ORDER): Update.
2150         (HARD_REGNO_MODE_OK): Update.
2151         (REGISTER_NAMES): Update.
2152         (enum reg_class): Add AR_M_REGS and AR_I_REGS.
2153         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
2154         (REGNO_REG_CLASS): Update.
2155         (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
2156         (REGISTER_MOVE_COST): Move out of line.
2157         (PREDICATE_CODES): Update.
2158         * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
2159         (addsi3_plus1_alt, adddi3_plus1_alt): New.
2160         (shladd_elim splitter): Allow constants in the predicate.
2161         (doloop_end, doloop_end_internal): New.
2162
2163 2000-07-30  Richard Henderson  <rth@cygnus.com>
2164
2165         * genattrtab.c (struct insn_def): Add lineno member.
2166         (struct insn_ent): Likewise.
2167         (struct attr_desc): Likewise.
2168         (struct delay_desc): Likewise.
2169         (struct function_unit_op): Likewise.
2170         (struct function_unit): Likewise.
2171         (check_attr_value): Use message_with_line.
2172         (check_defs): Likewise.
2173         (expand_units): Likewise.
2174         (check_attr_test): Take a lineno argument.
2175         (gen_attr): Likewise.
2176         (gen_insn): Likewise.
2177         (gen_delay): Likewise.
2178         (gen_unit): Likewise.
2179         (main): Give it to them.
2180         (convert_set_attr_alternative): Take an insn_def argument
2181         instead of num_alt and insn_index.
2182         (convert_set_attr): Likewise.
2183         (write_test_expr): Protect INSN_ADDRESSES load
2184         with INSN_ADDRESSES_SET_P.
2185
2186 2000-07-30  Richard Henderson  <rth@cygnus.com>
2187
2188         * flow.c (init_propagate_block_info): Use pc_set.
2189
2190 Sun Jul 30 20:58:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2191
2192         * i386.md (*lea_general_[123]) New insns and splits.
2193         (addsi3 to lea splitter): Handle other modes too.
2194         (shlsi3 to lea splitter): Likewise.
2195         (addhi_1_lea, shlhi_1_lea): New patterns.
2196         (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
2197
2198 Sun Jul 30 20:51:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2199
2200         * recog.c (general_operand, nonimmediate_operand): Accept
2201         any mode for VOIDmode CONSTANT_P operands.
2202
2203 Sun Jul 30 20:42:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2204
2205         * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
2206         instead of replace_rtx.
2207         * recog.c (validate_replace_rtx_subexp): New function.
2208         * recog.h (validate_replace_rtx_subexp): Declare.
2209
2210 Sun Jul 30 20:38:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2211
2212         * combine.c (simplify_set, make_extraction, make_compound_operation
2213         make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
2214         as force_to_mode argument.
2215
2216 Sun Jul 30 20:30:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2217
2218         * combine.c (if_then_else_cond): Be sure that mode fits in
2219         HOST_WIDE_INT.
2220
2221 Sun Jul 30 20:27:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2222
2223         * combine.c (record_promoted_value):  Allow bitsize of mode
2224         to be equivalent to HOST_BITS_PER_WISE_INT.
2225
2226 Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2227
2228         * function.c (assign_stack_local_1, assign_stack_temp_for_type):
2229         Do not call gen_mode_alignment when mode is BLKmode.
2230
2231 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2232
2233         * loop.c (express_from_1): Fix call of simplify_gen_binary.
2234
2235 Sun Jul 30 20:08:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2236
2237         * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
2238         VOIDmode implies both operands to be VOIDmode.
2239         (simplify_ternary_operation): Compute properly the mode of comparison.
2240         * combine.c (combine_simplify_rtx): Likewise.
2241
2242 2000-07-25  Michael Hayes  <mph@paradise.net.nz>
2243
2244         * basic-block.h (struct loops): New field rc_order.
2245         * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
2246         (flow_loops_free): Free rc_order.
2247         (flow_depth_first_order_compute): New parameter rc_order.
2248         (flow_loops_find): Allocate rc_order and swap usage with
2249         dfs_order.
2250
2251 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2252            Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2253
2254         * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
2255         (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
2256         (nodb_call, return_from_epilogue): Likewise.
2257         (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
2258         * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
2259         * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
2260         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
2261         (c4x_valid_type_attribute_p): Likewise.
2262         * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
2263         (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
2264
2265 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2266
2267         * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
2268         and loadhi_big_constant if applicable.
2269         * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
2270         and add new splitter.s
2271
2272 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2273
2274         * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
2275
2276 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2277
2278         * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
2279
2280 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2281
2282         * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
2283
2284 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2285
2286         * config/c4x/libgcc.S (divqf3): Improve accuracy.
2287
2288 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
2289
2290         Put phi nodes after NOTE_INSN_BASIC_BLOCK.
2291         * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
2292         * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
2293         (get_prev_bb_note): Likewise.
2294         (remove_scope_notes): Likewise.
2295         * flow.c (commit_one_edge_insertion): Likewise.
2296         (merge_blocks_nomove): Likewise.
2297         (verify_flow_info): Likewise.
2298         * gcse.c (insert_insn_end_bb): Likewise.
2299         * reg-stack.c (emit_swap_insn): Likewise.
2300         * ssa.c (first_insn_after_basic_block_note): New function.
2301         (insert_phi_node): Use it.
2302         (rename_block): Likewise.
2303         (eliminate_phi): Likewise.
2304         (make_regs_equivalent_over_bad_edges): Likewise.
2305         (make_equivalent_phi_alternatives_equivalent): Likewise.
2306         (for_each_successor_phi): Likewise.
2307         (convert_from_ssa): Modify phi-node deletion algorithm.
2308
2309 2000-07-29  Andreas Jaeger  <aj@suse.de>
2310
2311         * configure.in (mips*-*-linux*): Use mips*el to check for little
2312         endian MIPS, add tmake_file.
2313
2314         * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
2315         (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
2316         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2317
2318 2000-07-28  Richard Henderson  <rth@cygnus.com>
2319
2320         * config/ia64/ia64.c (ia64_print_operand): Fix typos.
2321         Sign extend mode size before negating.
2322
2323 2000-07-28  Richard Henderson  <rth@cygnus.com>
2324
2325         * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
2326
2327 2000-07-28  Bernd Schmidt  <bernds@cygnus.co.uk>
2328
2329         * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
2330         (cse_insn): Likewise.
2331         (addr_affects_sp_p): Likewise.
2332         * expr.c (move_by_pieces): Likewise.
2333         (clear_by_pieces): Likewise.
2334         * gcse.c (oprs_unchanged_p): Likewise.
2335         * haifa-sched.c (sched_analyze_2): Likewise.
2336         * recog.c (offsettable_address_p): Likewise.
2337         * regclass.c (record_address_regs): Likewise.
2338         * reload.c (find_reusable_reload): Likewise.
2339         (push_reload): Likewise.
2340         (operands_match_p): Likewise.
2341         (decompose): Likewise.
2342         (find_reloads_address_1): Likewise.
2343         (find_inc_amount): Likewise.
2344         * reload1.c (elimination_effects): Likewise.
2345         * resource.c (mark_set_resources): Likewise.
2346         * flow.c (attempt_auto_inc): New function; mostly broken out
2347         of find_auto_inc.
2348         (find_auto_inc): Split into two functions and enhanced to
2349         generate POST_MODIFY.
2350         * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
2351         * rtl.h (count_all_occurrences):  Declare.
2352         (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
2353         defined.
2354         * rtlanal.c (count_all_occurrences): New function.
2355         * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
2356         HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
2357
2358         * config/ia64/ia64-protos.h (destination_operand): Declare.
2359         * config/ia64/ia64.c (destination_operand): New function.
2360         (ia64_print_operand): Handle POST_MODIFY.
2361         (rtx_needs_barrier): Likewise.
2362         * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
2363         (HAVE_POST_MODIFY_REG): Define to 1.
2364         (MAX_REGS_PER_ADDRESS): Change to 2.
2365         (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
2366         (LEGITIMATE_ADDRESS_REG): New helper macro.
2367         (LEGITIMATE_ADDRESS_DISP): Likewise.
2368         (PREDICATE_CODES): Add entry for destination_operand.
2369         * config/ia64/ia64.md (all mov patterns): Use destination_operand
2370         predicate for operand 0.
2371
2372 2000-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2373
2374         * dwarf2out.c: Indent #error directive.
2375
2376         * gbl-ctors.h: Fix typo in comment.
2377         (__do_global_ctors): Prototype.
2378
2379         * gcse.c (record_one_set, pre_delete): Remove unused variables.
2380
2381         * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
2382         (print_operand): Initialize variable `t'.
2383
2384 2000-07-27  Aldy Hernandez  <aldyh@redhat.com>
2385
2386         * config/arm/arm.md ("call_value"): removed constraints.
2387         Constraints are ignored in expanders.
2388         (*call_value_reg): split =rf into various constraints.
2389         (*call_value_mem): same
2390         (*call_value_symbol): same
2391         (*sibcall_value_insn): same
2392
2393 2000-07-28  Philipp Thomas  <pthomas@suse.de>
2394
2395         * install.texi (--enable-nls): Change the description of the NLS
2396         related configure options to match the current state.
2397         (--with-included-gettext): Likewise.
2398         (--enable-maintainer-mode): New description added.
2399         * extend.texi (-fstrict-prototype): Add missing '.'.
2400
2401 2000-07-27  Jim Wilson  <wilson@cygnus.com>
2402
2403         * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
2404         DECL_INITIAL (decl) == NULL_TREE.
2405
2406 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
2407
2408         * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
2409         on insn-attr.h with it.
2410         * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
2411         * insn-addr.h: New header.
2412         (insn_addresses_): Renamed from insn_addresses.
2413         (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
2414         INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
2415         INSN_ADDRESSES_NEW): New macros.
2416         * genattrtab.c (write_test_expr): Use new macros.
2417         * final.c (insn_addresses, init_insn_lengths): Likewise.
2418         (align_fuzz, shorten_branches): Likewise.
2419         (final): Likewise.  Do not reject new insns if their addresses
2420         have been added to INSN_ADDRESSES.
2421         * config/arm/arm.c, config/avr/avr.c: Use new macros.
2422         * config/h8300/h8300.c, config/i370/i370.c: Likewise.
2423         * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
2424         * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
2425         * config/sh/sh.c: Likewise.
2426         (output_branchy_insn): Use INSN_ADDRESSES_NEW.
2427
2428         * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
2429
2430 2000-07-27  Andrew Cagney  <cagney@b1.cygnus.com>
2431
2432         * gcc.c (struct prefix_list): Add member priority.
2433         (enum path_prefix_priority): Declare.
2434         (add_prefix): Replace ``first'' with ``priority''.  Append new
2435         entry but keep list in priority order.
2436         (process_command): Update.  Pass PREFIX_PRIORITY_B_OPT or
2437         PREFIX_PRIORITY_LAST to add_prefix.
2438         (process_command): Move include kludge - foo/stageN - to before
2439         foo/include.
2440
2441 2000-07-27  Jason Merrill  <jason@redhat.com>
2442
2443         * dwarf2out.c (gen_typedef_die): Abort if we get identical
2444         TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
2445
2446 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
2447
2448         * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
2449         * tree.h (get_alias_set, lang_get_alias_set): Prototype.
2450
2451 2000-07-27  Joseph S. Myers  <jsm28@cam.ac.uk>
2452
2453         * c-decl.c (finish_function): Don't treat 'main' specially unless
2454         flag_hosted.  In C99 mode, return 0 from 'main' unless
2455         DEFAULT_MAIN_RETURN is otherwise defined.
2456
2457         * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
2458         parameters defaulting to int in an old-style function definition.
2459
2460 2000-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2461
2462         * c-parse.in (string): For -Wtraditional, warn about string
2463         concatenation only once per line.
2464
2465 Thu Jul 27 09:25:17 2000  Akiko Matsushita  <matusita@sra.co.jp>
2466
2467         * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
2468         for HI-UX/WE2 systems.
2469
2470 2000-07-24  Bruce Korb  <bkorb@gnu.org>
2471
2472         * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
2473         defining the __xxx_TYPE__ macros.
2474         * fixincl/fixincl.tpl(gnu_type_map): now obsolete
2475         * fixincl/fixlib.h: don't need to include "tm.h" anymore
2476         * fixincl/inclhack.def(type_map): now obsolete
2477
2478 Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>
2479
2480         * cpp.texi: Append a trailing full-stop to xrefs where needed.
2481
2482 2000-07-26  Dave Pitts  <dpitts@cozx.com>
2483
2484         * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
2485         routine constants.
2486         (mvs_hash_alias): New function.
2487         (mvs_add_alias): Change argument spacing.
2488         (mvs_need_alias): Change aliasing criteria. Added documentation.
2489         (mvs_get_alias): Change to use hashed name. The hashed name prevents
2490         CSECT name collisions.
2491         (mvs_check_alias): Likewise.
2492         (handle_pragma): Change documentation.
2493         * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
2494         mode from SImode to DImode.
2495         (iorhi3): Changed LTORG size for insn.
2496
2497 Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
2498
2499         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
2500         mem if the address is a mode_dependent_address_p.
2501
2502 2000-07-26  Kazu Hirata  <kazu@hxi.com>
2503
2504         * h8300.c (print_operand): Print ":8" when the 'R' operand is
2505         suitable for 8-bit absolute.
2506         * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
2507         (OK_FOR_U): Add a case for the 8-bit constant address on the
2508         H8/300H.
2509
2510 Wed Jul 26 19:26:21 2000  Hans-Peter Nilsson  <hp@axis.com>
2511
2512         * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
2513         && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
2514         ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
2515         lack of implemented alignment.
2516
2517 2000-07-26  Geoffrey Keating  <geoffk@cygnus.com>
2518
2519         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
2520         cross-compiling between 64-bit and 32-bit machines.
2521
2522 2000-07-27  Richard Henderson  <rth@cygnus.com>
2523
2524         * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
2525         (movhicc_astep, movhi_internal_astep): New.
2526         (movsicc_astep, movsi_internal_astep): New.
2527         (movdicc_astep, movdi_internal_astep): New.
2528         (movsfcc_astep, movsf_internal_astep): New.
2529         (movdfcc_astep, movdf_internal_astep): New.
2530         (movxfcc_astep, movxf_internal_astep): New.
2531         (cmovdi_internal_astep, cmovsi_internal_astep): New.
2532         Unify the cmov[ds]i splitters.
2533
2534 2000-07-27  Rodney Brown  <RodneyBrown@pmsc.com>
2535
2536         * real.c (asctoeg): Rename `error' label to unexpected_char_error
2537
2538 2000-07-26  Nick Clifton  <nickc@cygnus.com>
2539
2540         * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
2541         __arm__.  Allow it to be defined by CPP_ISA_SPEC in arm.h
2542
2543         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
2544         well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
2545
2546 2000-07-26  Alexandre Oliva  <aoliva@redhat.com>
2547
2548         * c-decl.c (finish_enum): Convert enumerations that fit in an
2549         `int' to `int'.
2550         (build_enumerator): In pedantic mode, cast to `int' those that
2551         don't.
2552
2553 2000-07-25  Rodney Brown  <RodneyBrown@pmsc.com>
2554
2555         * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
2556
2557 Tue Jul 25 23:08:33 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2558
2559         * sh.md (cmpgtdi_t): Must be split.
2560         (cmpgtdi_t+1): New splitter.
2561
2562 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
2563
2564         * cpplib.c (_cpp_check_directive): Issue -Wtraditional
2565         warnings for indented directives even if we are skipping.
2566
2567 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
2568
2569         * invoke.texi (strict-prototypes): Remove.
2570         * extend.texi (Deprecated Features): Add strict-prototypes.
2571         (Backwards Compatibility): New node.
2572
2573 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * config/i386/i386.md (andsi_1+1): Allow HImode.
2576         (andsi_1+2): Require q_regs_operand.
2577
2578 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
2579
2580         * config/i386/i386.md (call_pop): Check operands[0],
2581         not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
2582         (call): Likewise.
2583         (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
2584         (call_value): Likewise.
2585
2586 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
2587
2588         * toplev.c (pipe_closed): Delete.
2589         (crash_signal): New.  Generate ICE for a fatal signal.
2590         (float_signal): Call crash_signal outside a float-handler
2591         block, not abort.
2592         (main): Install crash_signal as handler for core-dumping signals.
2593
2594 2000-07-25  David Edelsohn  <edelsohn@gnu.org>
2595
2596         * rs6000.c (print_operand, case 'T'): New case.
2597
2598         * rs6000.md (call_indirect_aix32): Convert to expander of
2599         scheduled instructions.
2600         (call_indirect_aix64): Likewise.
2601         (call_value_indirect_aix{32,64}): Likewise.
2602         (call, call_value): Invoke expanders for AIX.  Fall through to
2603         matchers for SysV.
2604         (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
2605         (call_value_indirect_nonlocal_aix{32,64}): New patterns.
2606         (call_nonlocal_aix32): Remove CALL_LONG alternative.  Operand 1
2607         only "g" constraint.
2608         (call_nonlocal_aix64): Likewise.
2609         (call_value_nonlocal_aix{32,64}): Likewise.
2610         (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
2611         operands.
2612         (call_value_nonlocal_sysv): New pattern.
2613         (indirect_jump{si,di}): Use new 'T' modifier.
2614         (tablejump{si,di} matchers): Likewise.
2615         (return_internal_{si,di}): Likewise.
2616         (return_eh_{si,di}): Likewise.
2617
2618 2000-07-24  Richard Henderson  <rth@cygnus.com>
2619
2620         * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
2621         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2622         * config/ia64/ia64.md (movdi_internal): Use it.
2623
2624 2000-07-24  Zack Weinberg  <zack@wolery.cumb.org>
2625
2626         * cppexp.c: Warn about unary + if -Wtraditional.
2627         * cpplex.c (lex_line): Always set BOL on the first token of a line.
2628
2629 2000-07-24  Michael Meissner  <meissner@redhat.com>
2630
2631         * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
2632         unsupported macro.
2633
2634 2000-07-24  Nick Clifton  <nickc@cygnus.com>
2635
2636         * config/arm/arm.c (emit_multi_reg_push): Generate a
2637         REG_FRAME_RELEATED_NOTE that is compatable with the code in
2638         dwarf2out_debug_frame_expr.
2639
2640 2000-07-24  Jason Merrill  <jason@redhat.com>
2641
2642         * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
2643         UNALIGNED_INT_ASM_OP.
2644         (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
2645         a location expression.
2646         (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff.  Don't
2647         assume indirect access if we're saving the CFA address exactly.
2648
2649         * Makefile.in (bootstrap): Move -BstageN/ to the end.
2650
2651 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
2652
2653         * tradcpp.c (main): Update max_include_len for cpp_include_defaults
2654         as well.
2655
2656 2000-07-24  Michael Meissner  <meissner@redhat.com>
2657
2658         * invoke.texi (D30V Options): Add d30v options.
2659
2660 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
2661
2662         * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
2663         needed by our gcse pass anymore.
2664         (free_pre_mem): Corresponding changes.
2665         (compute_pre_data): Do not call compute_transpout anymore.
2666
2667         * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
2668         (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
2669         changes.
2670
2671         * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
2672         (compute_pre_data): Do it here instead.
2673
2674         * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
2675         'temp_bitmap'.
2676         (pre_delete): Corresponding changes.
2677
2678 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
2679
2680         * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
2681         to figure out whether or not a variable has already been emitted.
2682
2683 Sun Jul 23 14:49:12 2000  Jason Eckhardt  <jle@cygnus.com>
2684
2685         * config/i860/i860.md (untyped_call expander): Use GEN_CALL
2686         instead of gen_call.
2687
2688 Sun Jul 23 11:52:03 2000  George Helffrich (george@gly.bris.ac.uk)
2689
2690         * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
2691
2692 2000-07-23  Kazu Hirata  <kazu@hxi.com>
2693
2694         * h8300.c: Fix formatting.
2695
2696 2000-07-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2697
2698         * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
2699         for `long' switch expression into a plain warning.
2700
2701         * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
2702         (yylex): Don't pedwarn for "inline" in C99 mode.
2703
2704         * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
2705         with %p.
2706         * ggc-page.c (debug_print_page_list, alloc_page, free_page,
2707         ggc_alloc): Likewise.
2708         * bb-reorder.c (dump_scope_forest_1): Likewise.
2709
2710 2000-07-22  Aldy Hernandez  <aldyh@redhat.com>
2711
2712         * reload.c (find_reloads_toplev): Add new parameter
2713         "address_reloaded".
2714         (find_reloads): Add new parameter to find_reloads_toplev calls.
2715
2716 2000-07-22  Jeffrey Oldham  <oldham@codesourcery.com>
2717
2718         * collect2.c (main): Typo fixed.
2719         * diagnostic.c: Typo fixed.
2720         * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
2721         * eh-common.h: Typo fixed.
2722         * emit-rtl.c (start_sequence): Typo fixed.
2723         * flow.c (find_label_refs): Typo fixed.
2724         (calculate_global_regs_live): Typo fixed.
2725         (mark_regno_cond_dead): Typo fixed.
2726         (create_edge_list): Typos fixed.
2727         (verify_edge_list): Typo fixed.
2728         * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
2729         * loop.c (strength_reduce): Typo in function name fixed.
2730         * rtl.h: Added comments.  Typo in function name fixed.
2731         * rtlanal.c: Typo in function name fixed.
2732         (insn_dependant_p): Rename to ...
2733         (insn_dependent_p): ... this.
2734         (computed_jumo_p): Typo fixed.
2735
2736 2000-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2737
2738         * system.h (__FUNCTION__): Wrap definition in #ifndef.
2739
2740 2000-07-21  David Edelsohn  <edelsohn@gnu.org>
2741
2742         * rs6000.h (SIZE_TYPE): Define.
2743
2744 2000-07-21  Mark Mitchell  <mark@codesourcery.com>
2745
2746         * ssa.c (rename_insn_1): Don't rename registers that are
2747         CLOBBERed.
2748
2749 2000-07-21  Zack Weinberg  <zack@wolery.cumb.org>
2750
2751         * diagnostic.c (trim_filename, fancy_abort): Moved here from
2752         rtl.c.
2753         (fatal_function, set_fatal_function): Removed.
2754         (fatal): Don't prepare for or call the fatal_function.
2755         (diagnostic_lock, error_recursion): New.
2756         (diagnostic_for_decl, report_diagnostic): Guard against
2757         re-entering the error reporting routines.
2758         (fancy_abort): Assume function is not NULL.
2759
2760         * errors.c (fancy_abort): New.  Assume function is not NULL.
2761         * tradcpp.c (fancy_abort): Assume function is not NULL.
2762
2763         * system.h: Provide default definition of __FUNCTION__.
2764         * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
2765         Always use __FUNCTION__ in definition of abort.
2766         * tree.h: Likewise.
2767         * varray.h: Likewise.
2768         * toplev.h: Likewise.  Don't prototype set_fatal_function.
2769
2770 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
2771
2772         * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
2773         in 64-bit mode.
2774         * glimits.h: Don't do #if defined for ARCH_PPC.
2775
2776         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
2777         constants of size no larger than a pointer should go in the TOC.
2778         Add 'MODE' parameter.
2779         (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
2780         ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
2781         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
2782         * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
2783         * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
2784         * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
2785         (rs6000_legitimize_address): Likewise.
2786         (rs6000_emit_move): Likewise.
2787         (rs6000_select_rtx_section): Likewise.
2788         (output_toc): Deal properly with outputting small constants like
2789         HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
2790         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
2791         MODE parameter.  Put small constants in the TOC.
2792
2793         * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
2794         easy in SImode.
2795         (rs6000_emit_move): When reload calls us with an illegitimate
2796         address, exit early.  Move the change_address calls to one place
2797         at the end of the routine.  Merge the SImode and DImode expanders.
2798         When called by reload to put an integer into a FP register, force
2799         it to memory.
2800
2801         * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
2802         field.
2803         (rs6000_hash_constant): Hash mode too.
2804         (toc_hash_function): Allow for key_mode.
2805         (toc_hash_eq): Structures are different if key_mode differs.
2806         (output_toc): Add 'mode' parameter.  Save key_mode.
2807         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
2808         Pass 'mode' parameter.
2809         * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
2810
2811         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
2812         for vtable references.
2813
2814         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
2815         choice, don't put integer values in FP regs.
2816
2817 Thu Jul 20 18:13:52 2000  Jeffrey A Law  (law@cygnus.com)
2818
2819         * flow.c (verify_flow_info): Revamp code to verify that the
2820         head and end of each basic block are in the insn chain.
2821
2822 Thu Jul 20 18:02:35 2000  Michael Matz <matzmich@cs.tu-berlin.de>
2823
2824         * gcse.c (record_one_set): Prepend instead of append onto
2825         reg_set_table, making it O(n) instead O(n^2).
2826         * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
2827         Use a queue instead of a stack as worklist.
2828
2829 2000-07-20  Kazu Hirata  <kazu@hxi.com>
2830
2831         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
2832         * h8300.h (OK_FOR_T): New.
2833         (EXTRA_CONSTRAINT): Support OK_FOR_T.
2834         * h8300.md: Use inc/dec.[wl] for increment/decrement
2835         by 1 and 2 in HI and SI modes.
2836
2837 2000-07-20  Jim Wilson  <wilson@cygnus.com>
2838
2839         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
2840         larger than 14 bits.
2841
2842 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
2843
2844         * cppmacro.c (CAN_PASTE_AFTER): New macro.
2845         (count_params): Don't set GNU_REST_ARGS on anything.
2846         (save_expansion): Set PASTE_LEFT only on tokens for which
2847         CAN_PASTE_AFTER is true, or which are named operators.
2848
2849         * cpplex.c (parse_args): Distinguish between a rest argument
2850         given one empty argument, and a rest argument given zero arguments.
2851         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
2852         deletion of previous token based on that.
2853         (get_raw_token): Flatten some control structure.
2854
2855         * cpplib.h (CPP_LAST_EQ): Correct.
2856         (VOID_REST): New token flag.
2857         (GNU_REST_ARGS): Delete.
2858
2859         * tradcpp.c (main): Don't munge -D options.
2860         (make_definition): Bring -D handling in line with cpplib.
2861         (do_define): Strip all leading whitespace from macro definitions.
2862
2863 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
2864
2865         * Makefile.in (tradcpp): Depend on intl.o and version.o.
2866
2867 2000-07-20  Bruce Korb  <bkorb@gnu.org>
2868
2869         * fixincl/check.tpl: strip the platform specific types before testing
2870         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
2871         * fixincl/fixincl.tpl: use platform specific types
2872         * fixincl/fixlib.h: include the platform specific types
2873         * fixincl/inclhack.def(gnu_types): don't supply the types
2874         * fixincl/fixincl.x: regen
2875
2876 2000-07-19  Jim Wilson  <wilson@cygnus.com>
2877
2878         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
2879         GR_REGS.
2880
2881 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
2882
2883         * tradcpp.c (rescan): Do not recognize directives when the #
2884         is indented.
2885
2886 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
2887
2888         Implement C++ named operators.
2889
2890         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
2891         of operators allowed in #if and having an _EQ variant.  Add
2892         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
2893         (cpp_token flags): Add NAMED_OP.
2894         (enum node_type): Add T_OPERATOR.
2895         (struct cpp_hashnode): Add code slot to value union.
2896         * cpphash.h (spec_nodes): Remove n_defined.
2897
2898         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
2899         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
2900         (is_macro_disabled): Tweak error messages.
2901
2902         * cpplib.c (get_define_node): Disallow all named operators as
2903         macro names.  Tweak error messages.
2904         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
2905
2906         * cppinit.c (builtin_array): Add entries for the named operators.
2907         * cppexp.c (lex): Check for CPP_DEFINED token.
2908         (priority table): Add entries for CPP_MIN and CPP_MAX.
2909         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
2910
2911 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
2912
2913         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
2914         larger than the array of cuids.
2915         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
2916         cuids.
2917
2918 2000-07-19  Bruce Korb  <bkorb@gnu.org>
2919
2920         * fixinc/fixincl.c:  Convert to using a table of environment variables
2921         and activate the auto-edit marker on the fixed output files.
2922         * fixinc/fixlib.h:  Define the environment table
2923         * fixinc/fixincl.sh: export the ${INPUT} dir
2924         * fixinc/check.tpl: likewise
2925
2926 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
2927
2928         * gcc.c (.h spec): Fix typo.
2929
2930 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
2931
2932         * Makefile.in: Fix tradcif.c path.
2933
2934 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
2935
2936         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
2937           macros, not five.
2938
2939         * cpphash.h (TOKEN_NAME): New macro.
2940         (_cpp_spell_operator): Deleted.
2941         (token_spellings): Now _cpp_token_spellings.
2942
2943         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
2944         * cpplex.c: Use OP and TK macros when expanding the
2945         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
2946         store the stringification of the enumeration name (CPP_CHAR,
2947         etc.) in the name slot of token_spellings.
2948         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
2949         token_spellings directly.
2950         * cpplib.c: Use TOKEN_SPELL.
2951
2952         * cpplex.c (_cpp_push_token): If the token being pushed back
2953         is the previous token in this context, just subtract one from
2954         context->posn.
2955         * cppmacro.c (save_expansion): Clear aux field when storing a
2956         placemarker.
2957
2958 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
2959
2960         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
2961         buffer, provided it is not NULL.
2962
2963 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
2964
2965         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
2966         case of invalid volatile re-declaration.
2967
2968 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
2969
2970         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
2971         (expand_call): Adjust caller.
2972
2973 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
2974
2975         * diagnostic.h (report_diagnostic): Change prototype.
2976
2977         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
2978         diagnostic_for_decl):  Change prototype.
2979         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
2980         error, warning, error_with_file_and_line,
2981         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
2982         Adjust call to report_diagnostic, diagnostic_for_decl.
2983         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
2984         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
2985
2986         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
2987         varaible argument list.
2988
2989 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
2990
2991         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
2992         moved to cppmacro.c.
2993         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
2994         dump_hash_helper): Delete.
2995         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
2996         cpp_forall_identifiers): New. Implement specialized version of
2997         Vlad's expandable hash table.
2998         (cpp_lookup): Use new functions.
2999         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
3000         implementation.
3001         * cppmacro.c: New file.
3002         * cppinit.c (dump_macros_helper): New.
3003         (cpp_finish): Iterate over the identifier table directly.
3004         * cpplex.c (parse_name): Calculate the hash of the identifier
3005         while we scan it.  Use _cpp_lookup_with_hash when we can.
3006
3007         * cpphash.h: Update prototypes.
3008         (xcnewvec, HASHSTEP): New helper macros.
3009         * cpplib.h: Update prototypes.
3010         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
3011         (cppmacro.o): New rule.
3012         (cpphash.o): Update deps.
3013
3014         * cppmain.c: Do not set pfile->printer if no_output is on.
3015
3016 2000-07-15  Neil Booth  <neilb@earthling.net>
3017
3018         * cpplib.c: Change all directive-handler functions to return
3019         void, not int.
3020         * cpphash.h: Update typedefs.
3021
3022 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
3023
3024         * configure: Regenerate.
3025
3026         * extend.texi (Extended Asm): Mention that a memory clobber
3027         does not count as a side-effect.
3028
3029         * unroll.c (copy_loop_body): Fix one instance of using host
3030         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
3031         cross-compile.
3032
3033         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
3034
3035 2000-07-17  Richard Henderson  <rth@cygnus.com>
3036
3037         * config/ia64/ia64.md (movdi): Split out load address code.
3038         New post-reload splitter for symbolic operands.
3039         (movdi_internal): Abort if we didn't split symbolic operands
3040         when we should have.
3041         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
3042         (ia64_reorg): Split insns when not optimizing.
3043         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
3044
3045 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3046
3047         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
3048         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
3049
3050 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
3051
3052         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
3053
3054 2000-07-17  Jason Merrill  <jason@redhat.com>
3055
3056         * Makefile.in (clean): Remove libgcc directory.
3057
3058         * configure.in (-Wno-long-long check): Use higher-level macros.
3059
3060 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
3061
3062         * simplify-rtx.c (simplify_binary_operation): Recognize
3063            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
3064         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
3065            a CONST_INT, it will always be zero.
3066
3067 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
3068
3069         * loop.c (check_dbra_loop) : Return if more than one condition is
3070         present to control the loop.
3071
3072 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
3073
3074         * mips.c (mips_expand_prologue): Don't calculate the last argument
3075         register unless we need it.  When we are calculating this, make
3076         sure FUNCTION_ARG is giving us a REG.
3077
3078 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3079
3080         * flow.c (libcall_dead_p): Use single_set to verify the insn
3081         has only one set and get for analysis.
3082         (propagate_one_insn): Don't pass the PATTERN of the insn.
3083
3084 2000-07-17  Mark Klein <mklein@dis.com>
3085
3086          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
3087
3088 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3089
3090         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
3091         * configure.in (TARGET_GETGROUPS_T): Evaluate.
3092         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
3093         of second argument of getgroups.
3094         * configure, config.in: Rebuilt.
3095
3096 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
3097
3098         * simplify-rtx.c (simplify_relational_operation): Two signed
3099         values with equal high words are less/greater than each other if
3100         their low words are less/greater when considered as unsigned.
3101
3102 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
3103
3104         * configure.in (vax-*-openbsd):  Change to new style configuration,
3105         add collect2/float_format information.
3106         * configure:  Rebuilt.
3107         * config/vax/openbsd1.h:  New.
3108         * config/vax/openbsd.h:  New.
3109         * config/vax/t-openbsd:  New.
3110
3111 2000-07-17  Chip Salzenberg  <chip@valinux.com>
3112
3113         * c-common.c (shorten_compare): Quiet warnings about unsigned
3114         comparisons with zero when they occur in a system header.
3115
3116 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3117
3118         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
3119         update to describe current practice.
3120
3121         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
3122
3123         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
3124         references to C9X.  Change references to -fstd and -flang-isoc9x
3125         to refer to -std.
3126
3127         * c-common.c (scan_char_table): Allow "z" length modifiers on
3128         diouxXn formats.
3129         (check_format_info): Use TYPE_DOMAIN on the type matched against
3130         for "z" formats, to retrieve the language size_t rather than the
3131         internal one.
3132
3133         * c-common.c (check_format_info): Do not make a pedantic objection
3134         to the 'L' length modifier if used with a floating point type
3135         character.
3136
3137         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
3138         constants in C99 mode.
3139
3140 2000-07-17  Kazu Hirata  <kazu@hxi.com>
3141
3142         * h8300.md: Fix the format of mac.
3143         (movsi_h8300hs): Output a tab after stmac instead of a space.
3144
3145         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
3146         profitable adds/subs sequences.
3147
3148         * fold-const.c: Fix comment typos.
3149
3150 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
3151
3152         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
3153
3154 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3155
3156         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
3157
3158 2000-07-16  Neil Booth  <NeilB@earthling.net>
3159
3160         * cpplex.c: Update comments.
3161         * README.Portability: Small update.
3162
3163 2000-07-16  Neil Booth  <NeilB@earthling.net>
3164
3165         * README.Portability:  Small update.
3166
3167 2000-07-15  Richard Henderson  <rth@cygnus.com>
3168
3169         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
3170         * config/ia64/ia64.c (ia64_move_ok): New function.
3171         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
3172         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
3173
3174 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
3175
3176         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
3177         immediately following a paste operator.
3178         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
3179         (cpp_reader_init): Call it, if HOST_EBCDIC.
3180         (cpp_handle_options): Do not sort option list here.
3181         (handle_option): Rename to cpp_handle_option and export.
3182         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
3183         _cpp_get_token directly.
3184         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
3185         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
3186         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
3187         cpp_scan_line.
3188
3189 2000-07-15  Richard Henderson  <rth@cygnus.com>
3190
3191         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
3192         cast around an expression.  Tidy other unsigned tests.
3193
3194 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
3195
3196         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
3197         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
3198         (v_message_with_decl): Rename to ...
3199         (format_with_decl): ... this. Tweak
3200         (diagnostic_for_decl): New function.
3201         (fatal_io_error): Use verbatim in lieu of notice.
3202         (announce_function): Use verbatim.
3203         (default_print_error_function): Likewise.
3204         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
3205         infratructure.
3206
3207 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3208
3209         * mips.c (function_arg_pass_by_reference): Don't do automatic
3210         aggregate initialization.
3211         (machine_dependent_reorg): Initialize variable `mode'.
3212
3213         * mips.md (absdi2): Change variable `regno1' to unsigned int.
3214         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
3215         conflicts with sys/param.h macro of the same name.
3216         (reload_outdi): Likewise.
3217
3218 2000-07-15  Michael Meissner  <meissner@redhat.com>
3219
3220         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
3221         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
3222         create a new node instead.
3223
3224 2000-07-15  Neil Booth  <NeilB@earthling.net>
3225
3226         * README.Portability: Correct example about calling a function
3227         through a pointer to function.  Format wide paragraphs.
3228
3229 2000-07-15  Michael Meissner  <meissner@redhat.com>
3230
3231         * README.Portability: Update integer suffixes and function
3232         prototype sections.
3233
3234 2000-07-15  Neil Booth  <NeilB@earthling.net>
3235
3236         * README.Portability: Small update.
3237
3238 2000-07-15  Neil Booth  <NeilB@earthling.net>
3239
3240         * README.Portability: New file.
3241
3242 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
3243
3244         * INSTALL: Give special instructions for building GCC on Irix 6.
3245         * config/mips/x-iris6 (CC): Don't set it.
3246         (OLDCC): Likewise.
3247
3248 2000-07-14  Jason Merrill  <jason@redhat.com>
3249
3250         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
3251         register in the stack and later in another register, use the new
3252         register.
3253
3254 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
3255
3256         * config/mips/mips.md: (absdi2): Handle sign_extend for
3257         second operand.
3258
3259 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
3260
3261         * cpplib.c (do_pragma_dependency): Tidy warning messages.
3262
3263 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
3264
3265         * .cvsignore: Correct typo.
3266
3267 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
3268
3269         * .cvsignore: Add generated YACC files.
3270         * objc/.cvsignore: New file.
3271
3272 2000-07-14  Neil Booth  <NeilB@earthling.net>
3273
3274         * cpplex.c (adjust_column): New funcion.
3275         (skip_whitespace): Use it.
3276         (skip_block_comment): Use it, and warn about /*/* with
3277         -Wcomments.
3278
3279 2000-07-14  Neil Booth  <NeilB@earthling.net>
3280
3281         * cpphash.c (struct macro_info): Add new members.
3282         (_cpp_free_definition): Delete the macro directly.
3283         (count_params): Return void, with first token of
3284         expansion in struct macro_info on success.
3285         (parse_define): Return int.  Hoist syntax checking from
3286         save_macro_expansion.  Leave call to save_expansion to
3287         _cpp_create_definition.
3288         (alloc_macro): Needs just 2 arguments.
3289         (free_macro): Delete.
3290         (save_expansion): Don't perform syntax check.
3291         (_cpp_create_definition): Call save_expansion.
3292
3293 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3294
3295         * genrecog.c (write_header): Split long string.
3296
3297         * cpphash.c (macro_info): Don't use the `signed' keyword.
3298
3299         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
3300
3301 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
3302
3303         * calls.c (stored_args_map): New variable.
3304         (check_sibcall_argument_overlap_1): New.
3305         (check_sibcall_argument_overlap): New.
3306         (expand_call): Initialize stored_args_map.
3307         Call check_sibcall_argument_overlap.
3308
3309 2000-07-13  Bruce Korb  <bkorb@gnu.org>
3310
3311         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
3312         (emit_gnu_type): utility procedure for gnu_type_fix
3313         (gnu_type_fix): implement various pre-processor guards around
3314         standard types so these types can be defined over and over
3315         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
3316         types alluded to above will have GNU-compliant base types
3317         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
3318         * fixinc/inclhack.def: add test_text entries and utilize the new
3319         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
3320         * fixinc/fixincl.x: regenerate
3321
3322 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3323
3324         * diagnostic.c (vline_wrapper_message_with_location,
3325         v_message_with_file_and_line, v_error_with_file_and_file,
3326         v_error_for_asm, v_warning_for_asm, vfatal,
3327         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
3328         vsorry, verror, vwarning, vpedwarn): Remove.
3329         (diagnostic_for_asm): New function.
3330         (pedwarn, error, warning, pedwarn_with_file_and_line,
3331         error_with_file_and_line, warning_with_file_and_line, sorry,
3332         error_for_asm, warning_for_asm, fatal): Reimplement.
3333         (finish_diagnostic): Clear diagnostic info as well.
3334
3335 2000-07-13  Neil Booth  <NeilB@earthling.net>
3336
3337         * c-common.h (flag_digraphs): New.
3338         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
3339         * c-lex.c (yylex): Use flag_digraphs to decide whether to
3340         honour digraphs.
3341
3342 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
3343
3344         * gcc.c (do_spec_1): Add new %B operator.
3345         (set_input): Prepare for %B.
3346
3347         (link_command_spec): Move up with the other tm.h-
3348         overrideable specs.  Factor out the portion conditional on
3349         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
3350         (struct compiler): Just have a single spec string.  All users
3351         updated.
3352         (default_compilers): Remove unnecessary braces.
3353         (static_specs): Update.
3354
3355         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
3356         named specs.
3357         (C and assembly specs): Use the new named specs, as appropriate.
3358
3359         * objc/lang-specs.h: Use the new named specs.
3360         Remove unnecessary braces.
3361
3362 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
3363
3364         * gcc.c (execute): If a subprocess gets a fatal signal, report
3365         strsignal() of the signal number, and ask for a bug report.
3366         Do not do this for SIGPIPE if there's already been an error.
3367
3368         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
3369         Delete pipe_closed.
3370
3371         * tradcif.c: Remove.
3372
3373 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
3374
3375         * final.c (profile_function): Do not emit profile counters in
3376         the data section, if NO_PROFILE_COUNTERS is defined.
3377         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
3378         FUNCTION_PROFILER.
3379
3380         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
3381         (FUNCTION_PROFILER): Just emit a call to mcount.
3382
3383 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
3384
3385         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
3386
3387         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
3388         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
3389         traditional, lang_chill, or lang_fortran.
3390
3391         * cppfiles.c: #undef strcmp to suppress warning about macros
3392         used without arguments.
3393         (_cpp_execute_include): Use f, not fname, in "No include path"
3394         error.
3395         (_cpp_pop_file_buffer): New function.
3396         * cpplib.c: Don't include <sys/mman.h>.
3397         (cpp_push_buffer): Set line_base and lineno in new buffer.
3398         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
3399
3400         * cpplex.c: Move all prototypes and structure declarations to the
3401         top of the file.  Properly parenthesise some macro arguments.
3402         (cpp_scan_line): New function.
3403         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
3404         don't need to walk up the stack counting.
3405
3406 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3407
3408         * c-common.c (combine_strings): Emit a pedantic warning when a
3409         string length is greater than the minimum ANSI C is required
3410         to support.
3411
3412 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
3413
3414         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
3415         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
3416
3417 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3418
3419         * c-decl.c (define_label): Warn about identifier conflicts with
3420         labels in traditional C.
3421
3422         * c-parse.in (unop +): Warn about the unary plus operator for
3423         traditional C.
3424
3425         * c-typeck.c (store_init_value): Warn about automatic aggregate
3426         initialization for traditional C.
3427
3428         * invoke.texi (-Wtraditional): Document new warnings.
3429
3430 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
3431
3432         * Makefile.in (c-errors.o): Fix thinko in dependency.
3433
3434 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
3435
3436         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
3437         -traditional, -ftraditional, or -traditional-cpp was given.
3438         Do not pass -traditional to the preprocessor.
3439         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
3440         preprocessor does it automatically.
3441         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
3442
3443         * ch/lang-specs.h: Always use tradcpp.  Do not pass
3444         -traditional, -trigraphs, or -pedantic to the preprocessor.
3445         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
3446         _LANGUAGE_FORTRAN.
3447
3448 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
3449
3450         * cppexp.c (LOGICAL): Delete macro.
3451         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
3452         and && directly.
3453
3454         * cpphash.c (HASHSIZE): Increase to 4096.
3455         (struct hashdummy): Add hash field.
3456         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
3457         the string values using memcmp.
3458         (cpp_lookup): Set dummy.hash.
3459
3460 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
3461
3462         * configure.in (m88k-openbsd): Express configuration using new fragment
3463         style.
3464         * configure: Rebuilt.
3465         * m88k/aout-dbx.h: New.
3466         * m88k/openbsd.h: New.
3467         * m88k/xm-openbsd.h: New.
3468
3469 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3470
3471         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
3472
3473 2000-07-12  Richard Henderson  <rth@cygnus.com>
3474
3475         * reload.c (push_secondary_reload): Make sure to add the new
3476         reload at the end, after acquiring secondary memory.
3477
3478 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3479
3480         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
3481
3482         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
3483         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
3484
3485         * c-parse.in (stmt): Delete unused variables.
3486
3487         * convert.c (convert_to_vector): Likewise.
3488
3489         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
3490
3491         * tree.c (finish_vector_type): Prototype.
3492
3493 2000-07-12  Bruce Korb  <bkorb@gnu.org>
3494
3495         * fixinc/fixfixes.c: use xmalloc
3496         * fixinc/fixincl.c(initialize): set program name for xmalloc
3497         * fixinc/fixlib.c(must_malloc): obsolete
3498         (is_cxx_header): no longer used - disabled
3499         (skip_quote): inserted and disabled for future use
3500         * fixinc/fixlib.h: reflects above
3501         * fixinc/fixtests.c: removed dinkleberries
3502
3503 2000-07-12  Neil Booth  <NeilB@earthling.net>
3504
3505         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
3506         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
3507
3508         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
3509         struct toklist_dummy): New.
3510         (cpp_free_definition): Free macros with free_macro.
3511         (count_params): Don't save paramter spellings.  Save macro
3512         information in a struct macro_info.
3513         (parse_define): Don't allocate a token list.
3514         (save_expansion): Allocate the macro's token list, and
3515         save parameter spellings if necessary.  Use TOKEN_SPELL.
3516         (cpp_create_definition): Make list const.
3517
3518 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
3519
3520         * c-typeck.c (pedwarn_c99): Move to
3521         * c-errors.c: ... Here.
3522         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
3523         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
3524         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
3525         (c-errors.o): List dependency.
3526
3527 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
3528
3529         * c-parse.c: Remove.
3530         * c-parse.h: Likewise.
3531         * c-parse.y: Likewise.
3532         * objc/objc-parse.c: Likewise.
3533         * objc/objc-pasre.y: Likewise.
3534
3535 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
3536
3537         * gcc.texi: Fix minor typos
3538         * extend.texi: Fix minor typos
3539
3540 2000-07-11  Marc Espie <espie@openbsd.org>
3541
3542         * collect2.c (main): Recognize .lo as object files.
3543
3544 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3545
3546         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
3547         true.
3548
3549         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
3550         with MAP_ANONYMOUS and MAP_ANON.
3551         * configure, config.in: Rebuilt.
3552
3553 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
3554
3555         * diagnostic.c (save_output_state): Remove.
3556         (restore_output_state): Likewise.
3557         (clear_text_info): New function.
3558         (clear_diagnostic_info): Likewise.
3559         (output_text_length, is_starting_newline, output_prefix,
3560         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
3561         prefixing_policy, output_buffer_ptr_to_format_args): New macros
3562         (set_real_maximum_length, output_set_maximum_length,
3563         output_set_prefix, output_get_prefix, output_set_maximum_length,
3564         output_destroy_prefix, init_output_buffer,
3565         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
3566         output_add_newline, output_add_character, output_add_space,
3567         output_append_r, output_append, wrap_text, output_format,
3568         output_do_printf, output_printf, output_do_verbatim,
3569         output_verbatim, verbatim): Use them.
3570         (output_clear): Split into cleat_text_info and
3571         clear_diagnostic_info.
3572         (struct output_state): Move to...
3573
3574         * diagnostic.h: ...Here
3575         (struct output_buffer): Adjust.
3576
3577 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
3578
3579         * cpplex.c (parse_name): No longer inline (premature optimization).
3580         (do_pop_context): Fold into pop_context.
3581         (pop_context): Returns int.
3582         (lex_next): Hoist test for end of directive into pop_context.
3583         (push_macro_context): Returns int; takes just reader and token.
3584         Hoist test for excessive nesting to caller.
3585         (push_arg_context): Returns void; takes just reader and token.
3586         Do not call stringify_arg or get_raw_token.
3587         (get_raw_token): Convert tail recursion through push_arg_context
3588         to a loop at this level.  Call stringify_arg here if appropriate.
3589         (maybe_paste_with_next): Convert tail recursion to a while loop.
3590         Hoist test of paste_level to caller.
3591
3592         (stringify_arg): Push arg context at beginning.
3593         (cpp_get_token): Split out core into _cpp_get_token.  Call
3594         process_directive here.  Throw away CPP_PLACEMARKER tokens.
3595         (_cpp_get_token): Convert tail recursion through
3596         push_macro_context to a loop at this level.
3597         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
3598         _cpp_get_raw_token): Use _cpp_get_token.
3599         (_cpp_skip_rest_of_line): Drop the context stack directly; do
3600         not call pop_context.
3601         (_cpp_run_directive): Call lex_next directly.
3602
3603         * cpphash.h: Prototype _cpp_get_token.
3604         * cppexp.c (lex): Use it.
3605         * cpphash.c (parse_define): Use it.
3606         * cpplib.c (get_define_node, do_undef, parse_include,
3607         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
3608         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
3609         parse_ifdef, validate_else): Use it.
3610         (cpp_push_buffer): Tweak error message; abort if anyone tries
3611         to push a buffer while macro expansions are stacked.
3612
3613 2000-07-11  Donn Terry  <donnte@microsoft.com>
3614
3615         * cpplex.c (free_macro_args, save_token): Cast arg of free
3616         and/or xrealloc to PTR.
3617         (_cpp_init_input_buffer): Clear all fields of the base context.
3618
3619 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
3620
3621         * gensupport.c (process_rtx): Make rtl checking stop
3622         complaining about the define_insn while it is being
3623         converted from a define_insn_and_split.
3624
3625 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
3626
3627         * config/mips/mips.c (simple_memory_operand): Access the
3628         INTVAL of the address, not it's containing MEM.
3629
3630 2000-07-11  Bruce Korb  <bkorb@gnu.org>
3631
3632         * fixinc/fixtests.c(double_slash): obsolete
3633         (else_endif_label): likewise
3634         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
3635         (libc1_ifdefd_memx): correct initial comment
3636         and omit the #if/#endif pair from the memxxx declarations
3637         * fixinc/fixincl.x: regen
3638
3639 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3640
3641         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
3642
3643 2000-07-11  Neil Booth  <NeilB@earthling.net>
3644
3645         * cpp.texi: Update.
3646
3647 2000-07-11  Neil Booth  <NeilB@earthling.net>
3648
3649         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
3650         (handle_option): Set digraphs according to standard.
3651         Merge OPT_lang_c89 handler with OPT_std_c89.
3652
3653         * cpplex.c: (lex_line, can_paste): Honour digraphs in
3654         accordance with the digraphs flag.
3655
3656         * cpplib.h: (struct cpp_options): New option digraphs.
3657
3658 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
3659             Bruce Korb  <bkorb@gnu.org>
3660
3661         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
3662         * fixinc/fixincl.x: Regenerate.
3663         * fixinc/tests/base/testing.h: Add testcase.
3664
3665 2000-07-10  Richard Henderson  <rth@cygnus.com>
3666
3667         * config/ia64/ia64.c (got_symbolic_operand): New.
3668         (symbolic_operand, move_operand): Revert 0701 change.
3669         * config/ia64/ia64.h (PREDICATE_CODES): Update.
3670         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
3671         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
3672         split the offset into a 14-bit low part instead of a 13-bit low part.
3673         (load_fptr): Mark the mem as unchanging.
3674         (load_symptr): Use got_symbolic_operand.
3675
3676 2000-07-10  Nick Clifton  <nickc@cygnus.com>
3677
3678         * libgcc2.c (next_stack_level): Cast result of computation to
3679         (void **) so that the assignment does not generate a warning.
3680
3681 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
3682
3683         * flags.h : Add new variable flag_single_precision_constant.
3684         * toplev.c (display_help) : Add -fsingle-precision-constant option.
3685         (flag_single_precision_constant): New.
3686         * c-lex.c (yylex): Convert floating point constant to single
3687         precision constant.
3688         * invoke.texi : Add documentation for this new option.
3689
3690 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
3691
3692         * diagnostic.c (output_octal): Second parameter is unsigned.
3693         (output_long_octal): Likewise.
3694         (output_hexadecimal): Likewise.
3695         (output_long_hexadecimal): Likewise.
3696         (output_format): Adjust arguments extraction. Tweak.
3697         (output_verbatim, verbatim): End variable argument list.
3698         (report_diagnostic): Improve documentation.
3699
3700 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
3701
3702         * c-common.h (build_stmt): Declare.
3703         (build_continue_stmt): Likewise.
3704         (build_break_stmt): Likewise.
3705         (build_return_stmt): Likewise.
3706
3707         * c-decl.c (do_case): Rewrite to do what previously done in
3708         c-parse.in.
3709
3710         * c-semantics.c (build_stmt): Define.
3711         (build_return_stmt): Likewise.
3712         (build_break_stmt): Likewise.
3713         (build_continue_stmt): Likewise.
3714         (build_case_label): Likewise.
3715
3716         * c-parse.in (BREAK): Change to build tree, then generate RTL.
3717         (CONTINUE): Likewise.
3718         (RETURN): Likewise.
3719         (CASE): Likewise.
3720         (DEFAULT): Likewise.
3721
3722         * c-parse.y: Regenerate.
3723         * c-pasre.c: Likewise.
3724
3725 2000-07-09  Jason Merrill  <jason@redhat.com>
3726
3727         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
3728
3729         * tree.h (STRIP_NOPS): Check for error_mark_node.
3730         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
3731         (dwarf2out_*): Remove duplicate declarations.
3732
3733         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
3734         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
3735
3736 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
3737
3738         * diagnostic.c (wrap_text): New function.
3739         (maybe_wrap_text): Likewise.
3740         (output_add_string): Use it.
3741         (output_format): Likewise.
3742         (count_error): Use verbatim instead of notice.
3743         (report_error_function): Likewise. Don't use plain fprintf.
3744         (finish_diagnostic): New function.
3745         (output_do_verbatim): Tweak.  Commonalize functionalities in
3746         output_verbatim and verbatim.
3747         (output_verbatim): Adjust.
3748         (verbatim): Likewise.
3749         (report_diagnostic): Define.
3750
3751         * diagnostic.h (report_diagnostic): Prototype.
3752
3753 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
3754
3755         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
3756
3757 2000-07-09  Neil Booth  <NeilB@earthling.net>
3758
3759         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
3760         IShspace, ISspace: Update.
3761
3762         * cppinit.c: ISTABLE: Update.
3763         V: New.
3764
3765         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
3766         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
3767         (skip_block_comment, skip_line_comment, parse_string,
3768         lex_line): Use is_vspace rather than IS_NEWLINE.
3769         (skip_whitespace, lex_line): Clean up to use is_nvspace.
3770         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
3771         gets a BOL flag.
3772         (lex_next): Unconditionally stop if within a directive.
3773         Treat directives within macro invocations as directives
3774         (after parse_args emits error), not as the argument.
3775
3776 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
3777
3778         * diagnostic.c (diagnostic_args): New macro.
3779         (diagnostic_msg): Likewise.
3780         (output_formatted_integer): Likewise.
3781         (output_state): New data type.
3782         (digit_buffer): Make global.
3783         (output_add_integer): Rename to output_decimal. Squeeze
3784         digit_buffer.
3785         (output_long_decimal, output_unsigned_decimal,
3786         output_long_unsigned_decimal, output_octal, output_long_octal,
3787         output_hexadecimal, output_long_hexadecimal): New functions.
3788         (output_append_r): New function.
3789         (output_append): Tweak.
3790         (output_flush_on): Rename to output_to_stream.
3791         (output_format): Change prototype.  Improve documentation. Handle
3792         more format specifiers.
3793         (build_location_prefix): Rename to context_as_prefix.
3794         (output_notice): Rename to output_do_printf.
3795         (output_printf): Tweak.
3796         (line_wrapper_printf): Likewise.
3797         (vline_wrapper_message_with_location): Adjust call to renamed
3798         functions.
3799         (v_message_with_decl): Likewise.
3800         (default_print_error_function): Likewise.
3801         (save_output_state): New function.
3802         (restore_output_state): Likewise.
3803         (output_do_verbatim): Likewise.
3804         (output_verbatim): Define.
3805         (verbatim): Likewise.
3806
3807         * diagnostic.h (printer_fn): Change return type from void to int.
3808         Improve documentation.
3809         (output_add_integer): Rename to output_decimal.
3810         (output_flush_on, output_format): Don't export.
3811         (output_verbatim, verbatim): Declare.
3812
3813 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
3814
3815         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
3816         Check whether c divides op1 exactly if operation is not
3817         multiplication.
3818
3819 2000-07-08  Richard Henderson  <rth@cygnus.com>
3820
3821         * final.c (final): Do not abort when reg-stack introduces
3822         a new insn.
3823
3824 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
3825
3826         * cpplib.h (struct cpp_name): Now struct cpp_string.
3827         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
3828         CPP_HEADER_NAME): Change to type S.
3829         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
3830         field, a cpp_hashnode *.  All references to val.name updated
3831         to use val.str or val.node as appropriate.
3832         (struct cpp_reader): Add spec_nodes field.
3833         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
3834
3835         * cpphash.h (struct spec_nodes): New.
3836         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
3837         val.str.  All references to 'spelling > SPELL_NONE' updated to
3838         match.
3839
3840         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
3841         pfile->buffer->inc are not NULL before dereferencing them.
3842
3843         * cpplex.c (parse_name): Take a pointer to the current token,
3844         plus current position and limit as args; return the new
3845         position; don't copy the text of a name into the string
3846         buffer, instead call cpp_lookup and store the node pointer.
3847         If extending a token, copy out the text of the old into a
3848         scratch buffer, append the new, look that up and store the new
3849         node pointer.  Inline.
3850         (maybe_paste_with_next): If the result of paste is a NAME,
3851         then look up the pasted text and store its node pointer.
3852         (lex_line): Adjust for new parse_name interface.
3853         Check for L"str", L'str' using spec_nodes->n_L.
3854         (spell_token): SPELL_IDENT tokens have their spelling in
3855         val.node->name.  Handle SPELL_STRING tokens that don't have
3856         string delimiters.
3857         (_cpp_expand_name_space,
3858         (can_paste): Check for L ## "str" using spec_nodes->n_L.
3859         (cpp_get_token, special_symbol): No need to call cpp_lookup.
3860         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
3861         return 1=equal 0=not, not a tristate.
3862
3863         * cpphash.c (var_args_str): Delete.
3864         (find_param): Compare node fields directly.
3865         (is__va_args__): Use CPP_PEDANTIC.  Just compare
3866         token->val.node with spec_nodes->n__VA_ARGS__.
3867         (dump_funlike_macro): Don't use var_args_str.
3868
3869         * cpplib.c (_cpp_check_directive): Just walk through
3870         spec_nodes->dirs comparing pointers.
3871         (get_define_node, do_pragma_poison, detect_if_not_defined,
3872         parse_ifdef): The identifier has already been looked up.
3873         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
3874         node.
3875         (do_if): Only call detect_if_not_defined at beginning of file.
3876         (_cpp_parse_assertion): Only copy string pointers for
3877         SPELL_STRING tokens.
3878         (pragma_dispatch): Take a node pointer and examine its name
3879         field.
3880         (_cpp_init_stacks): Also initialize the spec_nodes structure.
3881
3882         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
3883         _cpp_init_macros.
3884         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
3885         reverse order from the corresponding _cpp_init_* routines.
3886
3887         * cppexp.c (parse_number, parse_charconst, parse_defined,
3888         lex): Check val.node->type instead of calling cpp_defined.
3889         Use spec_nodes entries where appropriate.
3890
3891         * fix-header.c, scan-decls.c: Update for interface changes.
3892
3893 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
3894
3895         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
3896         emitting aux_truncdfsf2.
3897
3898 2000-07-03  Donn Terry  (donnte@microsoft.com)
3899
3900         * cppinit.c (print_help): split overlong line into ISO C89
3901         maximum chunks.
3902
3903 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
3904
3905         * cppexp.c: Update all code for new lexer interface.
3906         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
3907         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
3908         * cpplex.c (token_names): Trim leading CPP_ from names; make
3909         the strings unsigned.
3910         (_cpp_spell_operator): New.
3911         (is_macro_disabled): Disable all macros if rescanning
3912         preprocessed text.
3913         (_cpp_get_directive_token): Remove.
3914
3915         * cppinit.c: Don't set no_macro_expand.
3916         * cpplib.c (read_line_number, do_line): Check only for EOF,
3917         not VSPACE.
3918         * cpphash.h: Update prototypes.
3919         * cpplib.h (CPP_VSPACE): Remove.
3920         (struct cpp_reader): Remove no_macro_expand.
3921
3922 2000-07-08  Neil Booth  <NeilB@earthling.net>
3923
3924         * cpphash.c (is__va_args__): New function.
3925         (count_params): Fix line reported in error messages.  Use
3926         is__va_args__.  Don't return ')' on error.  Flag GNU style
3927         rest args macro definitions.
3928         (parse_define): Check macro name is not __VA_ARGS__.
3929         (save_expansion): Check identifier in non-varargs-macro is
3930         not __VA_ARGS__.  Don't flag GNU_VARARGS.
3931         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
3932         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
3933          than per-token GNU_VARARGS.
3934         * cpplib.h (GNU_VARARGS): Remove.
3935         (GNU_REST_ARGS): New.
3936
3937 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3938
3939         * i386.md (call_pop, call, call_value_pop): Do not set
3940         current_function_uses_pic_offset_table for calls to static
3941         functions or indirect calls.
3942
3943 2000-07-07  Jim Wilson  <wilson@cygnus.com>
3944
3945         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
3946         is_predicate_reg, then take max write_count of register pair.
3947
3948 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3949
3950         * tradcpp.c (main): Rename label `include' to `add_include' to
3951         avoid conflicts with variable `include' in traditional C.
3952
3953 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
3954
3955         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
3956
3957 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
3958
3959         * sibcall.c (uses_addressof): Add INMEM argument, check for
3960         current_function_internal_arg_pointer outside of MEM rtxs in addition
3961         to ADDRESSOFs.
3962         (sequence_uses_addressof): Update caller.
3963
3964 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
3965
3966         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
3967         and friends.
3968
3969 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3970
3971         * system.h (UNION_INIT_ZERO): New macro for initializing union
3972         members in structs.
3973
3974         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
3975
3976 2000-07-07  Neil Booth  <NeilB@earthling.net>
3977
3978         * cpp.texi: Update.
3979
3980 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
3981
3982         * final.c (final): Detect out of bounds array access to
3983         the insn_lengths array.
3984
3985 2000-07-07  Kazu Hirata  <kazu@hxi.com>
3986
3987         * fold-const.c (fold): Fix a comment typo.
3988
3989 2000-07-07  Neil Booth  <NeilB@earthling.net>
3990
3991         * cpp.texi: Update to new lexer.
3992
3993 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
3994
3995         * tradcpp.c: New file.
3996         * tradcif.y: New file.
3997         * tradcif.c: New generated file.
3998
3999         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
4000         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
4001         dependencies of C.  Install tradcpp from install-common, in
4002         $(libsubdir).
4003
4004 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
4005
4006         * cppinit.c: Include cppdefault.h.  Refer to
4007         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
4008         to GCC_INCLUDE_DIR and its length.
4009         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
4010         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
4011         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
4012         cppdefault.h.
4013         (include_defaults_array): Move to cppdefault.c.
4014
4015         * cppdefault.h: New file.
4016         * cppdefault.c: New file.
4017
4018         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
4019         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
4020         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
4021         this file.
4022
4023 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4024
4025         * reload.c (push_reload): When seeing if can reuse a register,
4026         check extra registers against widest of INMODE and OUTMODE.
4027
4028 2000-07-06  Neil Booth  <NeilB@earthling.net>
4029
4030         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
4031         based on full length of predicate.
4032
4033 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
4034
4035         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
4036         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
4037
4038 2000-07-05  Kazu Hirata  <kazu@hxi.com>
4039
4040         * h8300-proto.h: Fix formatting.
4041         * h8300.c: Likewise.
4042         * h8300.h: Likewise.
4043
4044 2000-07-05  Jim Wilson  <wilson@cygnus.com>
4045
4046         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
4047         CCmode.
4048
4049 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
4050
4051         * invoke.texi: Fix minor typos
4052         * md.texi: Fix minor typos
4053
4054 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
4055
4056         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
4057
4058 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
4059
4060         * cpplex.c: Don't include sys/mman.h.
4061         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
4062
4063         * cpplib.c: Include sys/mman.h and obstack.h.
4064         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
4065         obstack.
4066         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
4067         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
4068         bother freeing if stack entries (they will be freed with their buffer).
4069         (do_endif): Free if stack entries from the buffer obstack.
4070         (push_conditional): Allocate if stack entries from the buffer obstack.
4071
4072         (find_answer): Rename to _cpp_find_answer.
4073         (do_assert, do_unassert): Update.
4074
4075         * cpphash.h: Update prototypes.
4076         (xobnew): New convenience macro.
4077         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
4078         Update comments.
4079         (struct cpp_hashnode): Remove disabled field.
4080
4081         * cppinit.c: Don't include hashtab.h or splay-tree.h.
4082         (report_missing_guard): Moved to cppfiles.c.
4083         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
4084         cpp_init_includes.
4085         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
4086         cpp_cleanup_includes.  Don't destroy hashtab or
4087         all_include_files here.
4088         (cpp_finish): Use _cpp_report_missing_guards.
4089
4090         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
4091         (_cpp_init_include_table): Rename _cpp_init_includes.
4092         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
4093
4094         * cppexp.c (parse_assertion): Update for new name of
4095         find_answer.
4096
4097         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
4098
4099 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
4100
4101         * cpplib.c (do_ident): s/VSPACE/EOF/
4102
4103 2000-07-05  Neil Booth  <NeilB@earthling.net>
4104
4105         * cpplex.c: Fix trigraph replacement within strings.
4106
4107 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4108
4109         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
4110
4111         * xcoffout.c (assign_type_number): Constify.
4112         (xcoffout_source_file): Add static prototype.  Don't needlessly
4113         cast away const-ness.
4114
4115 2000-07-04  Jason Merrill  <jason@redhat.com>
4116
4117         * frame.h (frame_state): Move base_offset to end.
4118
4119 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
4120
4121         * calls.c (emit_library_call_value_1): Revert previous change.
4122
4123 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
4124
4125         * fix-header.c (struct partial_proto): Remove unnecessary fields.
4126         (recognized_extern, recognized_function, read_scan_file):
4127         Update for new scheme.
4128         (check_protection): It's still a multiple include guard even
4129         if it doesn't always trigger.
4130         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
4131         new scheme.
4132         * scan.h: Declare struct cpp_token.  Update prototypes.
4133
4134 2000-07-03  Neil Booth  <neilb@earthling.net>
4135             Zack Weinberg  <zack@wolery.cumb.org>
4136
4137         Complete overhaul of the lexer and macro expander.
4138
4139         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
4140         arg, arglist, argdata, reflist, collect_objlike_expansion,
4141         collect_funlike_expansion, collect_params,
4142         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
4143         unsafe_chars, macarg, compare_defs, special_symbol,
4144         scan_arguments, stringify, funlike_macroexpand,
4145         _cpp_quote_string, monthnames): Delete.
4146         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
4147         _cpp_create_definition, _cpp_dump_definition,
4148         dump_hash_helper): Adjust.
4149         (find_param, count_params, parse_define, var_args_str,
4150         check_macro_redefinition, save_expansion): New.
4151
4152         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
4153         parse_string, output_line_command, trigraph_replace,
4154         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
4155         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
4156         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
4157         _cpp_skip_rest_of_line): Modify.
4158
4159         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
4160         find_position, null_warning, bump_column, expand_name_space,
4161         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
4162         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
4163         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
4164         _cpp_prescan): Delete.
4165
4166         (dump_param_spelling, process_directive, lex_next,
4167         is_macro_disabled, stringify_arg, expand_context_stack,
4168         output_token, make_string_token, alloc_number_token,
4169         special_symbol, duplicate_token, maybe_paste_with_next,
4170         can_paste, prevent_macro_expansion, restore_macro_expansion,
4171         get_temp_token, release_temp_tokens, quote_string,
4172         token_names, token_spellings, _cpp_expand_name_space,
4173         _cpp_glue_header_name, _cpp_reserve_name_space,
4174         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
4175         placemarker_token, eof_token, cpp_context, macro_args,
4176         get_raw_token, parse_arg, parse_args, save_token,
4177         push_arg_context, push_macro_context, pop_context,
4178         do_pop_context, free_macro_args, _cpp_get_line,
4179         _cpp_run_directive): New.
4180
4181         * cpplib.c (validate_else, parse_include, push_conditional,
4182         pass_thru_directive, read_line_number, parse_ifdef,
4183         detect_if_not_defined, _cpp_check_directive, do_define,
4184         do_undef, do_include, do_import, do_include_next, do_error,
4185         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
4186         top_pragmas, do_pragma_gcc, do_pragma_implementation,
4187         do_pragma_poison, do_pragma_system_header,
4188         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
4189         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
4190         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
4191         cpp_defined): Update for new scheme.
4192         (strtoul_for_line, get_define_node, dump_macro_name,
4193         _cpp_check_linemarker, _cpp_parse_assertion): New.
4194         (_cpp_handle_directive, do_pragma_default): Delete.
4195
4196         * cpphash.h (struct predicate): Now struct answer.
4197         (enum spell_type, struct token_spelling, struct directive,
4198         directive_handler): New.
4199         Update prototypes.  Remove unused macros.
4200         * cpplib.h: Update prototypes.  Remove unused macros,
4201         structure definitions, and fields.
4202
4203         * cpperror.c (print_containing_files, v_message): Adjust.
4204         * cppexp.c (parse_assertion, lex, parse_escape,
4205         _cpp_parse_expr): Adjust.
4206         * cppfiles.c (open_include_file, _cpp_execute_include,
4207         _cpp_compare_file_date, cpp_read_file, read_include_file):
4208         Adjust.
4209         * cppinit.c (dump_special_to_buffer): Delete.
4210         (append_include_chain, merge_include_chains, cpp_reader_init,
4211         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
4212         cpp_finish, handle_option, print_help): Adjust.
4213         * cppmain.c (main): Adjust.
4214
4215 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
4216
4217         * cppspec.c (lang_specific_driver): Use double quotes in error
4218         message.
4219
4220 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
4221
4222         * calls.c (emit_library_call_value_1): Use valreg instead
4223         of hard_libcall_value.
4224
4225 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
4226
4227         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
4228         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
4229         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
4230         (movhi): Likewise.
4231         (movqi): Likewise.
4232         (movdf): Likewise.
4233         (movsf): Likewise.
4234         (movdi): Likewise.
4235         (movti): Likewise.
4236
4237         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
4238         mode instead of wider_mode is being used.
4239
4240 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
4241
4242         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
4243         of 'r'. Use q_regs_operand.
4244         (andsi_1+2): Use q_regs_operand.
4245
4246 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
4247
4248         * builtins.c (get_memory_rtx): Always put into alias set 0.
4249
4250 2000-07-03  Nick Clifton  <nickc@cygnus.com>
4251
4252         * config/arm/arm.md: Fix post increment and pre increment
4253         peepholes so that they do not generate UNPREDICATBLE opcodes.
4254         (ie ones where the increment clobbers the source/destination).
4255
4256 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
4257
4258         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
4259         change too big for -mtiny-stack" a warning, if larger than 63.
4260         (out_set_stack_ptr): Change the logic so -mno-interrupts is
4261         always safe to use on possible future devices.
4262         (function_prologue): Write SPH before SPL, for consistency.
4263         If interrupt_func_p true, we know we have enabled interrupts.
4264         (avr_num_arg_regs): New function.  Round up to even number of
4265         bytes if no -mpack-args or if calling a libgcc function.
4266         (function_arg, function_arg_advance): Use it.
4267         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
4268         Output "movw" if available.
4269         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
4270         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
4271         (asm_output_section_name): Add blanks for consistent output.
4272         (encode_section_info): Set TREE_READONLY for progmem data to
4273         avoid gas warnings about changed section attributes.
4274         (avr_hard_regno_mode_ok): Force non-QImode data to start in
4275         even numbered registers on devices with "movw".
4276         * config/avr/avr.h (MASK_*): Define bits for target_flags.
4277         (TARGET_SWITCHES): Mark help strings for translation.
4278         Add new -mpack-args and -menhanced switches.
4279         (TARGET_OPTIONS): Mark help strings for translation.
4280         (progmem_section): Add section attributes.
4281         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
4282         Output "movw" if available.
4283         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
4284         New patterns.
4285         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
4286         call convention (arguments aligned on even registers).
4287         (_cleanup, _exit): Make weak symbols libc can override.
4288
4289 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4290
4291         * fp-bit.h: New file.
4292
4293         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
4294         Comment #endif statements.
4295         (__thenan_sf, __thenan_df): Add missing braces around initializer.
4296
4297 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
4298
4299         * gcse.c (compute_pre_data): Compute ae_kill using other local
4300         properties instead of calling compute_ae_kill.
4301
4302         * alias.c (init_alias_analysis): Do not call
4303         prologue_epilogue_contains until after reload has completed.
4304
4305 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
4306
4307         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
4308         (genrtl_finish_compound_stmt): Likewise.
4309         (genrtl_compound_stmt): Change to return void.
4310
4311         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
4312         move code from here to ...
4313         (genrtl_compound_stmt): ... here.
4314         (genrtl_finish_compound_stmt): Remove.
4315         (expand_stmt): Add comment.
4316
4317 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
4318
4319         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
4320         and VOID_TYPE_P.
4321
4322 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * cpplib.h (struct cpp_reader): New field include_depth.
4325         (struct cpp_printer): Rename last_bsd to last_id.
4326         * cppfiles.c (read_include_file): Bump include_depth.
4327         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
4328         (output_line_command): Output correct #line if a header
4329         is including itself and is not protected against multiple inclusion.
4330         Use include_depth instead of buffer_stack_depth, last_id instead of
4331         last_bsd.
4332         * cppinit.c (cpp_start_read): Initialize last_id instead of
4333         last_bsd.
4334
4335 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
4336
4337         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
4338         (c-semantics.o): New target.
4339
4340         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
4341         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
4342         (genrtl_clear_out_block): Likewise.
4343         (genrtl_goto_stmt): Likewise.
4344         (genrtl_expr_stmt): Likewise.
4345         (genrtl_decl_stmt): Likewise.
4346         (genrtl_if_stmt): Likewise.
4347         (genrtl_while_stmt): Likewise.
4348         (genrtl_do_stmt): Likewise.
4349         (genrtl_return_stmt): Likewise.
4350         (genrtl_for_stmt): Likewise.
4351         (genrtl_break_stmt): Likewise.
4352         (genrtl_continue_stmt): Likewise.
4353         (genrtl_scope_stmt): Likewise.
4354         (genrtl_switch_stmt): Likewise.
4355         (genrtl_case_label): Likewise.
4356         (genrtl_begin_compound_stmt): Likewise.
4357         (gerntl_finish_compound_stmt): Likewise.
4358         (genrtl_compound_stmt): Likewise.
4359         (genrtl_asm_stmt): Likewise.
4360         (genrtl_decl_cleanup): Likewise.
4361         (DECL_ANON_UNION_ELEMS): Likewise.
4362         (emit_local_var): Likewise.
4363         (make_rtl_for_local_static): Likewise.
4364         (expand_cond): Likewise.
4365         (expand_stmt): Likewise.
4366         (c_expand_return): Likewise.
4367         (c_expand_start_case): Likewise.
4368         (do_case): Likewise.
4369         (COMPOUND_STMT_NO_SCOPE): Likewise.
4370         (c_expand_asm_operands): Likewise.
4371         (NEW_FOR_SCOPE_P): New macro.
4372         (expand_expr_stmt_fn): New type.
4373
4374         (set_current_function_name_declared): Likewise.
4375         (current_function_name_declared): Likewise.
4376         (lang_expand_stmt): Likewise.
4377         (stmts_are_full_exprs_p): Likewise.
4378         (anon_aggr_type_p): Likewise.
4379         (lang_expand_expr_stmt): Likewise.
4380         (build_case_label): Likewise.
4381
4382         * c-decl.c (lang_expand_expr_stmt): Initialize.
4383         (stmts_are_full_exprs_p): Define.
4384         (current_function_name_declared): Likewise.
4385         (do_case): Likewise.
4386         (lang_expand_stmt): Likewise.
4387         (set_current_function_name_declared): Likewise.
4388         (anon_aggr_type_p): Likewise.
4389
4390         * c-semantics.c: New file.
4391         (expand_cond): Moved from cp/semantics.c.
4392         (genrtl_do_pushlevel): Likewise.
4393         (genrtl_clear_out_block): Likewise.
4394         (genrtl_goto_stmt): Likewise.
4395         (genrtl_expr_stmt): Likewise.
4396         (genrtl_decl_stmt): Likewise.
4397         (genrtl_if_stmt): Likewise.
4398         (genrtl_while_stmt): Likewise.
4399         (genrtl_do_stmt): Likewise.
4400         (genrtl_return_stmt): Likewise.
4401         (genrtl_for_stmt): Likewise.
4402         (genrtl_break_stmt): Likewise.
4403         (genrtl_continue_stmt): Likewise.
4404         (genrtl_scope_stmt): Likewise.
4405         (genrtl_switch_stmt): Likewise.
4406         (genrtl_case_label): Likewise.
4407         (genrtl_begin_compound_stmt): Likewise.
4408         (genrtl_finish_compound_stmt): Likewise.
4409         (genrtl_compound_stmt): Likewise.
4410         (genrtl_asm_stmt): Likewise.
4411         (genrtl_decl_cleanup): Likewise.
4412         (make_rtl_for_local_static): Moved from cp/decl.c.
4413         (emit_local_var): Likewise.
4414         (expand_stmt): Define.
4415
4416         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
4417         (c_expand_return): Likewise.
4418         (c_expand_start_case): Likewise.
4419
4420 2000-07-01  Richard Henderson  <rth@cygnus.com>
4421
4422         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
4423         with the low 13 bits set.
4424         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
4425         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
4426         of the low 13 bits into a CONST plus an adddi3.
4427         (load_symptr): Set RTX_UNCHANGING_P.
4428
4429 See ChangeLog.3 for earlier changes.
4430