Commit Graph

33214 Commits

Author SHA1 Message Date
Nick Clifton
988144ce99 add missing prototypes
From-SVN: r39100
2001-01-17 22:35:30 +00:00
Jim Wilson
15d3a111d0 Improve IA-64 option documentation based on public and private comments.
* invoke.texi (IA-64 options): Improve.

From-SVN: r39099
2001-01-17 12:45:34 -08:00
Tom Tromey
2bab2366a9 invoke.texi (Optimize Options): Use `{}' to around @samp argument.
* invoke.texi (Optimize Options): Use `{}' to around @samp
	argument.

From-SVN: r39098
2001-01-17 20:03:40 +00:00
Aldy Hernandez
2f6dc9e0cb document -fno-guess-branch-probability option
From-SVN: r39097
2001-01-17 19:44:36 +00:00
Aldy Hernandez
454d0cc7dd document -fno-guess-branch-probability option
From-SVN: r39096
2001-01-17 19:43:13 +00:00
Kaveh R. Ghazi
5f3aebeadf builtins1.C: New test.
* g++.old-deja/g++.other/builtins1.C: New test.
	* g++.old-deja/g++.other/builtins2.C: Likewise.
	* g++.old-deja/g++.other/builtins3.C: Likewise.
	* g++.old-deja/g++.other/builtins4.C: Likewise.

From-SVN: r39095
2001-01-17 19:09:35 +00:00
Richard Kenner
c7be4f66b0 combine.c (try_combine): Don't set i3_subst_into_i2 for case of making new double-word constant.
* combine.c (try_combine): Don't set i3_subst_into_i2 for
	case of making new double-word constant.
	Revert last change: instead just test i3_subst_into_i2.

From-SVN: r39094
2001-01-17 13:27:37 -05:00
Jakub Jelinek
d70401eb2f i386.md (cmpqi_minus_1): Use q constraints instead of r.
* config/i386/i386.md (cmpqi_minus_1): Use q constraints instead of r.

	* gcc.c-torture/compile/20010117-2.c: New test.

From-SVN: r39093
2001-01-17 13:32:49 +01:00
Jakub Jelinek
5efdd89028 i386.md (cmpqi_minus_1): Use {b} for QImode operation.
* config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.

	* gcc.c-torture/compile/20010117-1.c: New test.

From-SVN: r39092
2001-01-17 12:55:10 +01:00
Bryce McKinlay
607adf67a0 Class.h (isInterface): Move implementation from natClass.cc.
* java/lang/Class.h (isInterface): Move implementation from
	natClass.cc. Declare inline.
	(Class): Add default constructor.
	* java/lang/Object.h: Update comments.
	* java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
	initialize superclass, saving a call if super is already initialized.

From-SVN: r39091
2001-01-17 10:22:33 +00:00
Jeff Law
61a2490705 Daily bump.
From-SVN: r39090
2001-01-17 01:45:09 -07:00
Peter Schmid
86b4d21106 istream_sentry.cc (test02): Fix.
2001-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* testsuite/27_io/istream_sentry.cc (test02): Fix.

From-SVN: r39089
2001-01-17 08:30:25 +00:00
Alexandre Petit-Bianco
ed8cc5fdf8 prims.cc (init_prim_class): Deleted.
2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* prims.cc (init_prim_class): Deleted.
	(DECLARE_PRIM_TYPE): Rewritten.
	* java/lang/Class.h (stdio.h): Include removed.
	(stddef.h): Included.
	(java/lang/reflect/Modifier.h): Likewise.
	(Class): Contructor now takes arguments, initializes fields.
	(initializePrim): Prototype deleted.
	* java/lang/natClass.cc (initializePrim): Deleted.

