2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2024-12-27 15:29:31 +08:00
Commit Graph

46950 Commits

Author SHA1 Message Date
Benjamin Kosnik
cb25b0ce8d re PR libstdc++/9076 (Call Frame Instructions are not handled correctly during unwind operation..)
2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
	    Sunil Davasam  <sunil.k.davasam@intel.com>

	PR libstdc++/9076
	* unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
	DW_CFA_same_value, read next and ignore.

Co-Authored-By: Sunil Davasam <sunil.k.davasam@intel.com>

From-SVN: r61008
2003-01-07 20:20:53 +00:00
Richard Henderson
94c040bd69 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
From-SVN: r61007
2003-01-07 12:14:51 -08:00
Tom Tromey
b47ffb8f08 class.c (add_assume_compiled): Don't adjust parent if we're already at the root of tree.
* class.c (add_assume_compiled): Don't adjust parent if we're
	already at the root of tree.

From-SVN: r61003
2003-01-07 17:20:50 +00:00
Daniel Berlin
f6cb56fa00 cfg.c: Include alloc-pool.h
2003-01-07  Daniel Berlin  <dberlin@dberlin.org>

	* cfg.c: Include alloc-pool.h
	(edge_pool): New pool.
	(bb_pool): New pool.
	(first_deleted_edge): Remove.
	(first_deleted_block): Remove.
	(init_flow): Alloc/free the pools.
	(free_edge): Use pools.
	(alloc_block): Ditto.
	(expunge_block): Ditto.
	(cached_make_edge): Ditto.

	* Makefile.in (cfg.o): Add alloc-pool.h dependency.

2003-01-07  Daniel Berlin  <dberlin@dberlin.org>

	* et-forest.c: Include alloc-pool.h.
	(struct et_forest): Add node_pool and occur_pool.
	(et_forest_create): Create the new pools.
	(et_forest_delete): Delete them.
	(et_forest_add_node): Allocate and free using pools.
	(et_forest_add_edge): Ditto.
	(et_forest_remove_node): Ditto.
	(et_forest_remove_edge): Ditto.

	* Makefile.in (et-forest.o): Add alloc-pool.h dependency.

From-SVN: r61001
2003-01-07 17:05:16 +00:00
Tom Tromey
6ec628973a posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION.
* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.
	* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.

From-SVN: r60998
2003-01-07 16:50:08 +00:00
Benjamin Kosnik
0252d6041d re PR libstdc++/8707 (make distclean fails)
2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/8707
	* Makefile.am (distclean-multi): Fix.
	* Makefile.in: Regenerate.

From-SVN: r60996
2003-01-07 16:20:25 +00:00
Kazu Hirata
f9ac2f95ec h8300.c (output_logical_op): Simplify and optimize the handling of SImode.
* config/h8300/h8300.c (output_logical_op): Simplify and
	optimize the handling of SImode.
	* config/h8300/h8300.c (compute_logical_op_length): Update
	accordingly.
	* config/h8300/h8300.c (compute_logical_op_cc): Likewise.

From-SVN: r60995
2003-01-07 16:02:20 +00:00
Andreas Schwab
c93721124b class.c (layout_class_type): Don't use PCC_BITFIELD_TYPE_MATTERS if not defined.
* class.c (layout_class_type): Don't use
	PCC_BITFIELD_TYPE_MATTERS if not defined.

From-SVN: r60994
2003-01-07 15:41:30 +00:00
Alexandre Oliva
ce985125f5 test_summary (configflags): Compute correctly with both autoconfiscated and Cygnus-style top-level.
* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level.

From-SVN: r60991
2003-01-07 11:56:25 +00:00
Richard Sandiford
83282119ef mips.c (mips_va_arg): In the EABI code, apply the big-endian correction to indirect arguments too.
* config/mips/mips.c (mips_va_arg): In the EABI code, apply the
	big-endian correction to indirect arguments too.

