Commit Graph

29497 Commits

Author SHA1 Message Date
Alexandre Petit-Bianco f34ff6d61e Top level ChangeLog:
2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* libjava: Imported from /cvs/java.
	* libffi: Likewise.
	* Boehm-gc: Likewise.

libjava/ChangeLog:

2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
	(ZIP): Points at fastjar instead of zip.
	(libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
	(libgcj_la_LDFLAGS): Correctly point at libsupc++.
	(libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
	(libgcjx_la_LDFLAGS): Correctly point at libsupc++.
	($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
	($(x_java_source_files:.java=.class):): Likewise.
	(libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
	fastar's flags.
	(CLEANFILES): libgcj.jar replaces libgcj.zip.
	(java/lang/ClassLoader.h:): Depends on libgcj.jar.
	(gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
	java/lang/String.h:, java/lang/reflect/Constructor.h:,
	java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
	gnu/gcj/runtime/VMClassLoader.h:,
	java/io/ObjectInputStream$$GetField.h:,
	java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
	(Makefile.in): Rebuilt.

gcc/java/ChangeLog:

2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* Make-lang.in (java/jcf-path.o:): libgcj.jar replaces libgcj.zip.
	jcf-path.c: Likewise.

From-SVN: r38167
2000-12-09 21:32:49 -08:00
Anthony Green 6e5589e8ad zipfile.h (ZipDirectory): Declare size, uncompressed_size, filestart and filename_length as int values.
* zipfile.h (ZipDirectory): Declare size, uncompressed_size,
	filestart and filename_length as int values.

From-SVN: r38165
2000-12-10 03:53:33 +00:00
Richard Henderson 7297e9fc9a genrecog.c (validate_pattern): Verify that ZERO_EXTRACT and STRICT_LOW_PART as SET_DEST have in-out constraints.
* genrecog.c (validate_pattern): Verify that ZERO_EXTRACT and
        STRICT_LOW_PART as SET_DEST have in-out constraints.

From-SVN: r38164
2000-12-09 14:06:52 -08:00
Joseph Myers e45046aeda c-common.c (check_function_format): Don't suggest adding format attributes to functions with no parameter to which...
* c-common.c (check_function_format): Don't suggest adding format
	attributes to functions with no parameter to which to add them.

testsuite:
	* gcc.dg/format-miss-2.c: New test.

From-SVN: r38163
2000-12-09 21:26:56 +00:00
Nick Clifton d3236b4d2a Remove some psurious whitespace
From-SVN: r38161
2000-12-09 20:53:53 +00:00
Nick Clifton 8e56560e46 Mark the generated insn not the set as being DWARF2_FRAME_RELATED_P.
From-SVN: r38160
2000-12-09 20:51:26 +00:00
Jason Merrill b1c1090273 Clean up copy-initialization in overloading code.
* call.c (build_user_type_conversion_1): Die if we are asked to
        convert to the same or a base type.
        (implicit_conversion): Avoid doing so.  Lose reference binding code.
        (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
        direct-initialization.  Also do direct-init part of copy-init.
        (build_user_type_conversion): Don't provide context to convert_like.
        * cvt.c (ocp_convert): build_user_type_conversion will now provide
        the constructor call for copy-init.

From-SVN: r38159
2000-12-09 14:03:24 -05:00
Jason Merrill 5e818b9351 error.c (dump_function_name): Don't let the user see __comp_ctor.
* error.c (dump_function_name): Don't let the user see __comp_ctor.

        Clean up copy-initialization in overloading code.
        * call.c (build_user_type_conversion_1): Die if we are asked to
        convert to the same or a base type.
        (implicit_conversion): Avoid doing so.  Lose reference binding code.
        (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
        direct-initialization.  Also do direct-init part of copy-init.
        (build_user_type_conversion): Don't provide context to convert_like.
        * cvt.c (ocp_convert): build_user_type_conversion will now provide
        the constructor call for copy-init.

        * pt.c (tsubst_decl): Call clone_function_decl here if this is an
        instantiation of a member template.
        (do_decl_instantiation): Not here.

From-SVN: r38158
2000-12-09 13:34:12 -05:00
Laurynas Biveinis 193ad8c673 Makefile.in: use $(build_exeext) for all build system executable targets.
* Makefile.in: use $(build_exeext) for all build
system executable targets.

From-SVN: r38157
2000-12-09 11:27:51 -05:00
DJ Delorie 961046eacb oops, that was a mistake
From-SVN: r38156
2000-12-09 11:25:20 -05:00
Laurynas Biveinis 6a52a2ef4b install.texi: remove i[345]86-*-winnt3.5 section.
* install.texi: remove i[345]86-*-winnt3.5 section.
* configur.bat: removed.
* config/msdos: directory removed.

From-SVN: r38153
2000-12-09 11:01:24 -05:00
Neil Booth 9766549120 lineflags.c: New tests.
* gcc.dg/cpp/lineflags.c: New tests.
        * gcc.dg/cpp/poison.c: Update.
        * gcc.dg/cpp/redef2.c: Update.
        * gcc.dg/cpp/skipping.c: New test.

From-SVN: r38151
2000-12-09 12:07:56 +00:00
Neil Booth 28e0f04034 cppfiles.c (NEVER_REREAD, [...]): Move from cpphash.h.
* cppfiles.c (NEVER_REREAD, DO_NOT_REREAD): Move from cpphash.h.
        * cpphash.h (NEVER_REREAD, DO_NOT_REREAD, ABSOLUTE_PATH): Delete.
        * cpplex.c (parse_identifier): Improve diagnostic.
        (_cpp_lex_token): Return unconditionally at the end of a directive.
        * cpplib.c (read_flag): Verify legality of each flag.
        (end_directive): Resotre pfile->skipping before skip_rest_of_line.
        (do_line): Use the new read_flag.
        * cppmacro.c (struct cpp_macro, parse_arg, replace_args,
        check_macro_redefinition, parse_params): Rename var_args to
        variadic.

From-SVN: r38150
2000-12-09 12:06:37 +00:00
Joseph Myers 1b32f732bf cvsignore: Add info files.
* .cvsignore: Add info files.

f:
	* .cvsignore: New file; add info files.

From-SVN: r38149
2000-12-09 10:22:30 +00:00
Jeff Law 7a21743b7e Daily bump.
From-SVN: r38148
2000-12-09 01:45:07 -07:00
Laurynas Biveinis 17f4d7aa73 winnt: Remove obsolete directory.
* config/winnt: Remove obsolete directory.
* install.texi (Configurations): Remove obsolete documentation for Windows NT.

From-SVN: r38147
2000-12-09 04:10:22 +00:00
Alexandre Oliva 1ccfe3fa1f Indentation fix
From-SVN: r38146
2000-12-09 03:42:29 +00:00
Joseph Myers 17db658241 configure.in: Don't define INSTALL_INFO.
* configure.in: Don't define INSTALL_INFO.
	* configure: Regenerate.
	* Makefile.in (INSTALL_INFO): Remove.
	(info): Depend on info files in source directory.
	(cpp.info, gcc.info, c-tree.info): Build info files in source
	directory.
	(distclean): Don't remove info files.
	(maintainer-clean): Remove info files from source directory.
	(install-normal): Depend on install-info.
	(install-info): Install info files from source directory, if they
	exist.
	* texinfo.tex: Update to version 2000-11-09.08 from ftp.gnu.org.

ch:
	* Make-lang.in (CHILL.info): Depend on info files in source
	directory.
	(ch/chill.info): Build info files in source directory.
	(CHILL.install-info): Install info files from source directory.

f:
	* Make-lang.in (f77.info): Depend on info files in source
	directory.
	(f/g77.info): Build info files in source directory; don't build
	them unless BUILD_INFO is "info".
	(f77.install-info): Install info files from source directory.

From-SVN: r38141
2000-12-08 22:54:06 +00:00
Alexandre Oliva 25fa8bdca2 lcm.c (optimize_mode_switching): Check whether an insn is a NOTE before taking its NOTE_LINE_NUMBER.
* lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
before taking its NOTE_LINE_NUMBER.

From-SVN: r38140
2000-12-08 22:28:57 +00:00
Nick Clifton a7cf60a24f Fix spelling typo
From-SVN: r38137
2000-12-08 19:57:06 +00:00
Nick Clifton 859230d482 Add pool ranges to load_indirect_jump pattern
From-SVN: r38135
2000-12-08 19:36:32 +00:00
Nick Clifton 6d3d91336c Add support for interrupt function attribute
From-SVN: r38134
2000-12-08 19:25:33 +00:00
Brad Lucier 2bff3fd527 * tradcpp.c (do_include): Make pointer differences 64-bit clean.
From-SVN: r38133
2000-12-08 18:42:13 +00:00
J"orn Rennecke cf9f5da02f fp-bit.c (_fpmul_parts): Use USItype variables as inputs for multiplies.
* fp-bit.c (_fpmul_parts): Use USItype variables as inputs
	for multiplies.

From-SVN: r38130
2000-12-08 09:14:03 +00:00
Jeff Law 7213219e03 Daily bump.
From-SVN: r38129
2000-12-08 01:45:07 -07:00
Mike Stump 2e35898e23 * Makefile.in (distclean): Remove alloca.c hashtab.c.
From-SVN: r38125
2000-12-08 03:02:46 +00:00
Zack Weinberg f6bbde28c4 safe-ctype.h: New file.
include:
	* safe-ctype.h: New file.
libiberty:
	* safe-ctype.c: New file.
	* Makefile.in (CFILES): Add safe-ctype.c.
	(REQUIRED_OFILES): Add safe-ctype.o.

	* argv.c: Define ISBLANK and use it, not isspace.
	* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
	strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
	uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
	before calling TOLOWER(c)/TOUPPER(c).
gcc:
	* Makefile.in (HOST_RTL): Add safe-ctype.o.
	(safe-ctype.o): New rule.
	* system.h: Include safe-ctype.h, not ctype.h.  No need to
	wrap ctype macros.

	* cpphash.h: Zap IStable and related macros.  Define is_* in
	terms of safe-ctype.h macros.
	* cppinit.c: Delete the IStable and all related code.

	* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
	is_space arrays.  Delete initialize_char_syntax.  Change all
	references to the above arrays to use macros instead.
	* tradcpp.h: Define is_idchar, is_idstart, is_space, and
	is_nvspace in terms of safe_ctype.h's macros.
	* tradcif.y: is_idchar, is_idstart are macros not arrays.

	* config/i370/i370.c, config/winnt/dirent.c,
	config/winnt/fixinc-nt.c, config/winnt/ld.c:
	Use uppercase ctype macros.  If we included ctype.h,
	include safe-ctype.h instead.

	* fixinc/fixfixes.c: Use uppercase ctype macros.  Don't test
	ISLOWER(c) before calling TOUPPER(c).
	* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
	* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h.  No need to
	wrap ctype macros.  Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
	* lex.c: Don't bother checking whether ISUPPER(c) before
	calling TOLOWER(c).  Don't bother checking whether isascii(c)
	before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
	* Make-lang.in: Link f/fini with safe-ctype.o.
	* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
	* com.c: Use TOUPPER, not ffesrc_toupper.
	* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
	* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
	* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
	initializing code; use TOUPPER and TOLOWER instead of
	ffesrc_toupper and ffesrc_tolower.
	* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
	Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
	* jvgenmain.c: Use ISPRINT not isascii.

From-SVN: r38124
2000-12-08 03:00:26 +00:00
Geoffrey Keating f3588f1aad * g++.old-deja/g++.other/eh3.C: New testcase.
From-SVN: r38123
2000-12-08 01:37:13 +00:00
DJ Delorie 54d7f9aa04 c-decl.c (grokdeclarator): preserve previous alignments when rebuilding array types.
* c-decl.c (grokdeclarator): preserve previous alignments when
rebuilding array types.

From-SVN: r38122
2000-12-07 20:10:40 -05:00
Neil Booth 5133d90e9e wtr-aggr-init-1.c, [...]: Update.
* gcc.dg/wtr-aggr-init-1.c, wtr-escape-1.c, wtr-int-type-1.c,
        wtr-label-1.c, wtr-static-1.c, wtr-strcat-1.c, wtr-suffix-1.c,
        wtr-switch-1.c, wtr-unary-plus-1.c, wtr-union-init-1.c
        wtr-union-init-2.c, wtr-union-init-3.c: Update.
        * gcc.dg/cpp/extratokens.c, tr-warn4.c, tr-warn5.c, tr-warn6.c:
        Update.

From-SVN: r38121
2000-12-07 23:21:09 +00:00
Neil Booth 642ce43464 cppfiles.c (struct include_file): Move from cpphash.h.
* cppfiles.c (struct include_file): Move from cpphash.h.
        (_cpp_never_reread): New function.
        (open_file, read_include_file): Use it.
        (stack_include_file): Set the buffer's sysp according to the
        path in which the file was found.
        (find_include_file): Don't set sysp.
        (cpp_make_system_header, actual_directory): Update.
        (_cpp_execute_include): Do #include_next lookup handling here,
        not in cpplib.c.  Use _cpp_never_reread.
        * cpphash.h (struct_include_file): Remove.
        (struct cpp_buffer): New member sysp.
        (CPP_IN_SYSTEM_HEADER, _cpp_execute_include): Update.
        (_cpp_never_reread): New.
        * cpplib.c (read_line_number): Rename read_flag.  Rework slightly.
        (end_directive): Clear line_extension flag.
        (_cpp_handle_directive): Set line_extension flag for #number.
        (do_include_next): Handle path lookup in _cpp_execute_include.
        (do_line): Cleanup to use read_flag.  Don't allow flags in #line.
        (_cpp_do_file_change): Update.
        (do_pragma_once): Use cpp_never_reread.  Clean up.
        * cpplib.h (struct lexer_state): New member line_extension.

From-SVN: r38120
2000-12-07 23:17:56 +00:00
Joseph Myers 02428c5d54 format-nonlit-1.c, [...]: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers.
* gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use
	__SIZE_TYPE__ instead of int for type of integers cast to
	pointers.

From-SVN: r38119
2000-12-07 23:03:21 +00:00
Richard Henderson f846e0de9b flow.c (calculate_global_regs_live): Force the stack pointer live after reload as well.
* flow.c (calculate_global_regs_live): Force the stack pointer live
        after reload as well.

From-SVN: r38114
2000-12-07 11:29:24 -08:00
Bruce Korb 83c4781c63 use "exeext" for variables and "build_exeext" for substitution
From-SVN: r38113
2000-12-07 14:42:39 +00:00
Nathan Sidwell 38da603971 class.c (check_field_decls): Don't special case anonymous fields in error messages.
* class.c (check_field_decls): Don't special case anonymous
	fields in error messages.
	(note_name_declared_in_class): Use %D on diagnostic.

	* tree.c (pod_type_p): Use strip_array_types.
	(cp_valid_lang_attribute): Likewise.
	* typeck.c (cp_type_quals): Strip arrays separately, to avoid
	multiple evaluations.
	(cp_has_mutable_p): Use strip_array_types.

From-SVN: r38112
2000-12-07 14:26:37 +00:00
Nathan Sidwell a11d04b523 cp-tree.h (sufficient_parms_p): Declare new function.
* cp-tree.h (sufficient_parms_p): Declare new function.
	* call.c (sufficient_parms_p): New function, broken out of ...
	(add_function_candidate): ... here. Use it.
	(add_conv_candidate): Use it.
	* decl.c (grok_ctor_properties): Use it.

From-SVN: r38111
2000-12-07 14:17:53 +00:00
Jakub Jelinek 5eec284733 optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
* optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.

	* g++.old-deja/g++.other/cleanup4.C: New test.

From-SVN: r38110
2000-12-07 10:19:10 +01:00
Jeff Law c0d82ab19c Daily bump.
From-SVN: r38109
2000-12-07 01:45:08 -07:00
Neil Booth 47e4bafaf1 * Changelog: Forgotten commit.
From-SVN: r38107
2000-12-07 08:03:07 +00:00
Joseph Myers c907e68489 c-common.c (warn_format_security): New variable.
* c-common.c (warn_format_security): New variable.
	(check_format_info): Warn about non-literal formats with no format
	arguments if either -Wformat-nonliteral or -Wformat-security is
	specified.
	(set_Wformat): Set warn_format_security for settings other than 1.
	* c-common.h (warn_format_security): Declare.
	* c-decl.c (c_decode_option): Decode -Wformat-security and
	-Wno-format-security.
	* invoke.texi: Document -Wformat-security.
	* toplev.c (documented_lang_options): Include -Wformat-security
	and -Wno-format-security.

cp:
	* decl2.c (lang_decode_option): Handle -Wformat-security.

testsuite:
	* format-sec-1.c: New test.

From-SVN: r38106
2000-12-07 07:56:44 +00:00
Joseph Myers 1c248308f4 c-common.c (check_format_info): Warn for non-constant format strings with strftime formats if -Wformat-nonliteral.
* c-common.c (check_format_info): Warn for non-constant format
	strings with strftime formats if -Wformat-nonliteral.  Where the
	format can convert arguments, if the format is not a string
	literal and there are no arguments to the format, give a different
	warning message from the general non-string-literal case.

testsuite:
	* gcc.dg/format-nonlit-3.c: New test.

From-SVN: r38105
2000-12-07 07:52:20 +00:00
Joseph Myers 014e7f1d30 c-common.c (format_wanted_type): Add reading_from_flag.
* c-common.c (format_wanted_type): Add reading_from_flag.
	(print_char_table): Mark %s and %S formats with flag "R".
	(check_format_info_main): Set up reading_from_flag appropriately.
	If aflag, always set writing_in_flag rather than relying on the
	format used being a scanf format and so having it set.
	(check_format_types): Check for formats reading through null
	pointers.

testsuite:
	* gcc.dg/c90-printf-1.c: Add test for printf formats reading
	through a null pointer.

From-SVN: r38104
2000-12-07 07:40:45 +00:00
Joseph Myers 8308e0b786 invoke.texi (-Wformat): Document what format features are checked.
* invoke.texi (-Wformat): Document what format features are
	checked.

From-SVN: r38103
2000-12-07 07:38:13 +00:00
Kriang Lerdsuwanakij 74601d7c09 pt.c (verify_class_unification): New function.
* pt.c (verify_class_unification): New function.
	(get_class_bindings): Use it.
	(try_class_unification): Tidy.
	(unify): Handle when argument of a template-id is not
	template parameter dependent.
	(template_args_equal): Handle when TREE_CODE's do not match.

	* g++.old-deja/g++.oliva/partspec1.C: Remove XFAIL.
	* g++.old-deja/g++.pt/partial4.C: New test.

From-SVN: r38102
2000-12-07 07:17:09 +00:00
Neil Booth 9ba2e1ef80 c-common.c (parse_in): Make a cpp_reader *.
* c-common.c (parse_in): Make a cpp_reader *.
        * cppfiles.c (_cpp_fake_include): Remove.
        * cpphash.h: Similarly.
        * cpplib.c (do_line): Don't call _cpp_fake_include.  A valid
        #line always creates a callback; FC_RENAME if there are no
        #line flags.
        * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
        The first EOF must be our get_char buffer.

From-SVN: r38101
2000-12-07 07:14:42 +00:00
Kazu Hirata 1120a1d327 * config/h8300/h8300.h: Fix formatting.
From-SVN: r38095
2000-12-06 20:14:30 -07:00
Joel Sherrill bc98ef7f6c config.gcc (a29k*-*-rtems*, [...]): New targets.
* config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
        h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
        * config.gcc (*-rtems*): Add support for gthr-rtems.h.
        * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
        config/h8300/rtems.h, config/mips/rtems.h: New files.

From-SVN: r38094
2000-12-06 19:42:02 -07:00
Mark Kettenis 5eeab2e3fd config.gcc: Reorganize handling of *-*-gnu*, to share target specific make details with Linux.
* config.gcc: Reorganize handling of *-*-gnu*, to share target
	specific make details with Linux.  Update comments to clarify
        the distinction between GNU/Linux and GNU/Hurd.

From-SVN: r38093
2000-12-06 19:35:41 -07:00
Rodney Brown f5720527d9 c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
* c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
    * collect2.c (scan_libraries): Remove unused `ch'.
    (COFF specific stuff): Prototype ldgetname.  Declare and prototype
    ldbtread and ldclose.

From-SVN: r38092
2000-12-06 19:31:47 -07:00
Jeffrey A Law 6b4b8cb9ef contrib.texi: Fix my email address.
* contrib.texi: Fix my email address.  Update Per's
        list of contributions.

From-SVN: r38091
2000-12-06 19:26:59 -07:00