Commit Graph

47295 Commits

Author SHA1 Message Date
Andrew Haley 399df6db87 dwarf2-signal.h: Remove x86_64.
2003-01-10  Andrew Haley  <aph@redhat.com>

        * include/dwarf2-signal.h: Remove x86_64.
        * configure.host (x86_64 DIVIDESPEC): Remove.
        * include/x86_64-signal.h: New file.
        * configure.in: Regenerate.

From-SVN: r61284
2003-01-14 13:51:15 +00:00
Kriang Lerdsuwanakij cf22909cee config-lang.in: Add semantics.c to gtfiles.
* config-lang.in: Add semantics.c to gtfiles.
	* cp-tree.h (flagged_type_tree_s): Remove lookups field.
	(saved_scope): Likewise.
	(type_lookups): Remove.
	(deferred_access): New structure.
	(type_access_control): Remove.
	(save_type_access_control): Likewise.
	(reset_type_access_control): Likewise.
	(decl_type_access_control): Likewise.
	(push_deferring_access_checks): Declare.
	(resume_deferring_access_checks): Likewise.
	(stop_deferring_access_checks): Likewise.
	(pop_deferring_access_checks): Likewise.
	(get_deferred_access_checks): Likewise.
	(pop_to_parent_deferring_access_checks): Likewise.
	(perform_deferred_access_checks): Likewise.
	(perform_or_defer_access_check): Likewise.
	* decl.c (make_typename_type): Use perform_or_defer_access_check.
	(make_unbound_class_template): Likewise.
	(grokdeclarator): Don't call decl_type_access_control.
	* parser.c (cp_parser_context): Remove deferred_access_checks
	and deferring_access_checks_p fields.
	(cp_parser_context_new): Adjust.
	(cp_parser): Remove access_checks_lists.
	(cp_parser_defer_access_check): Remove.
	(cp_parser_start_deferring_access_checks): Remove.
	(cp_parser_stop_deferring_access_checks): Remove.
	(cp_parser_perform_deferred_access_checks): Remove.
	(cp_parser_nested_name_specifier_opt): Use new deferred access
	functions.
	(cp_parser_simple_declaration): Likewise.
	(cp_parser_template_id): Likewise.
	(cp_parser_function_definition): Likewise.
	(cp_parser_class_specifier): Likewise.
	(cp_parser_lookup_name): Likewise.
	(cp_parser_single_declaration): Likewise.
	(cp_parser_pre_parsed_nested_name_specifier): Likewise.
	(cp_parser_parse_tentatively): Likewise.
	(cp_parser_parse_definitely): Likewise.
	(yyparse): Likewise.
	(cp_parser_init_declarator): Remove access_checks parameter.
	Use new deferred access functions.
	(cp_parser_function_definition_from_specifiers_and_declarator):
	Likewise.
	(cp_parser_class_head): Remove deferring_access_checks_p and
	saved_access_checks parameters.  Use new deferred access functions.
	(cp_parser_member_specification_opt): Don't call
	reset_type_access_control.
	* search.c (type_access_control): Remove.
	* semantics.c: Include "gt-cp-semantics.h".
	(deferred_type_access_control): Remove.
	(deferred_access_stack): New variable.
	(deferred_access_free_list): Likewise.
	(push_deferring_access_checks): New function.
	(resume_deferring_access_checks): Likewise.
	(stop_deferring_access_checks): Likewise.
	(pop_deferring_access_checks): Likewise.
	(get_deferred_access_checks): Likewise.
	(pop_to_parent_deferring_access_checks): Likewise.
	(perform_deferred_access_checks): New function, adapted from
	cp_parser_perform_deferred_access_checks.
	(perform_or_defer_access_check): New function, adapted from
	cp_parser_defer_access_check.
	(current_type_lookups): Remove.
	(deferred_type_access_control): Likewise.
	(decl_type_access_control): Likewise.
	(save_type_access_control): Likewise.
	(reset_type_access_control): Likewise.
	(begin_function_definition): Adjust.
	(begin_class_definiton): Likewise.

