Commit Graph

26423 Commits

Author SHA1 Message Date
Jeff Law
e364987f8e Daily bump.
From-SVN: r32046
2000-02-18 01:45:07 -07:00
John Wehle
a49a6a6800 loop.c (canonicalize_condition): New function, broken out of get_condition.
* loop.c (canonicalize_condition): New function,
	broken out of get_condition.
	(get_condition): Use it.
	* expr.h (canonicalize_condition): Prototype it.

	* tree.h (tree_int_cst_msb): Declare.
	* tree.c (tree_int_cst_msb): New function.

From-SVN: r32045
2000-02-18 06:32:01 +00:00
Mark Mitchell
930b1f40d0 class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
* class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
	* decl2.c (grokclassfn): Likewise.

From-SVN: r32044
2000-02-18 06:00:36 +00:00
Tom Tromey
8dd8ff2e98 Rotated ChangeLogs
From-SVN: r32043
2000-02-17 22:57:30 +00:00
Mark Mitchell
2269eec3b9 ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
2000-02-17  Mark Mitchell  <mark@codesourcery.com>

	* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

From-SVN: r32042
2000-02-17 20:45:49 +00:00
Mark Mitchell
61d846051a stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt isn't set.
* stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
	isn't set.

From-SVN: r32041
2000-02-17 20:44:22 +00:00
Mark Mitchell
277576eefc invoke.texi (-fmessage-length=n): Document.
* invoke.texi (-fmessage-length=n): Document.

	* decl2.c (lang_decode_option): Don't set default message length
	here.
	* lex.c (lang_init_options): Set it here.

From-SVN: r32040
2000-02-17 20:38:26 +00:00
Mark Mitchell
44399cac47 g++.exp (g++_init): Add -fmessage-length=0 to ALWAYS_CXXFLAGS.
* lib/g++.exp (g++_init): Add -fmessage-length=0 to
	ALWAYS_CXXFLAGS.

From-SVN: r32039
2000-02-17 20:24:27 +00:00
Jason Merrill
b9a73e32f1 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
From-SVN: r32038
2000-02-17 15:24:11 -05:00
Mark Mitchell
9185a8d526 function.c (thread_prologue_and_epilogue_insns): Put a line note after the prologue.
* function.c (thread_prologue_and_epilogue_insns): Put a line note
	after the prologue.

From-SVN: r32037
2000-02-17 20:15:50 +00:00
Tom Tromey
de3cb4e4c1 re GNATS gcj/152 (Installation flaw)
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
	Fixes PR gcj/152.

From-SVN: r32036
2000-02-17 18:34:14 +00:00
Nick Clifton
cb3d6d015b Replace #include <...> with #include "system.h"
From-SVN: r32035
2000-02-17 17:59:13 +00:00
Andy Vaught
b7a8086234 Andy Vaught <andy@maxwell.la.asu.edu>
* com.c (ffecom_member_phase2_): Re-enable COMMON debug code.
        (ffecom_finish_symbol_transform_): Likewise.
        (ffecom_transform_common_): Call ffestorag_set_hook.

