Commit Graph

16850 Commits

Author SHA1 Message Date
Jeffrey A Law 57fec042aa * warn_summary, test_summary: Moved into the contrib directory.
From-SVN: r19991
1998-05-23 16:36:37 -06:00
Jeff Law d258564a1d Moved here from the gcc subdir.
From-SVN: r19990
1998-05-23 16:35:33 -06:00
Andreas Schwab 10c62dce04 * Makefile.in (distclean): Don't remove alloca-conf.h
From-SVN: r19987
1998-05-23 16:32:53 -06:00
Manfred Hollstein 97263b8cbd toplev.h (tree_node): Provide global declaration to avoid `limited scope' warnings.
* toplev.h (tree_node): Provide global declaration to avoid
        `limited scope' warnings.

From-SVN: r19986
1998-05-23 16:29:52 -06:00
Jeffrey A Law fd71378bb0 * gcc.dg/980523-1.c: New test.
From-SVN: r19985
1998-05-23 16:28:21 -06:00
Robert Lipe a8c24967fc test_summary: Display section breaks for each entry in a multilibbed target's output.
* test_summary: Display section breaks for each entry
        in a multilibbed target's output.

From-SVN: r19980
1998-05-23 16:24:55 -06:00
Dave Love 6e4cdba004 970915-0.f: New test.
1998-05-23  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/compile/970915-0.f: New test.

From-SVN: r19973
1998-05-23 09:58:17 +00:00
Dave Love 2b9a5752b9 New test.
From-SVN: r19972
1998-05-23 09:54:41 +00:00
Dave Love 7b6a7d3b5f More commentary.
From-SVN: r19971
1998-05-23 09:51:54 +00:00
Craig Burley 6829256fb4 com.c (ffecom_finish_symbol_transform_): Don't transform statement (nested) functions...
Sat May 23 06:32:52 1998  Craig Burley  <burley@gnu.org>
	* com.c (ffecom_finish_symbol_transform_): Don't transform
	statement (nested) functions, to avoid gcc compiling them
	and thus producing linker errors if they refer to undefined
	exteral functions.  But warn if they're unused and -Wunused.

From-SVN: r19970
1998-05-23 09:45:45 +00:00
Jason Merrill e125ac2661 tweak
From-SVN: r19969
1998-05-22 22:20:21 -04:00
Jason Merrill cf22ce453e * lib/old-dejagnu.exp: Ignore C++ "instantiated from" mesages.
From-SVN: r19968
1998-05-22 22:20:08 -04:00
Jason Merrill 1139b3d870 cp-tree.def: Add SRCLOC.
* cp-tree.def: Add SRCLOC.
	* cp-tree.h: Add struct tree_srcloc and accessor macros.
	* tree.c (build_srcloc, build_srcloc_here): New fns.
	* pt.c (add_pending_template): Use build_srcloc_here.
	(push_tinst_level): Update last_template_error_tick before erroring.
	(instantiate_decl): Restore lineno and input_filename before
	calling add_pending_template.
	* decl2.c (finish_file): Set up lineno and input_filename for
	pending templates.

From-SVN: r19967
1998-05-22 22:18:33 -04:00
Jason Merrill 62c154ed39 decl.c (lang_print_error_function): New fn.
* decl.c (lang_print_error_function): New fn.
	(init_decl_processing): Set print_error_function to use it.
	* errfn.c (cp_thing): Don't call maybe_print_template_context here.
	* call.c (maybe_handle_ref_bind): Propagate ICS_USER_FLAG and
	ICS_BAD_FLAG.
	* cvt.c (ocp_convert): Don't set LOOKUP_NO_CONVERSION for
	copy-initialization.

From-SVN: r19966
1998-05-22 19:13:28 -04:00
Richard Henderson bd070e1aa9 expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF...
* expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF, if the
offset's mode is not ptr_mode, convert it.

From-SVN: r19965
1998-05-22 16:03:25 -07:00
Jason Merrill 329745f7c1 class.c (build_vtable_entry): Use int_fits_type_p.
* class.c (build_vtable_entry): Use int_fits_type_p.
	(build_vtable): Pass a signed offset to build_vtable_entry.
	(prepare_fresh_vtable, modify_one_vtable, fixup_vtable_deltas1,
	set_rtti_entry): Likewise.

