Commit Graph

27806 Commits

Author SHA1 Message Date
Donald Lindsay
4fe12442a8 change MIPS varargs ABI in config/mips/mips.c
From-SVN: r33621
2000-05-03 01:22:38 +00:00
Jason Eckhardt
f4e79153b8 bb-reorder.c (struct reorder_block_def): Remove members end, block_begin, and block_end.
Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>

        * bb-reorder.c (struct reorder_block_def): Remove members end,
        block_begin, and block_end.
        (REORDER_BLOCK_OLD_END): Delete.
        (REORDER_BLOCK_BEGIN): Delete.
        (REORDER_BLOCK_END): Delete.
        (chain_reorder_blocks): Remove dead code.

From-SVN: r33620
2000-05-03 00:20:24 +00:00
Jason Eckhardt
eb6f82f7cf bb-reorder.c (remove_scope_notes): Check for both types of scope notes as the end of a basic block before deleting.
Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>

	* bb-reorder.c (remove_scope_notes): Check for both types of scope
	notes as the end of a basic block before deleting.

From-SVN: r33619
2000-05-02 22:05:06 +00:00
Jason Merrill
f885527026 oops
From-SVN: r33618
2000-05-02 18:04:16 -04:00
Mumit Khan
3ac7948224 final.c (final_start_function): Fix spelling of "necessary".
2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>

	* final.c (final_start_function): Fix spelling of "necessary".

From-SVN: r33617
2000-05-02 21:52:27 +00:00
Jason Merrill
64b59a80f7 toplev.c (debug_ignore_block): Return int.
* toplev.c (debug_ignore_block): Return int.
        * dwarf2out.c (dwarf2out_ignore_block): Likewise.
        * toplev.h, dwarf2out.h: Adjust.
        * emit-rtl.c (remove_unnecessary_notes): Test return value.

        * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
        * toplev.c, final.c, rtl.h: Adjust.

From-SVN: r33616
2000-05-02 16:43:24 -04:00
Tom Tromey
7145d9fe6b class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE on native function.
* class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE
	on native function.
	* jcf-parse.c (parse_class_file): Call build_jni_stub for native
	JNI methods.
	* expr.c (build_jni_stub): New function.
	* lang-specs.h: -fjni and -femit-class-file are incompatible.
	* parse.c: Rebuilt.
	* parse.y (java_complete_expand_methods): Expand a native method
	and call build_jni_stub if -fjni given.
	* lang-options.h: Document -fjni.
	* lang.c (flag_jni): New global.
	(lang_f_options): Added `jni' entry.
	* java-tree.h (soft_lookupjnimethod_node,
	soft_getjnienvnewframe_node, soft_jnipopsystemframe_node):
	Declare.
	(flag_jni): Declare.
	(build_jni_stub): Declare.
	(struct lang_decl): Added `native' flag.
	(METHOD_NATIVE): Redefined to use `native' field of lang specific
	structure.
	* decl.c (soft_lookupjnimethod_node, soft_getjnienvnewframe_node,
	soft_jnipopsystemframe_node): New globals.
	(init_decl_processing): Set them.  _Jv_InitClass only takes one
	argument.

	* java-tree.def: Put into `C' mode.

From-SVN: r33615
2000-05-02 20:32:31 +00:00
Zack Weinberg
09fa07054c aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
* aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
	* configure.in: Look for makeinfo in the unified tree, then
	for a system makeinfo which is sufficiently new.
	* Makefile.in: If configure says makeinfo is too old, don't
	build or install Info documentation.

From-SVN: r33614
2000-05-02 19:09:24 +00:00
Zack Weinberg
1ce4a39d07 cpphash.c (collect_params): Fix off-by-one error.
* cpphash.c (collect_params): Fix off-by-one error.
	(dump_hash_helper): Dump all four macro nodetypes.

From-SVN: r33613
2000-05-02 18:10:52 +00:00
Jakub Jelinek
9900f597fa cpphash.c (trad_stringify): Adjust p after stringification as well.
* cpphash.c (trad_stringify): Adjust p after stringification as
	well.

	* gcc.dg/cpp-tradstringify.c: New test.