(http://sources.redhat.com/ml/java-patches/2001-q1/msg00081.html)

From-SVN: r39088
2001-01-17 00:13:06 -08:00
Benjamin Kosnik
d34786e3fe ios_base.h (ios_base::failure): Tighten up throw specs.
2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/1605
	* include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
	* src/ios.cc (ios_base::failure): Make definitions match.
        * libsupc++/typeinfo (class bad_typeid): Add throw specs.
        (class bad_cast): Same.
        * libsupc++/exception (class exception): Add throw specs.
        * libsupc++/exception_support.cc (set_terminate): Add throw specs.
        (set_unexpected): Same.
        (uncaught_exception): Same.
        (what): Same.

	* docs/html/17_intro/C++STYLE (classname): Fix.

From-SVN: r39087
2001-01-17 07:44:57 +00:00
Mark Mitchell
5fdfba85be gen-num-limits.cc (INSTANTIATIONS): New macro.
* src/gen-num-limits.cc (INSTANTIATIONS): New macro.
	Use it do explicitly instantiate predicate<T> and value<T> for
	all the builtin Ts.

From-SVN: r39086
2001-01-17 07:13:39 +00:00
Richard Henderson
c99a2d3137 libjava.exp (bytecompile_file): Don't unset CLASSPATH.
* lib/libjava.exp (bytecompile_file): Don't unset CLASSPATH.
        (libjava_arguments): Use .jar extension for libgcj.

From-SVN: r39085
2001-01-16 22:45:40 -08:00
Kriang Lerdsuwanakij
dc3799c144 typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
* typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
	* call.c (build_over_call): Add comment.

From-SVN: r39084
2001-01-17 05:59:51 +00:00
Alan Modra
5dfcd8e17e pa.h (PIC_OFFSET_TABLE_REGNUM_SAVED): Remove.
* config/pa/pa.h (PIC_OFFSET_TABLE_REGNUM_SAVED): Remove.
	(machine_function): Define.
	(PIC_OFFSET_TABLE_SAVE_RTX) : Define.
	* config/pa/pa.c (pa_init_machine_status, pa_mark_machine_status,
	pa_free_machine_status): New functions.
	(override_options): Set {init,mark,free}_machine_status to above.
	(hppa_expand_prologue): Use PIC_OFFSET_TABLE_SAVE_RTX instead of
	PIC_OFFSET_TABLE_REGNUM_SAVED.
	* config/pa/pa.md: Use PIC_OFFSET_TABLE_SAVE_RTX instead of
	PIC_OFFSET_TABLE_REGNUM_SAVED throughout.
	* config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Remove
	references to PIC_OFFSET_TABLE_REGNUM_SAVED.
	* config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.

From-SVN: r39083
2001-01-16 22:23:22 -07:00
Warren Levy
19c976393d * java/math/BigInteger.java: Update Copyright year.
From-SVN: r39082
2001-01-17 04:13:17 +00:00
DJ Delorie
ce3b88489f Makefile.in (gcov.1): Protect against texi2pod/pod2man failing.
* Makefile.in (gcov.1): Protect against texi2pod/pod2man failing.
(cpp.1): Ditto.
(gcc.1): Ditto.

From-SVN: r39081
2001-01-16 20:54:15 -05:00
Hans Boehm
c7fb0b9218 BigInteger.java (setShiftRight): Only do negative shift if count != 0.
2001-01-16  Hans Boehm  <hans_boehm@hp.com>

	* java/math/BigInteger.java (setShiftRight): Only do negative shift
	if count != 0.

From-SVN: r39080
2001-01-17 01:00:53 +00:00
Jeff Sturm
930f669025 expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after having called make_decl_rtl.
2001-01-16  Jeff Sturm  <jeff.sturm@appnet.com>

        * expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after
        having called make_decl_rtl.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01369.html)

From-SVN: r39079
2001-01-16 16:39:09 -08:00
Richard Kenner
50e9b3f17a flow.c (propagate_on_insn): Make trying to delete a prologue or epilogue insn an ICE, not a warning.
* flow.c (propagate_on_insn): Make trying to delete a prologue
	or epilogue insn an ICE, not a warning.  Allow doing this if
	the current function returns with stack pointer depressed.

From-SVN: r39078
2001-01-16 18:10:36 -05:00
Richard Kenner
6953fdb48e combine.c (try_combine): If i3_subst_into_i2, properly check for I3 having more than one SET.
* combine.c (try_combine): If i3_subst_into_i2, properly check for
	I3 having more than one SET.

From-SVN: r39077
2001-01-16 17:21:16 -05:00
Jim Wilson
df6194d4a5 * invoke.texi: Document IA-64 options.
From-SVN: r39076
2001-01-16 13:45:34 -08:00
Jim Wilson
aebf246210 Delete A step Itanium support.
* config/ia64/ia64.c (ia64_print_operand_address): Delete 'B' support.
	(fixup_errata): Delete TARGET_A_STEP use.
	* config/ia64/ia64.h (MASK_A_STEP, TARGET_A_STEP): Delete.
	(TARGET_SWITCHES): Delete -ma-step option.
	* config/ia64/ia64.md (all FP patterns): Delete %B0.
	(movqicc_astep, movqi_internal_astep, movhicc_astep,
	movhi_internal_astep, movsicc_astep, movsi_internal_astep, movdi+1,
	movdi_internal_astep, movsfcc_astep, movsf_internal_astep,
	movdfcc_astep, movdf_internal_astep, movtfcc_astep,
	movtf_internal_astep, cmovdi_internal_astep, cmovsi_internal_astep):
	Delete.
	(movqi_internal, movhi_internal, movsi_internal, movdi_internal,
	movsf_internal, movdf_internal, movtf_internal, cmovdi_internal,
	cmovsi_internal): Delete ! TARGET_A_STEP check.

