Commit Graph

34557 Commits

Author SHA1 Message Date
J"orn Rennecke
608d74c49d 20001203-2.c (main): Count argument is of type __SIZE_TYPE__.
* gcc.c-torture/execute/20001203-2.c (main):
	Count argument is of type __SIZE_TYPE__.

From-SVN: r41153
2001-04-06 15:37:56 +01:00
Benjamin Kosnik
8f946b6e2f backward_warning.h: Temporarily disable until g++ testsuite changes go in.
2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>

	* include/backward/backward_warning.h: Temporarily disable until
	g++ testsuite changes go in.
	* tests_flags.in (CROSS_LIB_PATH): Add.

From-SVN: r41149
2001-04-06 08:00:55 +00:00
Neil Booth
f9200da26d configure.in: Add check for lstat.
* configure.in: Add check for lstat.
	* configure, config.in: Regenerate.
	* cppinit.c (append_include_chain): Make empty path ".".
        * cpplib.c (do_line): Don't simplify #line paths.
        * cppfiles.c (remove_component_p): New function.
	(find_or_create_entry): Acknowledge stat () errors during
	path simplification.
	(handle_missing_header): Don't simplify paths.
        (_cpp_simplify_pathname): Don't simplify VMS paths.  Return
        the empty path untouched.  Don't leave a trailing '/'.

From-SVN: r41148
2001-04-06 07:22:01 +00:00
GCC Administrator
0bda3da7ab Daily bump.
From-SVN: r41146
2001-04-06 07:16:12 +00:00
Alexandre Oliva
d2bc06280b config.sub: Make sure to match an already-canonicalized machine name (eg.
2001-04-05  Alexandre Oliva  <aoliva@redhat.com>

        * config.sub: Make sure to match an already-canonicalized
        machine name (eg. mn10300-unknown-elf).

From-SVN: r41145
2001-04-06 07:06:32 +00:00
Mark Mitchell
79065db2d1 cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
* cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
	* decl.c (duplicate_decls): Adjust accordingly.
	(maybe_commonize_var): Likewise.
	(grokfndecl): Likewise.
	(start_function): Likewise.
	(start_method): Likewise.
	* decl2.c (key_method): Likewise.
	(import_export_decl): Likewise.
	* method.c (implicitly_declare_fn): Likewise.
	* optimize.c (maybe_clone_body): Likewise.

From-SVN: r41144
2001-04-06 06:33:07 +00:00
Benjamin Kosnik
b03eced6f6 lang-specs.h: Add __DEPRECATED.
2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>

	* lang-specs.h: Add __DEPRECATED.

From-SVN: r41142
2001-04-06 06:17:33 +00:00
Benjamin Kosnik
fdecbf8ab8 lang-specs.h: Add __GXX_DEPRECATED.
2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>

	* lang-specs.h: Add __GXX_DEPRECATED.

From-SVN: r41141
2001-04-06 06:16:38 +00:00
Benjamin Kosnik
98c2359b28 cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add.
2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>

	* cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add.
	* Makefile.in (-DGPLUSPLUS_BACKWARD_INCLUDE_DIR): Add.

From-SVN: r41140
2001-04-06 06:13:27 +00:00
Benjamin Kosnik
baac9fce7d Warn when using backward headers.
2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>

	Warn when using backward headers.
	* include/backward/algo.h: Include warning file.
	* include/backward/vector.h: Same.
	* include/backward/tree.h: Same.
	* include/backward/tempbuf.h: Same.
	* include/backward/strstream: Same.
	* include/backward/streambuf.h: Same.
	* include/backward/stream.h: Same.
	* include/backward/stack.h: Same.
	* include/backward/slist.h: Same.
	* include/backward/set.h: Same.
	* include/backward/rope.h:
	* include/backward/queue.h: Same.
	* include/backward/pair.h: Same.
	* include/backward/ostream.h: Same.
	* include/backward/new.h: Same.
	* include/backward/multiset.h: Same.
	* include/backward/multimap.h: Same.
	* include/backward/map.h: Same.
	* include/backward/list.h: Same.
	* include/backward/iterator.h: Same.
	* include/backward/istream.h: Same.
	* include/backward/iostream.h:
	* include/backward/iomanip.h:
	* include/backward/heap.h: Same.
	* include/backward/hashtable.h:
	* include/backward/hash_set.h:
	* include/backward/hash_map.h:
	* include/backward/function.h:
	* include/backward/fstream.h:
	* include/backward/deque.h:
	* include/backward/defalloc.h: Same.
	* include/backward/complex.h: Same.
	* include/backward/bvector.h:
	* include/backward/alloc.h:
	* include/backward/algobase.h: Same.

	* include/backward/backward_warning.h: New file.
	* src/Makefile.am (backward_headers): Add backward_warning.h
	* src/Makefile.in: Regenerate.

2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (myinstalldirs): Make sure backward directory is
	created.
	(myinstallheaders): Install backward headers in backward directory.
	* src/Makefile.in: Regenerate.

From-SVN: r41139
2001-04-06 06:08:17 +00:00
Neil Booth
7c0927142c cppfiles.c (open_file): Fail directories silently, but with an errno of NOENT set.
* cppfiles.c (open_file): Fail directories silently, but
	with an errno of NOENT set.
	(read_include_file): Move the common exit code to the sole
	caller.  Return an int indicating success or failure.  Let
	open_file handle directories.
	(stack_include_file): If read_include_file fails,
	push a "null" buffer.

From-SVN: r41138
2001-04-06 05:21:36 +00:00
Benjamin Kosnik
8d66b99ac2 Prepare for libstdc++-2.92.
2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>

	Prepare for libstdc++-2.92.
	* docs/html/17_intro/RELEASE-NOTES (New): Update.
	* docs/html/configopts.html: Fix formatting.
	* README (file): Updates.
	* include/bits/c++config (__GLIBCPP__): Update.

From-SVN: r41136
2001-04-06 01:47:11 +00:00
Alexandre Petit-Bianco
8b66cd8f57 gcj.texi: Use which-gcj' instead of which-g77.'
2001-04-05  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* gcj.texi: Use `which-gcj' instead of `which-g77.'
	(version-gcc): Initialized.
	(which-gcj): Likewise.

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

From-SVN: r41133
2001-04-05 16:22:25 -07:00
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