Commit Graph

44434 Commits

Author SHA1 Message Date
Benjamin Kosnik
49bc23b7f9 Revert PR libstdc++/6594
2002-08-02  Benjamin Kosnik  <bkoz@redhat.com>

	Revert PR libstdc++/6594
	* src/strstream.cc (strstreambuf): Revert.
	(strstreambuf::overflow): Same.
	(strstreambuf::~strstreambuf): Same.
	* testsuite/backward/strstream_members.cc (test02): Add.

	* docs/html/abi.txt: Update. Spell check.

	* testsuite/19_diagnostics/stdexceptions.cc (test04): Add bool test.

	* testsuite/Makefile.am (INCLUDES): Add LIBSUPCXX_INCLUDES.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/testsuite_hooks.h: Use __throw_exception_again,
	include functexcept.h so that -fno-exceptions will build.

From-SVN: r55988
2002-08-02 16:04:16 +00:00
Daniel Jacobowitz
771a2a6696 configure.in (FORBUILD): Use $build_alias.
* configure.in (FORBUILD): Use $build_alias.
        * configure: Regenerated.

From-SVN: r55987
2002-08-02 15:57:09 +00:00
Richard Sandiford
ac8ab9fe50 config.gcc: Don't include mips/abi64.h in $tm_file.
* config.gcc: Don't include mips/abi64.h in $tm_file.
	* hard-reg-set.h (call_really_used_regs): Declare.
	* config/mips/abi64.h: Remove file.
	* config/mips/linux.h,
	* config/mips/iris6.h: Don't include it.
	* config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
	* config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
	(REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
	FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
	FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
	Bring across definitions from abi64.h.
	(GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
	(BIGGEST_MAX_ARGS_IN_REGISTERS): New.
	(struct mips_args): Use it.
	* config/mips/mips.c (mips_conditional_register_usage): Define.

From-SVN: r55986
2002-08-02 14:55:08 +00:00
Gabriel Dos Reis
2b1a407046 valarray_meta.h (__unary_plus, [...]): New function object classes.
* include/bits/valarray_meta.h (__unary_plus, __negate,
	__bitwise_not, __plus, __minus, __multiplies, __divides,
	__modulus, __bitwise_xor, __bitwise_or, __bitwise_and,
	__shift_left, __shift_right, __logical_and, __logical_or,
	__logical_not, __equal_to, __not_equal_to, __less, __less_equal,
	__greater_equal, __greater, __atan2, __pow): New function object
	classes.
	(__fun<>):  New function traits class.

From-SVN: r55985
2002-08-02 13:51:46 +00:00
Jason Merrill
a77a9a18c0 langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
* langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
        * langhooks.c (lhd_expr_size): Define default.
        * langhooks.h (struct lang_hooks): Add expr_size.
        * explow.c (expr_size): Call it.
        * expr.c (store_expr): Don't copy an expression of size zero.
        (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
        to store.
        * Makefile.in (builtins.o): Depend on langhooks.h.

        * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
        (cp_expr_size): New fn.
        * call.c (build_over_call): Lose empty class hackery.
        (convert_arg_to_ellipsis): Promote non-POD warning to error.
        * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.

From-SVN: r55983
2002-08-02 07:57:22 -04:00
Jason Merrill
367aa58580 semantics.c (expand_body): Do tree optimization in the function context, too.
* semantics.c (expand_body): Do tree optimization in the function
        context, too.

From-SVN: r55982
2002-08-02 07:52:38 -04:00
Kaveh R. Ghazi
a6be5aeed5 Makefile.in (ra-debug.o): Depend on $(TM_P_H).
* Makefile.in (ra-debug.o): Depend on $(TM_P_H).
	* ra-debug.c: Include "tm_p.h".
	* ra-rewrite.c (is_partly_live_1): Change return type to bool.

From-SVN: r55981
2002-08-02 11:44:54 +00:00
Toon Moene
e3e16ee37d simplify-rtx.c (simplify_binary_operation): x * 1 is allowed when not honoring signalling NaNs.
2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>

	* simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
	when not honoring signalling NaNs.
	(simplify_ternary_operation): a == b has a definite value
	when not honoring NaNs.

From-SVN: r55980
2002-08-02 11:01:31 +00:00
Jason Merrill
b9d8832d73 * gdbinit.in (pct): New macro.
From-SVN: r55979
2002-08-02 05:25:46 -04:00
GCC Administrator
509da48a87 Daily bump.
From-SVN: r55978
2002-08-02 07:17:14 +00:00
Stan Shebs
bf2e488fd0 tipo
From-SVN: r55972
2002-08-02 06:10:12 +00:00
Stan Shebs
825abef4dc stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined, plays nice with Darwin headers.
* ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
        plays nice with Darwin headers.
        (_BSD_RUNE_T_DEFINED_): Likewise. (from Andr

Co-Authored-By: Andreas Tobler <toa@pop.agri.ch>

From-SVN: r55971
2002-08-02 06:09:14 +00:00
Chris Demetriou
3d41dbb0a9 [file missed during commit of following change]
2002-08-01  Chris Demetriou  <cgd@broadcom.com>

        * config.gcc (mipsisa64sb1-*-elf*): New configuration.
        (mipsisa64sb1el-*-elf*): Likewise.
        * config/mips/mips.c (mips_cpu_info_table): Add sb1.
        * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
        (TARGET_SB1, TUNE_SB1): New macros.
        * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
        -mtune flags.

From-SVN: r55970
2002-08-01 22:26:50 -07:00
Zack Weinberg
56da7207c1 c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
* c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
	* cppinit.c (cpp_post_options): Likewise.

	* cppexp.c (cpp_classify_number): Suppress -Wtraditional
	warning about 'LL' suffix (but not 'ULL' etc) when
	-Wno-long-long is in effect.

	* cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
	Check for failing time()/localtime(), issue a warning, and
	make __TIME__ and __DATE__ expand to fallback strings.

	* doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
	and __TIME__ when the date and time cannot be determined.

From-SVN: r55969
2002-08-02 04:18:16 +00:00
Aldy Hernandez
88c3865996 fix typo
From-SVN: r55968
2002-08-02 03:01:54 +00:00
Alan Modra
f4857b9b42 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
From-SVN: r55967
2002-08-02 12:23:24 +09:30
Daniel Jacobowitz
77ca7b2ecb Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
2002-08-01  Daniel Jacobowitz  <drow@mvista.com>

        * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).

From-SVN: r55966
2002-08-02 02:41:37 +00:00
Chris Demetriou
5b552f7661 config.gcc (mipsisa64sb1-*-elf*): New configuration.
2002-08-01  Chris Demetriou  <cgd@broadcom.com>

        * config.gcc (mipsisa64sb1-*-elf*): New configuration.
        (mipsisa64sb1el-*-elf*): Likewise.
        * config/mips/mips.c (mips_cpu_info_table): Add sb1.
        * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
        (TARGET_SB1, TUNE_SB1): New macros.
        * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
        -mtune flags.

From-SVN: r55965
2002-08-01 18:16:09 -07:00
David Edelsohn
54fbf6a1b4 varasm.c (asm_emit_uninitialized): Return false if global BSS and ASM_EMIT_BSS not supported by target.
* varasm.c (asm_emit_uninitialized): Return false if global BSS
        and ASM_EMIT_BSS not supported by target.
        (assemble_variable): Do not duplicate uninitialized logic.
        Fall through if asm_emit_uninitialized failed.

From-SVN: r55964
2002-08-01 21:12:09 -04:00
Chris Demetriou
3d16b40796 mips.h (BRANCH_LIKELY_P): Remove unused macro.
2002-08-01  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.

From-SVN: r55963
2002-08-01 18:10:53 -07:00
Alan Modra
80926cc121 linux64.h (DBX_OUTPUT_BRAC): Define.
* config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
	(DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.

From-SVN: r55962
2002-08-02 10:40:16 +09:30
Alan Modra
fb52d8de78 rs6000.c (output_toc): Don't use lshift_double when HOST_BITS_PER_WIDE_INT == 64.
* config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
	HOST_BITS_PER_WIDE_INT == 64.

From-SVN: r55961
2002-08-02 10:38:01 +09:30
Kaveh R. Ghazi
a4b5414c88 df.c (df_insn_table_realloc): Change parameter to unsigned.
* df.c (df_insn_table_realloc): Change parameter to unsigned.
	* optabs.c (expand_binop): Make variable unsigned.
	* simplify-rtx.c (simplify_subreg): Likewise.
	* unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.

From-SVN: r55960
2002-08-02 00:50:01 +00:00
Franz Sirl
a03e67c3a3 c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.

From-SVN: r55959
2002-08-02 00:15:45 +00:00
Richard Henderson
de273d3f1c toplev.c (parse_options_and_default_flags): Don't set flag_reorder_blocks for -Os.
* toplev.c (parse_options_and_default_flags): Don't set
        flag_reorder_blocks for -Os.

        * config/avr/avr.c (avr_optimization_options): Remove.
        * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
        * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
        * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.

From-SVN: r55958
2002-08-01 16:53:58 -07:00
H.J. Lu
4e4d733e19 output.h (DECL_READONLY_SECTION): Remove.
* output.h (DECL_READONLY_SECTION): Remove.
        (decl_readonly_section): Declare.
        * varasm.c (decl_readonly_section): New.
        (default_section_type_flags, default_select_section): Use it.
        * config/arm/pe.c (arm_pe_unique_section): Likewise.
        * config/i386/interix.c (i386_pe_unique_section): Likewise.
        * config/i386/winnt.c (i386_pe_unique_section): Likewise.
        * config/mcore/mcore.c (mcore_unique_section): Likewise.
        * config/mips/mips.c (mips_unique_section): Likewise.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r55957
2002-08-01 16:29:55 -07:00
Richard Henderson
32e9b9606f integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it refers to a subroutine parameter.
* integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
        refers to a subroutine parameter.

From-SVN: r55956
2002-08-01 16:07:33 -07:00
Benjamin Kosnik
3450b8d03c re PR libstdc++/7461 (ctype<char>::classic_table() returns offset array on Cygwin)
2002-08-01  Rick Danos  <rdanos@hotmail.com>

	PR libstdc++/7461
	* config/os/newlib/ctype_noninline.h (classic_table): Add offset.
	* config/os/newlib/ctype_inline.h (is): Use static_cast.

From-SVN: r55955
2002-08-01 22:17:23 +00:00
Neil Booth
db2350e020 Makefile.am (LT_COMPILE): Remove C++ flags.
2002-08-01  Neil Booth  <neil@daikokuya.co.uk>

	* libsupc++/Makefile.am (LT_COMPILE): Remove C++ flags.
	* libsupc++/Makefile.in: Regenerate.

From-SVN: r55954
2002-08-01 22:16:46 +00:00
Jakub Jelinek
81e602b572 varasm.c (assemble_visibility): Strip name encoding.
* varasm.c (assemble_visibility): Strip name encoding.

	* gcc.dg/ia64-visibility-2.c: New test.

From-SVN: r55953
2002-08-01 23:59:36 +02:00
Ian Dall
ac14c72576 ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
* config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
        (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
        when there is no frame pointer.
        (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
        registers properly.
        * config/ns32k/__unorddf2.c: New file.
        * config/ns32k/__unordsf2.c: New file.
        * config/ns32k/t-ns32k: New file.
        * config.gcc (ns32k-*-netbsd*): Use it.

From-SVN: r55949
2002-08-01 14:21:52 -07:00
Aldy Hernandez
1707273202 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
From-SVN: r55948
2002-08-01 21:18:34 +00:00
Neil Booth
c288218ab6 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
From-SVN: r55947
2002-08-01 21:10:44 +00:00
Benjamin Kosnik
43bfc248ba c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>

	* c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.

From-SVN: r55944
2002-08-01 20:10:25 +00:00
Richard Sandiford
479f2ceac0 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
From-SVN: r55943
2002-08-01 20:08:03 +00:00
Benjamin Kosnik
7662da2f51 ptrflags.C (expect): Change
2002-08-01  Benjamin Kosnik   <bkoz@redhat.com>

        * g++.old-deja/g++.abi/ptrflags.C (expect): Change

From-SVN: r55942
2002-08-01 20:01:00 +00:00
Zdenek Dvorak
0228065963 gcse.c (expr_hash_table_size, [...]): Removed.
* gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
	n_sets): Removed.
	(expr_hash_table, set_hash_table): Type changed to ...
	(struct hash_table): New type.
	(hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
	insert_expr_in_table, insert_set_in_table, compute_hash_table,
	dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
	compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
	(alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
	(alloc_hash_table): New.
	(free_set_hash_table, free_expr_hash_table): Merged to ...
	(free_hash_table): New.
	(compute_set_hash_table, compute_expr_hash_table): Merged to ...
	(compute_hash_table_work): New.
	(classic_gcse, one_classic_gcse_pass, compute_cprop_data,
	find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
	pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
	one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
	hoist_code, one_code_hoisting_pass,
	trim_ld_motion_mems): Altered due to changed type of hash tables.

From-SVN: r55940
2002-08-01 19:10:14 +00:00
Zack Weinberg
905173ebdd final.c (output_alternate_entry_point): If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
* final.c (output_alternate_entry_point):
	If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.

From-SVN: r55939
2002-08-01 18:37:38 +00:00
Benjamin Kosnik
0870a49046 linker-map.gnu: Change CXXABI_1 to CXXABI_1.2, GLIBCPP_3.1 to GLIBCPP_3.2.
2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
	    Jakub Jelinek  <jakub@redhat.com>

	* config/linker-map.gnu: Change CXXABI_1 to CXXABI_1.2,
	GLIBCPP_3.1 to GLIBCPP_3.2.

From-SVN: r55938
2002-08-01 17:25:56 +00:00
Benjamin Kosnik
5c60970a3a ptrflags.C (expect): Change __qualifier_flags to __flags.
2002-08-01  Benjamin Kosnik   <bkoz@redhat.com>

	* g++.old-deja/g++.abi/ptrflags.C (expect): Change
	__qualifier_flags to __flags.

From-SVN: r55937
2002-08-01 16:47:04 +00:00
Benjamin Kosnik
b361b922e9 ptrflags.C (expect): Change __qualifier_flags to __flags.
2002-08-01  Benjamin Kosnik   <bkoz@redhat.com>

	* g++.old-deja/g++.abi/ptrflags.C (expect): Change
	__qualifier_flags to __flags.

From-SVN: r55936
2002-08-01 16:45:55 +00:00
Mark Wielaard
fd0ba965b2 Revert patch that breaks libgcj shared library on powerpc:
* gnu/java/security/provider/Gnu.java: Reverse referencing all
	implementation classes by using Class.getName(). Uses Strings again.
	* gnu/java/security/der/DEREncodingException.java,
	gnu/java/security/provider/DERReader.java,
	gnu/java/security/provider/DERWriter.java,
	gnu/java/security/provider/DSAKeyPairGenerator.java,
	gnu/java/security/provider/DSAParameterGenerator.java,
	gnu/java/security/provider/DSAParameters.java,
	gnu/java/security/provider/DSASignature.java,
	gnu/java/security/provider/GnuDSAPrivateKey.java,
	gnu/java/security/provider/GnuDSAPublicKey.java,
	gnu/java/security/provider/MD5.java,
	gnu/java/security/util/Prime.java: Removed.
	* Makefile.am (ordinary_java_source_files): Remove above files.
	* Makefile.in: Regenerate.
	* gnu/java/security/provider/DefaultPolicy.java
	(getPermissions): Revert to maintaining static class variable of
	Permissions.
	* gnu/java/security/provider/SHA.java
	(engineUpdate): Revert algorithm change.
	(engineDigest): Revert algorithm change.

From-SVN: r55935
2002-08-01 16:06:00 +00:00
Kaveh R. Ghazi
ad0f17651d objc-act.c (encode_complete_bitfield): Add prototype and avoid ISO C style function definition.
* objc/objc-act.c (encode_complete_bitfield): Add prototype and
	avoid ISO C style function definition.

From-SVN: r55934
2002-08-01 15:43:51 +00:00
Kaveh R. Ghazi
83321d3633 * expr.c (expand_assignment): Delete unused variable.
From-SVN: r55933
2002-08-01 15:40:07 +00:00
Toon Moene
73e42cf342 c-common.c (cb_register_builtins): Set __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only is given, and to 0 otherwise.
2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>

	* c-common.c (cb_register_builtins): Set
	__FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
	is given, and to 0 otherwise.
	* combine.c (simplify_if_then_else): HONOR_NANS
	implies FLOAT_MODE_P.

From-SVN: r55932
2002-08-01 09:08:38 +00:00
GCC Administrator
e466f36952 Daily bump.
From-SVN: r55931
2002-08-01 07:17:12 +00:00
Neil Booth
78df51fe29 cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
* cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
	(cpp_handle_option): Don't handle it.
	(print_help): Update.
	* doc/cppopts.texi: Update.

From-SVN: r55925
2002-08-01 06:32:38 +00:00
Neil Booth
abecfc8f7b c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
* c-common.c (cb_register_builtins): If C++, define
	__EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
	* gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
cp:
	* lang-specs.h: Simplify in accordance with new code in
	c-common.c.

From-SVN: r55924
2002-08-01 06:25:06 +00:00
Neil Booth
4078b403a7 c-common.c: Define all C/ObjC/C++ warning and flag variables.
* c-common.c: Define all C/ObjC/C++ warning and flag variables.
	* c-common.h: Declare all C/ObjC/C++ warning and flag variables.
	* c-decl.c: Move all warning and flag variables to c-common.c.
	* c-format.c: Move all warning variables to c-common.c.
	* c-tree.h: Move all warning and flag declarations to c-common.h.
	* objc/objc-act.c: Move all warning variables to c-common.c.
	(flag_warn_protocol): Rename warn_protocol.
cp:
	* cp-tree.h: Move all warning and flag declarations to c-common.h.
	* decl.c: Move all warning and flag variables to c-common.c.
	* decl2.c: Move all warning and flag variables to c-common.c.
	* lex.c (flag_digraphs): Remove.
	(warn_traditional): Now in c-common.c.

From-SVN: r55923
2002-08-01 06:20:46 +00:00
Kaz Kojima
d8278e27fe configure.host: Add SH support.
* configure.host: Add SH support.
        * sysdep/sh/locks.h: New file.

From-SVN: r55922
2002-08-01 05:34:54 +00:00