Commit Graph

32188 Commits

Author SHA1 Message Date
Bruce Korb d7156fee6d Enable fixincludes for msdosdjgpp
From-SVN: r37956
2000-12-02 18:30:48 +00:00
Neil Booth f76745450c externC4.C, friend10.C: New tests.
* g++.old-deja/g++.other/externC4.C,
        g++.old-deja/g++.other/friend10.C: New tests.

From-SVN: r37955
2000-12-02 18:22:02 +00:00
Richard Earnshaw f1008e52f1 arm.h (ARM_REGNO_OK_FOR_BASE_P, [...]): New macros.
* arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
macros.
(REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
(REGNO_OK_FOR_FOR_BASE_P): Delete.
(ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
both strict and non-strict uses.
(REG_MODE_OK_FOR_BASE_P): Define in terms of above.
(ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
(REG_OK_FOR_INDEX_P): Define in terms of above.
(REG_OK_FOR_BASE_P): Delete.
(REG_OK_FOR_PRE_POST_P): Delete.
(ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
(ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
(ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
(THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
(ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes.  Use ARM
specific variants rather than general ones.  Use ARM_REG_OK_FOR_BASE_P
in pre/post increment cases.
(THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
(ARM_LEGITIMIZE_ADDRESS): Similarly.
(THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
* arm.c (legitimate_pic_address): Similarly.

From-SVN: r37954
2000-12-02 17:10:29 +00:00
Neil Booth 4eb191f350 tradcpp.c (struct answer, [...]): New.
* tradcpp.c (struct answer, parse_assertion, parse_answer,
        canonicalize_text, find_answer): New.
        (do_assert, do_unassert): Provide appropriate function bodies.
        (union hashval): New member answers.

From-SVN: r37953
2000-12-02 16:04:14 +00:00
Neil Booth 1b83352ef7 * g++.old-deja/g++.other/instan2.C
* g++.old-deja/g++.other/instan3.C: New test.

From-SVN: r37952
2000-12-02 15:28:08 +00:00
Marek Michalkiewicz 84e6f1ba38 avr.md: Document UNSPEC usage.
* config/avr/avr.md: Document UNSPEC usage.
	(*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
	Make operand 0 input only, clobber it.  Use UNSPEC, not a bogus
	MEM for program memory word reference.  Do not add the label to
	the table index in each of the asm output templates, instead ...
	(casesi): ... do it in RTL.  Adjust to match the above change.

From-SVN: r37951
2000-12-02 16:12:45 +03:00
Bernd Schmidt 0884b60c60 Make alpha build again.
From-SVN: r37950
2000-12-02 10:50:27 +00:00
Bernd Schmidt a88f02e7a7 Haifa cleanup, part 1
From-SVN: r37949
2000-12-02 10:47:42 +00:00
Neil Booth 692344cfed c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests.
* gcc.dg/testsuite/c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c,
        c94.c,c94-pedantic.c,c99.c,c99-pedantic.c,gnuc89.c,gnuc89-pedantic.c,
        gnuc99.c,gnuc99-pedantic.c: New tests.

From-SVN: r37948
2000-12-02 10:16:01 +00:00
Neil Booth fef1de5d11 * cppexp.c (parse_number): Update diagnostic test.
From-SVN: r37947
2000-12-02 10:13:49 +00:00
Bernd Schmidt 88edcc062c Fix multi-reg inheritance problems (only a fix small additional fix for yesterday's accidental checkin)
From-SVN: r37946
2000-12-02 09:55:48 +00:00
Jeff Law 24187a0015 Daily bump.
From-SVN: r37945
2000-12-02 01:45:08 -07:00
Tom Tromey 0fa80ee295 Vector.java (insertElementAt): Unconditionally increment elementCount.
* java/util/Vector.java (insertElementAt): Unconditionally
	increment elementCount.
	(removeRange): Clear unused slots in vector.

From-SVN: r37944
2000-12-02 04:13:52 +00:00
Phil Edwards 538f0be650 download.html: Remove.
2000-12-01  Phil Edwards  <pme@sources.redhat.com>

	* docs/download.html:  Remove.
	* docs/footer.ihtml:  Remove.
	* docs/header.ihtml:  Remove.
	* docs/index.html:  Remove.
	* docs/links.html:  Remove.
	* docs/mail.html:  Remove.
	* docs/status.html:  Remove.
	* docs/thanks.html:  Remove.

From-SVN: r37943
2000-12-02 02:12:15 +00:00
Gerald Pfeifer a325caa035 install.texi (Configurations): Remove obsolete documentation for hppa*-*-*.
* install.texi (Configurations): Remove obsolete documentation for
	hppa*-*-*.

From-SVN: r37942
2000-12-02 02:11:31 +00:00
Gerald Pfeifer 3808a17d78 install.texi (Installation): Remove obsolete description for libstdc++ which is now an integral part of GCC.
* install.texi (Installation): Remove obsolete description for
	libstdc++ which is now an integral part of GCC.

From-SVN: r37941
2000-12-02 02:02:42 +00:00
Bryce McKinlay aaa4cecd22 From Adam Welc <welc@cs.purdue.edu>:
* java/util/LinkedList.java (removeFirst): Update `first' field.
	Handle the last == first case.
	(removeLast): Update `last' field. Handle the last == first case.

From-SVN: r37940
2000-12-02 01:48:07 +00:00
Kriang Lerdsuwanakij dc957d1435 * pt.c: Fix typo in comments.
From-SVN: r37939
2000-12-02 01:44:42 +00:00
Bryce McKinlay db5e49032b natMath.cc: Declare fabsf() function.
2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/lang/natMath.cc: Declare fabsf() function.
	* java/lang/mprec.h: Don't include math.h.
	* java/lang/dtoa.c: Include string.h.
	* java/lang/natString.cc (toLowerCase): Initialize ch to prevent
	compiler warning.

From-SVN: r37938
2000-12-02 00:28:44 +00:00
Geoffrey Keating 92f3752a64 Remove conflict indicator
From-SVN: r37937
2000-12-02 00:19:34 +00:00
Jim Blandy 27646dba39 dbxout.c (dbxout_parms): Correctly describe parameters passed by invisible reference in registers...
2000-12-01  Jim Blandy  <jimb@redhat.com>

	* dbxout.c (dbxout_parms): Correctly describe parameters passed by
 	invisible reference in registers, but then spilled to the stack.
  	Remove code to emit a second stab for such parameters; it attempts
 	to describe the value's location by introducing a synthetic C++
 	`reference' type, and then saying the stack slot has that
 	reference type.  This loses type information (breaking GDB's
 	`ptype' command, among other things) just to describe a location
 	which stabs can represent correctly in other ways.

From-SVN: r37936
2000-12-02 00:18:46 +00:00
Alexandre Oliva 08106825b9 final.c (output_addr_const): Don't assume at least one operand is a CONST_INT.
* final.c (output_addr_const) <PLUS>: Don't assume at least one
operand is a CONST_INT.

From-SVN: r37935
2000-12-01 23:29:57 +00:00
Alexandre Oliva cb51ecd2a5 sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
* config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
(machine_dependent_reorg): Split all insns.
* config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
reg_class_contents[SIBCALL_REGS].
(reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
* config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
call_value_pcrel, call, call_value, sibcall): Match even when
not optimizing.
(sibcalli_pcrel, sibcall_pcrel): Likewise.  Use constraint `k'
for call address.
(sibcalli): Likewise.

From-SVN: r37934
2000-12-01 23:26:19 +00:00
Joseph Myers 4d80892796 c-common.c (warn_format, [...]): Define.
* c-common.c (warn_format, warn_format_y2k,
	warn_format_extra_args, warn_format_nonliteral): Define.
	(check_format_info): Check warn_format_nonliteral and
	warn_format_extra_args.
	(check_format_info_main): Check warn_format_y2k.
	(set_Wformat): New function.
	* c-common.h (warn_format_y2k, warn_format_extra_args,
	warn_format_nonliteral, set_Wformat): Declare.
	* c-decl.c (warn_format): Remove definition.
	(c_decode_option): Handle -Wformat-nonliteral,
	-Wno-format-extra-args and -Wno-format-y2k, and negated versions.
	Use set_Wformat.
	* invoke.texi: Document these new options and -Wformat=2.
	* toplev.c (documented_lang_options): Add these new options.

cp:
	* decl2.c (warn_format): Remove definition.
	(lang_decode_option): Handle -Wformat-nonliteral,
	-Wno-format-extra-args and -Wno-format-y2k.  Use set_Wformat.

testsuite:
	* gcc.dg/format-no-exargs-1.c, gcc.dg/format-no-y2k-1.c,
	gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: New tests.

From-SVN: r37933
2000-12-01 22:43:33 +00:00
Joseph Myers e78f4a977a builtins.def (BUILT_IN_IMAXABS): Add.
* builtins.def (BUILT_IN_IMAXABS): Add.
	* builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
	* c-common.c (c_common_nodes_and_builtins): Create builtin
	functions __builtin_imaxabs, and plain imaxabs unless
	flag_no_nonansi_builtin outside C99 mode.
	(expand_tree_builtin): Handle BUILT_IN_IMAXABS.
	* extend.texi: Document builtin imaxabs.

From-SVN: r37932
2000-12-01 22:35:50 +00:00
Joseph Myers 5fd8e53691 c-common.c: Include "defaults.h".
* c-common.c: Include "defaults.h".
	(WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
	(c_common_nodes_and_builtins): Create string_type_node,
	const_string_type_node, wint_type_node, intmax_type_node,
	uintmax_type_node, default_function_type, ptrdiff_type_node and
	unsigned_ptrdiff_type_node.
	* c-common.h (identifier_global_value): Declare.
	* c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
	(init_decl_processing): Don't create string_type_node,
	const_string_type_node, wint_type_node, intmax_type_node,
	uintmax_type_node, default_function_type, ptrdiff_type_node and
	unsigned_ptrdiff_type_node.
	(identifier_global_value): New function.

cp:
	* decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
	(init_decl_processing): Don't create string_type_node,
	const_string_type_node, wint_type_node, intmax_type_node,
	uintmax_type_node, default_function_type, ptrdiff_type_node and
	unsigned_ptrdiff_type_node.  Adjust position of call to
	c_common_nodes_and_builtins.
	(identifier_global_value): New function.

From-SVN: r37931
2000-12-01 22:25:43 +00:00
Tom Tromey 239b8e589d Really reverted erroneous checkin
From-SVN: r37930
2000-12-01 22:11:00 +00:00
Tom Tromey 25c7e48745 Reverted erroneous checkin
From-SVN: r37929
2000-12-01 22:04:45 +00:00
Neil Booth 92e092fe12 20000720-1.S: Remove duplicate testcase.
* gcc.dg/cpp/20000720-1.S: Remove duplicate testcase.
        * gcc.dg/cpp/poison.c: Update.
        * gcc.dg/cpp/spacing1.c: New testcase for all spacing issues.

From-SVN: r37928
2000-12-01 22:03:57 +00:00
Neil Booth 8d9e9a083d cppinit.c (initialize): Forgotten prototype.
* cppinit.c (initialize): Forgotten prototype.
        * cpplex.c (_cpp_lex_token): Loop until not skipping.
        Always clear PREV_WHITE upon meeting a new line.
        * cpplib.c (end_directive): Set pfile->skipping after
        skip_rest_of_line.
        * cpplib.h (cpp_reader): Remove macro_pos.
        * cppmacro.c (cpp_get_line): Don't do anything special inside
        macros.
        (parse_arg): Add PREV_WHITE if a token appears after new lines.
        (funlike_invocation_p): Save and restore the output position
        over a successful check for a '('.
        (enter_macro_context): Delete uses of macro_pos.
        (cpp_get_token): Don't use pfile->skipping.

From-SVN: r37927
2000-12-01 22:01:10 +00:00
Tom Tromey a717799c52 more work
From-SVN: r37926
2000-12-01 21:58:34 +00:00
Toon Moene 042db57ecf 20001201.f: New test.
2000-12-01  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77.f-torture/execute/20001201.f: New test.

From-SVN: r37925
2000-12-01 21:25:11 +00:00
Phil Edwards c1428b5362 [multiple changes]
2000-12-01  Phil Edwards  <pme@sources.redhat.com>

	* mkcheck.in:  Count static and shared results separately.

2000-12-01  Loren J. Rittle  <ljrittle@acm.org>

	* mkcheck.in:  Correct typo.

From-SVN: r37924
2000-12-01 20:55:44 +00:00
Phil Edwards c4765d18f2 diagnostic.c: Fix typos in comments.
2000-12-01  Phil Edwards  <pme@sources.redhat.com>

	* diagnostic.c:  Fix typos in comments.
	* diagnostic.h:  Likewise.

From-SVN: r37923
2000-12-01 19:31:01 +00:00
Phil Edwards 815d683eb8 rtl.texi (Machine Modes): Document BImode and OImode.
2000-11-30  Phil Edwards  <pme@sources.redhat.com>

	* rtl.texi (Machine Modes):  Document BImode and OImode.

From-SVN: r37922
2000-12-01 19:29:26 +00:00
Joseph Myers ae24178a97 gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and .FPP.
* gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
	.FPP.

From-SVN: r37921
2000-12-01 19:23:17 +00:00
Joseph Myers c7b828331c c-decl.c (grokdeclarator): If pedantic, warn about arrays with incomplete element type.
* c-decl.c (grokdeclarator): If pedantic, warn about arrays with
	incomplete element type.
	(grokparms): Before checking for incomplete parameter type, check
	the type isn't error_mark_node.

testsuite:
	* gcc.dg/c99-array-nonobj-1.c: No longer XFAIL.

From-SVN: r37920
2000-12-01 19:21:44 +00:00
Warren Levy 21ac293b0e Makefile.am: Added entries for new java.sql modules.
* Makefile.am: Added entries for new java.sql modules.
	* Makefile.in: Rebuilt.

From-SVN: r37919
2000-12-01 18:34:28 +00:00
Jakub Jelinek ab93735752 builtins.c (target_char_cast): New function.
* builtins.c (target_char_cast): New function.
	(expand_builtin_strchr): Use it.
	(expand_builtin_strrchr): Use it.
	(builtin_memset_read_str): New function.
	(expand_builtin_memset): Use target_char_cast.
	Try to optimize memset with second argument non-zero using
	store_by_pieces.

	* gcc.c-torture/execute/string-opt-5.c: Add some memset tests.

From-SVN: r37918
2000-12-01 18:53:07 +01:00
Marek Michalkiewicz 3a69a7d58e install.texi (avr): Replace incomplete list of supported MCU types with a link to the current one ...
* install.texi (avr): Replace incomplete list of supported MCU
	types with a link to the current one ...
	* invoke.texi (AVR Options): ... here.  Update -mmcu= to list
	all supported MCU types.  Document -minit-stack= default.
	Document new options -mno-tablejump, -mtiny-stack.
	* md.texi (AVR family):  Fix typo in 'w' constraint letter
	description.  Document 'q'.  Update 'O'.

From-SVN: r37917
2000-12-01 20:49:05 +03:00
Bernd Schmidt c02cad8fb9 Add a frontend function for reload_reg_free_for_value_p; need to check all
registers in a multi-reg value.

From-SVN: r37916
2000-12-01 16:34:09 +00:00
Bernd Schmidt 53895717b4 Further tweak cant_combine_insn_p
From-SVN: r37915
2000-12-01 12:45:00 +00:00
Nathan Sidwell 13f9714bb6 call.c (standard_conversion): Reject pointer to member conversions from ambiguous, inaccessible or virtual bases.
cp:
	* call.c (standard_conversion): Reject pointer to member
	conversions from ambiguous, inaccessible or virtual bases.
	* typeck.c (build_static_cast): Don't check pointers to members
	specially.
testsuite:
	* g++.old-deja/g++.other/cast6.C: New test.

From-SVN: r37914
2000-12-01 11:52:33 +00:00
Warren Levy 89f99caaab mauve-libgcj: Turned on JDK1.2 and turned off tests for classes that aren't quite 1.2...
* mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
	that aren't quite 1.2 compatible yet.

From-SVN: r37913
2000-12-01 10:04:02 +00:00
Jeff Law b80ebb3b5e Daily bump.
From-SVN: r37912
2000-12-01 01:45:07 -07:00
Alexandre Oliva 3d422cb195 sh.c (shiftcosts): Don't get INTVAL before testing whether X is a CONST_INT.
* config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
whether X is a CONST_INT.
(addsubcosts): Likewise.

From-SVN: r37911
2000-12-01 03:29:02 +00:00
Alexandre Oliva b927e8c720 Align value of UNSPECV_ALIGN
From-SVN: r37910
2000-12-01 03:22:26 +00:00
Alexandre Oliva f00018dd99 sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of mis-used XINT.
* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
mis-used XINT.
(ARG_POINTER_REGNUM): Set to AP_REG.

From-SVN: r37909
2000-12-01 02:29:34 +00:00
Warren Levy 2f4671099a Fixed ChangeLog entry to be path specific.
From-SVN: r37908
2000-12-01 02:04:23 +00:00
Alexandre Oliva ecfdeaeb34 sh.md (fpu_switch0, [...]): Only match on TARGET_SH4.
* config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
splits): Only match on TARGET_SH4.

From-SVN: r37907
2000-12-01 02:03:24 +00:00