Commit Graph

34694 Commits

Author SHA1 Message Date
Alexandre Petit-Bianco
b8136a1632 instinit2.out: Fixed.
2001-03-29  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* libjava.lang/instinit2.out: Fixed.

(http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html)

From-SVN: r41132
2001-04-05 16:07:30 -07:00
Alexandre Petit-Bianco
73c299fc22 re PR java/1315 (Inner class initializer crash)
2001-04-04  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* java-tree.h (struct lang_decl): New macro
	`DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.'
	* parse.y (build_instance_initializer): New function.
	(add_instance_initializer): Use it.
	(java_fix_constructors): Set `current_class' before fix pass.
	(fix_constructors): Just return if already fixed. Move `super()'
	invokation ahead. Use `build_instance_initializer.'
	Fixes PR java/1315.

(http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html)

From-SVN: r41129
2001-04-05 15:59:12 -07:00
Phil Edwards
864e133c3c run_doxygen: Check for the existence of Doxygen.
2001-04-05  Phil Edwards  <pme@sources.redhat.com>

	* docs/doxygen/run_doxygen:  Check for the existence of Doxygen.

From-SVN: r41128
2001-04-05 21:09:24 +00:00
DJ Delorie
c39ada0455 function.h (virtuals_instantiated): Declare.
* function.h (virtuals_instantiated): Declare.
* function.c: (virtuals_instantiated): Make global.
* calls.c (emit_library_call_value_1): Use
virtual_outgoing_args_rtx only if it hasn't been instantiated.
Otherwise, use the stack pointer directly.

From-SVN: r41127
2001-04-05 16:13:53 -04:00
Alexandre Petit-Bianco
93a6eb7802 parse.y (resolve_qualified_expression_name): Pass field's DECL_CONTEXT to `not_accessible_p.'
2001-04-04  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * parse.y (resolve_qualified_expression_name): Pass field's
        DECL_CONTEXT to `not_accessible_p.'
        (not_accessible_p): Changed parameters order in `inherits_from_p'
        invokation.

(http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00326.html)

From-SVN: r41126
2001-04-05 12:45:57 -07:00
Andrew Haley
4956c16e5a lang-options.h: Add flag_check_references.
2001-03-27  Andrew Haley  <aph@cambridge.redhat.com>

        * lang-options.h: Add flag_check_references.

From-SVN: r41124
2001-04-05 18:10:36 +00:00
Jan Hubicka
0ed0862080 i386.c (x86_initialize_trampoline): New global function.
* i386.c (x86_initialize_trampoline): New global function.
	* i386.h (TRAMPOLINE_SIZE): Size is 23 for x86_64.
	(INITIALIZE_TRAMPOLINE): Move offline.
	* i386-protos.h (x86_initialize_trampoline): Declare.

From-SVN: r41123
2001-04-05 17:18:42 +00:00
Jan Hubicka
ac62a60e1f i386.md (movdi_1_rex64): Allow SSE->SSE reg move.
* i386.md (movdi_1_rex64): Allow SSE->SSE reg move.
	(lea_0): Rename to lea_1.
	(lea_1_zext, lea_1_rex64, lea_2_rex64): New patterns.
	(lea_general_?): Allow SImodes on TARGET_64BIT
	(lea_general_?_zext): New patterns.
	(call_1, call_1_rex64): Fix.

From-SVN: r41122
2001-04-05 17:04:29 +00:00
Jan Hubicka
b47b4f214f * i386.c (ix86_split_long_move): Use PUT_MODE instead of change_address.
From-SVN: r41121
2001-04-05 17:01:48 +00:00
Jan Hubicka
32ee7d1d8d i386.c (function_arg): Return constm1_rtx for last argument.
* i386.c (function_arg): Return constm1_rtx for last argument.
	(ix86_expand_prologue): Update gen_call calls.
	* i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
	* i386.md (call_pop): Likewise.
	(call): Second operand is VOIDmode.
	(call_0): Likewise; Support 64bits.
	(call_exp): New expander.
	(call_1): Get to the sync.
	(call_1_exp): New pattern.
	(call_value): Support 64bit.
	(call_value_exp): New pattern.
	(untyped_call): Update gen_call call.
	(call_value_pop): Disable for 64bit.
	(call_value_0_rex64): New pattern.
	(call_value_1_rex64): Likewise.