From-SVN: r33612
2000-05-02 18:33:44 +02:00
Zack Weinberg
c56c2073a6 cpplib.h (CPP_POP, [...]): Delete.
* cpplib.h (CPP_POP, parse_cleanup_t): Delete.
	(cpp_buffer): Remove cleanup, seen_eof, manual_pop members.

	* cppfiles.c (file_cleanup): Delete.
	* cpphash.c (macro_cleanup): Delete.
	(collect_objlike_expansion, collect_funlike_expansion,
	macarg, scan_arguments): Remove CPP_POP case.

	* cpplex.c (null_cleanup): Delete.
	(cpp_pop_buffer): Do the work that was done in the cleanups
	here.  Call _cpp_unwind_if_stack from here.
	(_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
	cpp_scan_buffer): Run until we see CPP_EOF and the top of
	stack is the buffer _below_ the one we stacked.
	(cpp_get_token): Always pop an exhausted buffer.  Return
	CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
	* cpplib.c (skip_if_group): Don't call cpp_get_token to
	increment the line number.
	(_cpp_handle_eof): Rename to _cpp_unwind_if_stack.

	* fix-header.c (read_scan_file) [parsing getchar()]: Run until
	we see CPP_EOF and the top of stack is the buffer _below_ the
	one we stacked.
	* scan-decls.c: Likewise.

From-SVN: r33611
2000-05-02 16:09:12 +00:00
Jakub Jelinek
753e6cf1b6 20000502-1.c: New test.
* gcc.c-torture/compile/20000502-1.c: New test.
	* g++.old-deja/g++.other/align.C: New test.

From-SVN: r33610
2000-05-02 17:17:08 +02:00
Andrew Haley
32adf8e626 ia64.c (ia64_encode_section_info): Handle the case where this function is called for the second time on a decl...
2000-05-02  Andrew Haley  <aph@cygnus.com>

        * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
        where this function is called for the second time on a decl that
        has had its section info changed in such a way as to move it out
        of small data/bss.
        * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.

From-SVN: r33609
2000-05-02 13:50:25 +00:00
Jeff Law
2b84225632 Daily bump.
From-SVN: r33608
2000-05-02 01:45:07 -06:00
Vadim Egorov
01f9a99543 2000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
* bits/char_traits.h: Fix parameter types.
        * bits/string.tcc: Avoid traits_type::move.

From-SVN: r33607
2000-05-02 07:11:03 +00:00
Benjamin Kosnik
e704c6bf37 atomicity.h (__exchange_and_add): More fixes.
2000-05-01  Benjamin Kosnik  <bkoz@redhat.com>

	* config/cpu/powerpc/bits/atomicity.h (__exchange_and_add): More
	fixes.

From-SVN: r33606
2000-05-02 06:45:21 +00:00
Richard Henderson
15ac7707bc ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before the sequence we're moving...
* ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
        the sequence we're moving, not to merge_bb->head.

From-SVN: r33605
2000-05-01 23:35:22 -07:00
Jason Merrill
3b54e10b04 * tree.c (walk_tree): Set lineno.
From-SVN: r33604
2000-05-02 01:25:27 -04:00
Vadim Egorov
8fd05cb0e7 2000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
* bits/char_traits.h: Fix parameter types.
        * bits/string.tcc: Avoid traits_type::move.

From-SVN: r33603
2000-05-02 04:50:23 +00:00
Alexandre Petit-Bianco
b7805411a0 re GNATS gcj/195: (gcj fail on code to implement an inner interface.)
(This trying to counter the effect of the PR 195 check in -- this should
 be right now.)

From-SVN: r33602
2000-05-01 21:49:51 -07:00
Mark Mitchell
2e3092d535 exception.cc: Update license notice.
* exception.cc: Update license notice.
	* new.cc: Likewise.
	* new1.cc: Likewise.
	* new2.cc: Likewise.
	* tinfo.cc: Likewise.
	* tinfo2.cc: Likewise.
	* vec.cc: Likewise.
	* inc/cxxabi.h: Likewise.
	* inc/exception: Likewise.
	* inc/new: Likewise.
	* inc/new.h: Likewise.
	* inc/typeinfo: Likewise.

From-SVN: r33601
2000-05-02 01:25:15 +00:00
Benjamin Kosnik
73b97e5ce3 config.if: Tweak.
2000-05-01  Benjamin Kosnik  <bkoz@cygnus.com>

	* config.if: Tweak.

From-SVN: r33600
2000-05-02 00:51:59 +00:00
Steven King
53a6ca2990 locale_facets.h: Fix syntax error.
2000-04-30  Steven King <sxking@uswest.net>

        * bits/locale_facets.h: Fix syntax  error.
        * bits/std_fstream.h: ditto