From-SVN: r19964
1998-05-22 17:05:09 -04:00
Jason Merrill 697073d938 fold-const.c (ssize_binop): New fn.
* fold-const.c (ssize_binop): New fn.
	* tree.h: Declare it.

From-SVN: r19963
1998-05-22 16:58:14 -04:00
Ulrich Drepper 49feb20cf7 Update.
From-SVN: r19962
1998-05-22 20:40:16 +00:00
Ulrich Drepper d2f023622c (_IO_str_underflow): Read newly available character from buffer as unsigned.
From-SVN: r19961
1998-05-22 20:40:02 +00:00
Per Bothner cfdd055184 cp-tree.h: Add comments documenting which LANG_FLAGS are used.
�
	* cp-tree.h:  Add comments documenting which LANG_FLAGS are used.
	(C_TYPE_VARIABLE_SIZE, C_DECL_VARIABLE_SIZE):  Removed, not used.

From-SVN: r19960
1998-05-22 05:22:54 -07:00
Craig Burley 2e0773e857 [multiple changes]
Tue May 19 14:52:41 1998  Craig Burley  <burley@gnu.org>
	* bad.def (FFEBAD_OPEN_UNSUPPORTED, FFEBAD_INQUIRE_UNSUPPORTED,
	FFEBAD_READ_UNSUPPORTED, FFEBAD_WRITE_UNSUPPORTED,
	FFEBAD_QUAD_UNSUPPORTED, FFEBAD_BLOCKDATA_STMT,
	FFEBAD_TRUNCATING_CHARACTER, FFEBAD_TRUNCATING_HOLLERITH,
	FFEBAD_TRUNCATING_NUMERIC, FFEBAD_TRUNCATING_TYPELESS,
	FFEBAD_TYPELESS_OVERFLOW): Change these from warnings
	to errors.
Tue May 19 14:51:59 1998  Craig Burley  <burley@gnu.org>
	* Make-lang.in (f77.install-info, f77.uninstall):
	Use install-info as appropriate.
Tue May 19 12:56:54 1998  Craig Burley  <burley@gnu.org>
	* com.c (ffecom_init_0): Rename xargc to f__xargc,
	in accord with same-dated change to f/runtime.

From-SVN: r19959
1998-05-22 10:55:52 +00:00
Dave Love 43ebf5a445 JCB update.
From-SVN: r19958
1998-05-22 10:55:21 +00:00
Dave Love 2929d7a2a0 Makefile.in ($(lib)): Use shell loop instead of unportable make variable substitution.
1998-05-20  Dave Love  <d.love@dl.ac.uk>
	* Makefile.in ($(lib)): Use shell loop instead of unportable
	make variable substitution.

From-SVN: r19957
1998-05-22 10:49:26 +00:00
Craig Burley 5a276a25c6 Break up main() into separate .o's so making and linking against shared...
Tue May 19 12:50:27 1998  Craig Burley  <burley@gnu.org>
	Break up main() into separate .o's so making and
	linking against shared libraries with non-Fortran
	main() routines is easier:
	* Makefile.in (MISC): Add setarg.o and setsig.o.
	* libF77/Makefile.in (MISC): Ditto.
	* libF77/setarg.c: New file, contains f_setarg().
	* libF77/setsig.c: New file, contains f_setsig().
	* libF77/getarg_.c: Rename xarg* to f__xarg*.
	* libF77/iargc_.c: Ditto

From-SVN: r19956
1998-05-22 10:32:18 +00:00
Dave Love aa43c90be9 JCB patch.
From-SVN: r19955
1998-05-22 10:27:20 +00:00
Craig Burley 7026990ba2 bad.def (FFEBAD_OPEN_UNSUPPORTED, [...]): Change these from warnings to errors.
Tue May 19 14:52:41 1998  Craig Burley  <burley@gnu.org>
* bad.def (FFEBAD_OPEN_UNSUPPORTED, FFEBAD_INQUIRE_UNSUPPORTED,
FFEBAD_READ_UNSUPPORTED, FFEBAD_WRITE_UNSUPPORTED,
FFEBAD_QUAD_UNSUPPORTED, FFEBAD_BLOCKDATA_STMT,
FFEBAD_TRUNCATING_CHARACTER, FFEBAD_TRUNCATING_HOLLERITH,
FFEBAD_TRUNCATING_NUMERIC, FFEBAD_TRUNCATING_TYPELESS,
FFEBAD_TYPELESS_OVERFLOW): Change these from warnings
to errors.