From-SVN: r41120
2001-04-05 16:28:44 +00:00
Bo Thorsen
60e589efa8 Update.
From-SVN: r41119
2001-04-05 18:12:25 +02:00
Bo Thorsen
1e1980d3f3 i386.md: Don't allow "builtin_setjmp_receiver" for TARGET_64BIT.
2001-04-05  Bo Thorsen  <bo@suse.de>

	* i386.md: Don't allow "builtin_setjmp_receiver" for TARGET_64BIT.

From-SVN: r41118
2001-04-05 18:12:10 +02:00
J"orn Rennecke
0b4c1646f3 search.c (get_dynamic_cast_base_type): When building a new constant, set its type to ssizetype.
* search.c (get_dynamic_cast_base_type): When building a new
	constant, set its type to ssizetype.

From-SVN: r41117
2001-04-05 16:57:35 +01:00
Tom Tromey
cb77742606 * libtool-version: Updated current.
From-SVN: r41116
2001-04-05 15:12:41 +00:00
J"orn Rennecke
93b23859cf i386.md (*andsi_1+3): If used after reload, make sure the operand satisfies ANY_QI_REG_P.
* i386.md (*andsi_1+3): If used after reload, make sure the operand
	satisfies ANY_QI_REG_P.

From-SVN: r41114
2001-04-05 13:51:42 +01:00
Bernd Schmidt
1032c35733 PARALLELs can contain ASM_OPERANDS.
From-SVN: r41112
2001-04-05 12:06:36 +00:00
Bernd Schmidt
0c23cca355 Revert more of previous change
From-SVN: r41111
2001-04-05 11:55:22 +00:00
GCC Administrator
5e83864639 Daily bump.
From-SVN: r41108
2001-04-05 07:16:13 +00:00
Zack Weinberg
4dc0535b80 config.gcc: Remove default for xm_file.
* config.gcc: Remove default for xm_file.  Clean up local
	machine type handling.  Remove settings of xm_file to
	something that doesn't exist.  In the big switch, set xm_file,
	don't append to it (the value before the big switch is always
	null).  Don't force build_xm_file or host_xm_file to have a value.
	* configure.in: Remove default for xm_file.  Do not special
	case $cpu/xm-$cpu.h not existing.
	* configure: Regenerate.

From-SVN: r41106
2001-04-05 04:34:24 +00:00
Diego Novillo
b083557832 simplify-rtx.c (simplify_binary_operation): Check for overflow when folding integer division and modulo operations.
2001-04-04  Diego Novillo  <dnovillo@redhat.com>

	* simplify-rtx.c (simplify_binary_operation): Check for overflow
	when folding integer division and modulo operations.

2001-04-04  Diego Novillo  <dnovillo@redhat.com>

	* gcc.c-torture/compile/20010404-1.c: New test.

From-SVN: r41105
2001-04-04 22:27:47 -04:00
Andrew MacLeod
12f0b96b84 dwarf2out.c (output_cfi): Add 'for_eh' parameter, use PTR_SIZE instead of DWARF2_ADDR_SIZE for EH addresses.
2001-04-04  Andrew MacLeod  <amacleod@redhat.com>

	* dwarf2out.c (output_cfi): Add 'for_eh' parameter, use PTR_SIZE
	instead of DWARF2_ADDR_SIZE for EH addresses.
	(output_call_frame_info): Use PTR_SIZE instead of DWARF2_ADDR_SIZE for
	EH addresses.