From-SVN: r60990
2003-01-07 09:52:15 +00:00
Michael Koch
f2741d5fbb DatagramSocket.java: Added classpath license info.
2003-01-07  Michael Koch  <konqueror@gmx.de>

 	* java/net/DatagramSocket.java:
 	Added classpath license info.
 	(DatagramSocket): Merged description with classpath.
 	(close): Merged description with classpath.
 	(getChannel): Merged description with classpath.
 	(getInetAddress): Merged description with classpath.
 	(getPort): Merged description with classpath.
 	(getLocalAddress): Merged description with classpath.
 	(getLocalPort): Merged description with classpath.
 	(getSoTimeout): Merged description with classpath.
 	(setSoTimeout): Merged description with classpath.
 	(getSendBufferSize): Merged description with classpath.
 	(setSendBufferSize): Merged description with classpath.
 	(getReceiveBufferSize): Merged description with classpath.
 	(setReceiveBufferSize): Merged description with classpath.

From-SVN: r60989
2003-01-07 08:26:02 +00:00
GCC Administrator
fe50034d9c Daily bump.
From-SVN: r60988
2003-01-07 08:17:26 +00:00
Aldy Hernandez
59a4c851eb Segher Boessenkool <segher@koffie.nl>
2003-01-06  Aldy Hernandez  <aldyh@redhat.com>

	Segher Boessenkool  <segher@koffie.nl>

        * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
        (alt_reg_names): Ditto, fix formatting.
        * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.

From-SVN: r60980
2003-01-07 05:14:34 +00:00
Kazu Hirata
7798db9815 h8300.c (final_prescan_insn): Constify uid.
* config/h8300/h8300.c (final_prescan_insn): Constify uid.
	(output_logical_op): Constify intval and det.
	(compute_logical_length): Likewise.
	(compute_logical_cc): Likewise.
	(output_a_shift): Constify mask.
	(h8300_encode_label): Constify len.

From-SVN: r60979
2003-01-07 04:34:30 +00:00
Kazu Hirata
4705d10281 h8300.c (h8300_expand_prologue): Remove fsize.
* config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
	(h8300_expand_epilogue): Likewise.

From-SVN: r60978
2003-01-07 04:25:58 +00:00
Aldy Hernandez
98c9a8e89f Segher Boessenkool <segher@koffie.nl>
2003-01-06  Aldy Hernandez  <aldyh@redhat.com>

	Segher Boessenkool  <segher@koffie.nl>

        * config/rs6000/altivec.md: Remove spaces from assembler
        instruction argument lists.

From-SVN: r60973
2003-01-07 02:54:13 +00:00
Mark Mitchell
c10cdb3d75 re PR c++/9165 (false "defined but not used" warnings)
PR c++/9165
	* decl2.c (build_cleanup): Mark the object as used.

	PR c++/9165
	* g++.dg/warn/Wunused-3.C: New test.

From-SVN: r60972
2003-01-07 02:38:32 +00:00
Mark Mitchell
69f794a709 pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
* pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
	(hash_local_specialization): New function.
	(register_local_specialization): Revert 2003-01-05 change.
	(instantiate_decl): Use hash_local_specialization when creating
	the local_specializations table.

From-SVN: r60971
2003-01-07 01:38:24 +00:00
Michael Hayes
86143814f6 c4x.c (c4x_naked_function_p): Rename from c4x_assembler_function_p.
* config/c4x/c4x.c (c4x_naked_function_p): Rename from
	c4x_assembler_function_p.
	(c4x_null_epilogue_p): Complement return value, all uses updated.
	(c4x_insert_attributes): Add naked.
	* config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
	* doc/extend.texi: Update C4x function attributes.

From-SVN: r60968
2003-01-07 01:37:15 +00:00
Mark Mitchell
4c4646b541 * decl2.c (mark_used): Do not synthesize thunks.
From-SVN: r60967
2003-01-07 01:34:37 +00:00
Mark Mitchell
63e5f5679c class.c (layout_class_type): Correct handling of unnamed bitfields wider than their types.
* class.c (layout_class_type): Correct handling of unnamed
	bitfields wider than their types.

	* testsuite/g++.dg/abi/bitfield9.C: New test.

