Commit Graph

16726 Commits

Author SHA1 Message Date
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
J"orn Rennecke
cecbf6e2b3 reload1.c (reload_reg_free_for_value_p): Fix RELOAD_FOR_INPUT end of lifetime and RELOAD_FOR_OUTPUT start of lifetime.
* reload1.c (reload_reg_free_for_value_p): Fix RELOAD_FOR_INPUT
	end of lifetime and RELOAD_FOR_OUTPUT start of lifetime.

From-SVN: r19929
1998-05-21 12:52:31 +01:00
J"orn Rennecke
b52ce03da5 combine.c (nonzero_bits): For paradoxical subregs, take LOAD_EXTENDED_OP into account.
* combine.c (nonzero_bits): For paradoxical subregs, take
	LOAD_EXTENDED_OP into account.

From-SVN: r19928
1998-05-21 12:35:10 +01:00
Dave Brolley
d4dfe7d66c lex.c: (handle_sysv_pragma): FILE* parameter not used.
Thu May 21 11:54:44 1998  Dave Brolley  <brolley@cygnus.com>
	* lex.c: (handle_sysv_pragma): FILE* parameter not used.
	(cpp_reader,parse_in): Add for cpplib.
	(check_newline): Call handle_sysv_pragma with new interface.
	(check_newline): Call GET_DIRECTIVE_LINE, not get_directive_line.
	* input.c: (yy_cur,yy_lim,yy_get_token,GETC): Add for cpplib.
	(sub_getch): Call GETC for cpplib.
	* cp-tree.h: (get_directive_line): Different prototype for cpplib.
	(GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line.
	* Makefile.in (CXX_OBJS): add @extra_cxx_objs@ for cpplib.

From-SVN: r19927
1998-05-21 04:56:16 -04:00
Dave Brolley
c87248620c configure.in (extra_c_objs): add prefix.o.
Thu May 21 11:51:15 1998  Dave Brolley  <brolley@cygnus.com>
	* configure.in (extra_c_objs): add prefix.o.
	(extra_cxx_objs): extra objects for C++ with cpplib.
	* configure: Regenerate.
	* c-tree.h: (get_directive_line): Different prototype for cpplib.
	(GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line.
	* c-lex.h: (get_directive_line): Not needed here for cpplib.
	* c-lex.c: (yy_cur,yy_lim,yy_get_token): Move to c-common.c.
	(GET_DIRECTIVE_LINE): Move to c-common.c and rename to get_directive_line.
	* c-common.c (parse_in,parse_options,cpp_token): Declare for cpplib.
	(yy_cur,yy_lim,yy_get_token,get_directive,line): Moved here from c-lex.c

From-SVN: r19926
1998-05-21 04:54:04 -04:00
Manfred Hollstein
39d6585022 configure.in: Check for unistd.h as well.
�
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19925
1998-05-21 07:52:43 +00:00
Manfred Hollstein
b9256371fa configure.in: Check for unistd.h as well.
0
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19924
1998-05-21 07:52:41 +00:00
Manfred Hollstein
3fe97d74ad configure.in: Check for unistd.h as well.
�
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19923
1998-05-21 07:52:38 +00:00
Kaveh R. Ghazi
fd97443cb6 ANSI does not allow a prototype to specify an item smaller than an int if the function uses an old-style definition.
ANSI does not allow a prototype to specify an item smaller than an int
if the function uses an old-style definition.  This only worked as a
GNUC extension, so stop doing it.
       * gengenrtl.c (type_from_format, accessor_from_format): Change
       type of parameter `c' from `char' to `int'.

From-SVN: r19922
1998-05-21 06:29:55 +00:00
Jason Merrill
b385c8412e decl2.c (maybe_make_one_only): New fn.
* decl2.c (maybe_make_one_only): New fn.
	(import_export_vtable): Use it.
	(import_export_decl): Likewise.
	* pt.c (mark_decl_instantiated): Likewise.

From-SVN: r19921
1998-05-21 01:42:51 -04:00
Mark Mitchell
cb96daa2dc decl2.c (find_representative_member): Rename to ...
* decl2.c (find_representative_member): Rename to ...
	(build_anon_union_vars): New function.
	(finish_anon_union): Fix stupidity of previous change.

From-SVN: r19920
1998-05-21 00:48:49 +00:00
Jason Merrill
f9d94ea4d4 decl.c (grokfndecl): Handle definition of specialization in friend declaration.
* decl.c (grokfndecl): Handle definition of specialization in
	friend declaration.
	* error.c (dump_decl): Fix LOOKUP_EXPR handling.

From-SVN: r19919
1998-05-20 19:53:04 -04:00
Mark Mitchell
35acd3f282 class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P to look for type declarations.
* class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P
	to look for type declarations.
	(finish_struct): Deal with templates on the CLASSTYPE_TAGS list.
	* cp-tree.h (DECL_DECLARES_TYPE_P): New macro.
	(finish_member_class_template): Declare.
	* decl.c (pushtag): Put member class templates on the
	CLASSTYPE_TAGS list, just as for ordinary member classes.
	(pushdecl_class_level): Use DECL_DECLARES_TYPE_P.
	(lookup_tag): Look for IDENTIFIER_CLASS_VALUEs, just as with
	IDENTIFIER_NAMESPACE_VALUEs.
	* parse.y (component_decl): Move code to ...
	* semantics.c (finish_member_class_template): New function.
	Don't put member class templates on the list of components for a
	class.
	* pt.c (classtype_mangled_name): Don't try DECL_CONTEXT on types.
	In fact, don't use DECL_CONTEXT at all here.

From-SVN: r19918
1998-05-20 23:28:21 +00:00
Jeffrey A Law
2a3edac9ad warn_summary, [...]: New scripts from Kaveh Ghazi and Alexandre Oliva respectively.
* warn_summary, test_summary: New scripts from
        Kaveh Ghazi and Alexandre Oliva respectively.

From-SVN: r19917
1998-05-20 16:44:58 -06:00
Manfred Hollstein
6601d02b23 * gcc.dg/980502-1.c: Fix return type.
From-SVN: r19916
1998-05-20 15:48:45 -06:00
Jeffrey A Law
0e4347cef0 gcse.c (current_function_calls_longjmp): Declare.
* gcse.c (current_function_calls_longjmp): Declare.
For sco5.

From-SVN: r19915
1998-05-20 15:30:13 -06:00
Martin v. Löwis
036407f7b3 decl.c (record_unknown_type): New function.
* decl.c (record_unknown_type): New function.
	(init_decl_processing): Call it for the unknown and global type
	nodes.

From-SVN: r19912
1998-05-20 15:08:59 -04:00
Jason Merrill
4e5a8d7b86 * dwarf2out.c (base_type_die): Use int_size_in_bytes.
From-SVN: r19911
1998-05-20 14:51:13 -04:00
Mark Mitchell
ce1b9eb9a8 decl2.c (find_representative_member): New function.
* decl2.c (find_representative_member): New function.
	(finish_anon_union): Use it.

From-SVN: r19910
1998-05-20 11:03:18 +00:00
Jeff Law
f9c3933a4b {980502-1.c, [...]: New tests.
* gcc.dg/{980502-1.c, clobbers.c}: New tests.
        * gcc.c-torture/compile/{980504-1.c, 980506-1.c}: Likewise.
        * gcc.c-torture/compile/{980506-2.c, 980611-1.c}: Likewise.
        * gcc.c-torture/execute/{980505-1.c, 980505-2.c, 980506-1.c}: Likewise.
        * gcc.c-torture/execute/{980506-2.c, 980506-3.c}: Likewise.
Missing ChangeLog entry.

From-SVN: r19909
1998-05-20 04:30:42 -06:00
Mark Mitchell
74ce357fe5 new test
From-SVN: r19908
1998-05-20 10:04:35 +00:00
Mark Mitchell
3568074438 cp-tree.h (MAIN_NAME_P): New macro.
* cp-tree.h (MAIN_NAME_P): New macro.
	(DECL_MAIN_P): Likwise.
	* decl.c (pushdecl): Avoid crashing on redefinitions of `main'.
	(grokfndecl): Use the new macros.
	(grokdeclarator): Likewise.
	(start_function): Likewise.
	(store_parm_decls): Likewise.
	(finsh_function): Likewise.
	* friend.c (do_friend): Likewise.
	* typeck.c (build_function_call_real): Likewise.
	(build_unary_op): Likewise.

From-SVN: r19907
1998-05-20 10:04:25 +00:00
Dave Love
3e98dfd1cb 980520-1.f: New test.
1998-05-20  Dave Love  <d.love@dl.ac.uk>
* g77.f-torture/execute/980520-1.f: New test.

From-SVN: r19906
1998-05-20 09:34:26 +00:00
Dave Love
83539a5253 New test.
From-SVN: r19905
1998-05-20 09:28:28 +00:00
Jason Merrill
961ec1a55f decl2.c (start_objects, [...]): Split out from...
* decl2.c (start_objects, finish_objects, do_dtors,
	do_ctors): Split out from...
	(finish_file): ...here.

From-SVN: r19904
1998-05-19 22:46:16 -04:00