23306 Commits

Author SHA1 Message Date
Nick Clifton
e417d05e39 Mark test as expected failure since neither cpp nor cpplib get it right,
and it is not going to be fixed any time soon...

From-SVN: r28668
1999-08-11 09:29:13 +00:00
Jeff Law
0181177d77 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
From-SVN: r28667
1999-08-11 02:14:51 -06:00
Mark Elbrecht
1bf560bdb3 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
From-SVN: r28666
1999-08-11 02:03:44 -06:00
Richard Earnshaw
0dcda00203 * gcc.c-torture/execute/990811-1.c: New test.
From-SVN: r28665
1999-08-11 01:50:52 -06:00
Richard Earnshaw
00995e782e emit-rtl.c (mark_reg_pointer): Don't increase the alignment of a register that is already known to be a pointer.
* emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
        a register that is already known to be a pointer.

From-SVN: r28664
1999-08-11 01:47:51 -06:00
Jeff Law
67acfbd7b0 Daily bump.
From-SVN: r28663
1999-08-11 01:45:14 -06:00
Jeff Law
c4e897c16e Remove left-over CVS conflict marker
From-SVN: r28661
1999-08-11 01:25:49 -06:00
Bruce Korb
7aed7b7099 inclhack.tpl: Only install assert.h conditionally.
* fixinc/inclhack.tpl: Only install assert.h conditionally.
        * fixinc/inclhack.sh: Regenerated.
        * fixinc/fixincl.sh: Regenerated.

From-SVN: r28659
1999-08-11 01:17:01 -06:00
Joe Buck
0c2d1a2a23 invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
* invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
        Fix documentation of -ansi flag to describe its C++ behavior.
        Remove bogus reference to GCC 2.9.

From-SVN: r28657
1999-08-11 00:37:09 -06:00
Rainer Orth
9a81650073 * jvgenmain.c (main): NUL-terminate name_obstack.
From-SVN: r28655
1999-08-11 05:03:11 +00:00
Jim Wilson
ab1672a333 Fix -O0 core dump reported by Fred Fish.
* config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
	note if it is non-NULL.

From-SVN: r28653
1999-08-10 17:26:38 -07:00
Martin v. Löwis
fbb7246658 New test case
From-SVN: r28650
1999-08-10 16:59:59 +00:00
Martin v. Loewis
d82d65d886 decl2.c (set_decl_namespace): Do not complain about non-matching decls if processing a template.
* decl2.c (set_decl_namespace): Do not complain about non-matching
	decls if processing a template.

