Mark Mitchell
1b28d441b2
method.c (use_thunk): Make sure that thunks really are emitted when requested.
...
* method.c (use_thunk): Make sure that thunks really are emitted
when requested.
From-SVN: r41621
2001-04-27 05:08:39 +00:00
Tom Tromey
f24fd724c2
libjava.exp (libjava_init): Use UTF-8 encoding.
...
* lib/libjava.exp (libjava_init): Use UTF-8 encoding.
(test_libjava_from_javac): Likewise.
From-SVN: r41617
2001-04-27 00:56:16 +00:00
Jason Merrill
041c9d5a47
* except.c (get_exception_filter): word_mode, not Pmode.
...
From-SVN: r41616
2001-04-26 19:32:49 -04:00
Toon Moene
f6ce87c0a6
20010426.f: New test.
...
2001-04-26 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.f-torture/compile/20010426.f: New test.
* g77.f-torture/execute/20010426.f: New test.
From-SVN: r41615
2001-04-26 21:13:29 +00:00
Toon Moene
f658da59d4
*** empty log message ***
...
From-SVN: r41614
2001-04-26 21:02:07 +00:00
Geoffrey Keating
fd2c87bd74
sparc.md (movsf_no_f_insn): Add more alternatives common to other movsf patterns.
...
* config/sparc/sparc.md (movsf_no_f_insn): Add more alternatives
common to other movsf patterns. Move up so that in future
people who change the other patterns will change it too.
(movsf_lo_sum): Allow even for soft-float; add appropriate
constraints.
(movsf_high): Likewise.
(movsf_high+1): Allow even for soft-float.
From-SVN: r41613
2001-04-26 20:56:08 +00:00
Geoffrey Keating
fbffc70af6
function.c (expand_function_end): Always clobber the return registers, even if there is no return label.
...
* function.c (expand_function_end): Always clobber the
return registers, even if there is no return label.
From-SVN: r41612
2001-04-26 20:54:51 +00:00
Mark Mitchell
9cc03fabc2
BADNAMES: Remove EGCS reference.
...
* docs/html/17_intro/BADNAMES: Remove EGCS reference.
Indicate obsolete nature of thelist for G++ 3.0.
From-SVN: r41611
2001-04-26 20:13:47 +00:00
Jeffrey A Law
a86414f362
initp1.C: Moved here from g++.old-deja/g++.ext.
...
* g++.dg/special/initp1.C: Moved here from g++.old-deja/g++.ext.
Tweak slightly to work with g++.dg framework.
* g++.dg/special/ecos.exp: Run initp1.C test.
* g++.old-deja/g++.ext/initp1.C: Moved to g++.dg/special.
From-SVN: r41610
2001-04-26 14:06:25 -06:00
Mark Mitchell
fcca588c94
invoke.texi: Document more C++ command-line options.
...
* invoke.texi: Document more C++ command-line options.
Remove support for -Wextern-inline, -flabels-ok, -fvtable-gc, -fxref
* cp-tree.h (warn_extern_inline): Remove.
(flag_labels_ok): Likewise.
* decl2.c (warn_extern_inline): Remove.
(flag_labels_ok): Likewise.
(lang_f_options): Remove labels-ok, vtable-gc, xref.
(unsupported_options): Add them.
(cxx_decode_option): Don't accept -Wextern-inline.
* method.c (hack_identifier): Remove -flabels-ok support.
* spew.c (see_typename): Likewise.
* g++.dg/vtgc1.C: XFAIL.
* g++.old-deja/g++.other/crash18.C: Likewise.
From-SVN: r41609
2001-04-26 20:05:34 +00:00
Per Bothner
56fe39c809
Fix method search wrt scope of inner classes to match JLS2.
...
From-SVN: r41604
2001-04-26 12:40:34 -07:00
Jan Hubicka
52a661a627
* (ix86_expand_fp_movcc): Re-enable SSE conditional move generation.
...
From-SVN: r41602
2001-04-26 18:33:25 +00:00
Per Bothner
8789b9fa5c
jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a single case, use if_icmpeq, not ifeq.
...
* jcf-write.c (generate_bytecode_insns case SWITCH_EXPR):
Fix thinko: If a single case, use if_icmpeq, not ifeq.
* constants.c (find_methodref_with_class_index): New function.
(find_methodref_index): Use find_methodref_with_class_index.
* java-tree.h (find_methodref_with_class_index): New declaration.
* jcf-write.c (generate_bytecode_insns case CALL_EXPR): Don't change
DECL_CONTEXT, instead use new find_methodref_with_class_index function.
If context changed from interface to class, don't use invokeinterface.
From-SVN: r41601
2001-04-26 11:32:22 -07:00
Per Bothner
5acea42bfb
verify.c (verify_jvm_instructions): For field instructions, check that field index is valid.
...
* verify.c (verify_jvm_instructions): For field instructions,
check that field index is valid. For invoke instructions, check that
method index is valid.
From-SVN: r41600
2001-04-26 11:11:02 -07:00
Jan Hubicka
b329888265
i386.md (abs/neg splitter): Fix calculation of sign bit for TFmodes
...
* i386.md (abs/neg splitter): Fix calculation of sign bit for TFmodes
(pushqi2_rex64, pushhi2_rex64): Add.
From-SVN: r41599
2001-04-26 18:10:44 +00:00
Andrew Haley
c10f3adf7b
except.c (expand_eh_region_end_cleanup): Force pending stack adjust before emitting label that branches around cleanup code.
...
2001-04-26 Andrew Haley <aph@redhat.com>
* except.c (expand_eh_region_end_cleanup): Force pending stack
adjust before emitting label that branches around cleanup code.
From-SVN: r41598
2001-04-26 17:49:01 +00:00
Jeffrey A Law
3da5d5c8d8
instantiate2.C: XFAIL for HPUX too since its linker doesn't give line numbers either.
...
* g++.old-deja/g++.ext/instantiate2.C: XFAIL for HPUX too since
its linker doesn't give line numbers either.
* g++.old-deja/g++.ext/instantiate3.C: Similarly.
From-SVN: r41597
2001-04-26 11:13:04 -06:00
Hans Boehm
03a5525282
unix.S: Restore stack pointer when returning from ffi_closure_UNIX.
...
* src/ia64/unix.S: Restore stack pointer when returning from
ffi_closure_UNIX.
* src/ia64/ffi.c: Fix typo in comment
From-SVN: r41594
2001-04-26 16:08:59 +00:00
H.J. Lu
44404b8b95
config.gcc (mips*-*-linux*): Add elfos.h to tm_file.
...
2001-04-26 H.J. Lu (hjl@gnu.org )
* config.gcc (mips*-*-linux*): Add elfos.h to tm_file.
* config/mips/ecoff.h (STARTFILE_SPEC): Undefine before
define.
* config/mips/elf64.h (MAX_OFILE_ALIGNMENT): Likewise.
(ASM_OUTPUT_SECTION_NAME): Likewise.
(ASM_WEAKEN_LABEL): Likewise.
(UNIQUE_SECTION): Likewise.
(ASM_OUTPUT_CONSTRUCTOR): Likewise.
(ASM_OUTPUT_DESTRUCTOR): Likewise.
* config/mips/elf.h (MAX_OFILE_ALIGNMENT): Likewise.
(ASM_OUTPUT_SECTION_NAME): Likewise.
(ASM_WEAKEN_LABEL): Likewise.
(UNIQUE_SECTION): Likewise.
(ASM_OUTPUT_CONSTRUCTOR): Likewise.
(ASM_OUTPUT_DESTRUCTOR): Likewise.
* config/mips/linux.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/mips/mips.h (DBX_CONTIN_LENGTH): Likewise.
(ASM_FILE_START): Likewise.
(ASM_OUTPUT_SOURCE_LINE): Likewise.
(ASM_DECLARE_OBJECT_NAME): Likewise.
(ASM_FILE_END): Likewise.
(ASM_DECLARE_FUNCTION_NAME): Likewise.
(ASM_OUTPUT_INTERNAL_LABEL): Likewise.
(ASM_GENERATE_INTERNAL_LABEL): Likewise.
(ASM_OUTPUT_CASE_LABEL): Likewise.
(ASM_OUTPUT_SKIP): Likewise.
(ASM_OUTPUT_ASCII): Likewise.
(ASM_OUTPUT_IDENT): Likewise.
(READONLY_DATA_SECTION): Likewise.
(EXTRA_SECTIONS): Likewise.
(EXTRA_SECTION_FUNCTIONS): Likewise.
(SELECT_RTX_SECTION): Likewise.
(SELECT_SECTION): Likewise.
* config/mips/linux.h (INVOKE__main): Undefine.
(CTOR_LIST_BEGIN): Likewise.
(CTOR_LIST_END): Likewise.
(DTOR_LIST_BEGIN): Likewise.
(DTOR_LIST_END): Likewise.
(SET_ASM_OP): Defined it to ".dummy".
(ASM_OUTPUT_DEF): Defined.
(ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Defined.
From-SVN: r41592
2001-04-26 09:02:05 -07:00
Nick Clifton
fdc2d3b0f9
Define ASM_OUTPUT_MAX_SKIP_ALIGN if the assembler supports .p2align.
...
From-SVN: r41591
2001-04-26 15:37:02 +00:00
Nathan Sidwell
5677efb0be
c-lex.c (c_lex): Remove # from %o diagnostic formatting.
...
.: * c-lex.c (c_lex): Remove # from %o diagnostic formatting.
testsuite:
* g++.old-deja/g++.other/lex1.C: New test.
From-SVN: r41588
2001-04-26 15:12:55 +00:00
Jakub Jelinek
3b07c79b24
integrate.c (expand_inline_function): Check for error_mark_node in actual argument.
...
* integrate.c (expand_inline_function): Check for error_mark_node
in actual argument.
* gcc.dg/noncompile/20010425-1.c: New test.
From-SVN: r41587
2001-04-26 13:36:23 +02:00
Jakub Jelinek
e9070e7b80
i386.h (CC1_CPU_SPEC): Fix deprecation warnings for -m386 and -m486.
...
* config/i386/i386.h (CC1_CPU_SPEC): Fix deprecation warnings for
-m386 and -m486.
From-SVN: r41585
2001-04-26 12:30:17 +02:00
Nathan Sidwell
0576ec1308
mangle.c (write_chars): New macro.
...
cp:
* mangle.c (write_chars): New macro.
(hwint_to_ascii): New function
(write_number): Use it.
(write_integer_cst): Deal with really big numbers.
testsuite:
* g++.old-deja/g++.pt/mangle2.C: New test.
From-SVN: r41584
2001-04-26 08:34:06 +00:00
GCC Administrator
cc6e9bc399
Daily bump.
...
From-SVN: r41581
2001-04-26 07:16:07 +00:00
Alexandre Oliva
a393bca085
configure.in (noconfigdirs): Don't reset it from scratch in the target case; only append to it.
...
* configure.in (noconfigdirs): Don't reset it from scratch in the
target case; only append to it.
From-SVN: r41579
2001-04-26 05:28:55 +00:00
Alexandre Oliva
b1bb230234
configure.in (noconfigdirs): Don't reset it from scratch in the target case; only append to it.
...
* configure.in (noconfigdirs): Don't reset it from scratch in the
target case; only append to it.
From-SVN: r41576
2001-04-26 05:12:36 +00:00
Alexandre Oliva
b2964d6355
configure.in (noconfigdirs): Disable ${libgcj}.
...
* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
sparc-*-solaris2.8]: Disable ${libgcj}.
From-SVN: r41575
2001-04-26 05:10:04 +00:00
Alexandre Oliva
2d65a52ece
configure.in: Obtain THREADS with `gcc -v'.
...
* configure.in: Obtain THREADS with `gcc -v'.
* configure: Rebuilt.
From-SVN: r41571
2001-04-26 04:29:57 +00:00
Alexandre Oliva
ede74510e5
acinclude.m4 (GLIBCPP_ENABLE_THREADS): Obtain target_thread_file with `gcc -v'.
...
* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Obtain
target_thread_file with `gcc -v'.
* aclocal.m4, configure: Rebuilt.
From-SVN: r41570
2001-04-26 04:29:15 +00:00
Alexandre Oliva
a6687d2b0a
configure.in (configargs.h): Define thread_model.
...
* configure.in (configargs.h): Define thread_model.
* configure: Rebuilt.
* gcc.c (main): Print it with -v.
From-SVN: r41569
2001-04-26 04:28:50 +00:00
Benjamin Kosnik
5db6f3de56
std_cmath.h (std): Explicitly inject c99 names.
...
2001-04-25 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cmath.h (std): Explicitly inject c99 names.
* include/c_std/bits/std_cstdlib.h (std): Same, except for llabs.
* include/c_std/bits/std_cwchar.h (std): Same.
* acconfig.h (std): Remove c99 injection into std.
* config.h.in: Regenerate.
* testsuite/README: Fix typo.
* include/bits/codecvt.h: Remove warnings.
From-SVN: r41568
2001-04-26 02:23:52 +00:00
Bryce McKinlay
0cd99be737
re PR libgcj/2237 (serialization doesn't throw exception on failure)
...
Fix PR libgcj/2237:
* java/io/ObjectStreamClass.java (setClass): Calculate
serialVersionUID for local class and compare it against the UID
from the Object Stream. Throw InvalidClassException upon mismatch.
(setUID): Renamed to...
(getClassUID): this. Return the calculated class UID rather than
setting uid field directly.
(getDefinedSUID): Removed.
* java/io/ObjectInputStream.java (resolveClass): Use the
three-argument Class.forName().
* java/io/InvalidClassException (toString): Don't include classname in
result if it is null.
From-SVN: r41567
2001-04-26 03:02:05 +01:00
Hans Boehm
7b518b3953
Restore stack pointer when returning from ffi_closure_UNIX.
...
From-SVN: r41565
2001-04-26 00:46:38 +00:00
Mark Mitchell
b96ada8790
optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone.
...
* optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
the clone.
From-SVN: r41564
2001-04-26 00:33:18 +00:00
Hans Boehm
4bb7ff6dae
*** empty log message ***
...
From-SVN: r41563
2001-04-26 00:30:36 +00:00
Joseph Myers
1f0c3120cc
invoke.texi: Document -Wmissing-braces...
...
* invoke.texi: Document -Wmissing-braces, -dumpspecs,
-dumpmachine, -dumpversion, -fmem-report and -ftime-report.
* gcc.1: Regenerate.
From-SVN: r41560
2001-04-25 23:38:10 +01:00
Rainer Orth
66cc965c9d
dwarfout.c (is_pseudo_reg, [...]): Use static inline instead of inline static.
...
* dwarfout.c (is_pseudo_reg, type_main_variant, is_tagged_type,
is_redundant_typedef): Use static inline instead of inline static.
From-SVN: r41558
2001-04-25 15:27:04 -07:00
Christopher Faylor
2baa545318
cygwin.h: Move W32API search to LINK_SPEC to ensure that this directory is always searched.
...
* config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that this
directory is always searched.
From-SVN: r41556
2001-04-25 22:23:33 +00:00
Richard Henderson
84e306b45a
i386.c (ix86_expand_epilogue): Properly compute size of registers to restore along non eh_return path.
...
* config/i386/i386.c (ix86_expand_epilogue): Properly compute size
of registers to restore along non eh_return path.
From-SVN: r41555
2001-04-25 14:56:54 -07:00
Alexandre Oliva
dd6f366250
* config-lang.in (target_libs): Copy from $libgcj_saved.
...
From-SVN: r41552
2001-04-25 21:30:21 +00:00
Alexandre Oliva
8343765d38
configure.in (libgcj_saved): Copy from $libgcj.
...
* configure.in (libgcj_saved): Copy from $libgcj.
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.
From-SVN: r41551
2001-04-25 21:29:48 +00:00
Jakub Jelinek
b5cd6849d1
c-format.c (check_format_info_recurse): Handle PLUS_EXPR for format string.
...
* c-format.c (check_format_info_recurse): Handle
PLUS_EXPR for format string.
* gcc.dg/format/plus-1.c: New test.
From-SVN: r41550
2001-04-25 23:18:20 +02:00
Jakub Jelinek
ad5042df72
ia64.h (CC1_SPEC): Define.
...
* config/ia64/ia64.h (CC1_SPEC): Define.
* config/ia64/linux.h (CC1_SPEC): Define.
From-SVN: r41549
2001-04-25 23:06:10 +02:00
Kaveh R. Ghazi
9e65a913b6
natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6.
...
* java/net/natInetAddress.cc (java::net::InetAddress::aton):
Wrap use of inet_pton in HAVE_INET6.
From-SVN: r41547
2001-04-25 20:27:06 +00:00
Gavin Romig-Koch
ddbb6d43a3
remove self as maintainer
...
From-SVN: r41546
2001-04-25 17:25:53 +00:00
J"orn Rennecke
73de376fa0
emit-rtl.c (constant_subword): Also do sign extension in BITS_PER_WORD == 16 case.
...
* emit-rtl.c (constant_subword): Also do sign extension in
BITS_PER_WORD == 16 case.
From-SVN: r41545
2001-04-25 17:14:24 +01:00
Bryce McKinlay
889a80aa95
Forgot this file on last commit.
...
From-SVN: r41544
2001-04-25 16:48:05 +01:00
Bryce McKinlay
28f7d9d05a
decl.c (init_decl_processing): Add new class "protectionDomain" field.
...
gcc/java:
2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* decl.c (init_decl_processing): Add new class "protectionDomain"
field.
* class.c (make_class_data): Set initial value for "protectionDomain".
libjava:
2001-04-25 Bryce McKinlay <bryce@albatross.co.nz>
java.security merge and ClassLoader compliance fixes.
* java/lang/Class.h (Class): Include ProtectionDomain.h.
New protectionDomain field.
(forName): Add initialize parameter. Fixes declaration to comply with
JDK spec.
* java/lang/natClass.cc (forName): Correct declaration of the three-arg
variant. Honour "initialize" flag.
(getProtectionDomain0): New method.
* java/lang/Class.java: Fix forName() declaration.
(getPackage): New method based on Classpath implementation.
(getProtectionDomain0): New native method decl.
(getProtectionDomain): New method.
* java/lang/ClassLoader.java (getParent): Now final.
(definedPackages): New field.
(getPackage): New.
(defineClass): New variant with protectionDomain argument.
(definePackage): New.
(getPackages): New.
(findSystemClass): Now final.
(getSystemResourceAsStream): Remove redundant "final" modifier.
(getSystemResource): Remove redundant "final" modifier.
(getResources): Now final.
(protectionDomainPermission): New static field.
(unknownProtectionDomain): Ditto.
(defaultProtectionDomain): Ditto.
(getSystemClassLoader): Now non-native.
* java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
arguments for Class.forName().
* java/lang/Package.java: New file.
* gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
(instance): Static initialize singleton.
(findClass): Override this, not findSystemClass.
* java/lang/natClassLoader.cc (defineClass0): Set class's
protectionDomain field as specified.
(getSystemClassLoader): Removed.
(findClass): Renamed from findSystemClass. Call the interpreter via
URLClassLoader.findClass if loading class via dlopen fails.
* java/security/*.java: java.security import/merge with Classpath.
* java/security/acl/*.java: Likewise.
* java/security/interfaces/*.java: Likewise.
* java/security/spec/*.java: Likewise.
* java/net/NetPermission.java: Likewise.
* java/net/SocketPermission.java: Likewise.
* gnu/java/security/provider/DefaultPolicy.java: Likewise.
* Makefile.am: Add new classes.
* Makefile.in: Rebuilt.
* gcj/javaprims.h: CNI namespace rebuild.
From-SVN: r41543
2001-04-25 16:45:15 +01:00
Jason Merrill
744cfa53c3
oops
...
From-SVN: r41541
2001-04-25 11:28:30 -04:00