From-SVN: r60966
2003-01-07 01:33:54 +00:00
Richard Henderson
52fd80fb25 alpha.c (alpha_encode_section_info): Adjust symbol_str properly when changing "local-ness".
* config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
        properly when changing "local-ness".
        * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.

	* gcc.dg/tls/alias-1.c: New.

From-SVN: r60961
2003-01-06 14:59:25 -08:00
Dale Johannesen
a16b43c5c5 darwin-protos.h: Add prototypes for new section functions.
2003-01-06  Dale Johannesen  <dalej@apple.com>

        * config/darwin-protos.h:  Add prototypes for new section functions.

From-SVN: r60960
2003-01-06 22:23:37 +00:00
Chris Demetriou
ef8dfae612 config.gcc (mipsisa32-*-elf*, [...]): Default ABI to EABI.
2003-01-06  Chris Demetriou  <cgd@broadcom.com>

        * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
        to EABI.

From-SVN: r60957
2003-01-06 13:35:22 -08:00
Mark Mitchell
8218bd3432 re PR c++/9189 ([New parser] Order of default argument processing and function body compilation)
PR c++/9189
	* parser.c (cp_parser): Remove default_arg_types.  Update
	documentation for unparsed_functions_queues.
	(cp_parser_late_parsing_default_args): Take a FUNCTION_DECL as the
	parameter.
	(cp_parser_new): Don't set parser->default_arg_types.
	(cp_parser_function_definition): Adjust usage of
	unparsed_funtions_queues.
	(cp_parser_class_specifier): Don't mess with
	parser->default_arg_types.  Handle default argument processing in
	a separate phase from function body processing.
	(cp_parser_template_declaration_after_export): Adjust usage of
	unparsed_functions_queues.
	(cp_parser_late_parsing_for_member): Do not handle default
	arguments.

	PR c++/9189
	* g++.dg/parse/defarg3.C: New test.

From-SVN: r60956
2003-01-06 21:32:17 +00:00
Benjamin Kosnik
1c26d8fd84 locale_facets.h (messages): Move ctor, dtor definitions to..
2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.h (messages): Move ctor, dtor
	definitions to..
	(__timepunct): Same.
	* config/locale/gnu/messages_members.h (messages): Add dtor, ctor
	definitions. Conditionalize for GNU systems.
	* config/locale/generic/messages_members.h (messages): Add dtor, ctor
	definitions.
	* config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
	definitions. Conditionalize for GNU systems.
	* config/locale/generic/time_members.h (messages): New. Add dtor, ctor
	definitions.
	* include/bits/localefwd.h (locale::facet::_S_c_name): Add.
	* src/locale.cc: Define.
	* src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
	Use it.
	* config/locale/gnu/time_members.h: Use it.
	* config/locale/gnu/messages_members.h: Use it.
	* config/linker-map.gnu: Add locale::facets details.
	* include/Makefile.am (target_headers_extra): Add time_members.h.
	* include/Makefile.in: Regenerate.
	* acinclude.m4: Export CTIME_H.
	* aclocal.m4: Regenerate.
	* configure: Regnerate.

From-SVN: r60952
2003-01-06 21:23:00 +00:00
Zack Weinberg
44f9a8e4bb hwint.h: If the current compiler has no 64-bit type at all, make HOST_WIDEST_INT 32 bits.
* hwint.h: If the current compiler has no 64-bit type at all,
	make HOST_WIDEST_INT 32 bits.

From-SVN: r60951
2003-01-06 20:31:16 +00:00
Eric Christopher
2610198a45 mips.md (movdf_internal2): Fix constraints.
2003-01-06  Eric Christopher  <echristo@redhat.com>

        * config/mips/mips.md (movdf_internal2): Fix constraints.

From-SVN: r60950
2003-01-06 20:12:37 +00:00
Joern Rennecke
06d42c2251 Fix comment typo.
From-SVN: r60949
2003-01-06 20:02:56 +00:00
Paolo Carlini
80c4581d61 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
* src/codecvt.cc
	(codecvt<char, char, mbstate_t>::do_in, do_out):
	Tweak parameters to avoid unused parameter warnings.

