Commit Graph

28853 Commits

Author SHA1 Message Date
Jeff Law
24b55e3aa0 Daily bump.
From-SVN: r34706
2000-06-26 01:45:07 -06:00
Alexandre Petit-Bianco
d6baf6f524 parse.y (do_resolve_class): Minor optimiztion in the package list search.
2000-06-25  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (do_resolve_class): Minor optimiztion in the package
	list search. Removed unecessary test and return statement.
	(valid_ref_assignconv_cast_p): Order of arguments to
	enclosing_context_p fixed.

From-SVN: r34705
2000-06-26 00:26:08 -07:00
Philipp Thomas
cab10d564e aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no, test for msgfmt without path instead.
2000-06-26  Philipp Thomas  <pthomas@suse.de>

	* aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
	test for msgfmt without path instead.
	* configure: Rebuilt.

From-SVN: r34704
2000-06-26 04:47:41 +00:00
Zack Weinberg
41035013e3 * gcc.dg/20000623-1.c: Prototype exit and abort.
From-SVN: r34703
2000-06-26 03:53:34 +00:00
Mark Mitchell
596fd31c72 cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
* cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
	(begin_global_stmt_expr): ... this.
	(genrtl_finish_stmt_expr): Rename to ...
	(finish_global_stmt_expr): ... this.
	* init.c (begin_init_stmts): Adjust calls.
	(finish_init_stmts): Likewise.
	* semantics.c (genrtl_begin_stmt_expr): Rename to ...
	(begin_global_stmt_expr): ... this.
	(genrtl_finish_stmt_expr): Rename to ...
	(finish_global_stmt_expr): ... this.

From-SVN: r34702
2000-06-26 02:18:14 +00:00
Zack Weinberg
b42115f711 20000625-1.c, [...]: New tests.
* gcc.dg/20000625-1.c, gcc.dg/20000625-2.c, gcc.dg/cpp-mi3.c:
        New tests.
	* gcc.dg/cpp-mi3.def: New file.

	* gcc.dg/cpp-as1.c: Also test that macro expansion does not occur
	inside assertions.
	* gcc.dg/cpp-as2.c: Make error regexps match either old or new
	lexer's error messages.
	* gcc.dg/cpp-mi.c: Use -H and examine the output, don't try to
	divine anything from the linemarkers.
	* gcc.dg/cpp-micc.h: Fix typo (declare int b, not int a);
	* gcc.dg/poison-1.c: Preprocess only; apply -fno-show-column.

From-SVN: r34701
2000-06-25 23:31:02 +00:00
Theodore Papadopoulo
1a03d9675e gengenrtl.c (special_rtx): Fix typo in comment.
* gengenrtl.c (special_rtx): Fix typo in comment.

    * search.c (lookup_member): Fix typo in comment.

From-SVN: r34700
2000-06-25 23:20:30 +00:00
Michael Hayes
ece0fc8dcb * mklibgcc.in (LIB2FUNCS): Add missing space.
From-SVN: r34699
2000-06-25 22:26:33 +00:00
Tom Tromey
ae4a4c88d0 expr.c (lookup_field): Print error and return error_mark_node if field reference is ambiguous.
* expr.c (lookup_field): Print error and return error_mark_node if
	field reference is ambiguous.

From-SVN: r34698
2000-06-25 17:30:38 +00:00
Tom Tromey
120f0c104a parse.y (check_abstract_method_definitions): Also check if `other_method' is abstract.
* parse.y (check_abstract_method_definitions): Also check if
	`other_method' is abstract.

From-SVN: r34697
2000-06-25 17:28:35 +00:00
Bernd Schmidt
4061f623a6 Vector support: type node creation & debugging support
From-SVN: r34696
2000-06-25 17:27:28 +00:00
Tom Tromey
f1ff439a50 re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)
* parse.y (patch_incomplete_class_ref): Initialize the returned
	class.  For PR gcj/260.

From-SVN: r34695
2000-06-25 17:25:31 +00:00
Kazu Hirata
6d77b53e7a Fix typos in comments.
From-SVN: r34694
2000-06-25 16:21:08 +00:00
Jeff Law
8c4e4f2650 Daily bump.
From-SVN: r34693
2000-06-25 01:45:07 -06:00
Philipp Thomas
17297c41c4 aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog compiler found.
* aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
	compiler found.
	AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
	* configure: Rebuilt.

From-SVN: r34692
2000-06-25 02:45:23 +00:00
John David Anglin
865e0471d9 vax.h (TARGET_SWITCHES): Provide descriptions.
2000-06-25  John David Anglin  <dave.anglin@nrc.ca>

        * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.