From-SVN: r33599
2000-05-02 00:27:21 +00:00
Richard Henderson
cf889600be configure.in (alpha*-*-linux-gnulibc1*): Remove reference to alpha/t-linux.
* configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
        reference to alpha/t-linux.
        (alpha*-*-linux-gnu*): Likewise.
        * configure: Rebuild.

From-SVN: r33598
2000-05-01 17:15:28 -07:00
Richard Henderson
1868a0d4da flow.c (calculate_global_regs_live): Skip for_each_successor_phi if not in SSA form.
* flow.c (calculate_global_regs_live): Skip for_each_successor_phi
        if not in SSA form.

From-SVN: r33597
2000-05-01 17:02:24 -07:00
Richard Henderson
8be9eb00e5 * calls.c (expand_call): Don't emit reg notes for a sibcall.
From-SVN: r33596
2000-05-01 16:59:00 -07:00
Jason Merrill
5062dbd5ae tree.c (build_target_expr_with_type): If we already have a TARGET_EXPR, just return it.
* tree.c (build_target_expr_with_type): If we already have a
        TARGET_EXPR, just return it.

        * optimize.c (initialize_inlined_parameters): Don't generate an
        EXPR_STMT if we can just use DECL_INITIAL.
        * decl.c (emit_local_var): Only make the initialization a
        full-expression if stmts_are_full_exprs_p.

From-SVN: r33595
2000-05-01 19:51:37 -04:00
Benjamin Kosnik
cde28f0da4 Makefile.am (AC_CXXFLAGS): Add CPUFLAGS here.
2000-05-01  Benjamin Kosnik  <bkoz@haight.constant.com>

	* src/Makefile.am (AC_CXXFLAGS): Add CPUFLAGS here.
	* src/Makefile.in: Regenerate.
	* acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Revert.

From-SVN: r33593
2000-05-01 23:47:31 +00:00
Alexandre Petit-Bianco
c6c4a70b9e (The patch contained impurities -- this should fix the situation.)
From-SVN: r33591
2000-05-01 15:32:20 -07:00
Richard Henderson
7aa88bcf41 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
From-SVN: r33590
2000-05-01 15:25:54 -07:00
Jason Merrill
8eec72ec41 integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and TREE_THIS_VOLATILE.
* integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
        TREE_THIS_VOLATILE.

From-SVN: r33589
2000-05-01 17:49:37 -04:00
Alexandre Petit-Bianco
e803d3b218 re GNATS gcj/195: (gcj fail on code to implement an inner interface.)
2000-04-25  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (register_incomplete_type): Handle JDEP_ANONYMOUS.

(This is a fix for the Java PR #195:
 http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00009.html)