From-SVN: r28649
1999-08-10 16:58:24 +00:00
Kaveh R. Ghazi
c8e7d2e632 check-init.c (check_bool2_init, [...]): Add static prototypes.
* check-init.c (check_bool2_init, done_alternative): Add static
	prototypes.

	* class.c (add_interface_do, maybe_layout_super_class): Likewise.
	(add_method, build_utf8_ref, build_class_ref,
	append_gpp_mangled_type, layout_class_method): Constify a char*.

	* decl.c (push_promoted_type, make_binding_level): Add static
	prototypes.
	(push_promoted_type, pushdecl): Constify a char*.

	* except.c (find_handler_in_range, link_handler,
	check_start_handlers): Add static prototypes.

	* expr.c (process_jvm_instruction): Constify a char*.

	* gjavah.c (main): Constify a char*.

	* java-tree.h (verify_jvm_instructions, process_jvm_instruction):
	Constify a char*.

	* jcf-depend.c (free_entry, add_entry, munge, print_ents): Add
	static prototypes.
	(add_entry, jcf_dependency_set_target, jcf_dependency_add_target,
	munge, print_ents): Constify a char*.

	* jcf-dump.c (disassemble_method): Constify a char*.
	(print_constant_pool, print_exception_table): Add static prototypes.
	(print_constant, print_exception_table, main, disassemble_method):
	Constify a char*.

	* jcf-io.c (find_classfile, find_class): Likewise.

	* jcf-parse.c (JPOOL_UTF_DATA, find_in_current_zip): Likewise.
	(set_source_filename, predefined_filename_p): Add static prototypes.
	(set_source_filename, get_constant, get_class_constant,
	find_in_current_zip): Constify a char*.

	* jcf-path.c (free_entry, append_entry, add_entry, add_path): Add
	static prototypes.
	(add_entry, add_path, jcf_path_classpath_arg,
	jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*.

	* jcf-reader.c (get_attribute, jcf_parse_preamble,
	jcf_parse_constant_pool, jcf_parse_class, jcf_parse_fields,
	jcf_parse_one_method, jcf_parse_methods,
	jcf_parse_final_attributes): Add static prototypes.
	(get_attribute): Constify a char*.

	* jcf.h (find_class, find_classfile, jcf_dependency_set_target,
	jcf_dependency_add_target, jcf_path_classpath_arg,
	jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*.

	* jv-scan.c (main): Constify a char*.
	(gcc_obstack_init): Add prototype arguments.

	* jvgenmain.c (gcc_obstack_init): Likewise.
	(main): Constify a char*.

	* lang.c (put_decl_string, put_decl_node, java_dummy_print): Add
	static prototypes.
	(put_decl_string, lang_print_error): Constify a char*.
	(lang_init): Remove redundant extern prototype.

	* mangle.c (emit_unicode_mangled_name): Constify a char*.

	* typeck.c (convert_ieee_real_to_integer, parse_signature_type):
	Add static prototypes.
	(get_type_from_signature): Constify a char*.

	* verify.c (check_pending_block, type_stack_dup, start_pc_cmp ):
	Add static prototypes.
	(start_pc_cmp): Prefer PTR over GENERIC_PTR.
	(verify_jvm_instructions): Constify a char*.

	* xref.c (xref_flag_value): Likewise.

	* xref.h (xref_flag_value): Likewise.

	* zextract.c (makeword, makelong): Add static prototypes.
	(makeword, makelong): Constify a uch*.

From-SVN: r28648
1999-08-10 16:58:13 +00:00
Andrew MacLeod
1ef1bf063b except.h (eh_nesting_info): Add new structure defintion.
Tue Aug 10 10:47:42 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

	* except.h (eh_nesting_info): Add new structure defintion.
	(init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
	(reachable_handlers, update_rethrow_references): Add function
	prototypes.
	* rtl.h (struct rtvec_def): Update comments.  REG_EH_RETHROW takes
	a rethrow symbol instead of an integer exception region number.
	* flow.c (Make_edges): Use new exception nesting routines to determine
	which handlers are reachable from a CALL or asynchronous insn.
	Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
	goto receivers.
	(delete_eh_regions): Update rethrow labels, and don't delete
	regions which are the target of a rethrow.
	* except.c (struct func_eh_entry): Add rethrow_ref field, now we can
	avoid overloading the SYMBOL_REF_USED flag.
	(rethrow_symbol_map): Use new rethrow_ref field.
	(rethrow_used): Use new rethrow_ref field.
	(expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
	of an integer.  Fix formatting.
	(output_exception_table_entry): Use new rethrow_ref field.
	(can_throw): Check for EH_REGION_NOTE before deciding
	whether a CALL can throw or not.
	(scan_region): Call rethrow_used() instead of accessing data structure.
	(update_rethrow_references): New function to make sure only regions
	which are still targets of a rethrow are flagged as such.
	(process_nestinfo): New static function to initialize a handler
	list for a specific region.
	(init_eh_nesting_info): New function to allocate and initialize
	the list of all EH handlers reachable from all regions.
	(reachable_handlers): New function to retrieve the list of handlers
	reachable from a specific region and insn.
	(free_eh_nesting_info): New function to dispose of a list of
	reachable handlers.

From-SVN: r28647
1999-08-10 16:19:16 +00:00
Andrew MacLeod
a8688bd6e9 flow.c (split_edge): Set JUMP_LABEL field.
* flow.c (split_edge): Set JUMP_LABEL field.
	(commit_one_edge_insertion): Set head correctly for insert_before.
	When inserting insns, update insn block numbers if allocated.

From-SVN: r28646
1999-08-10 14:46:16 +00:00
Kaveh R. Ghazi
d560ee52bb dwarf2out.c (dwarf2out_frame_debug_expr, [...]): Add static prototype.
* dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
        retry_incomplete_types): Add static prototype.
        (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
        dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
        dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
        dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
        dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
        Constify a char*.

        * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
        dwarf2out_start_source_file, dwarf2out_line): Likewise.

From-SVN: r28645
1999-08-10 13:28:24 +00:00
Kaveh R. Ghazi
ec940faa53 output.h (assemble_name): Constify a char*.
* output.h (assemble_name): Constify a char*.

        * varasm.c (UNIQUE_SECTION, assemble_start_function,
        assemble_variable, assemble_name): Likewise.

        * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.

        * arm/pe.c (arm_pe_unique_section): Likewise.

        * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.

        * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.

        * i386/interix.c (i386_pe_unique_section): Likewise.

        * i386/win32.h (STRIP_NAME_ENCODING): Likewise.

        * i386/winnt.c (i386_pe_unique_section): Likewise.

        * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.

        * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.

        * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.

        * pa/pa.c (output_call): Likewise.

        * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.

        * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.

        * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
        Likewise.

        * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
        Likewise.

        * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.

        * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
        STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.

        * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.

From-SVN: r28644
1999-08-10 13:25:24 +00:00
Jeff Law
4c71b22f2d Daily bump.
From-SVN: r28643
1999-08-10 01:45:08 -06:00
Mark Mitchell
46cbda4ad4 decl.c (build_ptrmemfunc_type): Handle qualified pointer-to-member types here.
* decl.c (build_ptrmemfunc_type): Handle qualified
	pointer-to-member types here.
	* tree.c (cp_build_qualified_type_real): Simplify handling here.

From-SVN: r28642
1999-08-10 06:19:35 +00:00
Anthony Green
7941ceabf0 [multiple changes]
Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

        * Makefile: Rebuilt.
	* Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
	builds.

	* java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
	present.

	* configure: Rebuilt.
	* configure.in: Properly align --help output, fix capitalization
	and punctuation.
	* acinclude.m4: Likewise.

1999-08-09  Kresten Krab Thorup  <krab@gnu.org>

	* include/javaprims.h (_Jv_word, _Jv_word2): New types.

	* include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
	(_Jv_callInterpretedMethod): Unused. Remove.
	(_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
	Use ffi_raw.
	* include/java-cpool.h (_Jv_get, _Jv_put): Remove.
	(_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
	* boehm.cc (_Jv_MarkObj): Use _Jv_word.
	* interpret.cc: use _Jv_word.
	* defineclass.cc: use_Jv_word.
	* resolve.cc: Use _Jv_word.
	(_Jv_ResolvePoolEntry): Return _Jv_word.
	* java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
	* java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.

	* interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
	Change comment.

From-SVN: r28641
1999-08-10 05:32:23 +00:00
Rainer Orth
3ef1cea850 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
	builds.

	* configure: Rebuilt.
	* configure.in: Properly align --help output, fix capitalization.

From-SVN: r28640
1999-08-10 05:30:10 +00:00
Rainer Orth
0721f64ea4 Makefile.in: Rebuilt.
* include/Makefile.in: Rebuilt.
	* Makefile.in: Rebuilt
	* Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
	builds.
	Use USE_LIBDIR.

	* configure: Rebuilt.
	* configure.in (USE_LIBDIR): Define for native builds.
	Use lowercase in configure --help explanations.

From-SVN: r28639
1999-08-10 05:29:27 +00:00
Rainer Orth
61e922d260 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
	builds.

	* configure: Rebuilt.
	* configure.in: Properly align --help output, fix capitalization
	and punctuation.
	* acinclude.m4: Likewise.

From-SVN: r28638
1999-08-10 05:28:31 +00:00
Robert Lipe
83694b6186 * test_summary: Quote curly braces in 1999-07-03 change.
From-SVN: r28637
1999-08-10 03:22:39 +00:00
Kaveh R. Ghazi
eefc2c6e85 Warning fix:
* real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.

From-SVN: r28636
1999-08-09 23:57:32 +00:00
Kaveh R. Ghazi
0070eeda65 lang.c (java_dummy_print): Constify a char*.
* lang.c (java_dummy_print): Constify a char*.
        (lang_print_error): Likewise.
        (lang_init): Remove redundant prototype for `print_error_function'.
        (lang_init_source): Likewise.
        (lang_identify): Constify a char*.

From-SVN: r28635
1999-08-09 23:52:36 +00:00
Kaveh R. Ghazi
dafbd854c7 com.c (lang_print_error_function): Constify a char*.
* com.c (lang_print_error_function): Constify a char*.
        (init_parse): Remove redundant prototype for `print_error_function'.
        (lang_identify): Constify a char*.

From-SVN: r28634
1999-08-09 23:45:52 +00:00
Kaveh R. Ghazi
8df4696de9 decl.c: Remove redundant prototype for `print_error_function'.
* decl.c: Remove redundant prototype for `print_error_function'.
        (lang_print_error_function): Constify a char*.

        * lex.c (lang_identify): Likewise.

From-SVN: r28633
1999-08-09 23:44:03 +00:00
Kaveh R. Ghazi
fe0aaaa5f1 actions.c (lang_identify): Constify a char*.
* actions.c (lang_identify): Constify a char*.

        * lang.c (chill_print_error_function): Likewise.
        (lang_init): Remove redundant prototype for `print_error_function'.

From-SVN: r28632
1999-08-09 23:41:20 +00:00
Kaveh R. Ghazi
c95910595c tree.h (lang_identify): Constify a char*.
* tree.h (lang_identify): Constify a char*.
        (print_error_function): Add extern prototype.  Constify a char*.

        * c-lang.c (lang_identify): Constify a char*.

        * objc/objc-act.c (lang_identify): Constify a char*.

From-SVN: r28631
1999-08-09 23:38:41 +00:00
Tom Tromey
63ac1f08b7 javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
* javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
	(WORDS_TO_LONG): Likewise.
	(WORDS_TO_DOUBLE): Likewise.

From-SVN: r28630
1999-08-09 21:14:12 +00:00
Rainer Orth
05ca950a64 configure.in (sched_yield): Try librt first, then libposix4.
Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* configure.in (sched_yield): Try librt first, then libposix4.
	Add -lrt, -lposix4 to THREADSPEC.

From-SVN: r28629
1999-08-09 19:17:20 +00:00
Bernd Schmidt
ad171e80b8 Small incremental fixes for last checkin
From-SVN: r28627
1999-08-09 15:23:25 +00:00
Bernd Schmidt
49ad7cfa7a Include function.h in most files.
Include function.h in most files.  Remove most of the global variables
duplicated in function.h.  Add accessor macros for them which access
current_function.  Delete INLINE_HEADER rtx and related code, replace
with code using struct function to store inlining related data.

From-SVN: r28626
1999-08-09 14:00:21 +00:00
Jason Merrill
0dde4175ef semantics.c (begin_function_try_block, [...]): New fns.
* semantics.c (begin_function_try_block, finish_function_try_block,
	finish_function_handler_sequence): New fns.
	* parse.y (function_try_block): Use them.
	* pt.c (instantiate_decl): Likewise.

	* cp-tree.h: Declare in_function_try_handler.
	* decl.c: Define it.
	(start_function): Clear it.
	(struct cp_function, push_cp_function_context): Save it.
	(pop_cp_function_context): Restore it.
	* parse.y (function_try_block): Set and clear it.
	* except.c (expand_end_catch_block): Rethrow if we reach the end
	of a function-try-block handler in a ctor or dtor.
	* typeck.c (c_expand_return): Complain about returning from a
	function-try-block handler of a ctor.

	* parse.y (function_try_block): Call end_protect_partials
	before expand_start_all_catch.

From-SVN: r28624
1999-08-09 06:45:00 -04:00
Nick Clifton
fb20fc4545 Test all builds, not just native
From-SVN: r28623
1999-08-09 09:55:37 +00:00
Jason Merrill
227cf17127 decl.c (struct binding_level): Add eh_region field.
* decl.c (struct binding_level): Add eh_region field.
	(push_binding_level): Set it.
	(define_label): Complain about jumping into an EH block.

From-SVN: r28622
1999-08-09 04:53:52 -04:00
Jason Merrill
e7b9b18e4a print-tree.c (print_node): Print base for OFFSET_TYPEs.
* print-tree.c (print_node): Print base for OFFSET_TYPEs.

	* except.c (expand_eh_region_start_for_decl): Always start a new block.
	* stmt.c (is_eh_region): Make sure current_function is present, too.

From-SVN: r28621
1999-08-09 04:52:48 -04:00
Jeff Law
a124a0ca97 Daily bump.
From-SVN: r28619
1999-08-09 01:45:10 -06:00
Jeffrey A Law
9275b45e54 pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when for 64bit PA targets.
* pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
        for 64bit PA targets.

From-SVN: r28618
1999-08-09 01:37:06 -06:00
Jeffrey A Law
8f851c1ff2 pa.h (SELECT_SECTION): Define.
Mon Aug  9 01:15:24 1999  Jeffrey A Law  (law@cygnus.com)

        * pa.h (SELECT_SECTION): Define.
        * som.h (SELECT_SECTION): Delete.

From-SVN: r28617
1999-08-09 01:17:32 -06:00
Jeff Law
e547bb6751 More mail address and web address updates.
From-SVN: r28616
1999-08-09 00:48:10 -06:00
Anthony Green
b3967ec43e Primes.java: New file.
* libjava.lang/Primes.java: New file.
	* libjava.lang/Primes.out: New file.

From-SVN: r28613
1999-08-09 06:35:56 +00:00
Anthony Green
8d25f6084d * include/ffi.h.in (FFI_FN): Remove `...'.
From-SVN: r28610
1999-08-09 02:52:58 +00:00
Jason Merrill
f3e4d63c92 ptree.c (print_lang_type): Print the real type of a PMF.
* ptree.c (print_lang_type): Print the real type of a PMF.
	Print what exceptions a fn type throws.

	* typeck.c (common_type): Use same_type_p.

And revert:
	* decl.c (bad_specifiers): It's OK to have an EH spec on a function
	pointer.

From-SVN: r28609
1999-08-08 22:30:21 -04:00
Anthony Green
cb35be5713 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
From-SVN: r28608
1999-08-09 01:11:41 +00:00
Anthony Green
e3253af520 defineclass.cc (_Jv_VerifyClassName): Verify array names correctly.
* defineclass.cc (_Jv_VerifyClassName): Verify array names
	correctly.

From-SVN: r28606
1999-08-09 00:25:51 +00:00
Alexandre Oliva
63ecaef554 pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as template parameter instead.
* pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as
template parameter instead.

From-SVN: r28605
1999-08-09 00:07:21 +00:00
Alexandre Oliva
aee941f2bb streambuf.h (ios::streamsize): Declare as _IO_ssize_t, as in the global scope.
* streambuf.h (ios::streamsize): Declare as _IO_ssize_t, as in the
global scope.

From-SVN: r28604
1999-08-09 00:07:09 +00:00