aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-12-04cppspec.c (lang_specific_driver): Set is_cpp_driver.Neil Booth3-36/+55
* cppspec.c (lang_specific_driver): Set is_cpp_driver. * gcc.c (process_command): Ensure the cpp driver sees --help and --target-help, and that the help is printed exactly once. From-SVN: r47627
2001-12-04* einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.Geert Bosch6-213/+226
From-SVN: r47626
2001-12-04Makefile.in (update-sources): New target.Geert Bosch2-0/+8
* Makefile.in (update-sources): New target. For use by gcc_release script. From-SVN: r47625
2001-12-04sem_prag.adb (Analyze_Pragma, [...]): do not treat as a configuration pragma...Ed Schonberg2-1/+5
* sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as a configuration pragma, it is now legal wherever a pragma can appear. From-SVN: r47624
2001-12-04defineclass.cc (read_one_method_attribute): `end_pc' for an exception can be ↵Tom Tromey3-34/+83
equal to code length. * defineclass.cc (read_one_method_attribute): `end_pc' for an exception can be equal to code length. * verify.cc (_Jv_BytecodeVerifier::verify_instructions_0): Removed `start_PC' from error invocation where it didn't make sense, and updated error message. Use `copy' to copy a state. Only try to merge current state with saved state when we've fallen through from the previous instruction. (_Jv_BytecodeVerifier::pop_ref_or_return): New method. (_Jv_BytecodeVerifier::verify_instructions_0) [op_astore_0]: Use pop_ref_or_return. (_Jv_BytecodeVerifier::verify_instructions_0) [op_astore]: Likewise. (_Jv_BytecodeVerifier::push_jump_merge): Pass max_locals, not max_stack, to merge. (_Jv_BytecodeVerifier::verify_instructions_0): Likewise. (_Jv_BytecodeVerifier::push_jump_merge): Merge from new state into state at branch target, not vice versa. (_Jv_BytecodeVerifier::branch_prepass): Allow end of exception to be equal to code length. Removed redundant test to see if exception start is after exception end. (_Jv_BytecodeVerifier::verify_instructions_0): Type of argument to `finally' is Throwable. From-SVN: r47623
2001-12-04[multiple changes]Benjamin Kosnik10-131/+221
2001-12-04 Benjamin Kosnik <bkoz@redhat.com> * src/Makefile.am (sources): Add ext-inst.cc. * src/Makefile.in: Regenerate. * src/ext-inst.cc: New file. * include/bits/stl_threads.h: Format. * src/globals.cc: Add instantiation for _S_swap_lock. * testsuite/18_support/numeric_limits.cc: Add numeric_limits<B> instantiation. 2001-12-04 John David Anglin <dave@hiauly1.hia.nrc.ca> * testsuite/22_locale/numpunct_members_wchar_t.cc: Only compile and execute test01 if _GLIBCPP_USE_WCHAR_T is defined. * testsuite/26_numerics/complex_inserters_extractors.cc: Provide for explicit instantiation of class std::basic_string<char, gnu_char_traits, std::allocator<char> >. From-SVN: r47622
2001-12-04* config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.David Edelsohn2-5/+9
From-SVN: r47620
2001-12-04check-init.c: Handle definite unassignment to finals in addition to definite ↵Per Bothner5-479/+446
assignment. * check-init.c: Handle definite unassignment to finals in addition to definite assignment. [see ChangeLog] From-SVN: r47619
2001-12-04cris.h (OPTIMIZATION_OPTIONS): Don't unset flag_strict_aliasing.Hans-Peter Nilsson2-3/+7
* config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset flag_strict_aliasing. Use separate assignment statements. From-SVN: r47618
2001-12-04build-make, cross-make: Delete file.Zack Weinberg10-179/+153
* build-make, cross-make: Delete file. * configure.in: Set and substitute CROSS, ALL, SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC, HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on whether build == host and host == target. Do not AC_SUBST_FILE build_overrides or cross_overrides. Do not AC_SUBST cross_defines or extra_c_flags. * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New. (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX, HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set partially or completely with autoconf-substituted @variable@ notation. (INSTALL_TARGET, @cross_defines@, @cross_overrides@, @build_overrides@, @extra_c_flags@, all.build, install-build, install-cross-rest, install-float-h-cross): Deleted. (install-normal): Rename to install. Delete old "install" indirection rule. * ada/Makefile.in, ch/Makefile.in: Don't set ALL. Delete @cross_defines@, @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS is now @CROSS@ -DIN_GCC; update comment. From-SVN: r47617
2001-12-04stmt.c (expand_return): Clear destination instead of clobbering it when ↵Andrew MacLeod2-2/+7
setting a return value via bitsets. 2001-12-04 Andrew MacLeod <amacleod@redhat.com> * stmt.c (expand_return): Clear destination instead of clobbering it when setting a return value via bitsets. From-SVN: r47616
2001-12-04tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has ↵Alexandre Oliva2-6/+18
DECL_SAVED_TREE. * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has DECL_SAVED_TREE. From-SVN: r47615
2001-12-04einfo.adb (Has_Pragma_Pure_Function): New flag.Geert Bosch4-9/+41
* einfo.adb (Has_Pragma_Pure_Function): New flag. Fix problem that stopped ceinfo from working * einfo.ads (Has_Pragma_Pure_Function): New flag. * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function. From-SVN: r47614
2001-12-04* gnatchop.adb:Douglas B Rupp5-4/+297
(File_Time_Stamp): New procedure. (Preserve_Mode): New boolean. (Write_Unit): Pass time stamp. Implement -p switch (preserve time stamps). * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE). * gnatchop.adb: Do usage info for -p switch * adaint.h (__gnat_set_file_time_name): New function * adaint.c (__gnat_set_file_time_name): Implement * adaint.h: Fix typo From-SVN: r47613
2001-12-04Revert previous patchAlexandre Oliva11-48/+10
From-SVN: r47612
2001-12-04* trans.c (tree_transform): Adjust call of expand_start_stmt_expr.Andreas Jaeger2-13/+17
From-SVN: r47611
2001-12-04c-decl.c (duplicate_decls): Revert rth's patch.Alexandre Oliva4-9/+26
* c-decl.c (duplicate_decls): Revert rth's patch. If newdecl is in a different binding level, get its abstract origin to be olddecl. * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity check earlier. * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if DECL_INITIAL is NULL. From-SVN: r47610
2001-12-04com.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation.Alexandre Oliva2-1/+6
* com.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation. From-SVN: r47609
2001-12-04semantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation.Alexandre Oliva2-1/+6
* semantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation. From-SVN: r47608
2001-12-04stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're ↵Alexandre Oliva5-6/+32
interested in the result. * stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in the result. Use it to tell whether to ignore results of enclosed expressions. (expand_start_stmt_expr): Added new argument, and initialize last_expr_value accordingly. * tree.h (expand_start_stmt_expr): Adjusted declaration. * c-common.c (c_expand_expr): Adjust call. * expr.c (expand_expr) [EXPR_WFL]: Pass const0_rtx down if ignoring the result. From-SVN: r47607
2001-12-04* Makefile.in ($(LIBG2C)): Fix -rpath argument to libtool.Alexandre Oliva2-1/+3
From-SVN: r47606
2001-12-04Makefile.in (AR, RANLIB): Add, for substitutions.Alexandre Oliva7-87/+175
* Makefile.in (AR, RANLIB): Add, for substitutions. (all-unilib, $(LIBG2C)): Depend on object lists, not convenience libraries. (s-libe77): Renamed from libE77.la; build object list. (install): Do not move libraries to libdir. (mostlyclean, clean): Adjust. * libF77/Makefile.in (RANLIB): Add. (LINK): Remove. (../s-libf77): Renamed from ../libF77.la; build object list. (../libfrtbegin.a): Remove target first. Don't use $<. (all, clean, distclean): Adjust. * libF77/configure.in: Substitute RANLIB. * libF77/configure: Rebuilt. * libI77/Makefile.in (LINK): Delete. (../s-libi77): Renamed from ../libI77.la; build object list. (all, clean, distclean): Adjust. * libU77/Makefile.in: Likewise. From-SVN: r47605
2001-12-04pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.Nathan Sidwell2-6/+12
cp: * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm. From-SVN: r47604
2001-12-04re PR c++/164 (bogus error throwing class with inaccessible base)Nathan Sidwell5-15/+63
cp: PR g++/164 * init.c (sort_base_init): Allow binfos to be directly specified. * method.c (do_build_copy_constructor): Explicitly convert to the base instance. (do_build_assign_ref): Likewise. testsuite: * g++.dg/inherit/base1.C: New test. From-SVN: r47603
2001-12-04flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.Jakub Jelinek4-50/+126
* flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized. Return correct value if one of the subexpressions was optimized to 0 resp. 1. Optimize (x | A) | x and (x & A) | x. (and_reg_cond): Similarly. * gcc.c-torture/compile/20011130-2.c: New test. From-SVN: r47602
2001-12-04function.c (assign_parms): Set last_named only for last named argument.Jakub Jelinek4-5/+49
* function.c (assign_parms): Set last_named only for last named argument. * g++.dg/other/stdarg1.C: New test. From-SVN: r47601
2001-12-04Fix date on last entry.Joseph Myers1-1/+1
From-SVN: r47599
2001-12-04install.texi: Use the GFDL.Joseph Myers4-9/+82
* doc/install.texi: Use the GFDL. Include years from old install manual in copyright notice. Include copyright and GFDL notice on HTML index page. Include usual footer on testing.html. * doc/install.texi2html: Build gfdl.html. Use -I $SOURCEDIR/include. * doc/include/fdl.texi: Adapt for use in the install manual. From-SVN: r47598
2001-12-04install.texi: Document that installed native compiler for building cross ↵Joseph Myers2-1/+7
compilers should be... * doc/install.texi: Document that installed native compiler for building cross compilers should be GCC 2.95 or later. From-SVN: r47596
2001-12-04Daily bump.GCC Administrator6-6/+6
From-SVN: r47594
2001-12-04* Makefile.in: Rebuilt with automake-gcj.Bryce McKinlay2-62/+1232
From-SVN: r47593
2001-12-04collate.cc: Compile-only.Benjamin Kosnik12-1/+36
2001-12-03 Benjamin Kosnik <bkoz@redhat.com> * testsuite/22_locale/collate.cc: Compile-only. * testsuite/22_locale/time_get.cc: Same. * testsuite/22_locale/time_put.cc: Same. * testsuite/22_locale/numpunct.cc: Same. * testsuite/22_locale/num_put.cc: Same. * testsuite/22_locale/num_get.cc: Same. * testsuite/22_locale/moneypunct.cc: Same. * testsuite/22_locale/money_get.cc: Same. * testsuite/22_locale/messages.cc: Same. * testsuite/22_locale/ctype.cc: Same. From-SVN: r47592
2001-12-04defineclass.cc (handleMethodsEnd): Invoke verifier here...Tom Tromey3-9/+20
* defineclass.cc (handleMethodsEnd): Invoke verifier here... (handleCodeAttribute): ... not here. * verify.cc (_Jv_BytecodeVerifier::state::state): Use `copy', not structure assignment. From-SVN: r47591
2001-12-04mips.h (CALL_REALLY_USED_REGISTERS): New macro.Eric Christopher3-39/+78
2001-12-03 Eric Christopher <echristo@redhat.com> * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro. * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split patterns. From-SVN: r47590
2001-12-03New test.Richard Henderson1-0/+22
From-SVN: r47589
2001-12-03parse.y (patch_binop): Minor constant folding.Per Bothner2-1/+15
* parse.y (patch_binop): Minor constant folding. * parse.y (build_current_thisn): Shorter 'buffer'. From-SVN: r47588
2001-12-03decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR instead ↵Per Bothner4-103/+14
of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR. * decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR. * jcf-write.c (generate_bytecode_insns): Remove support for CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR as they are no longer used. * check-init.c (check_init): Likewise. From-SVN: r47587
2001-12-04string-inst.cc (string::_Rep::_S_terminal): Add static data member ↵Benjamin Kosnik2-0/+6
instantiations. 2001-12-03 Benjamin Kosnik <bkoz@redhat.com> * src/string-inst.cc (string::_Rep::_S_terminal): Add static data member instantiations. From-SVN: r47586
2001-12-04New test for __builtin_prefetch.Janis Johnson6-0/+685
From-SVN: r47585
2001-12-04Test for __builtin_prefetch.Janis Johnson1-0/+59
From-SVN: r47584
2001-12-04builtin-prefetch-1.c: New test.Janis Johnson1-0/+9
* gcc.c-torture/execute/builtin-prefetch-1.c: New test. * gcc.c-torture/execute/builtin-prefetch-2.c: New test. * gcc.c-torture/execute/builtin-prefetch-3.c: New test. * gcc.c-torture/execute/builtin-prefetch-4.c: New test. * gcc.c-torture/execute/builtin-prefetch-5.c: New test. * gcc.dg/builtin-prefetch-1.c: New test. From-SVN: r47583
2001-12-04builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.Janis Johnson4-0/+111
* builtin-types.def (BT_FN_VOID_PTR_INT_INT): New. * builtins.def (BUILT_IN_PREFETCH): New. * builtins.c (expand_builtin_expect): New. (expand_builtin): Call it. * doc/extend.texi: Document __builtin_expect. From-SVN: r47582
2001-12-04rtl.def (PREFETCH): New rtx code.Janis Johnson6-0/+40
* rtl.def (PREFETCH): New rtx code. * doc/rtl.texi (PREFETCH): Add documentation. * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx. * rtlanal.c (reg_referenced_p): Ditto. * sched-vis.c (print_exp): Ditto. * ssa-dce.c (find_inherently_necessary): Ditto. From-SVN: r47580
2001-12-04ia64.h (SIMULTANEOUS PREFETCHES): Define.Janis Johnson1-1/+29
* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define. (PREFETCH_BLOCK): Define. * config/ia64/ia64.md (itanium_class): Add lfetch. (prefetch, prefetch_internal): New. From-SVN: r47579
2001-12-04ia64.h (SIMULTANEOUS PREFETCHES): Define.Janis Johnson1-0/+13
* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define. (PREFETCH_BLOCK): Define. * config/ia64/ia64.md (itanium_class): Add lfetch. (prefetch, prefetch_internal): New. prefetch_sse. From-SVN: r47578
2001-12-04i386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new ↵Janis Johnson2-3/+3
generic prefetch functionality. * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new generic prefetch functionality. * config/i386/i386.c (ix86_expand_builtin): Use new name for prefetch_sse. From-SVN: r47577
2001-12-04rtl.def (PREFETCH): New rtx code.Janis Johnson1-0/+25
* rtl.def (PREFETCH): New rtx code. * doc/rtl.texi (PREFETCH): Add documentation. * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx. * rtlanal.c (reg_referenced_p): Ditto. * sched-vis.c (print_exp): Ditto. * ssa-dce.c (find_inherently_necessary): Ditto. * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define. (PREFETCH_BLOCK): Define. * config/ia64/ia64.md (itanium_class): Add lfetch. (prefetch, prefetch_internal): New. * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New. * builtins.def (BUILT_IN_PREFETCH): New. * builtins.c (expand_builtin_expect): New. (expand_builtin): Call it. * doc/extend.texi: Document __builtin_expect. * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new generic prefetch functionality. * config/i386/i386.c (ix86_expand_builtin): Use new name for prefetch_sse. From-SVN: r47576
2001-12-04Make-lang.in: Update copyright.Ziemowit Laski6-70/+163
* objc/Make-lang.in: Update copyright. (OBJC_OBJS): Add objc-lang.o. (objc-lang.o): New rule. * objc/config-lang.in: Fix file description and update copyright. * objc/objc-act.c: Do not include langhooks.h and langhooks-def.h (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c. (objc_post_options): Move to objc-lang.c. (objc_init_options): Move to objc-lang.c. (objc_init): Make non-static. (HASHFUNCTION): Remove macro. (hash_func): New function. (hash_enter): Replace HASHFUNCTION with hash_func. (hash_lookup): Replace HASHFUNCTION with hash_func. (maybe_objc_tree_codes): New function. (init_objc): Move ObjC tree code initialization to maybe_objc_tree_codes(). * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard. (objc_init): New public prototype. (objc_decode_option): New public prototype. (maybe_add_objc_tree_codes): New public prototype. * objc/objc-lang.c: New file. (lang_hooks): Moved from objc-act.c. (objc_post_options): Moved from objc-act.c. (objc_init_options): Moved from objc-act.c. From-SVN: r47575
2001-12-04Doc update for -maix-struct-return patchZack Weinberg1-0/+10
From-SVN: r47574
2001-12-03verify.c (subroutine_nesting): New function.Per Bothner2-7/+32
* verify.c (subroutine_nesting): New function. (verify_jvm_instructions): Use it to fix logic for checking that we're done with the current subroutine. * verify.c (verify_jvm_instruction): For OPCODE_checkcast and OPCODE_instanceof use POP_TYPE macro for better diagnostics. From-SVN: r47572