Commit Graph

48269 Commits

Author SHA1 Message Date
Nick Clifton
64458158b9 remove bogus files accidentally commited during a previous delta
From-SVN: r63399
2003-02-25 10:17:06 +00:00
Scott Snyder
63b1a6ba01 re PR libstdc++/9811 (incorrect documentation for std::map::lower_bound, etc.)
2003-02-25  Scott Snyder  <snyder@fnal.gov>

	PR libstdc++/9811
	* include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
	Correct documentation.
	* include/bits/stl_multimap.h (lower_bound, upper_bound,
	equal_range): Likewise.

From-SVN: r63396
2003-02-25 06:27:10 +00:00
GCC Administrator
bacbf39910 Daily bump.
From-SVN: r63392
2003-02-25 00:17:06 +00:00
Mark Mitchell
d12ad970f2 * README: Remove out-of-date information.
From-SVN: r63384
2003-02-24 22:01:56 +00:00
Mark Mitchell
353b4fc0d7 re PR c++/9836 (Error with typdefs in partial specializations of classes)
PR c++/9836
	* cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): Do not skip from
	specializations back to the main template.
	* parser.c (cp_parser_diagnose_invalid_type_name):Adjust use.
	* pt.c (resolve_typename_type): Likewise.

	PR c++/9836
	* g++.dg/template/spec6.C: New test.

From-SVN: r63383
2003-02-24 21:52:00 +00:00
Tom Tromey
2afced1191 AbstractPreferences.java (isUserNode): Implemented.
* java/util/prefs/AbstractPreferences.java (isUserNode):
	Implemented.

From-SVN: r63382
2003-02-24 21:20:19 +00:00
Jan Hubicka
2d21f7d6b3 * combine.c (simplify_shift_const): Fix previous patch.
From-SVN: r63380
2003-02-24 21:10:39 +00:00
Jeffrey D. Oldham
8b6a662e3e re PR c++/9778 (ICE with sizeof(expr) in non-type template arg)
2003-02-24  Jeffrey D. Oldham  <oldham@codesourcery.com>

	PR c++/9778
	* cp/pt.c (tsubst_copy_and_build): For a templated function inside a
	scope, process template arguments.
	* testsuite/g++.dg/parse/template6.C: New test case.

From-SVN: r63379
2003-02-24 20:39:38 +00:00
Paolo Carlini
57df94c8f6 re PR libstdc++/9825 (filebuf::sputbackc breaks sbumpc)
2003-02-24  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9825
	* src/fstream.cc
	(basic_filebuf<char/wchar_t>::_M_underflow_common): When
	__bump is true (uflow), always increment the read pointer
	(_M_in_cur) before returning successfully.
	* testsuite/27_io/filebuf_virtuals.cc (test12): Add.

From-SVN: r63378
2003-02-24 20:39:31 +00:00
Jeff Law
2bac97f7e7 i386.md (testdi_1_rex64): Discourage reload from using the %eax alternative.
* i386.md (testdi_1_rex64): Discourage reload from using the %eax
        alternative.
        (testsi_1, testhi_1, testqi_1): Likewise.

