Commit Graph

49509 Commits

Author SHA1 Message Date
Tom Tromey
62a3446bb8 natString.cc (_Jv_AllocString): Initialize cachedHashCode.
* java/lang/natString.cc (_Jv_AllocString): Initialize
	cachedHashCode.
	(init): Likewise.
	(_Jv_NewStringUtf8Const): Likewise.

From-SVN: r66180
2003-04-28 18:19:23 +00:00
Richard Henderson
8707fe9398 sparc.c (print_operand): Add 's' to sign-extend.
* config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
        * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
        integral constant mult operand.
        (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
        (const_smulsi3_highpart_v8plus): Likewise.
        (const_smulsi3_highpart): Likewise.
        (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
        (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
        (const_umulsi3_highpart_v8plus): Likewise.
        (const_umulsi3_highpart): Likewise.

From-SVN: r66179
2003-04-28 10:58:02 -07:00
Benjamin Kosnik
2aacd7357a [multiple changes]
2003-04-28  Petur Runolfsson  <peturr02@ru.is>

        PR libstdc++/9523
        * include/bits/ios_base.h (Init::_S_ios_create,
        Init::_S_ios_destroy):  Remove declarations.
        (Init::_S_create_buffers,
        Init::_S_destroy_buffers):  Declare
        * src/ios.cc (Init::_S_ios_create):  Remove
        (Init::_S_create_buffers):  Create buffers and add to streams.
        (Init::_S_ios_destroy):  Rename to...
        (Init::_S_destroy_buffers):  this.
        (Init::Init):  Only construct streams once.
        (Init::~Init):  Flush streams, don't destroy them.
        (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
        * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
        * testsuite/27_io/objects/char/5.cc:  New test.
        * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
        * testsuite/27_io/objects/char/6.cc:  New test.
        * testsuite/27_io/objects/char/7.cc:  New test.

2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>

        * testsuite/27_io/objects/char/8.cc:  New test.

From-SVN: r66177
2003-04-28 17:15:03 +00:00
David O'Brien
ff4cb2e75b x86-64.h (NO_PROFILE_COUNTERS, [...]): Define as 1.
2003-04-28  David O'Brien  <obrien@FreeBSD.org>
	* config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
	Define as 1.

From-SVN: r66174
2003-04-28 15:30:25 +00:00
David O'Brien
495d8dd6ac i386.h (builtin_define): Add __amd64 and __amd64__.
2003-04-28  David O'Brien  <obrien@FreeBSD.org>
	* config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.

From-SVN: r66171
2003-04-28 15:11:06 +00:00
Benjamin Kosnik
af77916931 char.cc: Remove bom usage.
2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
	* testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.

From-SVN: r66170
2003-04-28 14:30:07 +00:00
Jakub Jelinek
e31603c46c builtins.def (BUILT_IN_BCOPY, [...]): New.
* builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
	* builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
	* builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
	functions.
	(expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.

	* gcc.c-torture/execute/string-opt-19.c: New test.

From-SVN: r66169
2003-04-28 14:10:35 +02:00
Nick Clifton
dbe983a84b * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
From-SVN: r66156
2003-04-28 08:28:21 +00:00
Mark Mitchell
9e6aaf5ea5 * decl.c (maybe_commonize_var): Fix thinko in last patch.
From-SVN: r66154
2003-04-28 06:13:23 +00:00
Mark Mitchell
772f8889ca re PR c++/10506 (ICE in build_new at cp/init.c with -fkeep-inline-functions and multiple inheritance)
PR c++/10506
	* method.c (use_thunk): Decrement immediate_size_expand.

	PR c++/10503
	* cp-tree.h (DECL_VAR_MARKED_P): New macro.
	(DECL_MAYBE_TEMPLATE): Remove.
	* class.c (fixed_type_or_null): Avoid infinite recursion.

	PR c++/10506
	* g++.dg/init/new6.C: New test.

	PR c++/10503
	* g++.dg/init/ref6.C: New test.

From-SVN: r66150
2003-04-28 06:06:59 +00:00
Benjamin Kosnik
aa438e8f2b std_fstream.h (basic_filebuf): _M_pback_destroy to _M_destroy_pback.
2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
	_M_destroy_pback. _M_pback_create to
	_M_create_pback. _M_underflow_common to
	_M_underflow. _M_really_overflow to _M_overflow.
	* include/bits/fstream.tcc: Same.
	* src/fstream.cc: Same.
	* include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
	_M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
	* include/bits/streambuf.tcc: Same.
	* include/bits/fstream.tcc: Same.
	* include/bits/sstream.tcc: Same.

From-SVN: r66149
2003-04-28 04:54:54 +00:00
Zack Weinberg
afc6aaab24 expr.c (expand_expr <COMPLEX_CST, [...]): Always call output_constant_def, use its result instead of TREE_CST_RTL (exp).
* expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
        output_constant_def, use its result instead of TREE_CST_RTL (exp).
        Can assume it has the form (mem (symbol_ref ".LCxxx")).
        (expand_expr <COMPONENT_REF>): Can always just extract the
        relevant field of a CONSTRUCTOR.
        (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
        ARRAY_RANGE_REF>): Make control flow explicit.
        * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
        an INTEGER_CST.

From-SVN: r66148
2003-04-28 04:13:48 +00:00
Benjamin Kosnik
73c4dcc675 locale_classes.h (locale::_Impl): Change _M_names from fixed size array.
2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_classes.h (locale::_Impl): Change _M_names
	from fixed size array.
	(locale): Change _S_categories as well.
	Formatting tweaks.
	* include/bits/locale_facets.tcc: Tweak.
	* config/locale/gnu/c_locale.cc: Assign _S_categories.
	* config/locale/generic/c_locale.cc: Same.
	* src/locale.cc: Tweak.
	* src/globals.cc: Change facet_name to name_vec, add names_c.
	* src/localename.cc: Use them.
	(locale::_Impl::~_Impl): Destroy _M_names.
	(locale::_Impl::_Impl): Create _M_names.

From-SVN: r66147
2003-04-28 03:41:49 +00:00
Daniel Jacobowitz
0c227849f6 Makefile.tpl: Clean $(BUILD_SUBDIR).
* Makefile.tpl: Clean $(BUILD_SUBDIR).
	* Makefile.in: Regenerated.

From-SVN: r66145
2003-04-28 02:23:46 +00:00
GCC Administrator
cfd228648d Daily bump.
From-SVN: r66144
2003-04-28 00:17:06 +00:00
Kazu Hirata
860992e60c * reload1.c (reg_set_luid): Fix a comment typo.
From-SVN: r66137
2003-04-27 20:10:49 +00:00
Andreas Schwab
691d089679 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
(__enc_traits): Use __ibom and __ebom instead of ignoring them.

From-SVN: r66136
2003-04-27 19:51:25 +00:00
Mark Mitchell
0b50d7f182 decl.c (maybe_commonize_var): Make the code match the comments.
* decl.c (maybe_commonize_var): Make the code match the comments.
	* pt.c (instantiate_decl): Move call to import_export_decl.

From-SVN: r66135
2003-04-27 19:33:38 +00:00
Zack Weinberg
32a619073c varasm.c (const_str_htab_hash, [...]): Kill.
* varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
	struct deferred_string, const_str_htab): Kill.
	(n_deferred_strings): New static variable.
	(build_constant_desc): Set SYMBOL_REF_DECL of the new
	symbol_ref to point to the constant.
	(output_constant_def): When a deferred string is forced out,
	just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
	(mark_constant): Likewise.
	(maybe_output_constant_def_contents): When deferring a string
	constant, just set STRING_POOL_ADDRESS_P and increment
	n_deferred_strings.
	(mark_constant_pool): Check n_deferred_strings, not the size
	of const_str_htab.
	(init_varasm_once): No need to create const_str_htab.

	* rtl.def, rtl.h, doc/rtl.texi: Document possibility that
	SYMBOL_REF_DECL points to a constant.

From-SVN: r66133
2003-04-27 18:57:51 +00:00
Nathan Myers
2d9d52359c Move some basic_string members out of line because they are too big to reasonably be inline.
2003-04-27  Nathan Myers  <ncm@cantrip.org>

	Move some basic_string members out of line because
	they are too big to reasonably be inline.
	* include/bits/basic_string.h
	(assign(const basic_string&, size_type, size_type),
	assign(const _CharT*, size_type),
	insert(size_type, const basic_string&, size_type, size_type),
	insert(size_type, const _CharT*, size_type),
	replace(size_type, size_type, const _CharT*, size_type)):
	Move from here to...
	* include/bits/basic_string.tcc: ...here.

From-SVN: r66132
2003-04-27 17:20:42 +00:00
Zack Weinberg
293107d161 varasm.c (output_constant_def): Split out two new static functions...
* varasm.c (output_constant_def): Split out two new static
	functions, build_constant_desc and maybe_output_constant_def_contents.
	Restructure for comprehensibility.  Don't call
	output_addressed_constants.  Treat defstr being non-NULL for
	STRING_POOL_ADDRESS_P constants as an invariant.
	(struct deferred_string): Remove labelno field.
	(output_constant_def_contents): Kill labelno argument.  Call
	output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
	asm_out.internal_label.
	(mark_constant): Update call to output_constant_def_contents.
	Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
	constants as an invariant.

From-SVN: r66129
2003-04-27 03:50:27 +00:00
Richard Henderson
12969f45d3 i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
* config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
        (ix86_expand_call, ix86_rtx_consts): Likewise.

From-SVN: r66128
2003-04-26 19:15:25 -07:00
GCC Administrator
0a57102f8f Daily bump.
From-SVN: r66127
2003-04-27 00:17:05 +00:00
David Edelsohn
b29188f32a * g++.dg/warn/weak1.C: XFAIL on AIX4.
From-SVN: r66120
2003-04-26 17:31:23 -04:00
Neil Booth
9ff7868d82 Revert cpplex.c change
From-SVN: r66118
2003-04-26 21:03:51 +00:00
Kaveh Ghazi
b70db50a21 Update copyright
From-SVN: r66117
2003-04-26 21:03:46 +00:00
Kaveh R. Ghazi
5cc2f4f36f md.texi (cmpstr): Document additional restrictions.
gcc:
	* doc/md.texi (cmpstr): Document additional restrictions.

testsuite:
	* gcc.c-torture/execute/string-opt-8.c: Don't perform cmpstr
	checks for __pj__, but do them for !__OPTIMIZE__ and __s390__.

From-SVN: r66116
2003-04-26 20:44:30 +00:00
Mark Mitchell
e2b694230a * decl2.c (finish_file): Fix merge botch.
From-SVN: r66114
2003-04-26 20:22:12 +00:00
Neil Booth
09b04f2d9f flags.h (time_report): Remove.
* flags.h (time_report): Remove.
	* timevar.c (timevar_enable): New.
	(TIMEVAR_ENABLE): Remove, use timevar_enable.
	(timevar_init): Rename from init_timevar.
	* timevar.h (timevar_init): Rename from init_timevar.
	* toplev.c (time_report): Make static.
	(do_compile): Conditionally call init_timevar first.
	(preprocess_options): Move some code to do_compile.

From-SVN: r66110
2003-04-26 15:19:06 +00:00
Stephane Carrez
3e35d14311 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
From-SVN: r66107
2003-04-26 15:09:38 +02:00
Neil Booth
e6dc0cc6d1 * _cpp_lex_direct: Remove pointless code.
From-SVN: r66106
2003-04-26 12:55:09 +00:00
Stephane Carrez
5936c7e7ac extend.texi (Function Attributes): Document "near" and "far" for 68HC11 and 68HC12.
* doc/extend.texi (Function Attributes): Document "near" and "far"
	for 68HC11 and 68HC12.

From-SVN: r66104
2003-04-26 14:35:19 +02:00
Richard Kenner
85a43a2f11 expr.c (store_field): When making temporary for store, don't make it TYPE_QUAL_CONST.
* expr.c (store_field): When making temporary for store, don't
	make it TYPE_QUAL_CONST.

From-SVN: r66103
2003-04-26 07:16:44 -04:00
Paolo Carlini
c7f79b4cb2 fstream.tcc (pbackfail): Shorten a bit (10 lines) the innermost 'if' by factoring out some code.
2003-04-26  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
	the innermost 'if' by factoring out some code.

From-SVN: r66102
2003-04-26 08:31:57 +00:00
Paolo Carlini
ac5b7972ab streambuf.tcc (__copy_streambufs): Don't use in_avail(), simplify.
2003-04-26  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/streambuf.tcc (__copy_streambufs): Don't
	use in_avail(), simplify.

2003-04-26  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_sstream.h (setbuf): don't set _M_buf_size,
	in basic_stringbuf it's unused.

	* include/std/std_sstream.h (underflow): consistently use
	_M_in_cur, not gptr().

From-SVN: r66100
2003-04-26 08:13:35 +00:00
Ranjit Mathew
04ab0b3e09 testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a folder name in...
2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
            Phil Edwards  <pme@gcc.gnu.org>

	* testsuite_flags.in: Guard against the possibility
	of having "xgcc" as a part of a folder name in the
	path to the GCC build folder.
	* testsuite/Makefile.am: Likewise.
	* testsuite/Makefile.in: Regenerated.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r66098
2003-04-26 04:01:47 +00:00
Phil Edwards
09e4ab56db toplev.c (read_integral_parameter): Use "argument" in error message to distinguish it from actual invalid options.
2003-04-25  Phil Edwards  <pme@gcc.gnu.org>

	* toplev.c (read_integral_parameter):  Use "argument" in error
	message to distinguish it from actual invalid options.

From-SVN: r66097
2003-04-26 03:27:07 +00:00
Mark Mitchell
ea56c40c48 decl2.c (finish_file): Don't call import_export_decl for functions that are not defined.
* decl2.c (finish_file): Don't call import_export_decl for
	functions that are not defined.
	(handle_class_head): Robustify.
	* pt.c (instantiate_decl): Do not call cp_finish_decl for
	variables that are not defined.

	* g++.old-deja/g++.pt/instantiate12.C: Explicit instantiate
	initialized static data members.

From-SVN: r66095
2003-04-26 01:27:09 +00:00
Bob Wilson
ab409f1be9 linux.h (TARGET_OS_CPP_BUILTINS): Back out previous addition of __PIC__ and __pic__ macros.
* config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
	addition of __PIC__ and __pic__ macros.
	* config/xtensa/xtensa.h: Clean up indentation.

From-SVN: r66093
2003-04-26 00:39:02 +00:00
Benjamin Kosnik
a1796d12ff re PR libstdc++/10132 (filebuf destructor throws exceptions)
2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/10132
	* include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
	exception specifications.
	(basic_filebuf::close): Same.
	(basic_filebuf::_M_pback_destroy): Same.
	(basic_filebuf::_M_destroy_internal_buffer): Same.
	(basic_filebuf): Remove __res_type typedef.
	* src/fstream.cc: Same.
	* include/bits/fstream.tcc
	(basic_filebuf::_M_convert_to_external): Simplify.
	(basic_filebuf::seekoff): Use has_facet	before use_facet.
	(basic_filebuf::close): Add exception specification of throw().
	* testsuite/27_io/basic_filebuf/cons: New.
	* testsuite/27_io/basic_filebuf/cons/wchar_t: New.
	* testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
	* testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
	* testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.

From-SVN: r66091
2003-04-26 00:23:18 +00:00
GCC Administrator
c21bf638a3 Daily bump.
From-SVN: r66090
2003-04-26 00:17:04 +00:00
Bob Wilson
6a2b287ffd linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of _GNU_SOURCE.
* config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
        _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
        (SUBTARGET_CPP_SPEC): Define.
        (LIB_SPEC): Delete.
        * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
        * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
        * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
        Define.
        (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
        (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.

From-SVN: r66083
2003-04-26 00:06:51 +00:00
H.J. Lu
01475329b3 Add the new file.
From-SVN: r66079
2003-04-25 15:55:18 -07:00
H.J. Lu
d3a0b002e1 ia64-sync-4.c: New test.
2003-04-25  H.J. Lu <hjl@gnu.org>

	* gcc.dg/ia64-sync-4.c: New test.

From-SVN: r66078
2003-04-25 15:51:02 -07:00
H.J. Lu
60986d641c ia64.c (ia64_expand_compare_and_swap): Add rmode for return mode.
2003-04-25  H.J. Lu <hjl@gnu.org>

	* config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
	for return mode.
	(ia64_expand_builtin): Set rmode to SImode for
	IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
	IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
	IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
	for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.

From-SVN: r66077
2003-04-25 15:09:12 -07:00
Wolfgang Bangerth
d45148c102 MAINTAINERS (Write After Approval): Upgrade myself from GNATS only to write-after-approval.
* MAINTAINERS (Write After Approval): Upgrade myself from
       GNATS only to write-after-approval. Update my mail address.

From-SVN: r66076
2003-04-25 16:06:51 -06:00
Phil Edwards
c7a5cf6153 configure.in (make_compare_target): Test for GNU cmp and set this variable appropriately.
2003-04-25  Phil Edwards  <pme@gcc.gnu.org>

	* configure.in (make_compare_target):  Test for GNU cmp and set this
	variable appropriately.
	* Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
	compare4-lean): Rename actual targets to slowcompare*.  New compare*
	targets depend on names based on make_compare_target.
	* configure:  Regenerated.

From-SVN: r66075
2003-04-25 21:15:01 +00:00
Richard Henderson
f5bdba44f0 ia64.c (ia64_compute_frame_size): Allow inline asm to clobber ar.pfs and ar.unat.
* config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
        to clobber ar.pfs and ar.unat.
        (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
        fix test for spilling ar.pfs to the stack.

From-SVN: r66074
2003-04-25 14:02:25 -07:00
Richard Henderson
8f4e6cafde re PR rtl-optimization/10315 ([powerpc] ICE: in extract_insn, at recog.c:2175)
PR opt/10315
        * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
        checks during reload; use validize_mem instead of adjust_address.

From-SVN: r66071
2003-04-25 10:43:58 -07:00
Loren J. Rittle
bb751e4780 (OS Port Maintainers: freebsd): Add myself.
From-SVN: r66069
2003-04-25 17:32:13 +00:00