Commit Graph

42504 Commits

Author SHA1 Message Date
Franz Sirl
da6886f66b combine.c (find_split_point): Use gen_int_mode.
2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* combine.c (find_split_point): Use gen_int_mode.

From-SVN: r52916
2002-04-30 00:38:23 +00:00
Vladimir Makarov
fae15c9379 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
Merging code from dfa-branch:

From-SVN: r52915
2002-04-29 22:34:36 +00:00
Richard Kenner
a2ff290c02 reload1.c (eliminate_regs, [...]): Fix typo in adjust_address_nv call.
* reload1.c (eliminate_regs, case SUBREG): Fix typo in
	adjust_address_nv call.

From-SVN: r52914
2002-04-29 17:23:57 -04:00
Janis Johnson
f97903cc69 install.texi (Testing): Provide additional information...
* doc/install.texi (Testing): Provide additional information, and
	a stronger encouragement, for running the testsuites.

From-SVN: r52910
2002-04-29 20:27:28 +00:00
Roger Sayle
8552f6f115 MAINTAINERS: Add self and realphabetize.
* MAINTAINERS: Add self and realphabetize.  Update entries
	for Dan Berlin, Chris Demetriou and Michael Matz.  Remove
	entry for a29k port maintainer.

From-SVN: r52908
2002-04-29 20:16:10 +00:00
DJ Delorie
f41a6bf164 mips.c (mips_parse_cpu): Warn if the CPU name is given in upper case.
* config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
given in upper case.

From-SVN: r52907
2002-04-29 15:57:21 -04:00
Rainer Orth
d8af08680b inclhack.def (solaris_widec): Include <wchar.h> in Solaris 2 <widec.h> if missing.
* fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
	Solaris 2 <widec.h> if missing.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/widec.h: New file.

From-SVN: r52906
2002-04-29 19:42:41 +00:00
Nick Clifton
1034407f00 toplev.c (f_options): Add "profile" switch so that -fno-profile can be used to disable -p.
* toplev.c (f_options): Add "profile" switch so that
    -fno-profile can be used to disable -p.

From-SVN: r52904
2002-04-29 19:07:13 +00:00
Bernd Schmidt
fbe5eb6d0a Initial P4 SSE2 builtin support
From-SVN: r52903
2002-04-29 18:40:47 +00:00
Jakub Jelinek
3a73bffb63 re PR c++/6477 (Segfault on conflicting types in trivial code)
PR c++/6477
	* decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
	non-NULL first.

	* g++.dg/parse/typedef1.C: New test.

From-SVN: r52900
2002-04-29 17:11:36 +02:00
Jan Hubicka
44aefada4c * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
From-SVN: r52899
2002-04-29 15:09:58 +00:00
Mark Mitchell
33dd07ee9d re PR c++/6492 (New boost regression (friends))
PR c++/6492
	* pt.c (tsubst_friend_class): If the friend has an explicit scope,
	enter that scope before name lookup.

	PR c++/6486
	* method.c (do_build_copy_constructor): Avoid building
	cv-qualified reference types.

	PR c++/6486
	* g++.dg/template/friend6.C: New test.

	PR c++/6492
	* g++.dg/init/copy1.C: New test.

From-SVN: r52895
2002-04-29 14:56:24 +00:00
Gerald Pfeifer
d5482cdcb0 contrib.texi (Contributors): Add Paolo Carlini and Janis Johnson.
* doc/contrib.texi (Contributors): Add Paolo Carlini and
	Janis Johnson.
	Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
	Refer to Objective-C instead of ObjC, SPARC instead of sparc,
	and CPU instead of cpu.

From-SVN: r52893
2002-04-29 13:13:08 +00:00
Jan Hubicka
2c4b77f3ee toplev.c (flag_if_conversion, [...]): New static variables.
* toplev.c (flag_if_conversion, flag_if_conversion2): New static
	variables.
	(lang_independent_options): Add -fif-conversion, -fif-conversion2
	(rest_of_compilation): Do if conversion only when asked for.
	(parse_options_and_default_flags): Set new variables to 1 for -O1
	* invoke.texi (-fif-conversion, -fif-conversion2): Document.

