Commit Graph

31470 Commits

Author SHA1 Message Date
Jeff Law 108d96a7f1 Daily bump.
From-SVN: r37363
2000-11-10 01:45:07 -07:00
Jan van Male 3b7a2e5888 c-tree.texi: Fix typos.
2000-11-08  Jan van Male  <jan.vanmale@fenk.wau.nl>

        * c-tree.texi: Fix typos.
        * extend.texi: Likewise
        * gcov.texi: Likewise
        * rtl.texi: Likewise
        * tm.texi: Likewise

From-SVN: r37362
2000-11-09 22:56:47 -07:00
Hans-Peter Nilsson 5925798060 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
in_system_header and flags[1] before dereferencing flags[2].

From-SVN: r37361
2000-11-09 22:26:10 -07:00
Matthew Hiller 881a89697e reload1.c (reload_combine): Fixed calculation of first_index_reg, last_index_reg.
* reload1.c (reload_combine): Fixed calculation of
	first_index_reg, last_index_reg.

From-SVN: r37360
2000-11-09 22:22:48 -07:00
Mark Mitchell 13507bd80d c-dump.c (dequeue_and_dump): Dump function bodies.
* c-dump.c (dequeue_and_dump): Dump function bodies.

	* dump.c (cp_dump_tree): Don't dump function bodies here.

From-SVN: r37359
2000-11-10 04:50:53 +00:00
Mark Mitchell 0a7394bc1a Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
* Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
	(c-dump.o): New target.
	* c-common.h (flag_dump_translation_unit): New variable.
	(C_TYPE_QUALS): New macro.
	(strip_array_types): New function.
	(DECL_C_BIT_FIELD): New macro.
	(SET_DECL_C_BIT_FIELD): Likewise.
	(CLEAR_DECL_C_BIT_FIELD): Likewise.
	(dump_info_p): New typedef.
	(dump_tree_fn): Likewise.
	(lang_dump_tree): New variable.
	(dump_node_to_file): New function.
	* c-common.c (flag_dump_translation_unit): Define it.
	(strip_array_types): New function.
	* c-decl.c (c_decode_option): Handle -fdump-translation-unit.
	* c-lang.c (finish_file): Call dump_node_to_file if
	flag_dump_translation_unit.
	* c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
	* c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
	* c-dump.c: New file.

	* Make-lang.in (CXX_C_OBJS): Add c-dump.o.
	(dump.o): Update dependency list.
	* cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
	(flag_dump_translation_unit): Likewise.
	(CP_TYPE_QUALS): Adjust definition.
	(DECL_C_BIT_FIELD): Remove.
	(SET_DECL_C_BIT_FIELD): Likewise.
	(CLEAR_DECL_C_BIT_FIELD): Likewise.
	(add_maybe_template): Likewise.
	(strip_array_types): Likewise.
	(dump_node_to_file): Likewise.
	(cp_dump_tree): New function.
	* decl.c (init_decl_processing): Set lang_dump_tree.
	* decl2.c (flag_dump_translation_unit): Remove.
	* dump.c: Move most of it to ../c-dump.c.
	(cp_dump_tree): New function.
	* pt.c (add_maybe_template): Remove.
	* typeck.c (strip_array_types): Likewise.

From-SVN: r37358
2000-11-10 04:29:45 +00:00
Christopher Faylor abffe289db * config/i386/cygwin.h: Add mingw startfile prefix.
From-SVN: r37357
2000-11-10 04:10:04 +00:00
Richard Henderson 1288c070ab flow.c (invalidate_mems_from_set): Split out from ...
* flow.c (invalidate_mems_from_set): Split out from ...
        (mark_set_1): ... here.
        (try_pre_increment_1): Use it.  Use propagate_block_delete_insn
        instead of turning insn into a NOTE_INSN_DELETED.

From-SVN: r37356
2000-11-09 18:03:28 -08:00
Joseph Myers 0170245936 extend.texi, [...]: Move documentation of builtin versions of C library functions to one place and...
* extend.texi, invoke.texi: Move documentation of builtin versions
	of C library functions to one place and update.

From-SVN: r37355
2000-11-10 01:46:00 +00:00
Richard Henderson 30355eaac8 fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than the types themselves to discover type...
* fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
        the types themselves to discover type equivalence.