From-SVN: r41104
2001-04-05 01:43:17 +00:00
Hans Boehm
41029b884a finalize.c: - Accomodate finalization requests for static objects.
2001-04-04  Hans Boehm  <hans_boehm@hp.com>

	* finalize.c:
	- Accomodate finalization requests for static objects.
	  (Will be required by hash synchronization.  May be needed
	  in some configurations now.)

	* gc_priv.h:
	- Define MIN_WORDS.  All allocation requests are rounded
	  up to at least this size.  Removes a subtle assumption that
	  Java objects have a 2 word header.

	* gcconfig.h:
	- Adjust Linux/IA64 configuration for non-ancient kernels.
	  (Necessary fix for IA64.)

	* linux_threads.c:
	- Fix syntax error in currently unused code.  Will be needed
	  for Linux/PA-RISC.

	* malloc.c:
	- Handle MIN_WORDS.

	* misc.c:
	- Handle MIN_WORDS.
	- Change stack cleaning code to typically clear about one tenth
	  the memory it used to in the threads configuration.  Occasionally
	  still clear more.  (This is really a fix for a long-standing
	  and fairly significant performance bug with threads.)

	* os_dep.c:
	- Fix the code for finding the beginning of the data segment under
	  Linux.  I believe this is necessary for some IA64 Linux
	  distributions.  It will also helo other platforms, though those
	  may additionally require a gcconfig.h adjustment.  (This basically
	  works around the absence of a data_start or __data_start
	  definition in glibc.)

	* test.c:
	- Handle rounding due to MIN_WORDS.

From-SVN: r41102
2001-04-05 00:14:18 +00:00
Andreas Jaeger
48f9396dd6 Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2001-04-04  Andreas Jaeger  <aj@suse.de>

	* gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
	* gcj/Makefile.in: Rebuilt.
	* Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
	* Makefile.in: Rebuilt.
	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
	* testsuite/Makefile.in: Rebuild.
	* include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
	* include/Makefile.in: Rebuild.

From-SVN: r41100
2001-04-04 23:38:53 +00:00
Phil Edwards
c89b3a7d4b user.cfg.in: Extract all non-private members; reduce confusing documentation output.
2001-04-04  Phil Edwards  <pme@sources.redhat.com>

	* docs/doxygen/user.cfg.in:  Extract all non-private members;
	  reduce confusing documentation output.

From-SVN: r41097
2001-04-04 22:20:52 +00:00
Richard Henderson
1b4356ed8b ia64.h (IA64_UNWIND_INFO): Disable.
* config/ia64/ia64.h (IA64_UNWIND_INFO): Disable.
        * config/ia64/t-glibc (LIB2ADDEH): Disable.
        * config/ia64/t-ia64 (LIB2ADDEH): Disable.

From-SVN: r41096
2001-04-04 14:24:20 -07:00
Richard Henderson
3d399d67c4 configure.in (gcc_cv_as_leb128): Escape ".".
* configure.in (gcc_cv_as_leb128): Escape ".".
        * configure: Rebuilt.

From-SVN: r41095
2001-04-04 14:18:09 -07:00
Per Bothner
3cc48399b8 java-tree.h (CONSTANT_VALUE_P): New macro.
* java-tree.h (CONSTANT_VALUE_P):  New macro.
	* jcf-write.c (generate_classfile):  Use CONSTANT_VALUE_P.
	* parse.y (maybe_build_class_init_for_field):  New static function.
	(resolve_expression_name, resolve_field_access):  Use
	maybe_build_class_init_for_field instead of build_class_init
	This does not do the init if the field is compile-time-constant.
	(resolve_field_access):  Simplify.

	* parse.y (fold_constant_for_init):  Merge test into switch.

From-SVN: r41094
2001-04-04 13:56:01 -07:00
Jakub Jelinek
8e184d9cc1 gcse.c (delete_null_pointer_checks_1): Add delete_list argument, push insns to delete to it instead of deleting them.
* gcse.c (delete_null_pointer_checks_1): Add delete_list argument,
	push insns to delete to it instead of deleting them.
	(delete_null_pointer_checks): Delete insns from delete_list after
	all delete_null_pointer_checks_1 passes are done.