From-SVN: r33588
2000-05-01 14:46:29 -07:00
Jakub Jelinek
1f57788658 Makefile.am (GCJCOMPILE, [...]): Move -L option out of FLAGS.
2000-04-28  Jakub Jelinek  <jakub@redhat.com>

	* Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
	gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
	(libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
	(jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
	-rpath for in-gcc builds.
	* Makefile.in: Rebuilt.

From-SVN: r33587
2000-05-01 21:36:39 +00:00
Jakub Jelinek
91bffbe9d6 Makefile.am (SUBDIRS): Define.
2000-04-28  Jakub Jelinek  <jakub@redhat.com>

	* Makefile.am (SUBDIRS): Define.
	(AM_MAKEFLAGS): Likewise.
	(Multilib support.): Add section.
	* Makefile.in: Rebuilt.
	* ltconfig (extra_compiler_flags, extra_compiler_flags_value):
        New variables. Set for gcc using -print-multi-lib. Export them
        to libtool.
        (sparc64-*-linux-gnu*): Use libsuff 64 for search paths.
        * ltmain.sh (B|b|V): Don't throw away gcc's -B, -b and -V options
        for -shared links.
        (extra_compiler_flags_value, extra_compiler_flags): Check these
        for extra compiler options which need to be passed down in
        compiler_flags.

From-SVN: r33586
2000-05-01 21:35:35 +00:00
Richard Henderson
7e04d3c7e3 ifcvt.c (noce_emit_cmove): Conditionally compile call to emit_conditional_move.
* ifcvt.c (noce_emit_cmove): Conditionally compile call to
        emit_conditional_move.

From-SVN: r33585
2000-05-01 14:21:44 -07:00
Jakub Jelinek
f0b0e152ed Change dynamic linker name to conform to current glibc. From Jakub Jelinek.
* config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
	as the dynamic linker.

From-SVN: r33584
2000-05-01 13:23:37 -07:00
Zack Weinberg
10e5650699 cppfiles.c (open_include_file): Open file in blocking mode.
* cppfiles.c (open_include_file): Open file in blocking mode.
	(read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
	Only exclude block devices and directories.

From-SVN: r33583
2000-05-01 20:05:11 +00:00
Zack Weinberg
cc93392367 Oops, forgot to commit this with the last change
From-SVN: r33582
2000-05-01 18:23:07 +00:00
Zack Weinberg
a7abcbbf92 cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now static.
* cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
	static.  Allocate the hashnode and its string in the same
	block of memory.
	(del_HASHNODE): Don't free h->name.
	(_cpp_lookup): If there is no entry for this string, create
	one, of type T_VOID.
	(_cpp_lookup_slot): Delete.
	* cpphash.h: Update prototypes.

	* cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
	not hp == NULL.
	* cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
	do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
	node here, just fill in the value field properly.  "Delete"
	entries by setting the value field to T_VOID.  Check for
	hp->type == T_VOID, not hp == NULL.

	* Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
	* cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
	hashtab.h.

From-SVN: r33581
2000-05-01 18:20:10 +00:00
Benjamin Kosnik
b7fe530c1e atomicity.h: Fix typo.
2000-04-30  Benjamin Kosnik  <bkoz@gnu.org>

	* config/cpu/powerpc/bits/atomicity.h: Fix typo.
	* mknumeric_limits (trait_name): Fix copyright notice.
	* src/gen-num-limits.cc: Explicitly instantiate epsilon and
	round_error data members of struct value. This works around
	weak-linking issues on AIX, HPUX.

From-SVN: r33580
2000-05-01 18:14:03 +00:00
Jeff Law
2f9b43773f Update copyrights.
From-SVN: r33579
2000-05-01 11:32:22 -06:00
Jeff Law
0d1cd67541 Update copyright.
From-SVN: r33578
2000-05-01 11:31:40 -06:00
Alexandre Oliva
79e4122c87 mn10300.c (print_operand_address): Do not add zero to SP.
* config/mn10300/mn10300.c (print_operand_address): Do not add
zero to SP.

From-SVN: r33577
2000-05-01 17:28:26 +00:00
Jeff Law
c30b633064 Update copyrights.
From-SVN: r33576
2000-05-01 11:24:23 -06:00
Jeff Law
694805a8c1 Update copyright
From-SVN: r33575
2000-05-01 11:18:52 -06:00
Jeff Law
a864ec13a6 Update copyright.
From-SVN: r33574
2000-05-01 11:17:55 -06:00
Alexandre Oliva
ed6089d61b mn10300.c (expand_epilogue): If SP is to be adjusted by less than 256 bytes...
* config/mn10300/mn10300.c (expand_epilogue): If SP is to be
adjusted by less than 256 bytes, use ret regardless of having any
callee-saved register to restore.

From-SVN: r33573
2000-05-01 17:09:05 +00:00
Laurynas Biveinis
7c714ee1c3 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
From-SVN: r33572
2000-05-01 10:53:03 -06:00
Mark Mitchell
9edc391342 cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New macro.
* cp-tree.h (same_type_ignoring_top_level_qualifiers_p): New
	macro.
	* call.c (standard_conversion): Use it.
	(direct_reference_binding): Likewise.
	(build_over_call): Likewise.
	(is_properly_derived_from): Likewise.
	(compare_ics): Likewise.
	* class.c (resolves_to_fixed_type_p): Likewise.
	* optimize.c (declare_return_variable): Likewise.
	* pt.c (is_specialization_of): Likewise.
	(unify): Likewise.
	* typeck.c (comp_target_parms): Likeiwse.
	(build_static_cast): Likewise.
	(build_reinterpret_cast): Likewise.
	(build_const_cast): Likewise.
	(comp_ptr_ttypes_real): Likewise.
	(comp_ptr_ttypes_const): Likewise.
	* typeck2.c (process_init_constructor): Likewise.

From-SVN: r33571
2000-05-01 16:51:17 +00:00
Mark Elbrecht
52e45a606d djgpp.h (INT_ASM_OP): Define.
* config/i386/djgpp.h (INT_ASM_OP): Define.
        (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
        (ASM_WEAKEN_LABEL): Define.
        (MASK_BNU210): Define.
        (SUBTARGET_SWITCHES): Define.
        (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
        (MAKE_DECL_ONE_ONLY): Define.
        (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.

From-SVN: r33570
2000-05-01 10:50:49 -06:00