From-SVN: r37354
2000-11-09 16:12:01 -08:00
Mike Stump 5fcee6f34e * Makefile.in (distclean): Remove a few extra leftovers.
From-SVN: r37353
2000-11-10 00:09:02 +00:00
Richard Henderson c0e3f87d49 recog.c (validate_replace_rtx_1): Consider subregs when replacing a register with a constant inside a...
* recog.c (validate_replace_rtx_1): Consider subregs when
        replacing a register with a constant inside a sign/zero_extend.

From-SVN: r37352
2000-11-09 16:07:52 -08:00
Richard Henderson 662f340b81 sequence-pt-1.c: Cast from pointer to integer via size_t instead of int.
* gcc.dg/sequence-pt-1.c: Cast from pointer to integer
        via size_t instead of int.

From-SVN: r37351
2000-11-09 16:01:29 -08:00
Richard Henderson 377b6fce5d * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
From-SVN: r37350
2000-11-09 15:57:41 -08:00
Richard Henderson 338bcbd5ca string-opt-1.c: Make stub functions static.
* gcc.c-torture/execute/string-opt-1.c: Make stub functions static.
        * gcc.c-torture/execute/string-opt-2.c: Likewise.
        * gcc.c-torture/execute/string-opt-3.c: Likewise.
        * gcc.c-torture/execute/string-opt-4.c: Likewise.

From-SVN: r37349
2000-11-09 15:21:39 -08:00
Eric Christopher 5362b0866b decl.c (init_decl_processing): Change definition of __wchar_t to wchar_t.
2000-11-07  Eric Christopher  <echristo@redhat.com>

        * decl.c (init_decl_processing): Change definition of
        __wchar_t to wchar_t.  Remove artificial declaration of
        wchar_t.
        * lex.c: Change instances of __wchar_t to wchar_t.

From-SVN: r37348
2000-11-09 23:15:27 +00:00
David Edelsohn 7ca0e6d96e ltcf-c.sh (aix4): Improve shared library configuration; require exporting symbols.
* ltcf-c.sh (aix4): Improve shared library configuration; require
        exporting symbols.
        * ltcf-cxx.sh (aix4): Define.
        * ltconfig (aix4): Define library and soname specs appropriate for
        AIX.  Define command to create export symbols list.

From-SVN: r37347
2000-11-09 16:41:11 -05:00
Geoffrey Keating b52114d283 In gcc/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
In gcc/:
2000-11-09  Geoffrey Keating  <geoffk@redhat.com>

	* c-decl.c (finish_struct): When a structure is completed,
	check all its variant types for completeness.

In gcc/testsuite/:
2000-11-09  Geoffrey Keating  <geoffk@redhat.com>

	* gcc.c-torture/compile/20001109-1.c: New test.
	* gcc.c-torture/compile/20001109-2.c: New test.

From-SVN: r37346
2000-11-09 21:29:54 +00:00
Neil Booth a949941cf7 cpphash.c: Move cpp_defined here from cpplib.c.
* cpphash.c: Move cpp_defined here from cpplib.c.
        * cpplib.c: Update comments, move cpp_defined to cpphash.c.
        * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
        * cppmacro.c (cpp_get_token): Update comments, no need now
        to catch the CPP_EOF meaning EOL case.

From-SVN: r37345
2000-11-09 21:18:15 +00:00
Geoffrey Keating 9a0662b4d5 sparc.c (sparc_va_arg): When the required alignment is more than that provided, copy to a temporary.
* config/sparc/sparc.c (sparc_va_arg): When the required alignment
	is more than that provided, copy to a temporary.

From-SVN: r37344
2000-11-09 17:38:20 +00:00
Nathan Sidwell 1caa7aba31 * g++.old-deja/g++.brendan/err-msg8.C: Adjust error line.
From-SVN: r37343
2000-11-09 17:09:33 +00:00
Alexandre Oliva 6c80a64553 mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from interpreting $out as a macro assignment.
* mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
interpreting $out as a macro assignment.
* Makefile.in (T_TARGET): New auxiliary macro and target.
(all): Add a target right in the beginning, so that we don't build
T_TARGET by default.

From-SVN: r37342
2000-11-09 13:56:53 +00:00
Graham Stott 6a4afa6c80 i386.md (mmx_pinsrw): Output operands in correct order for -mintel-syntax.
* config/i386/i386.md (mmx_pinsrw): Output operands in correct
        order for -mintel-syntax.  Remove comment now that the operand
        order has been checked.
        (mmx_pextrw): Likewise.
        (mmx_pshufw): Likewise.