From-SVN: r19954
1998-05-22 10:26:01 +00:00
Craig Burley 92edcdc833 Make-lang.in (f77.install-info, [...]): Use install-info as appropriate.
Tue May 19 14:51:59 1998  Craig Burley  <burley@gnu.org>
* Make-lang.in (f77.install-info, f77.uninstall):
Use install-info as appropriate.

From-SVN: r19953
1998-05-22 10:25:34 +00:00
Craig Burley 1ed565d7a6 com.c (ffecom_init_0): Rename xargc to f__xargc, in accord with same-dated change to f/runtime.
Tue May 19 12:56:54 1998  Craig Burley  <burley@gnu.org>
* com.c (ffecom_init_0): Rename xargc to f__xargc,
in accord with same-dated change to f/runtime.

From-SVN: r19952
1998-05-22 10:24:50 +00:00
Dave Love e72d9e6b9d JCB update
From-SVN: r19951
1998-05-22 10:22:44 +00:00
Jason Merrill 038fb86f04 * pt.c (print_template_context): Use fprintf instead of cp_error.
From-SVN: r19950
1998-05-22 01:01:43 -04:00
Jason Merrill 82a7448c53 (check_explicit_specialization): Don't mess with a returned
error_mark_node.

From-SVN: r19949
1998-05-22 00:18:51 -04:00
Jason Merrill d7fe837368 comment
From-SVN: r19948
1998-05-21 23:49:13 -04:00
Richard Earnshaw 07704a9adb genextract.c (print_path): Handle zero-length path as a special case.
From-SVN: r19947
1998-05-22 03:44:58 +00:00
Jason Merrill 27fafc8de1 pt.c (determine_specialization): Just return an error_mark_node.
* pt.c (determine_specialization): Just return an error_mark_node.
	Also print the decl we want in error messages.  If we complain,
	return error_mark_node.
	(tsubst_friend_function): Set lineno and input_filename so
	error messages will be useful.
	(instantiate_template): Just return an error_mark_node.
	* pt.c (print_template_context): Add new argument.
	(maybe_print_template_context): New fn.
	(push_tinst_level): Increment tinst_level_tick.
	(pop_tinst_level): Likewise.
	* errfn.c (cp_thing): Call maybe_print_template_context.  Use
	xrealloc instead of xmalloc.
	* typeck.c (build_unary_op, CONVERT_EXPR): Propagate TREE_CONSTANT.

From-SVN: r19946
1998-05-21 23:32:43 -04:00
Hans-Peter Nilsson 911c3b7d7c cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
�
        * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.

From-SVN: r19945
1998-05-21 18:39:52 -06:00
Hans-Peter Nilsson 75f6bf44da cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
�
        * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.

From-SVN: r19944
1998-05-21 18:39:51 -06:00
Hans-Peter Nilsson 4e3769ae80 cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
8
        * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.

From-SVN: r19943
1998-05-21 18:39:44 -06:00
Mike Stump 7b195f77b7 Makefile.in: Add a dependency on stamp-picdir for the objects...
* Makefile.in: Add a dependency on stamp-picdir for the
        objects, so that we can do a parallel build.

From-SVN: r19942
1998-05-21 18:20:51 -06:00
Jeff Law 28ec941825 Fix minor ChangeLog typo.
From-SVN: r19941
1998-05-21 18:02:20 -06:00
Bernd Schmidt 75197b3781 final.c (JUMP_TABLES_IN_TEXT_SECTION): Provide a default value.
* final.c (JUMP_TABLES_IN_TEXT_SECTION): Provide a default value.
        (shorten_branches, final_scan_insn): Test value of
        JUMP_TABLES_IN_TEXT_SECTION instead of just testing whether it
        is defined.
        * tm.texi (JUMP_TABLES_IN_TEXT_SECTION): Corresponding changes.
        * arm/coff.h: Define JUMP_TABLES_IN_TEXT_SECTION to 1.
        coff.h: Likewise.
        * i386/386bsd.h: Likewise.
        * i386/freebsd-elf.h: Likewise.
        * i386/freebsd.h: Likewise.
        * i386/netbsd.h: Likewise.
        * i386/ptx4-i.h: Likewise.
        * i386/sysv4.h: Likewise.
        * pa/pa.h: Likewise.
        * rs6000/linux.h: Likewise.
        * rs6000/rs6000.h: Likewise.
        * sh/sh.h: Likewise.
        * sparc/sp64-elf.h: Likewise.
        * v850/v850.h: Likewise.
        * rs6000/sysv4.h: Define JUMP_TABLES_IN_TEXT_SECTION to 0.
        * i386/linux.h: Define JUMP_TABLES_IN_TEXT_SECTION to (flag_pic).