From-SVN: r32034
2000-02-17 02:06:03 -08:00
Richard Henderson
ee8d66f795 configure.in (alpha-linux*, [...]): Add crtbeginS.o and crtendS.o.
* configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
        Add crtbeginS.o and crtendS.o.
        * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
        (ENDFILE_SPEC): Use crtendS.o.
        * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.

        * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
        (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
        shared and present.
        (__dso_handle): New variable.
        * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
        bias to __CTOR_END__.

From-SVN: r32033
2000-02-17 01:47:43 -08:00
Jeff Law
3fbfa9f63b Daily bump.
From-SVN: r32032
2000-02-17 01:45:09 -07:00
Richard Henderson
ceb8e1285b * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
From-SVN: r32031
2000-02-16 22:12:35 -08:00
Richard Henderson
19639e54e6 lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
* objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
        default spec.

From-SVN: r32030
2000-02-16 22:07:20 -08:00
Hans-Peter Nilsson
3912a603d8 * longlong.h (__clz_tab): Declare as static to match definition.
From-SVN: r32029
2000-02-16 21:40:47 -07:00
Mark Elbrecht
762f069d63 xm-djgpp.h (LIBSTDCXX): Delete.
* i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
        (XREF_FILE_NAME): Define.

        * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
        (EH_FRAME_SECTION_ASM_OP): Define.
        (IDENT_ASM_OP): Define.
        (TEXT_SECTION_ASM_OP): Define.
        (CPP_SPEC): Define.
        (CTORS_SECTION_ASM_OP): Define.
        (CTOR_SECTION_FUNCTION): Use it.
        (DTORS_SECTION_ASM_OP): Define.
        (DTOR_SECTION_FUNCTION): Use it.

From-SVN: r32028
2000-02-16 21:39:11 -07:00
Zack Weinberg
3a6cc97884 reg-stack.c (emit_swap_insn): Do not put a new insn before a NOTE_BASIC_BLOCK.
* reg-stack.c (emit_swap_insn): Do not put a new insn before a
	NOTE_BASIC_BLOCK.

From-SVN: r32027
2000-02-17 04:34:02 +00:00
Denis Chertykov
d48120fec7 configure.in: Add support for avr target.
* configure.in: Add support for avr target.
        * configure: Rebuilt.

From-SVN: r32026
2000-02-16 21:29:27 -07:00
Zack Weinberg
33ae9bdf30 Makefile.in (PARSE_C, [...]): Move dependencies on lex.c, lex.h, and PARSE_H to...
* Makefile.in (PARSE_C, PARSE_SCAN_C): Move dependencies on
	lex.c, lex.h, and PARSE_H to...
	(parse.o, parse-scan.o): ...here, respectively.

	* lex.c: Split out code that may trigger SIGFPE from yylex()
	to its own function.
	* lex.h (JAVA_FLOAT_RANGE_ERROR): Don't set value.

From-SVN: r32025
2000-02-17 04:19:34 +00:00
Zack Weinberg
b7ba4d8dfa flow.c (dump_regset, [...]): New functions.
* flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
	debug_bb_n): New functions.
	(dump_flow_info, print_rtl_with_bb): Use dump_regset.
	* basic-block.h: Prototype new functions.

From-SVN: r32024
2000-02-17 04:16:40 +00:00
Jeff Law
807d0a32ab Add Denis as maintainer for avr port.
From-SVN: r32023
2000-02-16 21:09:32 -07:00
Denis Chertykov
052a4b28ca invoke.texi: Add AVR invocation docs.
* invoke.texi: Add AVR invocation docs.
        * install.texi: Add information about AVR.
        * md.texi: Add AVR constraint letters description.
        * extend.texi: Add description for AVR specific attributes.

From-SVN: r32022
2000-02-16 21:09:21 -07:00
Tom Tromey
5ef57049f9 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
From-SVN: r32021
2000-02-17 00:54:34 +00:00
Tom Tromey
c082d01fa9 calls.c: New file.
* libjava.jni/calls.c: New file.
	* libjava.jni/calls.out: New file.
	* libjava.jni/calls.java: New file.