From-SVN: r60946
2003-01-06 18:48:41 +00:00
Nathan Sidwell
62b8a44e26 re PR c++/9109 (parse ambiguity)
cp:
	PR c++/9109
	* parser.c (cp_parser_declarator_kind): New enum.
	(cp_parser_declarator): Adjust.
	(cp_parser_direct_declarator): Adjust. Allow for either named or
	abstract declarator. Prefer abstract, if possible. Allow
	parenthesized function name.
	(cp_parser_condition): Adjust cp_parser_declarator call.
	(cp_parser_explicit_instantiation): Likewise.
	(cp_parser_init_declarator): Likewise.
	(cp_parser_type_id): Likewise.
	(cp_parser_function_definition): Likewise.
	(cp_parser_member_declaration): Likewise.
	(cp_parser_parameter_declaration): Use cp_parser_declarator to do
	the tentative parsing.
	(cp_parser_exception_declaration): Likewise.
testsuite:
	* g++.dg/parse/ambig1.C: New test.
	* g++.dg/parse/defarg2.C: New test.

From-SVN: r60944
2003-01-06 18:40:22 +00:00
Andrew Cagney
e914a57172 configure.in (GDB_TK): Add tcl directories conditional on gdb/gdbtk directory being present.
2003-01-06  Andrew Cagney  <ac131313@redhat.com>

	* configure.in (GDB_TK): Add tcl directories conditional on
	gdb/gdbtk directory being present.
	* configure: Regenerate.

From-SVN: r60943
2003-01-06 17:37:24 +00:00
Paolo Carlini
87117aa2f3 re PR libstdc++/9151 (std::setprecision limited to 16 digits when outputting a double to a stream)
2003-01-06  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9151
	* include/bits/locale_facets.cc (num_put::_M_convert_float):
	Limit __prec to digits10 + 2, not digits10 + 1, taking into
	account the possibility of %{g,G} conversion specifiers
	inside _S_format_float.
	* testsuite/27_io/ostream_inserter_arith.cc (test06): Add.

From-SVN: r60939
2003-01-06 15:32:16 +00:00
Kaveh R. Ghazi
8de6a6df28 libstdc++-v3-dg.exp (libstdc++-v3-init, [...]): Additionally handle files one level deeper in glob patterns.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
	libstdc++-v3-list-sourcefiles): Additionally handle files one
	level deeper in glob patterns.

	* testsuite/27_io/istream_extractor_arith.cc: Delete, split...
	* testsuite/27_io/istream_extractor_arith/01.cc,
	testsuite/27_io/istream_extractor_arith/02.cc,
	testsuite/27_io/istream_extractor_arith/03.cc,
	testsuite/27_io/istream_extractor_arith/06.cc,
	testsuite/27_io/istream_extractor_arith/07.cc,
	testsuite/27_io/istream_extractor_arith/08.cc,
	testsuite/27_io/istream_extractor_arith/09.cc,
	testsuite/27_io/istream_extractor_arith/10.cc,
	testsuite/27_io/istream_extractor_arith/11.cc,
	testsuite/27_io/istream_extractor_arith/12.cc,
	testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
	* testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
	sparc*-*-solaris2*.

From-SVN: r60934
2003-01-06 14:16:00 +00:00
Kazu Hirata
efbd757f78 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
From-SVN: r60933
2003-01-06 14:14:33 +00:00
Richard Sandiford
727b9b8cf5 * config/mips/mips.md (leadi): Use dla rather than la.
From-SVN: r60932
2003-01-06 13:34:56 +00:00
GCC Administrator
c4fe1427a6 Daily bump.
From-SVN: r60931
2003-01-06 08:19:57 +00:00
Mark Mitchell
ec194454c5 defarg-1.C: New test.
* g++.dg/template/defarg-1.C: New test.
	* g++.dg/template/local2.C: Likewise.

