Commit Graph

47220 Commits

Author SHA1 Message Date
Mark Mitchell
8fa1ad0e6a re PR c++/9264 ([parser] ICE on invalid octal constant)
* cp-tree.h (get_arglist_len_in_bytes): Remove.

	PR c++/9264
	* parser.c (cp_parser_elaborated_type_specifier): Handle erroneous
	typeame types more robustly.

	PR c++/9172
	* g++.dg/parse/typename1.C: New file.

From-SVN: r61236
2003-01-13 00:16:12 +00:00
Mark Mitchell
e8f2b18d0e re PR c++/9264 ([parser] ICE on invalid octal constant)
PR c++/9264
	* c-lex.c (c_lex): Set the token value to error_mark_node for
	invalid numeric constants.

	PR c++/9264
	* g++.dg/parse/octal1.C: New file.

From-SVN: r61235
2003-01-13 00:14:59 +00:00
Kaveh R. Ghazi
70f8b89fd9 c-pch.c (asm_file_startpos): Change to `long'.
* c-pch.c (asm_file_startpos): Change to `long'.
	(pch_init): Use ftell, not ftello.
	(c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
	Use `long' instead of `off_t'.
	(c_common_read_pch): Likewise.
	* ggc-common.c (gt_pch_save): Use long/ftell instead of
	off_t/ftello.

From-SVN: r61233
2003-01-12 16:44:09 +00:00
GCC Administrator
ae6ccbe391 Daily bump.
From-SVN: r61229
2003-01-12 08:17:26 +00:00
Phil Edwards
3a9fdf3058 tables.html: Finished now.
2003-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/tables.html:  Finished now.
	* docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
	* include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
	comments.

	* include/bits/deque.tcc, include/bits/stl_alloc.h,
	include/bits/stl_deque.h, include/bits/stl_list.h,
	include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
	for 3.4 removal.

From-SVN: r61221
2003-01-12 02:56:50 +00:00
Kaveh R. Ghazi
b3504bc126 Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.
* Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.

	* keyword.h: Regenerated.

From-SVN: r61220
2003-01-12 02:43:41 +00:00
Kaveh R. Ghazi
70b384b0c5 com.c (ffecom_convert_narrow_, [...]): Convert to ISO C style function definitions.
* com.c (ffecom_convert_narrow_, ffecom_convert_widen_,
	pushdecl_top_level, storedecls, convert, delete_block,
	insert_block, ffe_init, ffe_mark_addressable, poplevel,
	ffe_print_identifier, pushdecl, pushlevel, set_block,
	ffe_signed_or_unsigned_type, ffe_signed_type,
	ffe_truthvalue_conversion, ffe_type_for_mode, ffe_type_for_size,
	ffe_unsigned_type, append_include_chain, open_include_file,
	read_filename_string, read_name_map): Convert to ISO C style function
	definitions.
	* parse.c (ffe_parse_file): Likewise.
	* top.c (ffe_is_digit_string_): Likewise.

From-SVN: r61219
2003-01-12 02:32:39 +00:00
Kaveh R. Ghazi
0a2f0c5497 * All Files: Convert to ISO C style function definitions.
From-SVN: r61218
2003-01-12 02:14:56 +00:00
Alan Modra
8e37cba890 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
From-SVN: r61215
2003-01-12 09:13:12 +10:30
Richard Earnshaw
04f08c8ef9 * arm-protos.h (struct cpp_reader): Add declaration.
From-SVN: r61203
2003-01-11 12:19:46 +00:00
Jan Hubicka
a5cf80f095 re PR target/9068 ([x86] comisd & comiss constraints are incorrect)
PR target/9068
	* i386.c (output_fp_compare): Fix typo.

From-SVN: r61199
2003-01-11 10:07:57 +00:00
Phil Edwards
15d2cb190e parser.c: Fix comment typos.
2003-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* parser.c:  Fix comment typos.

From-SVN: r61198
2003-01-11 09:09:41 +00:00
GCC Administrator
2b95bca63e Daily bump.
From-SVN: r61197
2003-01-11 08:17:18 +00:00
David Edelsohn
bbfb86aa04 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
From-SVN: r61190
2003-01-10 22:25:11 -05:00
Geoffrey Keating
3859c32a55 Makefile.in (parsedir): New variable.
* Makefile.in (parsedir): New variable.
	(docobjdir): New variable.
	(c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
	gengtype-lex.c, gengtype-yacc.c): Use parsedir.
	(info, cpp.info, gcc.info, gccint.info, gccinstall.info,
	cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
	gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
	Use docobjdir.
	* objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
	objc.maintainer-clean): Use parsedir.

From-SVN: r61189
2003-01-11 02:18:37 +00:00
Michael Koch
927818a598 2003-01-10 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
	(ch): Description added.
	(remotePort): Initialize with -1.
	(connect): Doesnt throws SocketException.
	* java/net/MulticastSocket.java
	(setInterface): Merge with Classpath.
	* java/net/ServerSocket.java
	(closed): New member variable.
	(bind): Check if socket is closed.
	(close): Close an associated channel too, set new value to closed.
	(isBound): Reindented.
	(isClosed): Implemented.
	* java/net/Socket.java
	(closed): New member variable.
	(bind): Check if socket is closed.
	(connect): Check if socket is closed.
	(close): Close an associated channel too, set new value to closed.
	(isClosed): Implemented.

From-SVN: r61185
2003-01-11 01:17:19 +00:00
Michael Koch
b1771c6ac2 2003-01-10 Michael Koch <konqueror@gmx.de>
* java/awt/DisplayMode.java
	(equals): Fixed argument type and implementation.

From-SVN: r61184
2003-01-11 00:51:29 +00:00
Geoffrey Keating
63af3bd1a2 varasm.c (struct constant_descriptor_rtx): Remove unused `label' field.
* varasm.c (struct constant_descriptor_rtx): Remove unused
	`label' field.

From-SVN: r61182
2003-01-11 00:47:36 +00:00
Geoffrey Keating
223b87b6ac * toplev.c (documented_lang_options): Document -Winvalid-pch.
From-SVN: r61181
2003-01-11 00:45:47 +00:00
Danny Smith
67a7278d38 bf-ms-layout.c: Enable for cygwin and mingw32 targets.
* gcc.dg/bf-ms-layout.c: Enable for cygwin and mingw32 targets.
	* gcc.dg/bf-no-ms-layout.c: Likewise.
 	* gcc.dg/bf-ms-attrib.c: Likewise.

From-SVN: r61180
2003-01-10 23:56:06 +00:00
Richard Henderson
fbadafbc20 alpha.h (NO_PROFILE_COUNTERS): Set.
* config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
        (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.

From-SVN: r61179
2003-01-10 15:54:34 -08:00
Richard Henderson
ab5ecb014b combine.c (make_compound_operation): Use SCALAR_INT_MODE_P, not INTEGRAL_MODE_P when widening extensions.
* combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
        not INTEGRAL_MODE_P when widening extensions.

From-SVN: r61178
2003-01-10 15:36:17 -08:00
Jason Merrill
c3104d7532 new test
From-SVN: r61177
2003-01-10 18:34:44 -05:00
Richard Henderson
7f24e7c59c * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
From-SVN: r61176
2003-01-10 15:07:53 -08:00
Mark Mitchell
99152b955c Correct PR# in previous check-in.
From-SVN: r61175
2003-01-10 22:59:52 +00:00
Mark Mitchell
a6f6052ac4 re PR c++/9120 (miscompilation of function with references to undeclared objects and functions)
PR c++/9120
	* parser.c (cp_parser_scope_through_which_access_occurs): Handle
	an object_type which is not a class type.

	PR c++/9120
	* g++.dg/parse/dtor1.C: New file.

From-SVN: r61174
2003-01-10 22:57:04 +00:00
Geoffrey Keating
19cc0dd4ad ggc-page.c (ggc_collect): Avoid overflow computing min_expand.
* ggc-page.c (ggc_collect): Avoid overflow computing
	min_expand.

From-SVN: r61172
2003-01-10 22:32:00 +00:00
Geoffrey Keating
6dd05d08c4 Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
* Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
	(RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
	Remove calls.
	* mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.

From-SVN: r61171
2003-01-10 22:13:05 +00:00
Geoffrey Keating
3466b2921e parser.c (cp_parser_late_parsing_for_member): Don't cast to void.
* parser.c (cp_parser_late_parsing_for_member): Don't cast to void.
	(cp_parser_late_parsing_default_args): Likewise.

From-SVN: r61170
2003-01-10 22:05:02 +00:00
Jan Hubicka
5f1355ef38 ifcvt.c (noce_try_addcc): Do not call emit_conditional_add with weird operands.
Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>

	* ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
	with weird operands.

From-SVN: r61169
2003-01-10 21:28:24 +00:00
Loren J. Rittle
6787cc15f2 * test_summary (configflags): awk portability.
From-SVN: r61168
2003-01-10 21:12:39 +00:00
Nathanael Nerode
b2f29cd967 cfns.gperf: ANSIfy function declarations.
* cfns.gperf: ANSIfy function declarations.
	* cfns.h: Regenerate.
	* cp-tree.h: ANSIfy function declarations.

From-SVN: r61167
2003-01-10 20:49:29 +00:00
Mark Mitchell
2050a1bbac re PR c++/9128 (Typeid does not work on polymorphic classes)
PR c++/9128
	* g++.dg/rtti/typeid1.C: New file.

	PR c++/9153
	* g++.dg/parse/lookup1.C: New file.

	PR c++/9171
	* g++.dg/templ/spec5.C: New file.

	* cp-tree.h (reparse_absdcl_as_expr): Remove.
	(reparse_absdcl_as_casts): Likewise.
	(reparse_decl_as_expr): Likewise.
	(finish_decl_parsing): Likewise.
	* decl2.c (reparse_absdcl_as_expr): Remove.
	(reparse_absdcl_as_casts): Likewise.
	(repase_decl_as_expr): Likewise.
	(finish_decl_parsing): Likewise.

	PR c++/9128
	PR c++/9153
	PR c++/9171
	* parser.c (cp_parser_pre_parsed_nested_name_specifier): New
	function.
	(cp_parser_nested_name_specifier_opt): Correct the
	check_dependency_p false.
	(cp_parser_postfix_expression): Fix formatting.
	(cp_parser_decl_specifier_seq): Avoid looking for constructor
	declarators when possible.
	(cp_parser_template_id): Avoid performing name-lookup when
	possible.
	(cp_parser_class_head): Do not count specializations when counting
	levels of templates.
	(cp_parser_constructor_declarator_p): Return immediately if
	there's no chance that the tokens form a constructor declarator.
	* rtti.c (throw_bad_typeid): Add comment.  Do not return an
	expression with reference type.
	(get_tinfo_decl_dynamic): Do not return an expression with
	reference type.
	(build_typeid): Add comment.  Do not return an expression with
	reference type.
	* typeck.c (build_class_member_access_expr): Improve handling of
	conditionals and comma-expressions as objects.

From-SVN: r61166
2003-01-10 20:30:56 +00:00
Dale Johannesen
0cdca92b46 calls.c (load_register_parameters): Add is_sibcall, sibcall_failure parameters.
2003-01-10  Dale Johannesen <dalej@apple.com>
        * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
        parameters.  Call check_sibcall_argument_overlap if indicated.
        (check_sibcall_argument_overlap):  Add mark_stored_args_map
        parameter.  Don't mark parameter area as clobbered if not set.
        (expand_call):  Adjust calls to above.

From-SVN: r61165
2003-01-10 19:49:09 +00:00
Nathanael Nerode
43a4a12b15 * parse.y (check_pkg_class_access): ANSIfy definition.
From-SVN: r61164
2003-01-10 19:23:30 +00:00
Kelley Cook
6cd656d0f5 configure.in (linker read-only and read-write section mixing): Squelch some assembler warnings.
* configure.in (linker read-only and read-write section mixing):
Squelch some assembler warnings.
* configure: Likewise.

From-SVN: r61163
2003-01-10 13:52:40 -05:00
Nathanael Nerode
45225759ed * decl.c (bad_specifiers): Fix parameter order error I introduced.
From-SVN: r61162
2003-01-10 18:43:53 +00:00
Nathanael Nerode
3dfabf6338 configure.in: Substitute TOPLEVEL_CONFIGURE_ARGUMENTS.
* configure.in: Substitute TOPLEVEL_CONFIGURE_ARGUMENTS.
	* Makefile.tpl: Pass TOPLEVEL_CONFIGURE_ARGUMENTS to gcc.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

From-SVN: r61161
2003-01-10 16:41:48 +00:00
Hartmut Penner
35082351bc * Change mcpu to mtune.
From-SVN: r61160
2003-01-10 15:22:53 +00:00
Hartmut Penner
be2c2a4be1 invoke.texi: Document -mtune, delete -mcpu option for S/390 and zSeries.
* doc/invoke.texi: Document -mtune, delete -mcpu
        option for S/390 and zSeries.
        * config/s390/s390.c (s390_tune_string) New variable.
        (s390_cpu_string) Delete variable.
        (override_options): Use s390_tune_string instead of
        s390_cpu_string.
        * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.

From-SVN: r61159
2003-01-10 15:17:15 +00:00
Kazu Hirata
1f45013893 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
From-SVN: r61158
2003-01-10 15:02:01 +00:00
Josef Zlomek
7558f66e3d 20030110-1.c: New test.
* gcc.c-torture/compile/20030110-1.c: New test.
Test for http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00519.html

From-SVN: r61153
2003-01-10 13:54:08 +00:00
Josef Zlomek
d330ce1532 jump.c (next_nonnote_insn_in_loop): New function.
* jump.c (next_nonnote_insn_in_loop): New function.
	(copy_loop_headers): Use next_nonnote_insn_in_loop instead of
	next_nonnote_insn.
	(duplicate_loop_exit_test). Likewise.

From-SVN: r61150
2003-01-10 13:44:28 +00:00
GCC Administrator
ca3b903372 Daily bump.
From-SVN: r61147
2003-01-10 08:17:27 +00:00
Benjamin Kosnik
38a9323a83 configure.in: Revert.
2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Revert.
	* configure: Regenerate.

From-SVN: r61140
2003-01-10 04:51:48 +00:00
Kaveh Ghazi
d12689d201 missed from last checkin
From-SVN: r61139
2003-01-10 03:42:59 +00:00
Kaveh Ghazi
7048110fe1 decl.c, [...]: Don't cast return value of xmalloc et al.
* decl.c, parse-scan.y, parse.y: Don't cast return value of
	xmalloc et al.

From-SVN: r61138
2003-01-10 03:13:50 +00:00
Kaveh R. Ghazi
77d3109be2 * class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
From-SVN: r61137
2003-01-10 03:04:41 +00:00
Geoffrey Keating
17211ab553 Merge from pch-branch.
From-SVN: r61136
2003-01-10 02:22:34 +00:00
Geoffrey Keating
5f7c78d8a4 ffi_darwin.c: Remove RCS version string.
* src/powerpc/ffi_darwin.c: Remove RCS version string.
	* src/powerpc/darwin.S: Remove RCS version string.

From-SVN: r61135
2003-01-10 00:01:32 +00:00