From-SVN: r39075
2001-01-16 13:37:08 -08:00
Gerald Pfeifer
aebb127aa9 gcc.texi (Bug Lists): Do not mention newsgroups nor the possibility to report bugs via postal mail.
* gcc.texi (Bug Lists): Do not mention newsgroups nor the
	possibility to report bugs via postal mail. Change a URL and
	merge in a nearly duplicate statement...
	(Bug Reporting): ...from here.
	(Service): Refer to the Bug Reporting section instead of
	duplicating an URL.
	(Contributing): Remove trivial explanations concerning snapshots.

From-SVN: r39074
2001-01-16 19:33:50 +00:00
Alan Modra
95f4ac8b8a * cppmain.c (general_init): Don't use ANSI prototype.
From-SVN: r39073
2001-01-16 18:40:56 +00:00
Tom Tromey
c32ee81ecb * gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.
From-SVN: r39072
2001-01-16 18:02:01 +00:00
Daniel Berlin
bb37c4a562 cvt.c (ocp_convert): Handle vector type conversion
2001-01-16 Daniel Berlin <dberlin@redhat.com>

	* cvt.c (ocp_convert): Handle vector type conversion
	* typeck2.c (digest_init): Handle vector type initializations

From-SVN: r39071
2001-01-16 17:57:34 +00:00
Richard Henderson
2c87347376 i386.h: Fix comment typo.
* config/i386/i386.h: Fix comment typo.
        * config/i386/i386.md (shift+compare pattern names): s/cmpno/cmp/
        (ashr+compare patterns): Match CCGOCmode not CCNOmode.

From-SVN: r39070
2001-01-16 09:32:26 -08:00
Phil Edwards
a26e7fb5aa g++spec.c: Don't add libraries needlessly if -fsyntax-only was given.
2001-01-16  Phil Edwards  <pme@sources.redhat.com>

	* g++spec.c:  Don't add libraries needlessly if -fsyntax-only
	  was given.

From-SVN: r39069
2001-01-16 16:10:47 +00:00
Phil Edwards
76e5b31215 gcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c.
2001-01-16  Phil Edwards  <pme@sources.redhat.com>

	* gcc.c:  Revert previous -fsyntax-only-related change; move
	  to cp/g++spec.c.

From-SVN: r39068
2001-01-16 16:09:07 +00:00
Jakub Jelinek
b62d22a25c i386.c (fcmov_comparison_operator): Only initialize inmode after checking GET_CODE (op).
* config/i386/i386.c (fcmov_comparison_operator): Only initialize
	inmode after checking GET_CODE (op).

From-SVN: r39067
2001-01-16 16:57:00 +01:00
Richard Kenner
8207e7c604 Minor whitespace changes
From-SVN: r39066
2001-01-16 09:29:08 -05:00
Richard Henderson
0875baa09e flow.c (struct propagate_block_info): Add mem_set_list_len.
* flow.c (struct propagate_block_info): Add mem_set_list_len.
        (MAX_MEM_SET_LIST_LEN): New.
        (propagate_one_insn): Update mem_set_list_len.
        (invalidate_mems_from_autoinc): Likewise.
        (invalidate_mems_from_set): Likewise.
        (mark_used_regs): Likewise.
        (init_propagate_block_info): Likewise.  Stop collecting memories
        when we reach MAX_MEM_SET_LIST_LEN.
        (mark_set_1): Likewise.

From-SVN: r39065
2001-01-16 05:57:17 -08:00
Richard Henderson
c55fa4d6b1 unroll.c (precondition_loop_p): Fail if no iteration variable found.
* unroll.c (precondition_loop_p): Fail if no iteration
        variable found.

From-SVN: r39064
2001-01-16 03:15:49 -08:00
Nathan Sidwell
9607098926 exception_support.cc (__cp_pop_exception): Fix uninitialized thinko in last change.
* libsupc++/exception_support.cc (__cp_pop_exception): Fix
	uninitialized thinko in last change.

From-SVN: r39063
2001-01-16 09:45:03 +00:00
Jeff Law
b6dfc391cb Daily bump.
From-SVN: r39062
2001-01-16 01:45:08 -07:00
Mark Mitchell
40acfbeace exception_support.cc (__cp_pop_exception): Change prototype.
* libsupc++/exception_support.cc (__cp_pop_exception): Change
	prototype.

