Commit Graph

34949 Commits

Author SHA1 Message Date
Mark Mitchell
c826ae2175 integrate.h (struct inline_remap): Add leaf_reg_map table.
* integrate.h (struct inline_remap): Add leaf_reg_map table.
	* integrate.c (expand_inline_function): Use xcalloc to allocate
	memory.
	(copy_rtx_and_substitute): Use the leaf_reg_map for leaf
	registers.

From-SVN: r41791
2001-05-03 16:14:34 +00:00
Joseph Myers
371d5d2ef8 update_web_docs: Don't generate HTML from gxxint.texi.
* update_web_docs: Don't generate HTML from gxxint.texi.  Don't
	run texi2html on manuals that aren't present.

From-SVN: r41789
2001-05-03 16:49:22 +01:00
Mark Mitchell
c64539a845 c-dump.c (dequeue_and_dump): Don't look at DECL_ASSEMBLER_NAME if it is not set.
* c-dump.c (dequeue_and_dump): Don't look at DECL_ASSEMBLER_NAME
	if it is not set.

From-SVN: r41788
2001-05-03 15:41:13 +00:00
Alexandre Oliva
2ea107703b mn10300.h (LINK_SPEC): Pass --relax to the linker if -mrelax is given.
* config/mn10300/mn10300.h (LINK_SPEC): Pass --relax to the
linker if -mrelax is given.
(TARGET_SWITCHES): Document -mrelax.

From-SVN: r41787
2001-05-03 15:19:15 +00:00
Andrew Haley
57458d1c12 libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>

        * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
        * configure.host (EXCEPTIONSPEC): New.
        * configure.in (EXCEPTIONSPEC): New.
        * configure: Rebuilt.

From-SVN: r41786
2001-05-03 12:54:10 +00:00
Alexandre Oliva
4abe9f62d8 Re-installed 2001-01-09's patch:
* hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
if it's wider than long and the target's long is wider than the
host's.

From-SVN: r41785
2001-05-03 11:58:43 +00:00
Nathan Sidwell
5158d7eeb7 dump.c (cp_dump_tree, [...]): New case.
* dump.c (cp_dump_tree, USING_STMT case): New case.
	* tree.c (cp_statement_code_p): Add USING_STMT.
	* decl2.c (do_using_directive): Add the using directive statement.

	* tree.c (walk_tree): Reformat an if block.

From-SVN: r41783
2001-05-03 11:02:26 +00:00
David O'Brien
05de394bf9 config.gcc, [...]: Do not directly include rs6000/rs6000.h.
2001-05-02  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc, config/rs6000/aix51.h, config/rs6000/mach.h:  Do not
	directly include rs6000/rs6000.h.  Instead do it in tm.h.

Approved by:  Geoff Keating <geoffk@geoffk.org>
              Message-ID: <jmae4vtdi0.fsf@geoffk.org>