From-SVN: r61283
2003-01-14 13:40:53 +00:00
Andrew Haley a686ea5ba7 linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename registers to be in correct order.
2003-01-10    <aph@host240.cambridge.redhat.com>

        * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
        registers to be in correct order.  Add rip.

From-SVN: r61282
2003-01-14 13:33:03 +00:00
Andrew Haley 50cbc6057f [multiple changes]
2003-01-14  Andrew Haley  <aph@redhat.com>

        * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
        varargs function -- correct.

        * parse.y (patch_assignment): Copy the rhs of an assignment into a
        temporary if the RHS is a reference.

2003-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

        * Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.
        * keyword.h: Regenerated.

        * All Files: Convert to ISO C style function definitions.

From-SVN: r61281
2003-01-14 13:31:11 +00:00
Kazu Hirata 4d77fda24b h8300.md (*andsi3_lshiftrt_9_sb): New.
* config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
	(*iorsi3_and_lshiftrt_9_sb): Likewise.

From-SVN: r61280
2003-01-14 13:11:24 +00:00
Jan Hubicka 77f9af81d2 convert.c (strip_float_extensions): Look for narrowest type handling FP constants.
* convert.c (strip_float_extensions):  Look for narrowest type handling
	FP constants.

	* fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
	float1 CMP float2.
	* convert.c (strip_float_extensions): Make global.
	* tree.h (strip_float_extensions): Declare.

	* gcc.dg/i386-fpcvt-1.c: New test.
	* gcc.dg/i386-fpcvt-2.c: New test.

From-SVN: r61279
2003-01-14 13:03:47 +00:00
Eric Botcazou ab5496c403 * gcc.dg/i386-mmx-3.c: New test.
From-SVN: r61275
2003-01-14 11:35:02 +00:00
Andreas Jaeger 4b5f402e2d ffitest.c (main): Only use ffi_closures if those are supported.
* src/ffitest.c (main): Only use ffi_closures if those are
	supported.

From-SVN: r61273
2003-01-14 10:50:48 +01:00
GCC Administrator 17fb1987d6 Daily bump.
From-SVN: r61272
2003-01-14 08:17:31 +00:00
Andreas Jaeger 2c531de1ba Make-lang.in (treelang.install-info): Depend only on info files if BUILD_INFO is set.
* Make-lang.in (treelang.install-info): Depend only on info files
	if BUILD_INFO is set.  Fix install rules.
	(treelang.): New.

From-SVN: r61264
2003-01-14 09:03:58 +01:00
Tom Tromey 7b5102af84 [multiple changes]
2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>

	* libffi/src/ffitest.c
         add closure testcases

2003-01-13 Kevin B. Hendricks <khendricks@ivey.uwo.ca>

	* libffi/src/powerpc/ffi.c
         fix alignment bug for float (4 byte aligned iso 8 byte)