From-SVN: r52891
2002-04-29 11:39:31 +00:00
Jan Hubicka
3de72741b9 * i386.c (dbx64_register_map): Fix typo.
From-SVN: r52890
2002-04-29 11:04:18 +00:00
Jan Hubicka
8aa18a7d50 predict.c (real_zero, [...]): New static variables.
* predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
	real_one_half, real_bb_freq_max): New static variables.
	(debug_profile_bbauxs): Kill.
	(process_note_predictions): Kill unused variable.
	(block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
	volatile double.
	(propagate_freq): Use REAL_ARITHMETICS.
	(estimate_bb_frequencies): Likevise; init new static variables.
	* Makefile.in (predict.o): Add dependency on real.h

From-SVN: r52889
2002-04-29 10:19:56 +00:00
Nathan Sidwell
4bd7c27025 re PR c++/5719 (Suspect gcc-3 to report wrong waring for 'T& T::operator+=( const T& )')
cp:
	PR c++/5719
	* decl.c (grok_op_properties): Assignment ops don't have to return
	by value. operator% should.
testsuite:
	* g++.dg/warn/effc1.C: New test.

From-SVN: r52888
2002-04-29 08:47:31 +00:00
Joseph Myers
53e72ddf6b invoke.texi: Use @gol at ends of lines inside @gccoptlist.
* invoke.texi: Use @gol at ends of lines inside @gccoptlist.
	* g77.texi: Update last update date.

From-SVN: r52885
2002-04-29 08:57:20 +01:00
GCC Administrator
103d1bf175 Daily bump.
From-SVN: r52883
2002-04-29 07:17:01 +00:00
Benjamin Kosnik
d02475fdae re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
2002-04-28  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/5280
        * config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
        (__basic_file::sys_ungetc): Take int.
        * config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
        * include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
        Use sys_getc for unbuffered input.
        * testsuite/27_io/narrow_stream_objects.cc (test06): New.

        * src/ios.cc (_M_grow_words): Adjust error checking.
        * testsuite/27_io/ios_base_storage.cc: Same.

From-SVN: r52879
2002-04-29 07:00:50 +00:00
David S. Miller
189ab118de configure.in, configure: Fix SPARC test in previous change.
2002-04-28  David S. Miller  <davem@redhat.com>

	* configure.in, configure: Fix SPARC test in previous change.

From-SVN: r52878
2002-04-28 22:48:05 -07:00
David S. Miller
1bbad4c651 re PR target/6500 (Sparc.md's prefetch is buggy)
2002-04-28  David S. Miller  <davem@redhat.com>

	PR target/6500
	* config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
	64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
	several {reads,writes} instead.
	* config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
	Define.

From-SVN: r52876
2002-04-28 22:33:00 -07:00
Gerhard Tonn
f736fd67c0 ieeefp.h: Define __IEEE_BIG_ENDIAN for S/390.
2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>

	* java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for S/390.

From-SVN: r52874
2002-04-29 05:15:57 +01:00
Gerhard Tonn
22bcf65c52 Makefile.am: Add Linux for S/390 support.
2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>

	* Makefile.am: Add Linux for S/390 support.
	* Makefile.in: Regenerate.
	* configure.in: Add Linux for S/390 support.
	* configure: Regenerate.
	* include/ffi.h.in: Add Linux for S/390 support.
	* src/s390/ffi.c: New file from libffi CVS tree.
	* src/s390/sysv.S: New file from libffi CVS tree.

From-SVN: r52873
2002-04-29 05:14:44 +01:00
David S. Miller
3ef3f3845c re PR target/6494 (sparc64-linux libjava testsuite failures)
2002-04-27  David S. Miller  <davem@redhat.com>

	PR target/6494
	* config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
	of the stack bias.

	* config/sparc/linux.h, config/sparc/linux64.h: Don't bother
	including signal.h and sys/ucontext.h, not needed.

From-SVN: r52872
2002-04-28 21:12:02 -07:00
Hans-Peter Nilsson
ec493bcb3a varasm.c (output_constant_def): Correct test for not calling ENCODE_SECTION_INFO for INTEGER_CST.
* varasm.c (output_constant_def): Correct test for not calling
	ENCODE_SECTION_INFO for INTEGER_CST.

From-SVN: r52870
2002-04-29 03:57:30 +00:00
Adam King
f81c23cdf5 natFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND mode.
2002-04-29  Adam King <aking@dreammechanics.com>

	* java/io/natFileDescriptorWin32.cc (open): Move file pointer to end
	of file in APPEND mode.

From-SVN: r52869
2002-04-29 04:54:50 +01:00
Neil Booth
60284a5928 cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function eval_token.
* cppexp.c (lex): Move some code to _cpp_parse_expr, but
	keep most cases as function eval_token.
	(eval_token): New function.
	(_cpp_parse_expr): Read token here for improved diagnostics.
	Don't use op_as_text.  Detect bad ':' here.
	(reduce): Don't detect bad ':' here.
	(op_as_text): Remove.
	* cpphash.h (_cpp_test_assertion): Change prototype.
	* cpplib.c (_cpp_test_assertion): Change prototype.
testsuite:
	* gcc.dg/cpp/if-cexp.c: Add a test.

From-SVN: r52866
2002-04-28 23:14:56 +00:00
Richard Henderson
349a4b40eb ggc-common.c (ggc_mark_rtx_children_1): Rename from...
* ggc-common.c (ggc_mark_rtx_children_1): Rename from...
        (ggc_mark_rtx_children): New.

From-SVN: r52864
2002-04-28 13:40:39 -07:00
Jakub Jelinek
7a03f82f06 re PR target/6496 (Sparc backend clobbers call-return stack of UltraSparc)
PR target/6496
	* config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
	after call peepholes for UltraSPARC.
	(call + jump 64-bit peepholes): Remove.

From-SVN: r52863
2002-04-28 22:37:05 +02:00
Franz Sirl
80103f96d0 re PR c/6497 (unrecognizable insn:l inux-2.4.19 pre7 kernel comling with gcc-3.1 prerelease)
2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	PR c/6497
	* config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
	result as temporary value.

From-SVN: r52860
2002-04-28 20:26:57 +00:00
Jakub Jelinek
5d84cf0b8d configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working %r_disp32().
* configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
	%r_disp32().
	* src/sparc/v8.S: Use it.
	* src/sparc/v9.S: Likewise.
	* fficonfig.h.in: Rebuilt.
	* configure: Rebuilt.

From-SVN: r52858
2002-04-28 21:57:42 +02:00
Jakub Jelinek
069909862b re PR c++/6396 (3.1 flow.c 583 ICE with -frename-registers)
PR c++/6396
	* toplev.c (rest_of_compilation): Only run regrename and copy
	propagation if optimizing.

From-SVN: r52857
2002-04-28 21:52:33 +02:00
Jakub Jelinek
090c9915d7 Argh, lost closing brace.
From-SVN: r52856
2002-04-28 21:48:10 +02:00
Jakub Jelinek
a20fd5ac2e re PR rtl-optimization/6475 (zlib miscompilation with gcc-3.1)
PR optimization/6475
	* reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
	register of REGNO_DECL (i).
	* Makefile.in (reload1.o): Add $(TREE_H).

	* gcc.dg/20020426-2.c: New test.

From-SVN: r52855
2002-04-28 21:47:12 +02:00
Neil Booth
87ed109f1f cppexp.c (lex): Update to use state.skip_eval.
* cppexp.c (lex): Update to use state.skip_eval.
	(struct op): Remove prio and flags members.
	(FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
	SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
	(LEFT_ASSOC): New macro.
	(optab): New table of operator priorities and flags.
	(SHIFT): Update.
	(_cpp_parse_expr): Clean up logic.  Return bool.  Use a
	malloc-ed parser stack.
	(reduce): New; reduce the operator stack.
	(_cpp_expand_op_stack): Expand the operator stack as necessary.
	* cpphash.h (struct op): Predeclare.
	(struct cpp_reader): New members op_stack, op_limit.
	(struct lexer_state): New member skip_eval.
	(_cpp_parse_expr): Update.
	(_cpp_expand_op_stack): New.
	* cpplib.c (do_if): Update.
	* cppinit.c (cpp_create_reader): Create op stack.
	(cpp_destroy): And destroy it.
	* cpplib.h (CPP_LAST_CPP_OP): Correct.
	(TTYPE_TABLE): Correct.
testsuite:
	* gcc.dg/cpp/if-mop.c: Update.
	* gcc.dg/cpp/if-mpar.c: Add test.
	* gcc.dg/cpp/if-oppr.c: Update.

From-SVN: r52853
2002-04-28 19:42:54 +00:00
Mark Mitchell
14dbfa7008 * .cvsignore: Remove files that are present in CVS.
From-SVN: r52845
2002-04-28 18:41:51 +00:00
Franz Sirl
45806a3fd4 re PR c/6343 (attribute((weak)) not working on second declaration)
2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	PR c/6343
	* c-decl.c (duplicate_decls): Call merge_weak.
	* c-pragma.c (apply_pragma_weak): Warn about misuse.
	* output.h (merge_weak): Prototype merge_weak.
	* varasm.c (merge_weak): New function.
	(declare_weak): Make sure we don't give an error on VAR_DECLs.
	Mark RTL with SYMBOL_REF_WEAK.

cp:
	* decl.c (duplicate_decls): Call merge_weak.

testsuite:
	* gcc.dg/weak-[2-7].c: New tests.

From-SVN: r52844
2002-04-28 18:31:34 +00:00
Paolo Carlini
32c8d10081 [multiple changes]
2002-04-28  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* include/ext/stl_hashtable.h: Import __iterator_category

2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
            Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* testsuite/ext/hash_set.cc: New testfile.

From-SVN: r52843
2002-04-28 16:21:32 +00:00
GCC Administrator
ba29591d2f Daily bump.
From-SVN: r52842
2002-04-28 07:17:18 +00:00
Benjamin Kosnik
82f637d15d os_defines.h: Remove _G_USING_THUNKS.
2002-04-27  Benjamin Kosnik  <bkoz@redhat.com>

	* config/os/solaris/solaris2.5/bits/os_defines.h: Remove
	_G_USING_THUNKS.
	* config/os/solaris/solaris2.6/bits/os_defines.h: Same.
	* config/os/solaris/solaris2.7/bits/os_defines.h: Same.

From-SVN: r52838
2002-04-28 00:42:12 +00:00
Tom Tromey
0a32c5ea4a For PR java/6382:
* parse.y (string_convert_int_cst): New function.
	(merge_string_cste): Use it.

From-SVN: r52835
2002-04-27 20:31:42 +00:00
Kurt Garloff
a62271540b tree-inline.c (inlinable_function_p): Improve heuristics by using a smoother function to cut down allowable inlinable...
* tree-inline.c (inlinable_function_p): Improve heuristics
        by using a smoother function to cut down allowable inlinable size.
        * param.def: Add parameters max-inline-insns-single,
        max-inline-slope, min-inline-insns that determine the exact
        shape of the above function.
        * param.h: Likewise.

From-SVN: r52832
2002-04-27 11:59:40 -07:00
GCC Administrator
c3a6afe78d Daily bump.
From-SVN: r52831
2002-04-27 07:17:23 +00:00
Richard Henderson
94a5039703 c-parse.in (malloced_yyss, [...]): New.
* c-parse.in (malloced_yyss, malloced_yyvs): New.
        (yyoverflow): Re-add.  Set them.
        (free_parser_stacks): New.
        * c-common.h: Declare it.
        * c-lex.c (c_common_parse_file): Call it.

        * parse.y (malloced_yyss, malloced_yyvs): New.
        (yyoverflow): Re-add.  Set them.
        (free_parser_stacks): New.

From-SVN: r52827
2002-04-26 23:53:07 -07:00
Richard Henderson
9c0a0632bc cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search.
* cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
        for fallthru search.

From-SVN: r52826
2002-04-26 23:41:38 -07:00
Eric Christopher
b875d2eec1 re PR rtl-optimization/3700 (ISSUE_RATE not defined for mips target)
2002-04-26  Eric Christopher  <echristo@redhat.com>

	PR optimization/3700
	* config/mips/mips.c (mips_issue_rate): Define.  New function.
	(TARGET_SCHED_ISSUE_RATE): Use.

From-SVN: r52825
2002-04-27 02:33:37 +00:00
Mark Mitchell
cf6a5491cb re PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)
PR bootstrap/6445
	* config/i386/i386.md (untyped_call): Return the value in a float
	register if TARGET_FLOAT_RETURNS_IN_80387, not just if
	TARGET_80387.

From-SVN: r52824
2002-04-27 00:26:36 +00:00
David S. Miller
1db828df54 re PR target/6422 (libjava failures on sparc-linux)
2002-04-25  David S. Miller  <davem@redhat.com>

	PR target/6422
	* reorg.c (optimize_skip): Do not allow exception causing
	instructions to be considered for delay slots.
	(fill_simply_delay_slots, fill_slots_from_thread): Likewise.
	(relax_delay_slots): Do not try to consider exception causing
	instructions as redundant.

From-SVN: r52822
2002-04-26 17:07:16 -07:00
David S. Miller
6ea531707a re PR target/6422 (libjava failures on sparc-linux)
2002-04-25  David S. Miller  <davem@redhat.com>

	PR target/6422
	* include/dwarf2-signal.h (MAKE_THROW_FRAME for sparc*): Set
	program counter to next program counter minus 8.  Update
	comments in this macro to explain why.

From-SVN: r52820
2002-04-26 17:04:14 -07:00