From-SVN: r63376
2003-02-24 13:18:44 -07:00
Rainer Orth
7f9fc00642 physmem.c (physmem_total): Test for GSI_PHYSMEM.
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
	GSI_PHYSMEM.
	(physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.

From-SVN: r63373
2003-02-24 19:31:49 +00:00
Jeff Law
201b9f2a5d * gcc.c-torture/compile/20030224-1.c: New test for ia32 backend bug.
From-SVN: r63371
2003-02-24 11:57:06 -07:00
Rainer Orth
f8dc212b5d re PR c/5059 (Compiling s/w containing the use of DIR.H fails on other stat-calls)
* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
	__EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
	* doc/extend.texi (Tru64 Pragmas): Reflect this.

	* fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
	extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
	testcase.
	Fixes PR c/5059, c/6126, other/9671.

	testsuite:
	* g++.dg/other/pragma-ep-1.C: Test for __PRAGMA_EXTERN_PREFIX.
	* gcc.dg/pragma-ep-1.c: Likewise.

From-SVN: r63370
2003-02-24 18:52:51 +00:00
Paolo Carlini
391cd0955e PR libstdc++/9404, PR libstdc++/9701 (partial)
2003-02-24  Paolo Carlini <pcarlini@unitus.it>
	    Nathan Myers <ncm@cantrip.org>

	PR libstdc++/9404, PR libstdc++/9701 (partial)
	(aka pptr == epptr implies overflow)
	* include/bits/fstream.tcc (_M_allocate_internal_buffer):
	Consistently, _M_out_end points to the end of the buffer just
	created.
	(overflow): Tweak to use _M_out_buf_size().
	(_M_convert_to_external): The role of the old _M_out_end is
	now played by _M_out_lim.
	(_M_really_overflow): Likewise.
	(seekoff): Likewise.
	(setbuf): _M_out_end points to the end of the external buffer.
	* include/bits/sstream.tcc (overflow): Rewrote, taking into
	account the resolution of DR 169 (TC).
	(seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
	(seekpos): Use _M_string.capacity(); tweak.
	* include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
	* include/std/std_fstream.h (sync): The role of the old
	_M_out_end is now played by _M_out_lim.
	(_M_set_indeterminate): Use _M_set_determinate.
	(_M_set_determinate): _M_out_end is now _M_out_lim.
	(_M_is_indeterminate): Likewise.
	* include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
	(_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
	which have the information readily available as _M_string.capacity();
	for ate and app modes, pass the string size to _M_really_sync.
	(_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
	point to the end of the buffer (i.e., epptr) and to the string end,
	respectively.
	* include/std/std_streambuf.h: tweak comments, add _M_out_lim,
	which points to the right limit of the used put area.
	(_M_out_cur_move): The role of the old _M_out_end is now played
	by _M_out_lim.
	(_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
	_M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
	of the standard.
	(basic_streambuf()): Initialize _M_out_lim too.
	* testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
	* testsuite/27_io/filebuf_virtuals.cc (test11): Add.
 	* testsuite/27_io/stringbuf_virtuals.cc (test09): Add.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r63367
2003-02-24 18:22:58 +00:00
Benjamin Kosnik
2e812a0a41 ios_base_storage.cc (main): Call set_memory_limits.
2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/27_io/ios_base_storage.cc (main): Call
	set_memory_limits.

From-SVN: r63366
2003-02-24 18:14:20 +00:00
Tom Tromey
d99c7b11c5 ClassLoader.java (defineClass(byte[],int,int)): Deprecate.
* java/lang/ClassLoader.java (defineClass(byte[],int,int)):
	Deprecate.
	* java/lang/Thread.java (resume): Deprecate.
	* java/io/ByteArrayOutputStream.java (toString(int)): Fixed typo
	in @deprecated.

From-SVN: r63364
2003-02-24 16:47:58 +00:00
Kriang Lerdsuwanakij
9e236a9d66 re PR c++/9602 (Total confusion about template/friend/virtual/abstract)
PR c++/9602
	* typeck2.c (abstract_virtuals_error): Don't check when
	TYPE is still template parameter dependent.

	* g++.dg/template/friend16.C: New test.

From-SVN: r63362
2003-02-24 15:47:24 +00:00
Roger Sayle
44ee6e9e62 gcc.c (do_spec_1): Handle pending argument upon return from handle_braces in "%{...}".
* gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
	from handle_braces in "%{...}".

From-SVN: r63357
2003-02-24 14:52:42 +00:00
Steven Bosscher
a7a287eb4f * MAINTAINERS (Write after approval): Add myself.
From-SVN: r63356
2003-02-24 09:27:29 +00:00
Mark Mitchell
ca099ac8c5 re PR c++/5333 (ICE on nested template classes using other nested template classes)
PR c++/5333
	* cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): New macro.
	* parser.c (cp_parser_diagnose_invalid_type_name): Use it.
	* pt.c (instantiate_class_template): Don't try to instantiate
	dependent types.
	(resolve_typename_type): Use CLASSTYPE_PRIMARY_TEMPLATE.

	PR c++/5333
	* g++.dg/parse/fused-params1.C: Adjust error messages.
	* g++.dg/template/nested3.C: New test.

From-SVN: r63354
2003-02-24 07:43:23 +00:00
Kaz Kojima
463f02cd03 sh.c (TARGET_HAVE_TLS): Conditionally define.
* config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
	(prepare_move_operands): Handle TLS operands.
	(tls_symbolic_operand): New.
	(nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
	(legitimize_pic_address): Do nothing for the TLS symbol.
	(sh_encode_section_info): Handle TLS case.
	(sh_strip_name_encoding): Drop TLS encoding.
	* config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
	* config/sh/sh.h (SH_TLS_ENCODING): Define.
	(TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
	(ASM_OUTPUT_LABELREF): Drop TLS encoding.
	(OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
	* config/sh/sh.md: Define TLS UNSPEC constants.
	(type): Add tls_load.
	("tls_global_dynamic", "tls_local_dynamic"): New insns.
	("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
	("tls_initial_exec"): New insn.
	("sym2TPOFF", "symTPOFF2reg"): New expanders.
	("load_gbr"): New insn.

	* configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
        * configure: Regenerate.

From-SVN: r63353
2003-02-24 02:44:02 +00:00
Tom Tromey
cf88ede3d2 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (JC1FLAGS): Added -Wno-deprecated.

From-SVN: r63352
2003-02-24 02:15:43 +00:00
Tom Tromey
6eebde4b4d * libjava.jacks/jacks.xfail: Most 4.7.10 tests pass now.
From-SVN: r63351
2003-02-24 02:15:22 +00:00
Tom Tromey
f94ae54025 lang-options.h: Added -Wdeprecated.
* lang-options.h: Added -Wdeprecated.
	* gcj.texi (Warnings): Document -Wdeprecated.
	* java-tree.h (flag_deprecated): Declare.
	* lang.c (lang_W_options): Added deprecated.
	(flag_deprecated): New global.
	* chartables.h: Rebuilt.
	* gen-table.pl (process_one): Look at whitespace.
	(print_tables): Define LETTER_SPACE, LETTER_MASK.
	* parse.h (CLEAR_DEPRECATED): New macro.
	(CHECK_DEPRECATED_NO_RESET): New macro.
	* jcf-parse.c (handle_deprecated): New function.
	(HANDLE_DEPRECATED_ATTRIBUTE): New define.
	* jcf-reader.c (get_attribute): Handle Deprecated attribute.
	* parse.y (resolve_type_during_patch): Check deprecation.
	(jdep_resolve_class): Likewise.
	(process_imports): Likewise.
	(resolve_expression_name): Likewise.
	(check_deprecation): Strip arrays from decl.  Check
	flag_deprecated.
	(patch_method_invocation): Also check the particular constructor
	for deprecation.
	(register_fields): Use CHECK_DEPRECATED_NO_RESET in loop.
	* jcf-write.c (append_deprecated_attribute): New function.
	(generate_classfile): Generate deprecated attribute when
	appropriate.
	* lex.c (java_parse_doc_section): Return type now void.  Rewrote.
	(java_lex) [case '*']: Simplify logic.
	(java_start_char_p): Use LETTER_MASK.
	(java_part_char_p): Likewise.
	(java_space_char_p): New function.

From-SVN: r63350
2003-02-24 02:14:49 +00:00
Tom Tromey
804b2c48ea natRuntime.cc (libraries_size, [...]): Removed.
* java/lang/natRuntime.cc (libraries_size, libraries_count,
	libraries): Removed.
	(add_library): Removed.
	(_load): Don't call add_library.
	(loadLibraryInternal): Likewise.
	(init): Likewise.
	(lookup_data): New struct.
	(find_symbol): New function.
	(_Jv_FindSymbolInExecutable): Use it.

From-SVN: r63348
2003-02-24 00:53:21 +00:00
GCC Administrator
6ecc7b8ffd Daily bump.
From-SVN: r63347
2003-02-24 00:17:04 +00:00
Alan Modra
f641e05b44 New test.
From-SVN: r63339
2003-02-24 09:18:05 +10:30
Alan Modra
8403445aba calls.c (store_one_arg): Revert 1999-02-16 change.
* calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
	2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
	* expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
	(enum block_op_methods): Reorder for better store_expr optimization.
	* expr.c (store_expr): Test bit 1 of "want_value" for call param
	stores, test bit 0 for original want_value meaning.  Pass
	BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
	recursive calls, and calls to expand_param.
	(expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
	expected, set target to 0 rather than to subtarget.  Formatting.

From-SVN: r63337
2003-02-24 08:49:39 +10:30
Kazu Hirata
ef90638128 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
From-SVN: r63332
2003-02-23 20:52:44 +00:00
Nick Clifton
7b652bb8eb Add %redact file
From-SVN: r63331
2003-02-23 20:32:20 +00:00
Nick Clifton
39071122d3 FSF GCC merge 02/23/03
From-SVN: r63327
2003-02-23 17:26:23 +00:00
Kaveh R. Ghazi
16226f1e5b invoke.texi (ggc-min-expand, [...]): Document new default behavior.
* doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
	new default behavior.
	* ggc-common.c: Include sys/resource.h.
	(ggc_rlimit_bound): New function.
	(ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
	defaults to account for rlimits.

From-SVN: r63323
2003-02-23 16:56:04 +00:00
Kriang Lerdsuwanakij
53be1a8d37 re PR c++/7982 (core dump due to recursive definition (using stl set))
PR c++/7982
	* g++.dg/warn/implicit-typename1.C: New test.

From-SVN: r63318
2003-02-23 14:10:50 +00:00
Richard Henderson
9e5555268a [multiple changes]
2003-02-22  Richard Henderson  <rth@redhat.com>

	* i386.c, i386.h (TUNEMASK): Rename from CPUMASK.

2003-02-22  Kelley Cook <kelley@dwhoops.info>

        * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
	(ix86_tune_string): Rename from ix86_cpu_string.

From-SVN: r63314
2003-02-22 22:10:02 -08:00
Kelley Cook
9d913bbf3f i386.c: Replace "mcpu" with "mtune".
* config/i386/i386.c: Replace "mcpu" with "mtune".
        * config/i386/i386.h (TARGET_OPTIONS): Likewise.
        (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
        * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
        with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".

        * g++.old-deja/g++.other/store-expr1.C: Replace "mcpu"
        with "mtune".
        * g++.old-deja/g++.other/store-expr2.C: Likewise.
        * gcc.c-torture/execute/20010129-1.x: Likewise.
        * gcc.dg/20011107-1.c: Likewise.
        * gcc.dg/20020108-1.c: Likewise.
        * gcc.dg/20020122-3.c: Likewise.
        * gcc.dg/20020206-1.c: Likewise.
        * gcc.dg/20020310-1.c: Likewise.
        * gcc.dg/20020426-2.c: Likewise.
        * gcc.dg/20020517-1.c: Likewise.
        * gcc.dg/991230-1.c: Likewise.
        * gcc.dg/i386-unroll-1.c: Likewise.
        * gcc.misc-tests/i386-prefetch.exp: Likewise.

From-SVN: r63313
2003-02-22 19:10:03 -08:00
GCC Administrator
185e2e1315 Daily bump.
From-SVN: r63312
2003-02-23 00:17:03 +00:00
Andreas Schwab
d2c172bf5b config.gcc: Delete references to m68k/t-linux and m68k/t-linux-aout.
* config.gcc: Delete references to m68k/t-linux and
	m68k/t-linux-aout.
	* config/m68k/t-linux, config/m68k/t-linux-aout: Removed.

From-SVN: r63305
2003-02-22 23:46:46 +00:00
Jan Hubicka
b3de7382fa toplev.c (rest_of_compilation): Apply fotgotten hunk of track scheduling patch.
* toplev.c (rest_of_compilation):  Apply fotgotten hunk
	of track scheduling patch.

From-SVN: r63298
2003-02-22 19:25:19 +00:00
Jan Hubicka
48e082b900 * gcc.dg/i386-mul.c: New test.
From-SVN: r63297
2003-02-22 19:14:59 +00:00
Jan Hubicka
90b8be7350 linux.h (TARGET_HAS_F_SETLKW): Define.
* config/linux.h (TARGET_HAS_F_SETLKW): Define.
	* config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise

From-SVN: r63293
2003-02-22 18:30:20 +00:00
Kaveh R. Ghazi
d47f75c469 configure.in: Check for sys/systemcfg.h and _system_configuration.
* configure.in: Check for sys/systemcfg.h and
	_system_configuration.
	* physmem.c: Add support for AIX.  Tweek formatting as per
	upstream coreutils beta.

From-SVN: r63287
2003-02-22 15:39:16 +00:00
Kaveh R. Ghazi
170230b723 configure.in: Check for sys/sysctl.h and sysctl.
* configure.in: Check for sys/sysctl.h and sysctl.
	* physmem.c: Add support for *bsd and darwin.
	* Makefile.in: Generate depedency for physmem.o.

Co-Authored-By: Geoffrey Keating <geoffk@apple.com>
Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>

From-SVN: r63285
2003-02-22 15:17:36 +00:00
Anthony Green
514e19c9fb New docs for Thread.java, and little tweaks identified by japi.
From-SVN: r63284
2003-02-22 14:16:29 +00:00
Jan Hubicka
764c441479 * c-decl.c (c_expand_body_1): Fix.
From-SVN: r63283
2003-02-22 11:42:58 +00:00
Jan Hubicka
1c4a429ab0 expmed.c (expand_divmod): Undo sign extensions for unsigned operands
* expmed.c (expand_divmod): Undo sign extensions for unsigned operands

	* cfgcleanup.c (try_forward_edges):  Don't check loop structures
	when not optimizing.
	(cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
	when not expensive.
	* toplev.c (rest_of_compilation):  Duplicate loop headers only when
	optimizing;  Delete trivially dead insns early; fix optimize check.

	* Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
	dependency on cgraph.h
	* c-decl.c: Include cgraph.h
	(finish_function): Update call of tree_inlinable_function_p.
	* c-objc-common.c: Include cgraph.h
	* cgraph.h: New file.
	* cgraphunit.c: New file.
	* cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
	(cgraph_nodes, cgraph_n_nodes): Globalize.
	(cgraph_finalize_function, cgraph_finalize_compilation_unit
	cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
	Move into cgraphunit.c
	* tree-inline.c: Include cgraph.h
	* tree-inline.c: Include cgraph.h

From-SVN: r63281
2003-02-22 10:02:31 +00:00
Josef Zlomek
1e2115dcc0 i386.md: Use gen_lowpart instead of gen_rtx_REG for copying a register.
* config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
	for copying a register.

From-SVN: r63280
2003-02-22 05:52:11 +00:00
Steven Bosscher
b65538149b re PR c/8828 (gcc reports some code is unreachable when it is not)
2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>

	PR c/8828
	* jump.c (never_reached_warning): Don't fall through BARRRIER
	insns.  Update comments to reflect what the function really does.

From-SVN: r63275
2003-02-22 06:35:28 +01:00
Steven Bosscher
26182e150e re PR c++/3782 (-quiet -fstats produces a segmentation fault in cc1plus)
2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>

	PR other/3782
	* toplev.c (process_options): If flag_detailed_statistics is set,
	then set time_report as well.

From-SVN: r63274
2003-02-22 06:34:23 +01:00
Roger Sayle
c0a47a6126 fold-const.c (omit_one_operand): No longer static.
* fold-const.c (omit_one_operand): No longer static.
	* tree.h (omit_one_operand): Prototype here.
	(div_and_round_double): Keep fold-const.c prototypes together.
	* builtins.c (builtin_mathfn_code): Handle binary built-in
	funtions, such as "pow" and "atan2".
	(fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
	Simplify optimizations using "type" the builtin's return type.

	* gcc.dg/builtins-5.c: New test case.

From-SVN: r63273
2003-02-22 04:16:18 +00:00
Hans-Peter Nilsson
5b296d9340 cris.c (cris_rtx_costs): Blockify dangling else.
* config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
	Fix functionalization typo.

From-SVN: r63272
2003-02-22 03:45:48 +00:00