From-SVN: r34691
2000-06-24 23:52:22 +00:00
Herman A.J. ten Brugge
ee95744f31 mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating libgcc.a.
* mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
	libgcc.a.

From-SVN: r34690
2000-06-24 23:34:25 +00:00
Jason Merrill
60f33ea7dc add XFAIL
From-SVN: r34689
2000-06-24 18:28:07 -04:00
Jason Merrill
0b44a7e9ec fixed
From-SVN: r34688
2000-06-24 18:27:43 -04:00
Jason Merrill
be78ffb226 collect2.c (resolve_lib_name): Move '/' check to more rational place.
* collect2.c (resolve_lib_name): Move '/' check to more rational place.

        * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.

From-SVN: r34687
2000-06-24 18:19:46 -04:00
Jason Merrill
40f1e34222 decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.
* decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.
        (push_namespace): Set DECL_CONTEXT for a new NAMESPACE_DECL.

        * parse.y (complex_direct_notype_declarator): Support global_scope.
        * Makefile.in: Adjust conflict count.

From-SVN: r34686
2000-06-24 18:17:18 -04:00
Jason Merrill
5840d6e4f5 new
From-SVN: r34685
2000-06-24 18:12:16 -04:00
Jason Merrill
aaa52048c2 update stuff rule
From-SVN: r34684
2000-06-24 16:27:18 -04:00
Jason Merrill
58fc548644 remove XFAIL
From-SVN: r34683
2000-06-24 16:26:21 -04:00
Jason Merrill
290c3f1d7d add missed CL entry:
* toplev.c (compile_file): Always call timevar_print.
        * Makefile.in (calls.o): Depend on TIMEVAR_H.

From-SVN: r34682
2000-06-24 16:24:29 -04:00
Jakub Jelinek
ef97beff0a stmt.c (expand_decl_cleanup): Emit a dummy insn after last_unconditional_cleanup.
* stmt.c (expand_decl_cleanup): Emit a dummy insn after
	last_unconditional_cleanup.

From-SVN: r34681
2000-06-24 21:42:58 +02:00
Bernd Schmidt
0b4565c9d8 Vector conversions support
From-SVN: r34680
2000-06-24 19:26:42 +00:00
Tom Tromey
cf036e712c natDouble.cc (parseDouble): Renamed from doubleValueOf.
* java/lang/natDouble.cc (parseDouble): Renamed from
	doubleValueOf.
	* java/lang/Double.java (parseDouble): Renamed from
	doubleValueOf.  Now public.