From-SVN: r39061
2001-01-16 08:30:20 +00:00
Benjamin Kosnik
9f12c2a693 C++STYLE (classname): Add more existing and stylish patterns.
2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/17_intro/C++STYLE (classname): Add more existing
	and stylish patterns.

	libstdc++/944
	* include/bits/istream.tcc (istream::sentry::sentry()): Set
	failbit if the state of the stream is not good.
	* testsuite/27_io/istream_sentry.cc (test02): Add test.
	* testsuite/27_io/istream_manip.cc (test01): Modify.

	libstdc++/1019
	reported by Paolo Carlini <pcarlini@unitus.it>
	* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
	* testsuite/21_strings/inserters_extractors.cc (test08): Add test.

	libstdc++/1057
	* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
	* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
	(xsgetn): Same. Simplify.
	* testsuite/27_io/streambuf.cc (test04): Add testcases.

	reported by Larry Evans <jcampbell3@prodigy.net>
	* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
	equality with eof on returned value from overflow.

From-SVN: r39060
2001-01-16 07:58:40 +00:00
Benjamin Kosnik
13187a454d C++STYLE (classname): Add more existing and stylish patterns.
2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/17_intro/C++STYLE (classname): Add more existing
	and stylish patterns.

	libstdc++/944
	* include/bits/istream.tcc (istream::sentry::sentry()): Set
	failbit if the state of the stream is not good.
	* testsuite/27_io/istream_sentry.cc (test02): Add test.
	* testsuite/27_io/istream_manip.cc (test01): Modify.

	libstdc++/1019
	reported by Paolo Carlini <pcarlini@unitus.it>
	* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
	* testsuite/21_strings/inserters_extractors.cc (test08): Add test.

	libstdc++/1057
	* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
	* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
	(xsgetn): Same. Simplify.
	* testsuite/27_io/streambuf.cc (test04): Add testcases.

	reported by Larry Evans <jcampbell3@prodigy.net>
	* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
	equality with eof on returned value from overflow.

From-SVN: r39059
2001-01-16 07:55:26 +00:00
Phil Edwards
6488ac06d9 gcc.c: When -fsyntax-only is given, do not complain about unused libraries.
2001-01-16  Phil Edwards  <pme@sources.redhat.com>

	* gcc.c:  When -fsyntax-only is given, do not complain about
	  unused libraries.

From-SVN: r39058
2001-01-16 06:06:29 +00:00
Toon Moene
c5a9e845e5 re PR fortran/1636 (Format strings with identical numbers cause assembler error)
2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77.f-torture/execute/20010116.[fx]: New test,
	XFAIL on i?86-*-*.
	* g77.f-torture/compile/20010115.f: Indicate it's
	a test for PR fortran/1636.

From-SVN: r39056
2001-01-15 23:55:39 +00:00
Richard Henderson
4cf12e7e21 i386.c (asm_output_function_prefix): Remove.
* config/i386/i386.c (asm_output_function_prefix): Remove.
        (ix86_asm_file_end): New.
        (load_pic_register): Generate pic_label_name into a
        staticly allocated buffer.
        * config/i386/i386-protos.h: Update.
        * config/i386/i386.h (ASM_OUTPUT_FUNCTION_PREFIX): Remove.
        (ASM_FILE_END): New.
        * config/i386/i386afe.h: New file.
        * config.gcc (i?86-*-elf) [tm_file]: Use it.
        (i?86-*-{freebsd,linux*,moss*}): Likewise.
        * config/elfos.h (ASM_FILE_END): Undef before redefinition.
        * config/i386/cygwin.h (ASM_FILE_END): Likewise.
        * config/i386/osfrose.h (ASM_FILE_END): Invoke ix86_asm_file_end.
        * config/i386/sco5.h (ASM_FILE_END): Likewise.
        * config/i386/winnt.c (i386_pe_asm_file_end): Likewise.

From-SVN: r39055
2001-01-15 15:43:10 -08:00
Joseph Myers
ad3b5aff7c Makefile.in (install-man): Remove explicit dependency on $(srcdir)/gcc.1.
* Makefile.in (install-man): Remove explicit dependency on
	$(srcdir)/gcc.1.

From-SVN: r39054
2001-01-15 23:34:43 +00:00
Joseph Myers
3f896fc299 texi2pod.pl: Fix regular expression for @r to avoid exponential recursion.
contrib:
	* texi2pod.pl: Fix regular expression for @r to avoid exponential
	recursion.  From Russ Allbery <rra@stanford.edu>.  Remove perl
	version check.

gcc:
	* configure.in, configure: Revert previous patch requiring perl
	5.6.0.

From-SVN: r39053
2001-01-15 23:32:25 +00:00
Aldy Hernandez
3ff5120570 new option to disable guessing of branch prediction
From-SVN: r39052
2001-01-15 22:45:32 +00:00
Phil Blundell
3cf96b52a1 Fix garbled ChangeLog entry
From-SVN: r39051
2001-01-15 22:35:15 +00:00
DJ Delorie
b8dea7e010 * gcc.texi (Makefile): Add documentation for Makefile targets.
From-SVN: r39050
2001-01-15 16:12:14 -05:00