From-SVN: r41782
2001-05-03 07:56:42 +00:00
GCC Administrator
93280e7d5d Daily bump.
From-SVN: r41780
2001-05-03 07:16:09 +00:00
Bryce McKinlay
e6b952c23f * doc/*.texi: Remove generated documentation.
From-SVN: r41778
2001-05-03 04:01:44 +01:00
Stan Shebs
fa3405045b objc-act.c (STRING_OBJECT_CLASS_NAME): Default to NSConstantString for NeXT-style runtimes.
* objc/objc-act.c (STRING_OBJECT_CLASS_NAME): Default to
        NSConstantString for NeXT-style runtimes.
        (STRING_OBJECT_GLOBAL_NAME): New macro.
        (enum objc_tree_index): Add values OCTI_CNST_STR_GLOB_ID and
        OCTI_STRING_CLASS_DECL.
        (constant_string_global_id): New macro.
        (string_class_decl): Ditto.
        (setup_string_decl): New function.
        (build_objc_string_object): Use it to build a NeXT runtime
        compatible string initializer.

From-SVN: r41776
2001-05-02 21:51:54 +00:00
Jakub Jelinek
de26cf808f catch13.C: New test.
* g++.old-deja/g++.eh/catch13.C: New test.
	* g++.old-deja/g++.eh/catch14.C: New test.

From-SVN: r41774
2001-05-02 23:00:00 +02:00
Jakub Jelinek
2d2a86ae79 tradcpp.c (do_define): Make sure we don't walk past limit.
* tradcpp.c (do_define): Make sure we don't walk past limit.

	* gcc.dg/cpp/tr-define.c: New test.

From-SVN: r41773
2001-05-02 22:50:01 +02:00
Franz Sirl
258bfae2f7 rs6000.c (rs6000_legitimate_address): Allow any stack offsets if not REG_OK_STRICT.
2000-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow any stack
        offsets if not REG_OK_STRICT.

        * config/rs6000/rs6000.h (REG_OK_STRICT_FLAG): New macro.
        (INT_REG_OK_FOR_INDEX_P): Likewise.
        (INT_REG_OK_FOR_BASE_P): Likewise.
        (REG_OK_FOR_INDEX_P): Use INT_REG_OK_FOR_INDEX_P.
        (REG_OK_FOR_BASE_P): Use INT_REG_OK_FOR_BASE_P.
        (LEGITIMATE_OFFSET_ADDRESS_P): Use INT_REG_OK_FOR_INDEX_P and
        INT_REG_OK_FOR_BASE_P instead of REG_OK_FOR_INDEX_P and
        REG_OK_FOR_BASE_P. Take an additional parameter.
        (LEGITIMATE_INDEXED_ADDRESS_P): Likeewise.
        (LEGITIMATE_INDIRECT_ADDRESS_P): Likewise.
        (LEGITIMATE_LO_SUM_ADDRESS_P): Likewise.
        (GO_IF_LEGITIMATE_ADDRESS): Move code into new function
        rs6000_legitimate_address() and use it.
        * config/rs6000/rs6000.c: Update all callers.
        (rs6000_legitimate_address): New function.

From-SVN: r41772
2001-05-02 20:30:19 +00:00
David Edelsohn
d34c5b8062 [multiple changes]
2001-05-02  David Edelsohn  <edelsohn@gnu.org>

	* config/rs6000/rs6000.c (rs6000_emit_move): Merge
	special_constant conditional blocks together.

2001-05-02  Dale Johannesen  <dalej@apple.com>

	* config/rs6000/rs6000.h (RS6000_ARG_SIZE): Remove unused NAMED
	parameter.
	(STRICT_ARGUMENT_NAMING): Define.
	* config/rs6000/rs6000.c (function_arg_advance, function_arg,
	function_arg_partial_nregs, setup_incoming_varargs): Remove
	args logic which depends on "named" now that STRICT_ARGUMENT_NAMING
	is defined.

From-SVN: r41771
2001-05-02 14:21:06 -04:00
Mark Mitchell
80f5bb34eb decl.c (compute_array_index_type): Don't try to do anything with the indices when processing a template.
* decl.c (compute_array_index_type): Don't try to do anything with
	the indices when processing a template.

From-SVN: r41770
2001-05-02 18:04:18 +00:00
Richard Kenner
f1419b4251 * config/i386/i386.h (FUNCTION_BOUNDARY): Result is unsigned.
From-SVN: r41767
2001-05-02 13:37:26 -04:00
Richard Kenner
6349ad241c function.c (fixup_var_regs_1, [...]): Use promoted mode for replacement.
* function.c (fixup_var_regs_1, case SUBREG): Use promoted mode
	for replacement.

From-SVN: r41765
2001-05-02 13:31:19 -04:00
Richard Kenner
2be6a7e902 expr.c (store_field): Do nothing except elaborate side-effects if zero-bit field.
* expr.c (store_field): Do nothing except elaborate side-effects if
	zero-bit field.

From-SVN: r41763
2001-05-02 13:08:19 -04:00
Kaveh R. Ghazi
3e411c3ffd call.c: NULL_PTR -> NULL.
cp:
	* call.c: NULL_PTR -> NULL.
	* class.c: Likewise.
	* cvt.c: Likewise.
	* decl.c: Likewise.
	* decl2.c: Likewise.
	* except.c: Likewise.
	* init.c: Likewise.
	* rtti.c: Likewise.
	* search.c: Likewise.
	* tree.c: Likewise.
	* typeck.c: Likewise.
	* typeck2.c: Likewise.

f:
	* com.c: NULL_PTR -> NULL.

java:
	* decl.c: NULL_PTR -> NULL.
	* jcf-write.c: Likewise.

From-SVN: r41762
2001-05-02 14:38:35 +00:00
Kaveh R. Ghazi
9714cf4399 c-lex.c: NULL_PTR -> NULL.
* c-lex.c: NULL_PTR -> NULL.
	* cse.c: Likewise.
	* emit-rtl.c: Likewise.
	* gcse.c: Likewise.
	* genpeep.c: Likewise.
	* jump.c: Likewise.
	* mips-tdump.c: Likewise.
	* reload1.c: Likewise.
	* rtlanal.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* toplev.c: Likewise.

From-SVN: r41761
2001-05-02 14:31:45 +00:00
Mark Mitchell
46188dcad0 * decl2.c (do_using_directive): Revert previous patch.
From-SVN: r41759
2001-05-02 14:23:08 +02:00
GCC Administrator
552aae17f2 Daily bump.
From-SVN: r41757
2001-05-02 07:16:08 +00:00
Loren J. Rittle
a39a06ff2f cxa_vec.C: Get malloc() from <stdlib.h>, not <malloc.h>.
* g++.old-deja/g++.abi/cxa_vec.C: Get malloc() from
	<stdlib.h>, not <malloc.h>.

From-SVN: r41756
2001-05-02 06:55:39 +00:00
Benjamin Kosnik
a85afd69a3 sbuf_iter.h (istreambuf_iterator): Correct.
2001-05-01  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/sbuf_iter.h (istreambuf_iterator): Correct.
	* testsuite/24_iterators/istreambuf_iterator.cc (test02): Add test.

	* include/bits/std_sstream.h (stringbuf): Leak
	copied string.
	* testsuite/24_iterators/ostreambuf_iterator.cc: Correct.

From-SVN: r41755
2001-05-02 05:50:20 +00:00
Per Bothner
0a5fee3256 expr.c (expand_expr): When compiling LABELED_BLOCK_EXPR...
* expr.c (expand_expr):  When compiling LABELED_BLOCK_EXPR,
	call do_pending_stack_adjust before emiting label.

From-SVN: r41753
2001-05-01 19:04:27 -07:00
Tom Browder
168e83ca6d howto.html: Fix typo.
2001-05-01  Tom Browder  <tbrowder@home.com>

	* docs/html/ext/howto.html:  Fix typo.

From-SVN: r41752
2001-05-02 01:39:03 +00:00
Mark Mitchell
78fb357776 Fix typo
From-SVN: r41750
2001-05-02 00:58:46 +00:00
Mark Mitchell
bd78000b11 * extend.texi: Fix typo.
From-SVN: r41749
2001-05-02 00:52:58 +00:00
Mark Mitchell
bcecb0b06d fdl.texi: New file.
* fdl.texi: New file.
	* objc-features.texi: Simplify.
	* Makefile.in: Adjust accordingly.

From-SVN: r41747
2001-05-02 00:39:01 +00:00
Tom Tromey
0cd015ea9e Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'.
* Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'.
	(java/gcj.dvi): Added $(srcdir) to TEXINPUTS.
	* gcj.texi: Updated copyright text.  Include fdl.texi.
	(Top): Link to new node.

From-SVN: r41743
2001-05-01 22:21:01 +00:00
Per Bothner
6a117d00e3 * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon.
From-SVN: r41741
2001-05-01 15:13:31 -07:00
Per Bothner
063df563bd parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list contains the name, not the TREE_PURPOSE.
* parse.y (java_pop_parser_context):  The TREE_VALUE of a link in the
	import_list contains the name, not the TREE_PURPOSE.

From-SVN: r41739
2001-05-01 15:05:46 -07:00
Jeffrey Oldham
aa32d8f61e gc_priv.h (UNLOCK): Change type of GC_noop1 argument.
2001-05-01  Jeffrey Oldham  <oldham@codesourcery.com>

	* gc_priv.h (UNLOCK): Change type of GC_noop1 argument.
	(GC_noop1): Change declaration to take one argument.

From-SVN: r41738
2001-05-01 21:44:02 +00:00
Stan Shebs
d54d2a054a objc-act.c (build_module_descriptor): Clear DECL_CONTEXT of UOBJC_MODULES_decl.
* objc/objc-act.c (build_module_descriptor): Clear DECL_CONTEXT
        of UOBJC_MODULES_decl.
        (generate_strings): Clear DECL_CONTEXT of new decl nodes.
        (generate_descriptor_table): Ditto.
        (generate_protocols): Ditto.
        (generate_protocol_list): Ditto.
        (generate_classref_translation_entry): Ditto.

From-SVN: r41736
2001-05-01 20:45:55 +00:00
Jeffrey Oldham
1c4c47db18 invoke.texi (Optimize Options): Add documentation for --param max-delay-slot-insn-search' and --param...
2001-05-01  Jeffrey Oldham  <oldham@codesourcery.com>

	* invoke.texi (Optimize Options): Add documentation for `--param
	max-delay-slot-insn-search' and `--param
	max-delay-slot-live-search' and reorder --param section.
	* params.def: Modify initial comment.
	* params.h (param_info): Add `help' member.
	* toplev.c (lang_independent_params): Include `help' description.
	(display_help): Print --param parameters.

From-SVN: r41734
2001-05-01 18:51:06 +00:00
Andrew Haley
e529c2c1c3 libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>

        * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
        * configure.host (EXCEPTIONSPEC): New.
        * configure.in (EXCEPTIONSPEC): New.
        * configure: Rebuilt.

From-SVN: r41733
2001-05-01 17:45:11 +00:00
Zack Weinberg
4e70264f82 config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
2001-05-01  Zack Weinberg  <zackw@stanford.edu>

	* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
	Remove references to deleted files.
	(*-*-openbsd): No need to override xmake_file.
	(*-*-sysv4): Treat like *-*-sysv.

	* configure.in: Probe for ldopen in various places, and set up
	collect2 to be linked with them if found.
	Don't dink with Windows registry stuff unless $host_os is a
	Win32 os name.  Check to see if we need -ladvapi32.
	* configure: Regenerate.

	* Makefile: Get rid of CLIB and HOST_CLIB.
	Substitute in COLLECT2_LIBS and link collect2 against its contents.
	* build-make: Get rid of HOST_CLIB.

	* config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
	config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
	config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
	config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
	config/rs6000/x-rs6000: Delete.

	* config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
	Don't set CLIB.

	24 x-host fragments remain, 0 x-cpu, 3 top level.

2001-05-01  Zack Weinberg  <zackw@stanford.edu>

	* aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
	* configure: Regenerate.

From-SVN: r41732
2001-05-01 17:45:05 +00:00
Gabriel Dos Reis
358c9f4b42 * testsuite/libstdc++.tests/tests.exp: Add comment.
From-SVN: r41730
2001-05-01 17:28:02 +00:00
Angela Marie Thomas
16636d354c * Makefile.in (install-headers): Remove redundant dependency.
From-SVN: r41729
2001-05-01 09:58:40 -07:00
Gabriel Dos Reis
55a0ab4ac6 * testsuite/libstdc++.tests/tests.exp: Set ulimits.
From-SVN: r41727
2001-05-01 15:01:50 +00:00
Nathan Sidwell
07dd196a5c * c-tree.texi (USING_STMT): Document.
From-SVN: r41726
2001-05-01 14:43:17 +00:00
Nathan Sidwell
9da99f7d83 cp-tree.def (USING_STMT): New statement node.
cp:
	* cp-tree.def (USING_STMT): New statement node.
	* cp-tree.h (USING_STMT_NAMESPACE): New macro.
	* decl2.c (do_using_directive): Add USING_STMT to statement
	tree. Don't emit errors when processing template decl.
	* pt.c (tsubst_expr, USING_STMT case): New case.
	* semantics.c (cp_expand_stmt, USING_STMT case): New case.
testsuite:
	* g++.old-deja/g++.ns/template17.C: New test.

From-SVN: r41724
2001-05-01 12:56:12 +00:00
Kaveh R. Ghazi
6496a589df bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".
* bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".
	* c-common.c: Likewise.
	* c-decl.c: Likewise.
	* combine.c: Likewise.
	* rs6000.c: Likewise.
	* except.c: Likewise.
	* explow.c: Likewise.
	* expr.c: Likewise.
	* fold-const.c: Likewise.
	* function.c: Likewise.
	* gcc.c: Likewise.
	* gcse.c: Likewise.
	* integrate.c: Likewise.
	* loop.c: Likewise.
	* objc/objc-act.c: Likewise.
	* recog.c: Likewise.
	* reg-stack.c: Likewise.
	* reload.c: Likewise.
	* reload1.c: Likewise.
	* simplify-rtx.c: Likewise.
	* stmt.c: Likewise.
	* varasm.c: Likewise.

From-SVN: r41722
2001-05-01 12:11:35 +00:00
Nathan Sidwell
4b48a93e89 call.c (build_new_op): Convert args from reference here.
cp:
	* call.c (build_new_op): Convert args from reference here.
	(build_conditional_expr): Don't convert here.
testsuite:
	* g++.old-deja/g++.pt/ref4.C: New test.

From-SVN: r41721
2001-05-01 11:47:49 +00:00
Nathan Sidwell
1bcea8d764 spew.c (last_token_id): New static variable.
cp:
	* spew.c (last_token_id): New static variable.
	(read_token): Set it here.
	(yyerror): Use it here.

From-SVN: r41719
2001-05-01 10:53:09 +00:00
Gabriel Dos Reis
d0e66dbb95 diagnostic.def: New file.
* diagnostic.def: New file.
      * diagnostic.h (diagnostic_t): New enum.
      * Makefile.in (diagnostic.o): Depend on diagnostic.def

From-SVN: r41717
2001-05-01 08:19:45 +00:00
GCC Administrator
048de5ad7c Daily bump.
From-SVN: r41716
2001-05-01 07:16:43 +00:00
Zack Weinberg
34f4f3a551 tsystem.h: Test only POSIX for availability of string.h and time.h.
* tsystem.h: Test only POSIX for availability of string.h
	and time.h.
	* config.gcc (all systems): If USG appeared in xm_defines,
	change it to POSIX.  If both USG and POSIX appeared, just
	delete USG. Remove unnecessary quotes around xm_defines
	settings.
	(m68k-crds-unos*): Don't #define unos - tested nowhere.
	(m68k-apple-aux*): Don't #define AUX - tested nowhere.
	(alpha*-*-linux*ecoff*, powerpc-*-linux*libc1,
	powerpc-*-linux*): No need to set xm_defines - handled by
	global settings for *-*-linux*.

From-SVN: r41714
2001-05-01 03:48:04 +00:00
Zack Weinberg
7719ffbf1d dbxout.c, [...]: Always include gstab.h, not system stab.h.
* dbxout.c, mips-tfile.c, config/mips/mips.c, xcoffout.c:
	Always include gstab.h, not system stab.h.  Don't provide
	default definitions of N_CATCH or N_OPT.  Always use the
	gstab.h variant of STAB_CODE_TYPE.
	* final.c: Don't include stab.h/gstab.h at all, or provide
	defaults for N_SLINE and N_SOL.

	* xcoffout.c: Can assume N_MAIN, N_DSLINE, N_BSLINE, N_BINCL,
	N_EINCL, N_EXCL, N_M2C, N_SCOPE, N_CATCH, and N_OPT are
	available.
	* sdbout.c: Always include gsyms.h instead of system syms.h.

	* configure.in: No need to check for stab.h.
	* configure, config.in: Regenerate.
	* Makefile.in (final.o): Don't depend on gstab.h.

From-SVN: r41713
2001-05-01 01:58:32 +00:00