From-SVN: r37341
2000-11-09 11:30:02 +00:00
Nathan Sidwell 5361cbb793 lex.c (do_identifier): Don't lookup_name for operators.
gcp/ChangeLog:
	* lex.c (do_identifier): Don't lookup_name for operators.
	* parse.y (operator): Save looking_for_typename.
	(unoperator): Restore it.
	* spew.c (frob_opname): Use nth_token for lookahead.
testsuite/ChangeLog:
	* g++.old-deja/g++.pt/operator1.C: New test.

From-SVN: r37340
2000-11-09 09:55:32 +00:00
Jakub Jelinek c6348fe7c2 * gcc.dg/20001108-1.c: New test.
From-SVN: r37339
2000-11-09 10:31:48 +01:00
Jakub Jelinek 2dee4af12b builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
* builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
	(c_getstr): New function.
	(expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
	If both arguments are constant string, optimize out.
	(expand_builtin_strchr, expand_builtin_strrchr): New functions.
	(expand_builtin_strpbrk): Use c_getstr, do nothing if
	-fcheck-memory-usage.
	(expand_builtin_fputs): Likewise.
	(expand_builtin_strcmp): Add MODE argument.
	Use even if !HAVE_cmpstrsi.
	Optimize the case when both arguments are constant strings.
	(expand_builtin): Adjust expand_builtin_strcmp caller.
	Call expand_builtin_strchr and expand_builtin_strrchr.
	* c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
	builtins.
	* builtins.def (BUILT_IN_STRRCHR): Add.

	* gcc.c-torture/execute/string-opt-1.c: Add test for strstr
	with both arguments constant strings.
	* gcc.c-torture/execute/string-opt-3.c: New test.
	* gcc.c-torture/execute/string-opt-4.c: New test.
	* gcc.c-torture/execute/string-opt-5.c: New test.

From-SVN: r37338
2000-11-09 10:07:44 +01:00
Gerald Pfeifer 54d87db869 * Remove overlooked conflict marker.
From-SVN: r37337
2000-11-09 08:48:30 +00:00
Gerald Pfeifer 97dc9fc0df * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
From-SVN: r37336
2000-11-09 08:46:02 +00:00
Jeff Law 4a6a53a440 Daily bump.
From-SVN: r37335
2000-11-09 01:45:08 -07:00
Joseph Myers 2e09e75ade calls.c (expand_call, [...]): Use memcpy () instead of bcopy ().
* calls.c (expand_call, emit_library_call_value_1), collect2.c
	(scan_prog_file), config/a29k/a29k.c (print_operand),
	config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
	instead of bcopy ().
	* real.h: Use memcmp () instead of bcmp ().
	* config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
	(split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
	ultrasparc_sched_init, ultrasparc_sched_reorder),
	config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
	instead of bzero ().
	* config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
	instead of rindex ().
	* configure.in: Don't check for bzero, bcmp, index or rindex.
	* configure, config.in: Regenerate.
	* system.h: Don't include declarations for bzero, bcmp, index or
	rindex.
	* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
	bzero, bcmp, index or rindex.

java:
	* parse.y (create_new_parser_context): Use memset () instead of
	bzero ().

From-SVN: r37334
2000-11-09 07:45:15 +00:00
Christopher Faylor 03fb4780df cygwin.h: Add -no-win32 switch.
* config/i386/cygwin.h: Add -no-win32 switch.  Separate -mno-cygwin include and
library paths from -mcygwin case.  Parameterize some declarations to avoid
warnings.  Use standard locations for include and lib dirs.

From-SVN: r37333
2000-11-09 03:02:33 +00:00
Mark Mitchell 11977a4239 codecvt.h (codecvt::do_out): Make it const-correct.
* include/bits/codecvt.h (codecvt::do_out): Make it const-correct.
	(codecvt::do_in): Likewise.

From-SVN: r37332
2000-11-09 02:57:23 +00:00
Nick Clifton ca68ea1862 Fix {u}mulsidi3adddi patterns in arm.md and add testcase to check that the
fix stays in place.

From-SVN: r37331
2000-11-09 01:26:21 +00:00
Richard Henderson c32e1e6fbc flow.c (init_propagate_block_info): Protect the rtx stored in mem_set_list from modification by find_auto_inc.
* flow.c (init_propagate_block_info): Protect the rtx stored in
        mem_set_list from modification by find_auto_inc.
        (mark_set_1): Likewise.

From-SVN: r37330
2000-11-08 16:26:34 -08:00
Neil Booth adb84b4254 Move directive handling into the lexer itself.
* cpplex.c (_cpp_lex_token): Handle directives directly.
        In the case of a directive interrupting a function-like
        macro invocation, use extra_char since read_ahead is
        used to store the '#'.  Return a CPP_EOF in this case.
        * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
        (cpp_get_token): Don't handle directives here.
        * cpplib.h: Remove CPP_DHASH token type.

From-SVN: r37329
2000-11-08 23:08:07 +00:00
Jeff Law 09ff8283a8 snapshot: New file.
* snapshot: New file.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

From-SVN: r37328
2000-11-08 22:43:50 +00:00
Jan van Male 221948ffaf README: Fix typo.
* README: Fix typo. Remove incorrect reference to Cygnus.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

From-SVN: r37327
2000-11-08 21:15:59 +00:00
Jan Hubicka 756d6f0c51 regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes formed using PRE_MODIFY too.
* regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
	formed using PRE_MODIFY too.

From-SVN: r37326
2000-11-08 20:59:34 +00:00
Tom Tromey 136c35df1c gjavah.c (process_file): Only include gcj/cni.h when generating CNI stubs.
* gjavah.c (process_file): Only include gcj/cni.h when generating
	CNI stubs.

From-SVN: r37325
2000-11-08 20:33:37 +00:00
David Edelsohn 02a480f137 locale-inst.cc: Add explicit instantiations of _M_fill_insert and fill_n<..., unsigned long,...> .
* src/locale-inst.cc: Add explicit instantiations of
        _M_fill_insert and fill_n<..., unsigned long,...> .

From-SVN: r37324
2000-11-08 15:00:36 -05:00
Jeffrey Oldham 37ac3c7f14 gcc_build (bootstrap_gcc): New function.
2000-11-08  Jeffrey Oldham  <oldham@oz.codesourcery.com>

	* gcc_build (bootstrap_gcc): New function.
	(configure_gcc): Likewise.
	(build_gcc): Rewritten to use configure and bootstrap.
	(MAKE_BOOTSTRAP_OPTIONS): Replaced MAKE_OPTIONS.

From-SVN: r37323
2000-11-08 19:41:19 +00:00
Mark Mitchell 6990885199 c-tree.texi (VAR_DECL): Describe representation of GCC's extension for placing variables in particular...
* c-tree.texi (VAR_DECL): Describe representation of GCC's
	extension for placing variables in particular registers.

From-SVN: r37322
2000-11-08 19:25:36 +00:00
Mark Mitchell c39c0db36c c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for unprototyped C functions with no parameters.
* c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
	unprototyped C functions with no parameters.

From-SVN: r37321
2000-11-08 19:05:08 +00:00
Jakub Jelinek 6cada0cd7d sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int before passing to fprintf.
* config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
	before passing to fprintf.

From-SVN: r37320
2000-11-08 18:19:51 +01:00
Nathan Sidwell 36791f1ef1 decl.c (grok_op_properties): Always use coerce_new_type and coerce_delete_type.
cp/ChangeLog
	* decl.c (grok_op_properties): Always use coerce_new_type and
	coerce_delete_type.
	* decl2.c (coerce_new_type): Use c_size_type_node. Preserve
	exception specification. Tidy up.
	(coerce_delete_type): Preserve exception specification. Tidy up.
testsuite/ChangeLog
	* g++.old-deja/g++.other/crash36.C: New test.

From-SVN: r37319
2000-11-08 14:03:32 +00:00
Jakub Jelinek 321565d3fa * g++.old-deja/g++.other/init16.C: New test.
From-SVN: r37318
2000-11-08 14:18:08 +01:00
Jakub Jelinek 768f06694f function.c (expand_function_start): Cast GET_MODE_SIZE to HOST_WIDE_INT before negating it.
* function.c (expand_function_start): Cast GET_MODE_SIZE to
	HOST_WIDE_INT before negating it.

From-SVN: r37317
2000-11-08 14:13:10 +01:00
Jakub Jelinek df6018fd28 expr.c (expand_expr): Handle when op0 is RETURN_DECL passed in multiple non-contiguous locations.
* expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
	passed in multiple non-contiguous locations.

From-SVN: r37316
2000-11-08 14:10:00 +01:00
Gerald Pfeifer 14ae1d508d * README.gnat: Remove file.
From-SVN: r37315
2000-11-08 11:01:22 +00:00
Loren J. Rittle f0cbb7aca8 * g++.old-deja/g++.mike/p6610a.C: Update XFAIL.
From-SVN: r37314
2000-11-08 10:08:28 +00:00