From-SVN: r61263
2003-01-14 05:15:21 +00:00
Benjamin Kosnik 8d59b23018 Renames, namespaces for testsuite utilities.
2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>

	Renames, namespaces for testsuite utilities.
	* testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
	(gnu_allocator_tracker): Rename to allocation_tracker.
	(gnu_new_allocator): Rename to tracker_alloc.
	(__set_testsuite_memlimit): Rename to set_memory_limits.
	(gnu_assignment_operator): Rename to assignment_operator.
	(gnu_destructor): Rename to destructor.
	(gnu_copy_tracker): Rename to copy_tracker.
	(gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
	(run_tests_wrapped_locale): New.
	(run_tests_wrapped_env): New.
	* testsuite/testsuite_hooks.cc: Same.
	(class locale_data): Add.
	(class enviornment_variable): Add.
	(class not_found): Add.
	* testsuite/testsuite_allocator.h: Same.
	* testsuite/testsuite_allocator.cc: Same.
	* testsuite/23_containers/deque_ctor.cc
	(test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
	allocation_tracker.
	Change gnu_new_allocator to tracker_alloc.
	Change gnu_counting_struct to counter.
	Change gnu_copy_tracker to copy_tracker.
	Change gnu_copy_constructor to copy_constructor.
	Change gnu_assignment_operator to assignment_operator.
	Inject.
	* testsuite/23_containers/vector_capacity.cc: Same.
	* testsuite/23_containers/vector_ctor.cc (test01): Same.
	* testsuite/23_containers/list_modifiers.cc: Change
	gnu_copy_tracker to copy_tracker.
	* testsuite/21_strings/ctor_copy_dtor.cc (main): Change
	__set_testsuite_memlimit to set_memory_limits.
	* testsuite/21_strings/insert.cc (main): Same.
	* testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
	* testsuite/27_io/stringstream.cc: Same.
	* testsuite/27_io/stringbuf.cc: Same.
	* testsuite/27_io/streambuf.cc: Same.
	* testsuite/27_io/ostream.cc: Same.
	* testsuite/27_io/istream.cc: Same.
	* testsuite/27_io/fstream.cc: Same.
	* testsuite/lib/libstdc++-v3-dg.exp
	(libstdc++-v3-list-sourcefiles): Additionally handle files two and
	three levels deeper in glob patterns.

From-SVN: r61261
2003-01-14 04:56:56 +00:00
Gabriel Dos Reis fd371a93fb timevar.def: define TV_NAME_LOOKUP.
* timevar.def: define TV_NAME_LOOKUP.
        * timevar.c (timevar_pop): Be verbose when aborting.

From-SVN: r61260
2003-01-14 03:38:24 +00:00
Joern Rennecke 58b23af855 Add 2003 copyright notices for constraints string patch, also 2002 notice
for genoutput.c .

From-SVN: r61258
2003-01-13 21:37:13 +00:00
Andreas Schwab dcd1c2b8fe Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to $(parsedir), just move the temporary file at the end.
* Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
	$(parsedir), just move the temporary file at the end.
	($(parsedir)/gengtype-yacc.c): Likewise.

From-SVN: r61257
2003-01-13 20:37:28 +00:00
Alexandre Oliva eb4b5f93f9 aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend ${ac_tool_prefix} to ADAC or CC.
* aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
${ac_tool_prefix} to ADAC or CC.  Protect them from word
splitting.
* configure: Rebuilt.

From-SVN: r61254
2003-01-13 17:23:25 +00:00
Kaveh R. Ghazi f783576821 gmon-sol2.c (moncontrol, [...]): Don't use PARAMS.
* config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
	internal_mcount): Don't use PARAMS.
	(monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
	ISO C style.
	(internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.

From-SVN: r61253
2003-01-13 16:23:31 +00:00
Andreas Schwab 38a3dbbb30 sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type directive.
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
	directive.

From-SVN: r61252
2003-01-13 15:38:58 +00:00
Kazu Hirata 98dc53e3af h8300.md (*andsi3_lshift_n_sb): New.
* config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
	(*iorsi3_and_lshiftrt_n_sb): Likewise.

From-SVN: r61251
2003-01-13 13:20:27 +00:00
Jason Merrill c226b80339 re PR c++/8748 (ICE in cp_expr_size at cp/cp-lang.c: 307)
PR c++/8748
        * class.c (build_base_path): Take the address before calling save_expr.

From-SVN: r61250
2003-01-13 04:16:21 -05:00
Jason Merrill 970684896d call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if all the ambiguous conversions are bad.
* call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
        all the ambiguous conversions are bad.

From-SVN: r61249
2003-01-13 04:16:06 -05:00
Jason Merrill e1dfc61b5b class.c (maybe_warn_about_overly_private_class): Don't stop searching when we find a nonprivate method.
* class.c (maybe_warn_about_overly_private_class): Don't stop
        searching when we find a nonprivate method.

From-SVN: r61248
2003-01-13 04:15:29 -05:00
Jason Merrill f576dfc407 re PR c++/8748 (ICE in cp_expr_size at cp/cp-lang.c: 307)
PR c++/8748
        * class.c (build_base_path): Take the address before calling save_expr.

        * call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
        all the ambiguous conversions are bad.

        * class.c (maybe_warn_about_overly_private_class): Don't stop
        searching when we find a nonprivate method.

        * typeck.c (build_class_member_access_expr): Use unary_complex_lvalue.

From-SVN: r61246
2003-01-13 04:14:47 -05:00
GCC Administrator e308bc5ad3 Daily bump.
From-SVN: r61245
2003-01-13 08:17:46 +00:00
Tom Tromey 6b8c548930 re PR libgcj/9139 (mauve tests require installation)
Fix for PR libgcj/9139:
	* lib/libjava.exp (find_javac): Put value of libgcj_jar into
	return value when gcj is used.
	* libjava.mauve/mauve.exp (test_mauve): Use libgcj_jar global.

From-SVN: r61237
2003-01-13 00:22:20 +00:00
Mark Mitchell 8fa1ad0e6a re PR c++/9264 ([parser] ICE on invalid octal constant)
* cp-tree.h (get_arglist_len_in_bytes): Remove.

	PR c++/9264
	* parser.c (cp_parser_elaborated_type_specifier): Handle erroneous
	typeame types more robustly.

	PR c++/9172
	* g++.dg/parse/typename1.C: New file.

From-SVN: r61236
2003-01-13 00:16:12 +00:00
Mark Mitchell e8f2b18d0e re PR c++/9264 ([parser] ICE on invalid octal constant)
PR c++/9264
	* c-lex.c (c_lex): Set the token value to error_mark_node for
	invalid numeric constants.

	PR c++/9264
	* g++.dg/parse/octal1.C: New file.

From-SVN: r61235
2003-01-13 00:14:59 +00:00
Kaveh R. Ghazi 70f8b89fd9 c-pch.c (asm_file_startpos): Change to `long'.
* c-pch.c (asm_file_startpos): Change to `long'.
	(pch_init): Use ftell, not ftello.
	(c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
	Use `long' instead of `off_t'.
	(c_common_read_pch): Likewise.
	* ggc-common.c (gt_pch_save): Use long/ftell instead of
	off_t/ftello.

From-SVN: r61233
2003-01-12 16:44:09 +00:00
GCC Administrator ae6ccbe391 Daily bump.
From-SVN: r61229
2003-01-12 08:17:26 +00:00
Phil Edwards 3a9fdf3058 tables.html: Finished now.
2003-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/tables.html:  Finished now.
	* docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
	* include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
	comments.

	* include/bits/deque.tcc, include/bits/stl_alloc.h,
	include/bits/stl_deque.h, include/bits/stl_list.h,
	include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
	for 3.4 removal.

From-SVN: r61221
2003-01-12 02:56:50 +00:00
Kaveh R. Ghazi b3504bc126 Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.
* Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.

	* keyword.h: Regenerated.

From-SVN: r61220
2003-01-12 02:43:41 +00:00
Kaveh R. Ghazi 70b384b0c5 com.c (ffecom_convert_narrow_, [...]): Convert to ISO C style function definitions.
* com.c (ffecom_convert_narrow_, ffecom_convert_widen_,
	pushdecl_top_level, storedecls, convert, delete_block,
	insert_block, ffe_init, ffe_mark_addressable, poplevel,
	ffe_print_identifier, pushdecl, pushlevel, set_block,
	ffe_signed_or_unsigned_type, ffe_signed_type,
	ffe_truthvalue_conversion, ffe_type_for_mode, ffe_type_for_size,
	ffe_unsigned_type, append_include_chain, open_include_file,
	read_filename_string, read_name_map): Convert to ISO C style function
	definitions.
	* parse.c (ffe_parse_file): Likewise.
	* top.c (ffe_is_digit_string_): Likewise.

From-SVN: r61219
2003-01-12 02:32:39 +00:00
Kaveh R. Ghazi 0a2f0c5497 * All Files: Convert to ISO C style function definitions.
From-SVN: r61218
2003-01-12 02:14:56 +00:00
Alan Modra 8e37cba890 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
From-SVN: r61215
2003-01-12 09:13:12 +10:30
Richard Earnshaw 04f08c8ef9 * arm-protos.h (struct cpp_reader): Add declaration.
From-SVN: r61203
2003-01-11 12:19:46 +00:00
Jan Hubicka a5cf80f095 re PR target/9068 ([x86] comisd & comiss constraints are incorrect)
PR target/9068
	* i386.c (output_fp_compare): Fix typo.

From-SVN: r61199
2003-01-11 10:07:57 +00:00
Phil Edwards 15d2cb190e parser.c: Fix comment typos.
2003-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* parser.c:  Fix comment typos.

From-SVN: r61198
2003-01-11 09:09:41 +00:00
GCC Administrator 2b95bca63e Daily bump.
From-SVN: r61197
2003-01-11 08:17:18 +00:00
David Edelsohn bbfb86aa04 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
From-SVN: r61190
2003-01-10 22:25:11 -05:00
Geoffrey Keating 3859c32a55 Makefile.in (parsedir): New variable.
* Makefile.in (parsedir): New variable.
	(docobjdir): New variable.
	(c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
	gengtype-lex.c, gengtype-yacc.c): Use parsedir.
	(info, cpp.info, gcc.info, gccint.info, gccinstall.info,
	cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
	gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
	Use docobjdir.
	* objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
	objc.maintainer-clean): Use parsedir.

From-SVN: r61189
2003-01-11 02:18:37 +00:00
Michael Koch 927818a598 2003-01-10 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
	(ch): Description added.
	(remotePort): Initialize with -1.
	(connect): Doesnt throws SocketException.
	* java/net/MulticastSocket.java
	(setInterface): Merge with Classpath.
	* java/net/ServerSocket.java
	(closed): New member variable.
	(bind): Check if socket is closed.
	(close): Close an associated channel too, set new value to closed.
	(isBound): Reindented.
	(isClosed): Implemented.
	* java/net/Socket.java
	(closed): New member variable.
	(bind): Check if socket is closed.
	(connect): Check if socket is closed.
	(close): Close an associated channel too, set new value to closed.
	(isClosed): Implemented.

From-SVN: r61185
2003-01-11 01:17:19 +00:00
Michael Koch b1771c6ac2 2003-01-10 Michael Koch <konqueror@gmx.de>
* java/awt/DisplayMode.java
	(equals): Fixed argument type and implementation.

From-SVN: r61184
2003-01-11 00:51:29 +00:00
Geoffrey Keating 63af3bd1a2 varasm.c (struct constant_descriptor_rtx): Remove unused `label' field.
* varasm.c (struct constant_descriptor_rtx): Remove unused
	`label' field.

From-SVN: r61182
2003-01-11 00:47:36 +00:00
Geoffrey Keating 223b87b6ac * toplev.c (documented_lang_options): Document -Winvalid-pch.
From-SVN: r61181
2003-01-11 00:45:47 +00:00
Danny Smith 67a7278d38 bf-ms-layout.c: Enable for cygwin and mingw32 targets.
* gcc.dg/bf-ms-layout.c: Enable for cygwin and mingw32 targets.
	* gcc.dg/bf-no-ms-layout.c: Likewise.
 	* gcc.dg/bf-ms-attrib.c: Likewise.

From-SVN: r61180
2003-01-10 23:56:06 +00:00
Richard Henderson fbadafbc20 alpha.h (NO_PROFILE_COUNTERS): Set.
* config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
        (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.

From-SVN: r61179
2003-01-10 15:54:34 -08:00
Richard Henderson ab5ecb014b combine.c (make_compound_operation): Use SCALAR_INT_MODE_P, not INTEGRAL_MODE_P when widening extensions.
* combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
        not INTEGRAL_MODE_P when widening extensions.

From-SVN: r61178
2003-01-10 15:36:17 -08:00
Jason Merrill c3104d7532 new test
From-SVN: r61177
2003-01-10 18:34:44 -05:00
Richard Henderson 7f24e7c59c * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
From-SVN: r61176
2003-01-10 15:07:53 -08:00
Mark Mitchell 99152b955c Correct PR# in previous check-in.
From-SVN: r61175
2003-01-10 22:59:52 +00:00