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