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
Jason Merrill
0ef5266215
* loop.c (try_swap_copy_prop): Go back to checking insn.
...
From-SVN: r41540
2001-04-25 11:27:28 -04:00
Jakub Jelinek
0607953c7d
emit-rtl.c (subreg_hard_regno): Only do HARD_REGNO_MODE_OK check if check_mode is non-zero.
...
* emit-rtl.c (subreg_hard_regno): Only do HARD_REGNO_MODE_OK check
if check_mode is non-zero.
* gcc.dg/20010423-1.c: New test.
From-SVN: r41537
2001-04-25 11:57:00 +02:00
Jakub Jelinek
e99af66bba
i386.c (ix86_expand_int_movcc): If overlap between out and comparison sequence has been detected...
...
* config/i386/i386.c (ix86_expand_int_movcc): If overlap between
out and comparison sequence has been detected, put result into
proper temporary pseudo.
* gcc.c-torture/execute/20010422-1.c: New test.
From-SVN: r41536
2001-04-25 11:51:25 +02:00
Nathan Sidwell
6bda7a5e41
decl.c (grokdeclarator): Set context of namespace scope TYPE_DECLS.
...
cp:
* decl.c (grokdeclarator): Set context of namespace scope
TYPE_DECLS.
testsuite:
* g++.old-deja/g++.ns/type2.C: New test.
From-SVN: r41533
2001-04-25 08:31:19 +00:00
GCC Administrator
12da8316cc
Daily bump.
...
From-SVN: r41531
2001-04-25 07:16:08 +00:00
Zack Weinberg
0f976b4577
Makefile.in (LIB2FUNCS): Remove _varargs and __dummy.
...
* Makefile.in (LIB2FUNCS): Remove _varargs and __dummy.
* libgcc-std.ver: Remove __builtin_saveregs, __dummy, and __empty.
* libgcc2.c: Remove __dummy and __builtin_saveregs.
* libgcc2.h: Don't prototype __builtin_saveregs or __dummy.
* config/i860/varargs.asm: New file - preserve i860 __builtin_saveregs
for future reference.
From-SVN: r41529
2001-04-25 00:58:04 +00:00
Jason Merrill
47c84870c6
except.c (reachable_handlers): Step out one level from a RESX.
...
* except.c (reachable_handlers): Step out one level from a RESX.
* except.c (struct eh_region): Rename 'last' to 'resume'.
(mark_eh_region, duplicate_eh_region_1): Adjust.
(expand_eh_region_end_cleanup): Remember the jump, not the barrier.
(build_post_landing_pads): Likewise.
(expand_end_catch, expand_eh_region_end_allowed): Don't set it.
(expand_eh_region_end_must_not_throw): Likewise.
(connect_post_landing_pads): Thread (only) regions with non-deleted
resume insns.
* except.c (expand_eh_region_end_cleanup): Save the EH return data
registers around the cleanup.
(get_exception_filter): New fn.
(finish_eh_generation): Use it.
From-SVN: r41528
2001-04-24 20:23:10 -04:00
Zack Weinberg
11fe225ab2
optimize.c: Include hashtab.h.
...
* cp/optimize.c: Include hashtab.h.
(struct inline_data): Add tree_pruner.
(expand_call_inline, expand_calls_inline): Use it when calling
walk_tree.
(optimize_function): Initialize and free tree_pruner.
* g++.old-deja/g++.other/perf1.C: New test.
From-SVN: r41525
2001-04-25 00:07:07 +00:00
Alexandre Oliva
5ec89e892c
configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool tests.
...
* configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
for libtool tests. Pre-create gnu/classpath/Configuration.java.
* configure: Rebuilt.
From-SVN: r41522
2001-04-24 11:27:20 +00:00
Nathan Sidwell
de8e49f383
c-semantics.c (add_scope_stmt): Don't call current_scope_stmt_stack multiple times.
...
* c-semantics.c (add_scope_stmt): Don't call
current_scope_stmt_stack multiple times.
From-SVN: r41521
2001-04-24 08:25:56 +00:00
Nathan Sidwell
0ba8a114c7
Lazy __FUNCTION__ generation.
...
gcc:
Lazy __FUNCTION__ generation.
* c-common.h (RID_FUNCTION_NAME, RID_PRETTY_FUNCTION_NAME,
RID_C99_FUNCTION_NAME): New _RIDs.
(CTI_FUNCTION_ID, CTI_PRETTY_FUNCTION_ID, CTI_FUNC_ID): Remove.
(CTI_FUNCTION_NAME_DECL, CTI_PRETTY_FUNCTION_NAME_DECL,
CTI_C99_FUNCTION_NAME_DECL, CTI_SAVED_FUNCTION_NAME_DECLS): New
global tree slots.
(function_id_node, pretty_function_id_node, func_id_node): Remove.
(c99_function_name_decl_node, function_name_decl_node,
pretty_function_name_decl_node, saved_function_name_decls):
Declare.
(struct language_function): Remove x_function_name_declared_p.
(make_fname_decl): Remove a parameter.
(declare_function_names): Remove prototype.
(start_fname_decls, finish_fname_decls): Prototype.
(fname_as_string): Likewise.
(fname_string, fname_decl): Likewise.
* c-common.c (make_fname_decl): Adjust.
(struct fname_var_t): New struct.
(fname_vars): New static array.
(declare_function_name): Remove.
(start_fname_decls, finish_fname_decls): New functions.
(fname_as_string): New function from remnants of
declare_function_name.
(fname_string, fname_decl): New functions.
* c-decl.c (c_function_name_declared_p): Remove.
(init_decl_processing): Don't generate __FUNCTION__ et al ids,
don't call declare_function_name. Call start_fname_decls.
(c_make_fname_decl): Adjust parameters. Generate the name. Don't
clobber the line number. Call finish_decl.
(start_function): Call start_fname_decls.
(finish_function): Call finish_fname_decls.
Remove c_function_name_declared_p.
(push_c_function_context): Don't push c_function_name_declared_p.
(pop_c_function_context): Don't pop c_function_name_declared_p.
(c_begin_compound_stmt): Don't check c_function_name_declared_p.
* c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): New tokens.
(program): Call finish_fname_decls for C.
(primary): Add VAR_FUNC_NAME.
(reswords): Add slots for __FUNCTION__ et al.
(rid_to_yy): Add mappings for __FUNCTION__ et al.
(yylexname): If it's a STRING_FUNC_NAME generate the function name
now. Don't look for VAR_DECLs containing __FUNCTION__ et al.
* c-semantics.c (prune_unused_decls): Remove.
(finish_stmt_tree): Don't call prune_unused_decls.
(genrtl_decl_stmt): Don't prune unused decls here.
cp:
Lazy __FUNCTION__ generation.
* cp-tree.def (FUNCTION_NAME): Remove.
* cp-tree.h (function_name_declared_p): Remove.
(cp_fname_init): Prototype.
* decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
don't call declare_function_name. Call start_fname_decls.
(cp_make_fname_decl): Adjust parameters. Generate the name. Don't
clobber the line number.
(cp_fname_init): New function.
(start_function): Call start_fname_decls.
(finish_function): Call finish_fname_decls.
* lex.c (reswords): Add slots for __FUNCTION__ et al.
(rid_to_yy): Add mappings for __FUNCTION__ et al.
* optimize.c (maybe_clone_body): Remove function_name_declared_p.
* parse.y (VAR_FUNC_NAME): New token.
(primary): Add VAR_FUNC_NAME.
* pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
generation.
(tsubst, FUNCTION_NAME case): Remove.
(tsubst_copy, FUNCTION_NAME case): Remove.
(tsubst_expr, DECL_STMT case): Be careful with a
DECL_PRETTY_FUNCTION_P.
(instantiate_decl): Remove function_name_declared_p.
* semantics.c (begin_compound_statement): Don't call
declare_function_name here.
(setup_vtbl_ptr). Don't save & restore function_name_declared_p.
(finish_translation_unit): Call finish_fname_decls.
(expand_body): Remove function_name_declared_p.
* typeck2.c (digest_init): Allow any ERROR_MARK.
testsuite:
* gcc.dg/c99-func-2.c: Remove xfail.
* gcc.dg/c99-func-3.c: Remove xfail.
* gcc.dg/c99-func-4.c: Remove xfail.
From-SVN: r41520
2001-04-24 08:22:06 +00:00
Nathan Sidwell
dfbb4f347c
pt.c (tsubst_decl): Use VOID_TYPE_P.
...
cp:
* pt.c (tsubst_decl): Use VOID_TYPE_P.
* semantics.c: Fix some typos.
From-SVN: r41519
2001-04-24 08:13:38 +00:00
Nick Clifton
c6f9b9a141
If a SYMBOL_REF is in the constant pool, use the pool's SYMBOL_REF.
...
From-SVN: r41518
2001-04-24 08:06:04 +00:00
Nick Clifton
b201442f54
Always set STRICT_ALIGNMENT
...
From-SVN: r41517
2001-04-24 08:00:44 +00:00
GCC Administrator
269ee3d1d1
Daily bump.
...
From-SVN: r41515
2001-04-24 07:17:10 +00:00
Zack Weinberg
15784bba3e
* gcc.c-torture/execute/20010124-1.c: No longer expected to fail.
...
From-SVN: r41514
2001-04-24 03:10:08 +00:00
Peter Schmid
673af03ae5
slist: Include required header files.
...
2001-04-24 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/slist: Include required header files.
From-SVN: r41512
2001-04-23 23:17:20 +00:00
Joseph Myers
c3cd9c8b70
c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid passing nested NOP_EXPRs to fold.
...
* c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid
passing nested NOP_EXPRs to fold.
testsuite:
* gcc.c-torture/compile/20010423-1.c: New test.
From-SVN: r41508
2001-04-23 23:55:32 +01:00