From-SVN: r32020
2000-02-17 00:49:27 +00:00
Jason Merrill
980be18f76 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
From-SVN: r32019
2000-02-16 19:32:50 -05:00
Mark Mitchell
4f1c5b7dbf Make DECL_CONTEXT mean the class in which a member function was declared, even for a virtual function.
Make DECL_CONTEXT mean the class in which a member function was
	declared, even for a virtual function.
	* cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
	(DECL_FRIEND_CONTEXT): New macro.
	(DECL_REAL_CONTEXT): Remove.
	(SET_DECL_FRIEND_CONTEXT): Likewise.
	(DECL_VIRTUAL_CONTEXT): Adjust.
	(DECL_CLASS_SCOPE_P): Use TYPE_P.
	(add_friends): Remove.
	(hack_decl_function_context): Likewise.
	* call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
	CP_DECL_CONTEXT.
	(build_over_call): Fix indentation.  Use DECL_CONTEXT
	instead of DECL_CLASS_CONTEXT.
	* class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
	(add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
	(strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
	(build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
	(build_base_field): Likewise.
	(finish_struct_1): Likewise.
	(build_self_reference): Likewise.
	* decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	(pushtag): Use decl_function_context, not
	hack_decl_function_context.
	(decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
	(duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
	(pushdecl): Remove bogus code.
	(start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
	(cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
	(grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
	Use decl_function_context, nothack_decl_function_context.
	(grokvardecl): Don't set DECL_CLASS_CONTEXT.
	(grokdeclarator): Likewise.  Use decl_function_context, not
	hack_decl_function_context.
	(copy_args_p): Document.  Don't use DECL_CLASS_CONTEXT.
	(start_function): Use DECL_FRIEND_CONTEXT, not
	DECL_CLASS_CONTEXT.  Use decl_function_context, not
	hack_decl_function_context.
	(finish_function): Use decl_function_context, not
	hack_decl_function_context.
	(maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	(grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
	(finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
	(grokfield): Likewise.
	(finish_builtin_type): Likewise.
	(finish_vtable_vardec): Use decl_function_context, not
	hack_decl_function_context.
	(import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
	(start_static_initialization_or_destruction): Likewise.
	(finish_static_initialization_or_destruction): Likewise.
	(mark_used): Adjust logic for deciding when to synthesize methods.
	* dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	* error.c (dump_function_decl): Use DECL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	* friend.c (is_friend): Likewise.
	(add_friends): Remove.
	(do_friend): Use SET_DECL_FRIEND_CONTEXT.
	* lex.c (begin_definition_of_inclass_inline): Use
	decl_function_context, not hack_decl_function_context.
	(process_next_inline): Likewise.
	(do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
	* method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
	DECL_CLASSS_CONTEXT.
	(hack_identifier): Likewise.
	(synthesize_method):  Use decl_function_context, not
	hack_decl_function_context.
	* pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	(is_member_template): Use decl_function_context, not
	hack_decl_function_context.  Use DECL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	(build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	(check_default_tmpl_args): Use CP_DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	(push_template_decl_real): Likewise.
	(instantiate_class_template): Don't call add_friends.
	(tsubst_default_argument): Use DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	(tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
	Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
	(set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	* repo.c (repo_inline_used): Likewise.
	* search.c (current_scope): Adjust for new _CONTEXT macros.
	(context_for_name_lookup): Use CP_DECL_CONTEXT, not
	DECL_REAL_CONTEXT.
	(friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
	(lookup_fnfields_here):Likewise.
	(check_final_overrider): Likewise.
	(init_vbase_pointers): Likewise.
	(virtual_context): Likewise.
	* semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
	(expand_body): Use decl_function_context, not
	hack_decl_function_context.
	* tree.c (hack_decl_function_context): Remove.
	* typeck.c (build_x_function_call): Use DECL_CONTEXT, not
	DECL_CLASS_CONTEXT.
	* typeck2.c (error_not_base_type): Likewise.

From-SVN: r32018
2000-02-16 23:54:23 +00:00
Tom Tromey
1adbc4d8be jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
* jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
	(_Jv_JNI_NewObject): Likewise.
	(_Jv_JNI_NewObjectA): Likewise.
	(_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
	as "return" type to _Jv_CallAnyMethodA.
	(_Jv_JNI_CallAnyMethodA): Likewise.
	(_Jv_JNI_CallAnyVoidMethodV): Likewise.

From-SVN: r32017
2000-02-16 22:42:41 +00:00
Tom Tromey
5b0d59b4e7 throwit.java: New file.
* libjava.jni/throwit.java: New file.
	* libjava.jni/throwit.c: New file.
	* libjava.jni/throwit.out: New file.

From-SVN: r32016
2000-02-16 22:39:36 +00:00
Jason Merrill
b32369e675 * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
From-SVN: r32015
2000-02-16 16:11:08 -05:00
Franz Sirl
7a15eef574 config.guess: Synchronize with master repository.
* config.guess: Synchronize with master repository.
	* config.sub: Likewise.

From-SVN: r32014
2000-02-16 18:48:36 +00:00
Tom Tromey
d77a164002 jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass.
* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
	findClass.

From-SVN: r32013
2000-02-16 18:42:48 +00:00
Tom Tromey
5bdd3ac1ea findclass.java: New file
* libjava.jni/findclass.java: New file
	* libjava.jni/findclass.c: New file
	* libjava.jni/findclass.out: New file

From-SVN: r32012
2000-02-16 18:41:28 +00:00
Tom Tromey
04297fe74f findclass.java: New file
* libjava.jni/findclass.java: New file
	* libjava.jni/findclass.c: New file
	* libjava.jni/findclass.out: New file

From-SVN: r32011
2000-02-16 18:35:05 +00:00
Nick Clifton
4798472070 Move RTL checking code into make_insn_raw
From-SVN: r32010
2000-02-16 17:56:21 +00:00
Kaveh R. Ghazi
4746ee266f configure (gcc_version): When setting, narrow search to lines containing `version_string'.
* configure (gcc_version): When setting, narrow search to
	lines containing `version_string'.

gcc:
	* version.c: Include gansidecl.h and version.h.

	* version.h: Wrap entire file in macro __GCC_VERSION_H__.

	* configure.in (gcc_version): When setting, narrow search to
	lines containing `version_string'.

	* Makefile.in (mainversion): Likewise.
	(GCC_H): New variable.
	(gcc.h): Delete target.
	(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
	(version.o): Depend on version.h.
	(dbxout.o): Don't depend on gcc.h.

gcc/cp:
	* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.

gcc/f:
	* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.

gcc/java:
	* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.

libf2c:
	* configure.in (gcc_version): When setting, narrow search to
	lines containing `version_string'.

From-SVN: r32009
2000-02-16 16:22:47 +00:00
Hans-Peter Nilsson
88a56c2eb1 md.texi (Simple Constraints): Add item about whitespace.
* md.texi (Simple Constraints): Add item about whitespace.
	* genoutput.c (strip_whitespace): New.
	(scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
	strip_whitespace for constraints.
	Test pointer using NULL, not 0.

Co-Authored-By: Michael Meissner <meissner@cygnus.com>

From-SVN: r32008
2000-02-16 14:44:19 +00:00
Jeff Law
1efa676d95 Daily bump.
From-SVN: r32007
2000-02-16 01:45:07 -07:00
Alexandre Oliva
7113a160d8 * cpplib.c (do_line): Pedwarn for #line > 32767.
From-SVN: r32006
2000-02-16 08:43:57 +00:00
Alexandre Oliva
4082292ada * c-lex.c (readescape): Warn about 'x', but do not reject it.
From-SVN: r32005
2000-02-16 08:40:32 +00:00
Jonathan Larmour
3ea8083fc9 Jonathan Larmour <jlarmour@redhat.co.uk>:
Add new __GNUC_PATCHLEVEL__ define.

From-SVN: r32004
2000-02-15 23:54:53 -08:00
Denis Chertykov
ba96c72d6b * config.sub: Add support for avr target.
From-SVN: r32003
2000-02-15 22:57:09 -08:00
Denis Chertykov
ed4acb3bcf * configure.in: Add support for avr target.
From-SVN: r32002
2000-02-15 22:56:08 -08:00
Bryce McKinlay
432ba90f48 InterfaceDispatch.java: New file.
2000-02-16  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.lang/InterfaceDispatch.java: New file.
        * libjava.lang/InterfaceDispatch.out: New file.

From-SVN: r32001
2000-02-16 05:13:46 +00:00
J"orn Rennecke
c284306145 sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
* sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
	(sh_addr_diff_vec_mode): Don't declare.
	* sh.c (sh_addr_diff_vec_mode): Delete.

From-SVN: r32000
2000-02-16 03:23:40 +00:00
Gabriel Dos Reis
7e05b7aec4 decl2.c (lang_decode_option): Enable automatic line wrapping.
2000-01-16  Gabriel Dos Reis  <gdr@codesourcery.com>

        * decl2.c (lang_decode_option): Enable automatic line wrapping.

From-SVN: r31999
2000-02-16 01:38:11 +00:00
J"orn Rennecke
22d05f6030 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
From-SVN: r31998
2000-02-16 01:29:42 +00:00
J"orn Rennecke
a512fa978e sh.md (udivsi3_i1, [...]): Name.
* sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
	(smulsi3_highpart_i): Name.
	(udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
	(divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
	(smulsi3_highpart, umulsi3_highpart): Likewise.

	(mulsidi3_i, umulsidi3_i): Make rtl describe operation
	correctly independent of endianness.
	(mulsidi3, umulsidi3): Now define_insn.  Hide details that
	confuse the optimizers.
	(mulsidi3+1, umulsidi3+1): New define_split.

From-SVN: r31997
2000-02-16 00:59:17 +00:00