From-SVN: r19940
1998-05-21 18:01:23 -06:00
Jeffrey A Law 37433f4989 * Makefile.in (gencheck): Depend on HOST_LIBDEPS.
From-SVN: r19939
1998-05-21 16:54:10 -06:00
J"orn Rennecke 1a29f703bf regmove.c (gen_add3_insn): New function.
* regmove.c (gen_add3_insn): New function.
        (fixup_match_2): Use it instead of calling gen_addsi3.

From-SVN: r19938
1998-05-21 16:34:06 -06:00
Jeffrey A Law 05930232f1 * gcc.dg/980520-1.c: New test.
From-SVN: r19937
1998-05-21 16:21:28 -06:00
Jeffrey A Law aee21ba9f7 alias.c (rtx_equal_for_memref_p): Handle SCRATCH as a memory address.
* alias.c (rtx_equal_for_memref_p): Handle SCRATCH as a memory
        address.

From-SVN: r19936
1998-05-21 16:12:04 -06:00
Jason Merrill f9c3243c67 pt.c (tsubst_friend_class): Don't call redeclare_class_template if the template we looked up is the same as...
* pt.c (tsubst_friend_class): Don't call redeclare_class_template
	if the template we looked up is the same as the one we already
	have.

From-SVN: r19935
1998-05-21 16:57:52 -04:00
Martin v. Löwis 12b195d936 Makefile.in (TREE_H): Add tree-check.h.
* Makefile.in (TREE_H): Add tree-check.h.
	(tree-check.h, gencheck): New targets.
	* gencheck.c: New file.
	* tree.c (tree_check, tree_class_check): New functions.
	* tree.h (TREE_CHECK, TREE_CLASS_CHECK): Define.
	(TYPE_CHECK, DECL_CHECK): Define.
	Modify all access macros to use generated checking macros.

From-SVN: r19934
1998-05-21 13:20:37 -06:00
John Wehle 9e423e6db2 acconfig.h (HAVE_GAS_MAX_SKIP_P2ALIGN): New tag.
* acconfig.h (HAVE_GAS_MAX_SKIP_P2ALIGN): New tag.
	* configure.in: Check for it.
	* i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Use it.
	* final.c (uid_align, uid_shuid, label_align): Make static.
	(label_align): Change type to struct label_alignment pointer.
	(LABEL_TO_ALIGNMENT, shorten_branches): Update due to type change.
	(LABEL_TO_MAX_SKIP): Define.
	(LABEL_ALIGN_MAX_SKIP, LOOP_ALIGN_MAX_SKIP,
	LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Provide defaults.
	(shorten_branches): Record the maximum bytes to skip when
	aligning a label.
	(final_scan_insn): Use the maximum bytes to skip when aligning a label
	if ASM_OUTPUT_MAX_SKIP_ALIGN is available.
	* i386.h (LOOP_ALIGN_MAX_SKIP,
	LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
	* i386.c (override_options): i386_align_jumps and i386_align_loops
	default to 4 if ASM_OUTPUT_MAX_SKIP_ALIGN is available.
	* invoke.texi: Document new i386 align-loops and align-jumps behavior.

From-SVN: r19933
1998-05-21 13:12:20 -06:00
Mark Mitchell 1cc7529801 * cplus-dem.c (do_type): Handle volatile qualification.
From-SVN: r19932
1998-05-21 15:22:54 +00:00
Per Bothner 178ca02d83 function.c (init_function_start): Don't call emit_line_note if lineno is 0.
�
	* function.c (init_function_start):  Don't call emit_line_note if
	lineno is 0.  (Can happen when compiling Java .class files.)

From-SVN: r19931
1998-05-21 05:24:01 -07:00
Per Bothner b274104c47 function.c (init_function_start): Don't call emit_line_note if lineno is 0.
8
	* function.c (init_function_start):  Don't call emit_line_note if
	lineno is 0.  (Can happen when compiling Java .class files.)

From-SVN: r19930
1998-05-21 05:23:59 -07:00