From-SVN: r60924
2003-01-06 02:40:31 +00:00
Svein E. Seldal
cebdac46e4 c4x.h: Updated specs for new gas format.
* config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
	in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.

From-SVN: r60923
2003-01-06 01:15:46 +00:00
Herman A.J. ten Brugge
fe1e789f3f c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX redefinition.
* c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
	redefinition.

From-SVN: r60921
2003-01-06 00:11:54 +00:00
Kazu Hirata
dff0ea43a8 * config/h8300/h8300.md (*extzv_8_23): New.
From-SVN: r60920
2003-01-05 23:04:48 +00:00
John David Anglin
94e6fd3e2b pa64-hpux.h (JCR_SECTION_NAME): Define.
* pa64-hpux.h (JCR_SECTION_NAME): Define.
	(PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
	USE_EH_FRAME_REGISTRY when defining.

From-SVN: r60918
2003-01-05 18:41:18 +00:00
Toon Moene
de7cbdce2f re PR fortran/9038 (-ffixed-line-length-none -x f77-cpp-input gives: Warning: unknown register name line-length-none)
2003-01-05  Toon Moene  <toon@moene.indiv.nluug.nl>

	* news.texi: Revise history again:
	PR Fortran/9038 will be fixed in 3.4.

From-SVN: r60917
2003-01-05 18:18:06 +00:00
Kazu Hirata
cd9b5ca8cf h8300.c (output_a_shift): Do not output a variable shift.
* config/h8300/h8300.c (output_a_shift): Do not output a
	variable shift.
	* config/h8300/h8300.md (two splitters): New.

From-SVN: r60915
2003-01-05 15:47:36 +00:00
Toon Moene
30e3682e96 re PR fortran/9038 (-ffixed-line-length-none -x f77-cpp-input gives: Warning: unknown register name line-length-none)
2003-01-05  Toon Moene  <toon@moene.indiv.nluug.nl>

	* news.texi: Update news to reflect reality:
	PR Fortran/9038 won't be fixed until 3.4.

From-SVN: r60912
2003-01-05 12:51:42 +00:00
Richard Sandiford
1ba8a9c4ec * config/mips/mips.md: Disable the movstrsi define_split.
From-SVN: r60911
2003-01-05 12:02:24 +00:00
GCC Administrator
5c2465500a Daily bump.
From-SVN: r60909
2003-01-05 08:17:19 +00:00
Paolo Carlini
b1599033fa re PR libstdc++/9168 (codecvt<char, char, mbstate_t> overwrites output buffers)
2003-01-05  Paolo Carlini <pcarlini@unitus.it>

	PR libstdc++/9168
	* src/codecvt.cc
	(codecvt<char, char, mbstate_t>::do_in, do_out):
	Implement the resolution of DR19 (TC).
	* testsuite/22_locale/codecvt_members_char_char.cc
	(test01): Tweak.

From-SVN: r60901
2003-01-05 08:04:18 +00:00
Kaveh R. Ghazi
c7c50494be Warning fixes:
* alloc-pool.c: Don't include "libiberty.h".
	* config/sparc/gmon-sol2.c: Include <fcntl.h>.
	* convert.c (convert_to_real): Hide unused variable.

java:
	* lang.c (dump_compound_expr): Prototype.

From-SVN: r60900
2003-01-05 05:27:45 +00:00
Kaveh R. Ghazi
39b1af70da parser.c (cp_parser_binary_expression, [...]): Const-ify.
* parser.c (cp_parser_binary_expression,
	cp_parser_multiplicative_expression,
	cp_parser_additive_expression, cp_parser_shift_expression,
	cp_parser_relational_expression, cp_parser_equality_expression,
	cp_parser_and_expression, cp_parser_exclusive_or_expression,
	cp_parser_inclusive_or_expression,
	cp_parser_logical_and_expression, cp_parser_logical_or_expression,
	cp_parser_binary_expression): Const-ify.

From-SVN: r60899
2003-01-05 04:38:58 +00:00