aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-04-26optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone.Mark Mitchell2-0/+6
* optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting the clone. From-SVN: r41564
2001-04-25invoke.texi: Document -Wmissing-braces...Joseph Myers3-21/+114
* invoke.texi: Document -Wmissing-braces, -dumpspecs, -dumpmachine, -dumpversion, -fmem-report and -ftime-report. * gcc.1: Regenerate. From-SVN: r41560
2001-04-25dwarfout.c (is_pseudo_reg, [...]): Use static inline instead of inline static.Rainer Orth2-4/+9
* 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-25cygwin.h: Move W32API search to LINK_SPEC to ensure that this directory is ↵Christopher Faylor2-3/+10
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-25i386.c (ix86_expand_epilogue): Properly compute size of registers to restore ↵Richard Henderson2-2/+13
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* config-lang.in (target_libs): Copy from $libgcj_saved.Alexandre Oliva2-1/+5
From-SVN: r41552
2001-04-25c-format.c (check_format_info_recurse): Handle PLUS_EXPR for format string.Jakub Jelinek4-0/+70
* 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-25ia64.h (CC1_SPEC): Define.Jakub Jelinek3-1/+11
* config/ia64/ia64.h (CC1_SPEC): Define. * config/ia64/linux.h (CC1_SPEC): Define. From-SVN: r41549
2001-04-25emit-rtl.c (constant_subword): Also do sign extension in BITS_PER_WORD == 16 ↵J"orn Rennecke2-2/+7
case. * emit-rtl.c (constant_subword): Also do sign extension in BITS_PER_WORD == 16 case. From-SVN: r41545
2001-04-25decl.c (init_decl_processing): Add new class "protectionDomain" field.Bryce McKinlay3-0/+8
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-25oopsJason Merrill1-10/+0
From-SVN: r41541
2001-04-25* loop.c (try_swap_copy_prop): Go back to checking insn.Jason Merrill2-1/+15
From-SVN: r41540
2001-04-25emit-rtl.c (subreg_hard_regno): Only do HARD_REGNO_MODE_OK check if ↵Jakub Jelinek4-1/+27
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-25i386.c (ix86_expand_int_movcc): If overlap between out and comparison ↵Jakub Jelinek4-5/+30
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-25decl.c (grokdeclarator): Set context of namespace scope TYPE_DECLS.Nathan Sidwell4-2/+34
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-25Daily bump.GCC Administrator2-2/+2
From-SVN: r41531
2001-04-25Makefile.in (LIB2FUNCS): Remove _varargs and __dummy.Zack Weinberg6-234/+211
* 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-24except.c (reachable_handlers): Step out one level from a RESX.Jason Merrill2-58/+90
* 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-25optimize.c: Include hashtab.h.Zack Weinberg4-16/+117
* 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-24c-semantics.c (add_scope_stmt): Don't call current_scope_stmt_stack multiple ↵Nathan Sidwell2-6/+10
times. * c-semantics.c (add_scope_stmt): Don't call current_scope_stmt_stack multiple times. From-SVN: r41521
2001-04-24Lazy __FUNCTION__ generation.Nathan Sidwell20-272/+431
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-24pt.c (tsubst_decl): Use VOID_TYPE_P.Nathan Sidwell3-6/+11
cp: * pt.c (tsubst_decl): Use VOID_TYPE_P. * semantics.c: Fix some typos. From-SVN: r41519
2001-04-24If a SYMBOL_REF is in the constant pool, use the pool's SYMBOL_REF.Nick Clifton2-0/+9
From-SVN: r41518
2001-04-24Always set STRICT_ALIGNMENTNick Clifton2-3/+6
From-SVN: r41517
2001-04-24Daily bump.GCC Administrator2-2/+2
From-SVN: r41515
2001-04-24* gcc.c-torture/execute/20010124-1.c: No longer expected to fail.Zack Weinberg2-2/+4
From-SVN: r41514
2001-04-23c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid passing ↵Joseph Myers4-1/+34
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* reg-stack.c (emit_swap_insn): Do not get pass CALL_INSNs.Jan Hubicka2-0/+5
From-SVN: r41502
2001-04-23Daily bump.GCC Administrator2-2/+2
From-SVN: r41500
2001-04-23* loop.c (loop_delete_insns): Add prototype.Mark Mitchell2-0/+5
From-SVN: r41499
2001-04-23configure.in: Remove ENABLE_STD_NAMESPACE.Phil Edwards6-285/+295
2001-04-23 Phil Edwards <pme@sources.redhat.com> * configure.in: Remove ENABLE_STD_NAMESPACE. * cp/decl2.c (flag_honor_std): Always initialize to 1. * config.in: Regenerated. * configure: Regenerated. From-SVN: r41497
2001-04-23config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h into xm_defines.Stan Shebs3-6/+10
* config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h into xm_defines. * config/rs6000/xm-darwin.h: Remove file. From-SVN: r41496
2001-04-23collect2.c (main): Use concat in lieu of xmalloc/sprintf.Kaveh R. Ghazi10-57/+40
* collect2.c (main): Use concat in lieu of xmalloc/sprintf. (write_c_file_stat): Likewise. * dbxout.c (dbxout_init): Likewise. * profile.c (output_func_start_profiler): Likewise. cp: * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf. f: * com.c (ffecom_subscript_check_): Use concat in lieu of xmalloc/sprintf. java: * jvspec.c (lang_specific_driver): Fix memory allocation deficit, by using concat in lieu of xmalloc/sprintf. From-SVN: r41495
2001-04-22except.c (build_throw): Wrap the initialization of the exception object in a ↵Jason Merrill3-8/+38
MUST_NOT_THROW_EXPR. * except.c (build_throw): Wrap the initialization of the exception object in a MUST_NOT_THROW_EXPR. (do_free_exception): #if 0. From-SVN: r41494
2001-04-22ABOUT-GCC-NLS: Now that gettext 0.10.37 is out, require it instead of the ↵Philipp Thomas3-7/+12
CVS version. * ABOUT-GCC-NLS: Now that gettext 0.10.37 is out, require it instead of the CVS version. * cpperror.c (v_message): Put a blank before the macro body to not confuse exgettext. From-SVN: r41493
2001-04-22Daily bump.GCC Administrator2-2/+2
From-SVN: r41491
2001-04-21calls.c (expand_call): Fix a comment typo.Kazu Hirata2-2/+4
2001-04-21 Kazu Hirata <kazu@hxi.com> * calls.c (expand_call): Fix a comment typo. From-SVN: r41488
2001-04-21flow.c (proagate_one_insn): Remove useless assignment.Mark Mitchell6-14/+63
* flow.c (proagate_one_insn): Remove useless assignment. * jump.c (delete_insn): Tidy. * loop.c (try_copy_prop): When deleting an instruction with a REG_RETVAL note, delete the entire libcall sequence. (loop_delete_insns): New function. * unroll.c (initial_reg_note_copy): Copy INSN_LIST notes, even if we're not substituting into them yet. From-SVN: r41486
2001-04-21sparc.c (sparc_flat_eligible_for_epilogue_delay): Fix a comment typo.Kazu Hirata3-2/+6
2001-04-21 Kazu Hirata <kazu@hxi.com> * config/sparc/sparc.c (sparc_flat_eligible_for_epilogue_delay): Fix a comment typo. * config/i960/i960.c (signed_arith_operand): Likewise. From-SVN: r41484
2001-04-21news.texi: Update release information for 0.5.27.Toon Moene2-7/+50
2001-04-21 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Update release information for 0.5.27. From-SVN: r41483
2001-04-21h8300.c (general_operand_src): Fix a comment typo.Kazu Hirata2-1/+5
2001-04-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.c (general_operand_src): Fix a comment typo. From-SVN: r41481
2001-04-21Daily bump.GCC Administrator2-2/+2
From-SVN: r41477
2001-04-21cp-tree.h (finish_enum): Change prototype.Mark Mitchell4-115/+111
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. From-SVN: r41474
2001-04-21cp-tree.h (finish_enum): Change prototype.Mark Mitchell1-0/+13
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. [[Split portion of a mixed commit.]] From-SVN: r41473.2
2001-04-20Fixes to compile multiple .class files at once.Per Bothner5-78/+85
From-SVN: r41472
2001-04-20configure.in: Probe for times, clock, struct tms, and clock_t.Zack Weinberg5-162/+377
* configure.in: Probe for times, clock, struct tms, and clock_t. * configure, config.in: Regenerate. * timevar.c: Replace ifdef forest in get_time with (relatively) straightforward series of checks based on autoconf's probes. From-SVN: r41471
2001-04-20* config/pa/som.h (NM_FLAGS): Define.Jeffrey A Law2-0/+9
From-SVN: r41467
2001-04-20tree.c (cp_tree_equal): Adjust final switch formatting.Nathan Sidwell4-9/+51
cp: * tree.c (cp_tree_equal): Adjust final switch formatting. Add 't' case. testsuite: * g++.old-deja/g++.pt/typename28.C: New test. From-SVN: r41462
2001-04-20class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.Nathan Sidwell5-21/+222
cp: * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED. (layout_empty_base): Return at end flag. (build_base_field): Likewise. (build_base_fields): Likewise. (layout_virtual_bases): Don't add 1 to eoc value. (end_of_class): Use full size for empty bases. (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended empty bases. Don't add 1 to eoc value. Only add trailing padding if we're an empty class with no empty bases. (dump_class_hierarchy): Dump size and alignment. testsuite: * g++.old-deja/g++.abi/empty2.C: New test. * g++.old-deja/g++.abi/empty3.C: New test. From-SVN: r41460
2001-04-20Better scheduling of shiftsBernd Schmidt4-7/+165
From-SVN: r41458