From-SVN: r41092
2001-04-04 22:19:23 +02:00
Geoffrey Keating
75da53c9ee * include/backward/fstream.h: Add missing semicolons.
From-SVN: r41090
2001-04-04 18:04:52 +00:00
Alexandre Petit-Bianco
de307574bf re PR java/1074 (jv-scan fails on ArrayClass.java)
2001-03-30  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse-scan.y (array_type:): Rewritten.
	(type_declaration:): `empty_statement' replaces `SC_TK.'
	(class_member_declaration:): `empty statement' added.
	(method_body:): Simplified.
	(static_initializer:): Likewise.
	(primary_no_new_array:): Use `type_literals.'
	(type_literals:): New rule.
	(dims:): Set and update `bracket_count.'
	Fixes PR java/1074. Fixes PR java/2412.

(http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00835.html,
 http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00384.html,
 http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00258.html)

From-SVN: r41089
2001-04-04 10:56:25 -07:00
Richard Henderson
dd7fc59c36 configure.in (gcc_cv_as_leb128): Tweek minor number extraction.
* configure.in (gcc_cv_as_leb128): Tweek minor number extraction.
        * configure: Rebuilt.

From-SVN: r41087
2001-04-04 09:48:58 -07:00
Zack Weinberg
c3fa1afd75 expr.h: Remove #ifdef FUNCTION_CONVERSION_BUG logic.
* expr.h: Remove #ifdef FUNCTION_CONVERSION_BUG logic.
	* config/romp/xm-romp.h: Delete.
	* po/POTFILES.in: Remove config/romp/xm-romp.h.

From-SVN: r41086
2001-04-04 16:15:24 +00:00
Bernd Schmidt
79ba58ef68 Partially revert previous change
From-SVN: r41085
2001-04-04 15:56:36 +00:00
Herman A.J. ten Brugge
e5bef2e400 When splitting insns, properly update label usage counts
From-SVN: r41084
2001-04-04 15:42:04 +00:00
Jakub Jelinek
347f344069 recog.c (validate_replace_rtx_1): Instead of aborting just make sure the change won't be validated.
* recog.c (validate_replace_rtx_1): Instead of aborting just make
	sure the change won't be validated.

	* gcc.c-torture/compile/20010326-1.c: New test.

From-SVN: r41083
2001-04-04 17:14:24 +02:00
Jakub Jelinek
e59d6709ee optimize.c (expand_call_inline): Only add newly inlined statements into inlined_stmts.
* optimize.c (expand_call_inline): Only add newly inlined statements
	into inlined_stmts.

From-SVN: r41081
2001-04-04 17:08:54 +02:00
GCC Administrator
e33427fa6d Daily bump.
From-SVN: r41079
2001-04-04 07:16:42 +00:00
John Wehle
7142e31845 rtl.h (set_noop_p): Declare.
* rtl.h (set_noop_p): Declare.
	* flow.c (set_noop_p): Move from here ...
	* rtlanal.c (set_noop_p): ... to here and enhance.
	* cse.c (delete_trivially_dead_insns): Use it.
	* gcse.c (hash_scan_set): Likewise.
	* jump.c (delete_noop_moves): Likewise.
	* recog.c (split_all_insns): Likewise.

From-SVN: r41077
2001-04-04 05:03:29 +00:00
Mark Mitchell
0c918ce59c cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
* cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
	(OPERATOR_FORMAT): Likewise.
	(OPERATOR_TYPENAME_FORMAT): Likewise.
	* operators.def: Remove old name-mangling information.
	* decl.c (grok_op_properties): Adjust accordingly.
	* lex.c (init_operators): Likewise.
	* rtti.c (get_tinfo_decl): Issue error messages about types that
	have variable size.

From-SVN: r41076
2001-04-04 04:45:23 +00:00
Alan Modra
19ec6a367c DWARF2 frame notes for hppa.
* dwarf2out.c (dwarf2out_frame_debug_expr): Support adjusting
	stack pointer via a LO_SUM.  Ditto for setting a temp register
	used to save to the stack.  Set cfa_temp when setting fp, and
	allow matches to cfa_temp in addition to cfa_store when saving
	regs.  Handle POST_INC and LO_SUM register stores.  Document the
	changes and errors in rule 12 doco.

	* pa.c (set_reg_plus_d, store_reg, load_reg): Return last insn.
	(actual_fsize, local_fsize, save_fregs): Move for store_reg to see.
	(load_reg): Move closer to epilogue code.
	(DO_FRAME_NOTES): Define to control the following..
	(FRP): Define to set RTX_FRAME_RELATED_P on insns.
	(hppa_expand_prologue): Use FRP and REG_FRAME_RELATED_EXPR
	notes as necessary.
	(hppa_expand_epilogue): Likewise.

From-SVN: r41074
2001-04-04 12:43:54 +09:30
Richard Henderson
78e766a0e1 configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
* configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
        * configure: Rebuild.

From-SVN: r41073
2001-04-03 19:06:24 -07:00
Benjamin Kosnik
127644626f fstream.tcc: Add bool parameter to filebuf ctor.
2001-04-03  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/fstream.tcc: Add bool parameter to filebuf ctor.
	* include/bits/ios_base.h(ios_base::Init): Remove _M_cout, _M_cin,
	_M_cerr, _M_wcout, _M_wcin, _M_wcerr.
	(ios_base::Init::_S_ios_create): New.
	(ios_base::Init::_S_ios_destroy): New.
	* include/bits/std_fstream.h: Change ctor args.
	* src/ios.cc (ios_base::Init::Init): Use _S_ios_create.
	(ios_base::Init::~Init): Use _S_ios_destroy.
	(ios_base::sync_with_stdio): Use new members.
	* testsuite/27_io/filebuf_members.cc: Fix calling conventions for
	filebuf ctor.

From-SVN: r41072
2001-04-04 01:02:26 +00:00
Zack Weinberg
56713d55f7 POTFILES.in: Remove all the files deleted by the xm-host.h purge...
* POTFILES.in: Remove all the files deleted by the xm-host.h
	purge, also frame.c, frame-dwarf2.c, and gansidecl.h.

From-SVN: r41071
2001-04-04 00:57:39 +00:00
Richard Henderson
9555a12236 rtl.h (LCT_THROW): New.
* rtl.h (LCT_THROW): New.
        * calls.c (emit_library_call_value_1): Handle it.
        * except.c (connect_post_landing_pads): Use it.

From-SVN: r41070
2001-04-03 17:48:51 -07:00
Zack Weinberg
d02af17340 ansidecl.h: All logic from gcc/gansidecl.h moved here.
include:
	* ansidecl.h: All logic from gcc/gansidecl.h moved here.
gcc:
	* gansidecl.h: Delete file.
	* configure.in: Change all refs to gansidecl.h to use
	ansidecl.h.  Adjust *_file_list so they know where ansidecl.h
	lives.
	* configure: Regenerate.

	* Makefile.in (intl.o): Don't depend on gansidecl.h.
	* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
	* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
	Don't include gansidecl.h.
	* intl.c, main.c, version.c, fixinc/fixlib.h,
	fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
	gansidecl.h.
gcc/java:
	* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
	on gansidecl.h.
	* buffer.c, jvgenmain.c: Don't include gansidecl.h.
libiberty:
	* make-temp-file.c (try): Inline.

From-SVN: r41069
2001-04-04 00:46:27 +00:00
Mark Mitchell
92788413ad decl2.c (import_export_decl): Don't call import_export_class when processing an inline member function.
* decl2.c (import_export_decl): Don't call import_export_class
	when processing an inline member function.
	* semantics.c (expand_body): Call import_export_decl before
	emitting inline functions.

From-SVN: r41066
2001-04-03 23:37:53 +00:00
Peter Schmid
cf54a76769 fstream.h: Expose streampos to global namespace.
2001-04-03  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

        * include/backward/fstream.h:  Expose streampos to global
          namespace.

From-SVN: r41064
2001-04-03 21:02:43 +00:00
Peter Schmid
aa53cb52eb stl_iterator_base_types.h: Fix typo
2001-04-03  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* include/bits/stl_iterator_base_types.h: Fix typo

From-SVN: r41063
2001-04-03 20:40:26 +00:00
Jan Hubicka
898d374de9 i386.c (ix86_force_to_memory, [...]): Update for 64bit.
* i386.c (ix86_force_to_memory, ix86_free_from_memory):
	Update for 64bit.

From-SVN: r41062
2001-04-03 17:44:45 +00:00
Zack Weinberg
547a559d01 xm-beos.h, [...]: Delete.
* config/i386/xm-beos.h, config/i386/xm-isc.h,
	config/i386/xm-next.h, config/i386/xm-sco.h,
	config/i386/xm-sco5.h, config/m68k/xm-plexus.h,
	config/m88k/xm-m88k.h: Delete.

	* config/i386/xm-djgpp.h: Don't define __MSDOS__.
	* config/romp/xm-romp.h: Don't define bcopy.
	* config/rs6000/xm-beos.h: Don't define bcopy, HAVE_VPRINTF,
	HAVE_PUTENV, HAVE_RENAME, or USE_C_ALLOCA.

	* config.gcc: Remove references to deleted files.

From-SVN: r41061
2001-04-03 17:38:23 +00:00