From-SVN: r34679
2000-06-24 18:11:01 +00:00
Marek Michalkiewicz
78cf8279ac avr-protos.h (avr_hard_regno_mode_ok): New prototype.
* config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
	* config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
	New functions, common code moved from function_{prologue,epilogue}
	and extended to support the -mtiny-stack option.
	(function_prologue, function_epilogue): Use them.
	Use lo8/hi8 consistently for asm output readability.
	(avr_hard_regno_mode_ok): New function.
	* config/avr/avr.h (TARGET_SWITCHES): Fix typo.  Add -mtiny-stack.
	(UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
	(HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
	* config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
	Write SPH before SPL.
	(*movqi): No need to disable interrupts for just one "out"
	in alternative 5.  Change length attribute from 4 to 1.
	* config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
	Write SPH before SPL.

From-SVN: r34678
2000-06-24 22:01:26 +04:00
Bernd Schmidt
f9f27ee563 Vector support: rtx and mode definitions
From-SVN: r34677
2000-06-24 11:12:58 +00:00
Nathan Sidwell
e4e3ab5ad4 * cpp.texi: Clarify #pragma GCC namespace.
From-SVN: r34676
2000-06-24 09:21:22 +00:00
Jeff Law
7e0f5a1443 Daily bump.
From-SVN: r34675
2000-06-24 01:45:08 -06:00
Philipp Thomas
47f0185696 aclocal.m4 (AM_GNU_GETTEXT): If LINGUAS isn't set, build all catalogs specified in ALL_LINGUAS.
2000-06-24  Philipp Thomas  <pthomas@suse.de>

	* aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
	all catalogs specified in ALL_LINGUAS.
	* configure: Rebuilt.

From-SVN: r34674
2000-06-24 06:48:43 +00:00
Benjamin Kosnik
81ef147959 fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.
2000-06-23  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.
	(basic_filebuf::close): Use it.
	* bits/std_fstream.h (basic_filebuf): Remove default arguments for
	filebuf ctor.
	(basic_filebuf): Add _M_fileno_based data member.
        As reported by brent verner <brent@rcfile.org>
	* testsuite/27_io/filebuf_members.cc: New file.
	* testsuite/27_io/filebuf_members-1.tst: New file.

From-SVN: r34673
2000-06-24 00:56:05 +00:00
Benjamin Kosnik
ba5fbc87e3 filebuf_members.cc: New file.
2000-06-23  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* testsuite/27_io/filebuf_members.cc: New file.
	* testsuite/27_io/filebuf_members-1.tst: New file.
	* bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.
	(basic_filebuf::close): Use it.
	* bits/std_fstream.h (basic_filebuf): Remove default arguments for
	filebuf ctor.
	(basic_filebuf): Add _M_fileno_based data member.

	* bits/std_fstream.h: Formatting tweaks.
	* testsuite/27_io/ofstream_members.cc: New file.
	* testsuite/27_io/ofstream_members-1.tst: New file.
	* testsuite/27_io/ifstream_members.cc: New file.
	* testsuite/27_io/ifstream_members-1.tst: New file.

From-SVN: r34672
2000-06-24 00:53:06 +00:00
Benjamin Kosnik
b16810bfe2 std_fstream.h: Formatting tweaks.
2000-06-23  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/std_fstream.h: Formatting tweaks.
	* testsuite/27_io/ofstream_members.cc: New file.
	* testsuite/27_io/ofstream_members-1.tst: New file.
	* testsuite/27_io/ifstream_members.cc: New file.
	* testsuite/27_io/ifstream_members-1.tst: New file.

From-SVN: r34671
2000-06-23 22:21:47 +00:00
Tom Tromey
90db9131f1 For PR gcj/260:
* libjava.lang/PR260.out: New file.
	* libjava.lang/PR260.java: New file.

From-SVN: r34670
2000-06-23 21:53:52 +00:00
Jakub Jelinek
93b7b953e7 sparc.md (reload_outdi+1): Handle HOST_BITS_PER_WIDE_INT == 64 case correctly.
* config/sparc/sparc.md (reload_outdi+1): Handle
	HOST_BITS_PER_WIDE_INT == 64 case correctly.
	(adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.

From-SVN: r34669
2000-06-23 22:34:41 +02:00
Geoff Keating
3e0abe15d1 alias.c (fixed_scalar_and_varying_struct_p): Don't examine struct vs.
* alias.c (fixed_scalar_and_varying_struct_p): Don't examine
struct vs. scalar-ness when -fno-strict-aliasing.

and a test case to test it, gcc.dg/20000623-1.c.

From-SVN: r34668
2000-06-23 20:05:55 +00:00
Andrew Haley
56e3dd2cea ieeefp.h: Handle ia64, fr30, mcore.
* java/lang/ieeefp.h: Handle ia64, fr30, mcore.
	* java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.

From-SVN: r34667
2000-06-23 19:53:33 +00:00
Benjamin Kosnik
4f76382d2f acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so that all the freaky stuff like sincos will be around...
2000-06-23  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
            Ulrich Drepper  <drepper@cygnus.com>

	* acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so
	that all the freaky stuff like sincos will be around...

Co-Authored-By: Ulrich Drepper <drepper@cygnus.com>

From-SVN: r34666
2000-06-23 17:57:04 +00:00
Tom Tromey
782c59d653 natMethod.cc: Include <alloca.h>.
* java/lang/reflect/natMethod.cc: Include <alloca.h>.
	* java/lang/natDouble.cc: Always include <alloca.h>.
	Fix for PR libgcj/267.

From-SVN: r34665
2000-06-23 17:39:00 +00:00
Branko Cibej
f5e79dda40 Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags.
2000-06-22  Branko Cibej  <branko.cibej@hermes.si>

        * Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags.

From-SVN: r34664
2000-06-23 16:18:53 +00:00
Nathan Sidwell
82443371db cpplib.c (struct pragma_entry): New structure.
* cpplib.c (struct pragma_entry): New structure.
	(pragma_dispatch): Pragma dispatcher.
	(top_pragmas, gcc_pragmas): New static variables.
	(do_pragma): Use pragma_dispatch.
	(do_pragma_gcc): New pragma handler.
	* cpp.texi: Update.

From-SVN: r34663
2000-06-23 10:56:09 +00:00
Jakub Jelinek
7ab923ccff calls.c (compute_argument_addresses): Force stack slots into alias set 0.
* calls.c (compute_argument_addresses): Force stack slots into
	alias set 0.
	* expr.c (emit_push_insn): Force pushes into alias set 0.

From-SVN: r34662
2000-06-23 12:03:42 +02:00
Richard Henderson
054451eaca ia64.md (pred_rel_mutex): Only take one register.
* config/ia64/ia64.md (pred_rel_mutex): Only take one register.
        * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.

From-SVN: r34661
2000-06-23 01:35:58 -07:00
Jeff Law
52bd8c913b Daily bump.
From-SVN: r34660
2000-06-23 01:45:07 -06:00
Kriang Lerdsuwanakij
1899c3a49e parse.y (template_arg): Convert TEMPLATE_DECL that is a template template paramter to...
* parse.y (template_arg): Convert TEMPLATE_DECL
        that is a template template paramter to
        TEMPLATE_TEMPLATE_PARM here.

        * cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment.
        * cp-tree.h (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): New macro.
        (copy_template_template_parm): Adjust prototype.
        * decl.c (grokdeclarator): Remove dead code.
        * pt.c (process_template_parm): Tidy.
        (lookup_template_class): Construct nodes in
        copy_template_template_parm.
        (tsubst): Pass TEMPLATE_DECL rather than IDENTIFIER_NODE to
        lookup_template_class.  Use TYPE_TI_TEMPLATE.
        * tree.c (copy_template_template_parm): Add NEWARGS
        parameter.
        (mapcar): Adjust call to copy_template_template_parm.
        * typeck.c (comptypes): Use TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL.
        * method.c (build_template_template_parm_names): Change error
        code to avoid compilation warning.

        * gxxint.texi: Document template template parameter
        name mangling.

From-SVN: r34659
2000-06-23 02:49:45 -04:00
Jason Merrill
691125710d new
From-SVN: r34658
2000-06-23 02:45:58 -04:00
Alex Samuel
051664b069 in include/ChangeLog:
* dyn-string.h (dyn_string_init, dyn_string_new,
	dyn_string_delete, dyn_string_release, dyn_string_resize,
	dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
	dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
	dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
	dyn_string_append_char, dyn_string_substring_dyn_string_eq):
	Define as same name with __cxa_ prepended, if IN_LIBGCC2.
	(dyn_string_init, dyn_string_copy, dyn_string_copy_cstr,
	dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
	dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
	dyn_string_append_char, dyn_string_substring): Change return type
	to int.

in libiberty/ChangeLog:

	* cp-demangle.c: Don't include ctype.h.
	(IS_DIGIT): New macro.
	(IS_ALPHA): Likewise.  Use IS_DIGIT and IS_ALPHA throughout
	instead of isdigit and isalpanum.
	(demangling_def): Make name and next const pointers.
	(STATUS_ALLOCATION_FAILED): New status code.
	(dyn_string_append_space): Handle failure in
	dyn_string_append_char.
	(int_to_dyn_string): Likewise.  Change return value to status_t.
	(string_list_new): Handle failure of dyn_string_init.
	(result_close_template_list): Change return type to status_t.
	Handle failure in dyn_string_append.
	(result_push): Change return value to status_t.  Handle failure in
	string_list_new.  Handle failure of result_push throughout.
	(substitution_add): Change return value to status_t.  Handle
	dyn_string failures.  Handle failure of substitution_add
	throughout.
	(template_arg_list_new): Return NULL on allocation failure.
	(result_append_string): Return STATUS_ALLOCATION_FAILED on error.
	Handle error result throughout.
	(result_append): Likewise.
	(result_append_char): Likewise.
	(result_append_space): Likewise.
	(demangling_new): Make argument a const pointer.  Handle
	allocation failures.
	(demangle_template_args): Handle failure in template_arg_list_new
	and result_close_template_list.
	(demangle_discriminator): Return if int_to_dyn_string fails.
	(cp_demangle): Likewise.
	(cp_demangle_type): New function.
	(cplus_demangle_new_abi): Don't call dyn_string_delete.  Abort on
	memory allocation failure.
	(main): Likewise.
	* dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
	IN_LIBGCC2.
	(dyn_string_init): Change return value to int.  Handle
	RETURN_ON_ALLOCATION_FAILURE case.
	(dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
	(dyn_string_release): Delete the dyn_string.
	(dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
	(dyn_string_copy): Change return type to int.
	(dyn_string_copy_cstr): Likewise.
	(dyn_string_prepend): Likewise.
	(dyn_string_prepend_cstr): Likewise.
	(dyn_string_insert): Likewise.
	(dyn_string_insert_cstr): Likewise.
	(dyn_string_append): Likewise.
	(dyn_string_append_cstr): Likewise.
	(dyn_string_append_char): Likewise.
	(dyn_string_substring): Likewise.

in gcc/cp/ChangeLog:

	* Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o.
	(CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c.
	(cp-demangle.o): New rule.
	(dyn-string.o): Likewise.
	* inc/cxxabi.h (__cxa_demangle): New declaration.

From-SVN: r34657
2000-06-23 03:58:44 +00:00