Commit Graph

29439 Commits

Author SHA1 Message Date
Warren Levy
7db51521a0 mauve-libgcj: Activated serialization tests.
* mauve-libgcj: Activated serialization tests.
	* gcj/field.h (getModifiers): Mask off unknown flags.
	* gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
	spurious bits don't cause discrepancies.
	* java/io/ObjectOutputStream.java: Fixed typo in comment.
	* java/io/ObjectStreamClass.java: Fixed typos in comments.
	(lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
	(hasClassInitializer): Call getDeclaredMethod instead of getMethod.
	* java/lang/Throwable.java (serialVersionUID): New field.
	* java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
	* java/lang/reflect/natConstructor.cc (getModifiers): Mask off
	unknown flags.
	* java/lang/reflect/natMethod.cc: Ditto.
	* java/security/Key.java (serialVersionUID): Removed field for now.
	* java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
	* java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.

Serialization mods.

From-SVN: r35302
2000-07-27 23:57:07 +00:00
Mark Mitchell
b2244c65f5 cp-tree.h (function_depth): Declare.
* cp-tree.h (function_depth): Declare.
	(verify_stmt_tree): Likewise.
	(find_tree): Likewise.
	* decl.c (function_depth): Give it external linkage.
	* optimize.c (optimize_function): Increment and decrement it.
	* tree.c (verify_stmt_tree_r): New function.
	(verify_stmt_tree): Likewise.
	(find_tree_r): Likewise.
	(find_tree): Likewise.

From-SVN: r35301
2000-07-27 21:10:29 +00:00
Joseph Myers
98be7846ad c-decl.c (finish_function): Don't treat 'main' specially unless flag_hosted.
* c-decl.c (finish_function): Don't treat 'main' specially unless
	flag_hosted.  In C99 mode, return 0 from 'main' unless
	DEFAULT_MAIN_RETURN is otherwise defined.

From-SVN: r35300
2000-07-27 13:51:41 -06:00
Joseph Myers
c1445f3dec * gcc.dg/c99-main-1.c: New test.
From-SVN: r35299
2000-07-27 13:49:25 -06:00
Jeff Law
c00fb68324 Fix typo.
From-SVN: r35298
2000-07-27 12:50:18 -06:00
Jason Merrill
62e3bf5476 dwarf2out.c (gen_typedef_die): Abort if we get identical TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
* dwarf2out.c (gen_typedef_die): Abort if we get identical
        TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.

        * typeck.c (common_type): If we're just returning one of our
        arguments, don't strip typedef types.

From-SVN: r35297
2000-07-27 14:22:39 -04:00
Mark Mitchell
589ca5cb10 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
* rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
	* bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
	(get_prev_bb_note): Likewise.
	(remove_scope_notes): Likewise.
	* flow.c (commit_one_edge_insertion): Likewise.
	(merge_blocks_nomove): Likewise.
	(verify_flow_info): Likewise.
	* gcse.c (insert_insn_end_bb): Likewise.
	* reg-stack.c (emit_swap_insn): Likewise.
	* ssa.c (first_insn_after_basic_block_note): New function.
	(insert_phi_node): Use it.
	(rename_block): Likewise.
	(eliminate_phi): Likewise.
	(make_regs_equivalent_over_bad_edges): Likewise.
	(make_equivalent_phi_alternatives_equivalent): Likewise.
	(for_each_successor_phi): Likewise.
	(convert_from_ssa): Modify phi-node deletion algorithm.

From-SVN: r35296
2000-07-27 17:25:14 +00:00
Tom Tromey
2d97a71922 RectangularShape.java (getPathIterator): Wrote.
* java/awt/geom/RectangularShape.java (getPathIterator):
	Wrote.

From-SVN: r35295
2000-07-27 16:27:42 +00:00
Kaveh R. Ghazi
f25aa0d32d fini.c (main): Avoid automatic aggregate initialization.
* fini.c (main): Avoid automatic aggregate initialization.

	* proj.h: Indent #error directive.

From-SVN: r35294
2000-07-27 15:58:01 +00:00
Rodney Brown
bebe228005 expr.h (get_alias_set, [...]): Delete prototypes.
* expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
        * tree.h (get_alias_set, lang_get_alias_set): Prototype.

From-SVN: r35293
2000-07-27 09:54:27 -06:00
Joseph Myers
46ca739cb5 c-decl.c (store_parm_decls): In C99 mode...
* c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
        parameters defaulting to int in an old-style function definition.

From-SVN: r35292
2000-07-27 09:49:56 -06:00
Joseph Myers
1b3980905d * gcc.dg/c90-impl-int-2.c, gcc.dg/c99-impl-int-2.c: New tests.
From-SVN: r35291
2000-07-27 09:39:08 -06:00
Kaveh R. Ghazi
3dc8d16901 c-parse.in (string): For -Wtraditional, warn about string concatenation only once per line.
* c-parse.in (string): For -Wtraditional, warn about string
	concatenation only once per line.

From-SVN: r35290
2000-07-27 15:35:32 +00:00
Akiko Matsushita
0bd1878833 x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES for HI-UX/WE2 systems.
* pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
        for HI-UX/WE2 systems.

From-SVN: r35289
2000-07-27 09:26:05 -06:00
Bruce Korb
71e06bdeed rely* on GCC defining the __xxx_TYPE__ macros
From-SVN: r35288
2000-07-27 13:29:21 +00:00
Alexandre Petit-Bianco
1e12ab9b73 [multiple changes]
2000-07-25  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (jdep_resolve_class): Don't bother checking potential
        innerclass access if `decl' is NULL.
        (find_in_imports_on_demand): TREE_PURPOSE of `import' contains the
        WFL.

2000-07-24  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (find_as_inner_class): Removed 2000-07-19 patches.
        * jcf-parse.c (HANDLE_INNERCLASSES_ATTRIBUTE): Local `decl' moved
        outside the `if' statement, alias to innerclass removed, `decl'
        used to mark the class complete.

From-SVN: r35287
2000-07-27 04:13:51 -07:00
Jeff Law
b8e42be70d Daily bump.
From-SVN: r35286
2000-07-27 01:45:08 -06:00
Mark Mitchell
5a728aca65 decl.c (start_cleanup_fn): Mark the function as `inline'.
* decl.c (start_cleanup_fn): Mark the function as `inline'.
	* decl2.c (get_guard): Call cp_finish_decl, not
	rest_of_decl_compilation, for local guards.
	* lex.c (do_identifier): Remove unused variable.

From-SVN: r35285
2000-07-27 04:49:17 +00:00
Andrew Cagney
1b68067d75 cpp.texi: Append a trailing full-stop to xrefs where needed.
Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>

        * cpp.texi: Append a trailing full-stop to xrefs where needed.

From-SVN: r35284
2000-07-27 02:19:28 +00:00
Dave Pitts
4f21e37737 mh-openedition.h: Added -DLE370 definition.
2000-04-27  Dave Pitts  <dpitts@cozx.com>

        * config/mh-openedition.h: Added -DLE370 definition.

From-SVN: r35283
2000-07-26 20:00:36 -06:00
Dave Pitts
8d1349cc37 i370.c: Remove LONGEXTERNAL ifdef from alias_number.
* i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
        routine constants.
        (mvs_hash_alias): New function.
        (mvs_add_alias): Change argument spacing.
        (mvs_need_alias): Change aliasing criteria. Added documentation.
        (mvs_get_alias): Change to use hashed name. The hashed name prevents
        CSECT name collisions.
        (mvs_check_alias): Likewise.
        (handle_pragma): Change documentation.
        * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
        mode from SImode to DImode.
        (iorhi3): Changed LTORG size for insn.

From-SVN: r35282
2000-07-26 19:55:55 -06:00
Mark Elbrecht
0aab2795b3 pexecute.c (pexecute): Change __GO32__ to __DJGPP__.
* pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
        __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
        Cast program to 'char *' in errmsg_arg assignment.
        (PWAIT_ERROR): Define.
        (pwait): Use PWAIT_ERROR.  Adjust DJGPP's status code to conform
        to DJGPP's WIF* macros.

From-SVN: r35281
2000-07-26 19:48:33 -06:00
Hans-Peter Nilsson
ecbe6c619d reload.c (find_reloads_toplev): Reload a paradoxical subreg of a mem if the address is a mode_dependent_address_p.
* reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
        mem if the address is a mode_dependent_address_p.

From-SVN: r35280
2000-07-26 19:45:41 -06:00
Hans-Peter Nilsson
fc5f1cca41 * gcc.c-tortuer/execute/20000726-1.c: New test.
From-SVN: r35279
2000-07-26 19:43:08 -06:00
Kazu Hirata
9f9f0e4f9e h8300.c (print_operand): Print ":8" when the 'R' operand is suitable for 8-bit absolute.
* h8300.c (print_operand): Print ":8" when the 'R' operand is
        suitable for 8-bit absolute.
        * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
        (OK_FOR_U): Add a case for the 8-bit constant address on the
        H8/300H.

From-SVN: r35278
2000-07-26 19:38:33 -06:00
Hans-Peter Nilsson
ec1bff50af * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
&& ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
        ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
        lack of implemented alignment.

From-SVN: r35277
2000-07-26 19:35:17 -06:00
Jeff Law
bae122a67d Add Geoff K to the folks with global write permissions.
From-SVN: r35276
2000-07-26 19:28:25 -06:00
Geoff Keating
a2061c0d61 emit-rtl.c (gen_lowpart_common): Handle cross-compiling between 64-bit and 32-bit machines.
* emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
cross-compiling between 64-bit and 32-bit machines.

From-SVN: r35275
2000-07-27 00:15:23 +00:00
Richard Henderson
75cdbeb8b6 ia64.md (movqicc_astep, [...]): New.
* config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
        (movhicc_astep, movhi_internal_astep): New.
        (movsicc_astep, movsi_internal_astep): New.
        (movdicc_astep, movdi_internal_astep): New.
        (movsfcc_astep, movsf_internal_astep): New.
        (movdfcc_astep, movdf_internal_astep): New.
        (movxfcc_astep, movxf_internal_astep): New.
        (cmovdi_internal_astep, cmovsi_internal_astep): New.
        Unify the cmov[ds]i splitters.

From-SVN: r35274
2000-07-26 17:12:52 -07:00
Rodney Brown
73aa9564f6 getcwd.c: Include string.h, stdlib.h for prototypes
* getcwd.c: Include string.h, stdlib.h for prototypes

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r35273
2000-07-26 17:29:55 -06:00
Rodney Brown
c2f275e484 Makefile.in (rename.o, waitpid.o): Depend on config.h
* Makefile.in (rename.o, waitpid.o): Depend on config.h
        * rename.c: include config.h, unistd.h
        * waitpid.c: include config.h, sys/wait.h

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r35272
2000-07-26 17:23:24 -06:00
Rodney Brown
c6a8e61614 * real.c (asctoeg): Rename `error' label to unexpected_char_error
From-SVN: r35271
2000-07-26 17:18:47 -06:00
Nick Clifton
5d7a9c0a28 Remove definition of __arm__ from CPP_PREDEFINES
From-SVN: r35270
2000-07-26 21:39:42 +00:00
Phil Edwards
421173e6d3 acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld before trying to use any of its options.
2000-07-26  Phil Edwards  <pme@sourceware.cygnus.com>

	* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES):  Test for GNU ld
	  before trying to use any of its options.
	  (CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*):  Cache tests.
	* aclocal.m4:  Regenerate.
	* configure.in:  Having found GNU make, name it.
	* configure:  Regenerate.
	* docs/install.html:  Mention possible problems with caching.
	* src/Makefile.am (CXXLINK):  Use new OPT_LDFLAGS.
	* src/Makefile.in:  Regenerate.
	* libio/Makefile.in:  Regenerate.
	* math/Makefile.in:  Regenerate.
	* Makefile.in:  Regenerate.

From-SVN: r35269
2000-07-26 21:30:45 +00:00
Nick Clifton
79d1334242 Accept SEQUENCE as well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
From-SVN: r35268
2000-07-26 20:59:32 +00:00
Benjamin Kosnik
28861379fe misc-inst.cc (std): Remove instantiations.
2000-07-26  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/misc-inst.cc (std): Remove instantiations.

	* acinclude.m4: Add forward-looking bits for autoconf.
	* aclocal.m4: Regenerate.

	* bits/ostream.tcc (ostream::operator<<): Fix const char* case.

From-SVN: r35267
2000-07-26 20:55:48 +00:00
Marc Espie
6a1fa5f972 * parse.y: Add missing ';'.
From-SVN: r35266
2000-07-26 18:15:28 +00:00
Mark Mitchell
0c10a805de parse.y (empty_parms): Use ()', not (...)', when in the scope of `extern "C++"'.
* parse.y (empty_parms): Use `()', not `(...)', when in the scope
	of `extern "C++"'.

From-SVN: r35265
2000-07-26 15:40:08 +00:00
Toon Moene
5dc2d67f2c lang-specs.h: Remove one /dev/null from tradcpp invocation.
2000-07-26  Toon Moene  <toon@moene.indiv.nluug.nl>

	* lang-specs.h: Remove one /dev/null from tradcpp invocation.

From-SVN: r35264
2000-07-26 12:37:12 +00:00
Jeff Law
19b895f01b Daily bump.
From-SVN: r35263
2000-07-26 01:45:08 -06:00
Benjamin Kosnik
5780a46bca configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL.
2000-07-25  Benjamin Kosnik  <bkoz@gnu.org>

	* configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. Change
	it back for current versions of maintainer-tools...
	* acinclude.m4: Some cleanups...
	* aclocal: Regenerated.
	* configure: Regenerated.

	* src/Makefile.am (CXXLINK): Add -Wl,-01 to the link line for
	optimizing/adapting the hash table using GNU ld.
	* src/Makefile.in: Regenerate.

	* bits/std_fstream.h: Parameterize __basic_file.
	* config/c_io_libio.cc: Add wchar_t methods for parameterization.
	* bits/basic_file.h: Same here.

	* bits/fstream.tcc: Shorten __retval to __ret.
	* bits/ostream.tcc: Same.
	* bits/sbuf_iter.h: Same.
	* bits/sstream.tcc: Same.
	* bits/streambuf.tcc: Same.
	* bits/std_fstream.h: Same.
	* src/string-inst.cc: Same.
	* src/ios.cc: Same.
	* config/c_io_libio.cc: Same.
	* bits/string.tcc: Same.
	* bits/std_streambuf.h: Same.

From-SVN: r35262
2000-07-26 06:51:38 +00:00
H.J. Lu
44fc6a025a Makefile.am (LIBIO_INCLUDES): Set to -I$(top_srcdir)/libio even if GLIBCPP_NEED_LIBIO is false.
2000-07-24  H.J. Lu  <hjl@gnu.org>

        * src/Makefile.am (LIBIO_INCLUDES): Set to -I$(top_srcdir)/libio
        even if GLIBCPP_NEED_LIBIO is false. The installed glibc header
        files don't include private libio header files needed by
        libstdc++ v3.
        * src/Makefile.in: Rebuild.

From-SVN: r35261
2000-07-26 06:49:33 +00:00
Alexandre Oliva
ad88bb8b2c * gcc.c-torture/execute/enum-2.c: New test.
From-SVN: r35260
2000-07-26 03:51:55 +00:00
Alexandre Oliva
736f85c700 c-decl.c (finish_enum): Convert enumerations that fit in an int' to int'.
* c-decl.c (finish_enum): Convert enumerations that fit in an
`int' to `int'.
(build_enumerator): In pedantic mode, cast to `int' those that
don't.

From-SVN: r35259
2000-07-26 03:50:56 +00:00
Rodney Brown
54ffbc76a6 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
From-SVN: r35258
2000-07-25 15:29:02 -07:00
J"orn Rennecke
1987b7bcf6 sh.md (cmpgtdi_t): Must be split.
* sh.md (cmpgtdi_t): Must be split.
	(cmpgtdi_t+1): New splitter.

From-SVN: r35257
2000-07-25 23:10:38 +01:00
Zack Weinberg
bc013f005f cpplib.c (_cpp_check_directive): Issue -Wtraditional warnings for indented directives even if we are skipping.
* cpplib.c (_cpp_check_directive): Issue -Wtraditional
	warnings for indented directives even if we are skipping.

From-SVN: r35256
2000-07-25 21:02:10 +00:00
Kaveh R. Ghazi
f47e40847d * gcc.dg/cpp/tr-warn3.c: New test.
From-SVN: r35255
2000-07-25 20:43:05 +00:00
Nathan Sidwell
8b27e9efa0 Kill strict_prototype.
Kill strict_prototype. Backwards compatibility only for
	non NO_IMPLICIT_EXTERN_C systems.
	* cp-tree.h (flag_strict_prototype): Remove.
	(strict_prototype): Remove.
	(strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
	* decl.c (maybe_push_to_top_level): Adjust.
	(pop_from_top_level): Adjust.
	(decls_match): Only allow sloppy parm matching for ancient
	system headers.
	(init_decl_processing): Adjust.
	(grokdeclarator): Adjust.
	* decl2.c (flag_strict_prototype): Remove.
	(strict_prototype): Remove.
	(strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
	(lang_f_options): Remove "strict-prototype".
	(unsupported-options): Add "strict-prototype".
	* lex.c (do_identifier): Adjust.
	(do_scoped_id): Adjust.
	* parse.y (empty_parms): Adjust.
	* class.c (push_lang_context): Adjust.
	(pop_lang_context): Adjust.
	* typeck.c (comp_target_parms): Adjust.

From-SVN: r35254
2000-07-25 20:19:24 +00:00
Nathan Sidwell
7b300d1385 invoke.texi (strict-prototypes): Remove.
* invoke.texi (strict-prototypes): Remove.
	* extend.texi (Deprecated Features): Add strict-prototypes.
	(Backwards Compatibility): New node.

From-SVN: r35253
2000-07-25 20:17:28 +00:00