Commit Graph

34918 Commits

Author SHA1 Message Date
Mark Mitchell acc72c3774 cp-tree.h (flag_inline_trees): Update documentation.
* cp-tree.h (flag_inline_trees): Update documentation.
	* decl.c (init_decl_processing): Adjust handling of
	flag_inline_functions and flag_inline_trees to support -O3.
	(grokfndecl): Set DECL_INLINE on all functions if that's what
	the user requested.
	(save_function_data): Clear DECL_INLINE in
	current_function_cannot_inline is non-NULL.
	* decl2.c (flag_inline_trees): Update documentation.

From-SVN: r41822
2001-05-04 03:03:39 +00:00
Geoffrey Keating 4091fa5f1b Index: gcc/gcc/ChangeLog
2001-05-03  Geoffrey Keating  <geoffk@redhat.com>

	* Makefile.in (site.exp): Set TESTING_IN_BUILD_TREE.

Index: gcc/gcc/testsuite/ChangeLog
2001-05-03  Geoffrey Keating  <geoffk@redhat.com>

	* lib/g++.exp (g++_include_flags): Don't use any special flags
	if TESTING_IN_BUILD_TREE is not defined.
	(g++_init): Use a plain 'c++' as the compiler if
	TESTING_IN_BUILD_TREEE is not defined.

From-SVN: r41820
2001-05-04 02:58:46 +00:00
Mo DeJong 4def8930da lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap.
2001-05-03  Mo DeJong  <mdejong@redhat.com>

        * lex.c (java_new_lexer): Call iconv_close on temp handle used to
        check for byte swap.

(http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html )

From-SVN: r41818
2001-05-03 17:34:48 -07:00
Tom Tromey d8ce02bcdc * libjava.lang/err11.xfail: Removed.
From-SVN: r41817
2001-05-03 22:03:44 +00:00
John David Anglin 0ee6e0a9ab jartool.c (jt_strdup): New function.
* jartool.c (jt_strdup): New function.
	(get_next_arg): Use jt_strdup instead of strdup.

From-SVN: r41815
2001-05-03 21:40:47 +00:00
Stephane Carrez c418c5ab57 m68hc11.md ("bitcmpqi"): New pattern for bitb instruction.
* config/m68hc11/m68hc11.md ("bitcmpqi"): New pattern for bitb
	instruction.
	("bitcmpqi2"): New pattern for bit-extract and test.
	("bitcmphi"): New pattern for bitb/bita instructions.

From-SVN: r41812
2001-05-03 23:09:28 +02:00
Joseph Myers fa27606ca3 gccbug.in: Use a temporary directory when the mktemp command is not available.
* gccbug.in: Use a temporary directory when the mktemp command is
	not available.

From-SVN: r41809
2001-05-03 21:57:17 +01:00
Stephane Carrez 7bdf2c6522 m68hc11.h (STATIC_CHAIN_REGNUM): Use soft z register instead of _.d1.
* config/m68hc11/m68hc11.h (STATIC_CHAIN_REGNUM): Use soft z register
	instead of _.d1.
	(INITIALIZE_TRAMPOLINE): Call it.
	(TRAMPOLINE_SIZE): Define according to 68HC11/68HC12.
	(TRAMPOLINE_TEMPLATE): Remove.
	* config/m68hc11/m68hc11.c (m68hc11_initialize_trampoline): New.
	* config/m68hc11/m68hc11-protos.h (m68hc11_initialize_trampoline):
	Declare.

From-SVN: r41808
2001-05-03 22:52:43 +02:00
Alexandre Oliva f8e4b51d36 configure.in (LIBSUPCXX_PICFLAGS): Set it to -prefer-pic or -prefer-non-pic depending on whether libtool has...
* configure.in (LIBSUPCXX_PICFLAGS): Set it to -prefer-pic or
-prefer-non-pic depending on whether libtool has shared libraries
enabled or disabled.
* libsupc++/Makefile.am (LIBSUPCXX_CXXFLAGS): Set to
$(LIBSUPCXX_PICFLAGS).
* configure, */Makefile.in: Rebuilt.

From-SVN: r41806
2001-05-03 20:35:18 +00:00
Alexandre Oliva ca3667c482 configure.in (noconfigdirs): Disable libgcj.
* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
libgcj.

From-SVN: r41805
2001-05-03 20:31:25 +00:00
David O'Brien df9ab51150 t-freebsd: Don't install "assert.h" in gcc.
2001-05-03  David O'Brien  <obrien@FreeBSD.org>
	* config/t-freebsd: Don't install "assert.h" in gcc.  Compile crtbeginS.o
	and crtendS.o with PIC.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20010503125836.A15813@redhat.com>

From-SVN: r41803
2001-05-03 20:13:05 +00:00
Stephane Carrez 01beec65d8 Report fixes from 3_0-branch made on 2001-03-04:
* config/m68hc11/larith.asm (__mulqi3): Fix multiplication of two
	negative numbers.
	(___subdi3, ___adddi3): Use x instead of y as index register.
	(__init_bss_section, __map_data_section): Optimize for 68HC12.
	(__memset, __memcpy): Likewise.
	(regs): Put the soft registers in bss for 68HC12.
	(abort): Use trap to abort for 68hc12.
	(__mulhi3, __mulhi32): Use emul for 68hc12.
	(__mulsi3): Avoid to use the tmp soft register for 68hc12.
	* config/m68hc11/m68hc11.h (LIMIT_RELOAD_CLASS): Don't define.
	* config/m68hc11/m68hc11-protos.h (limit_reload_class): Remove.
	* config/m68hc11/m68hc11.c (limit_reload_class): Remove.
	(m68hc11_override_options): Remove setting of flag_no_nonansi_builtin.
	Set 68HC12 min offset to -65536.
	(print_operand): Put parenthesis arround the operand if it refers
	to a symbol having the same name as a register.
	(m68hc11_z_replacement): When z register is replaced by its
	equivalent soft register, force the insn to be re-recognized.
	(m68hc11_check_z_replacement): Fix the test when destination is
	the index register and z dies in the insn.
	(m68hc11_reorg): Remove the REG_DEAD notes beforce recomputing them.
	* config/m68hc11/m68hc11.c (m68hc11_override_options): Initialize
	costs according to processor variant.
	(m68hc11_shift_cost): New function to compute shift costs.
	(m68hc11_rtx_costs): Define costs according to processor variant.
	(m6811_cost): Costs for 68HC11.
	(m6812_cost): Costs for 68HC12.
	(COSTS_N_INSNS): Remove.

	* config/m68hc11/m68hc11.h (RTX_COSTS): New.
	(DEFAULT_RTX_COSTS): Remove.
	(CONST_COSTS): Define costs according to OUTER_CODE.
	(processor_costs): New struct to define costs.
	(m68hc11_cost): Pointer to current costs.

	* config/m68hc11/m68hc11.md (*addhi3_68hc12): Fix generation
	and use m68hc11_notice_keep_cc when using leax/leay.
	(addhi3 split): Reject split if the insn is handled by
	leax/leay above.
	* config/m68hc11/m68hc11.c (m68hc11_split_move): For 68HC12 the
	push must be handled in a special way if the source operand uses
	sp as index register.
	(m68hc11_notice_keep_cc): New function.
	(m68hc11_gen_movhi): Use it when an insn changes a register but
	not the flags.
	(m68hc11_gen_movqi): Fix move for 68HC12.
	* config/m68hc11/m68hc11-protos.h (m68hc11_notice_keep_cc): Declare.

	* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use LCT_CONST
	and don't pass operands[0] to emit_library_call_value.

	* config/m68hc11/m68hc11.md (tsthi_1): Use cpd for 68HC12.
	(zero_extendsi split): Simplify and use (zero_extendhi).
	(*addhi3): Remove 'w' constraint since stack pointer is handled
	by (addhi3_sp).
	(*ashlhi3_2): Operand 2 is clobbered use '+' for its constraint.
	(*ashlhi3, *ashrhi3, *lshrhi3): Likewise.
	(*ashrhi3_const): Fix shift by 7.
	(*lshrsi3_const16): Fix template.
	(call, call_value): Fix constraint and predicate.

	* config/m68hc11/m68hc11.md (X_REGNUM, D_REGNUM): New constant.
	(Y_REGNUM, SP_REGNUM, PC_REGNUM, A_REGNUM, B_REGNUM): Likewise.
	(CC_REGNUM): Likewise.
	(*unnamed splits): Use above constants instead of hard coded numbers.
	(*adcq, *subcq, *addsi_carry, *rotlqi3_with_carry): Likewise.
	(*rotlhi3_with_carry, *rotrhi3_with_carry): Likewise.
	(*return_16bit, *unnamed peepholes): Likewise.

From-SVN: r41802
2001-05-03 21:56:46 +02:00
Joseph Myers 6e26f4aa9f * texi2pod.pl: Add copyright and GPL notices.
From-SVN: r41800
2001-05-03 20:45:32 +01:00
David O'Brien cb5dda2bde config.gcc (rs6000-ibm-aix|powerpc-ibm-aix): Do not include rs6000/rs6000.h twice.
2001-05-03  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc(rs6000-ibm-aix|powerpc-ibm-aix):  Do not include
	rs6000/rs6000.h twice.

Approved by:  David Edelsohn <dje@watson.ibm.com>
              <200105031901.PAA24582@makai.watson.ibm.com>

From-SVN: r41799
2001-05-03 19:32:51 +00:00
Mark Elbrecht 11fdc4c3b9 djgpp.h (CPP_PREDEFINES): Define __GO32__.
* config/i386/djgpp.h (CPP_PREDEFINES): Define __GO32__.
(CPP_SPEC): Conditionally define MSDOS and GO32.
(SUBTARGET_SWITCHES): Ignore -mbnu210 and -mno-bnu210.
(SUBTARGET_OVERRIDE_OPTIONS): Warn that -mbnu210 and -mno-bnu210 are
ignored.
(SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Remove.

From-SVN: r41798
2001-05-03 15:08:11 -04:00
Alexandre Oliva 776716da7f * config/mn10300/mn10300.md: Sign-extend GEN_INT operands.
From-SVN: r41797
2001-05-03 18:41:29 +00:00
Martin Kahlert ecd554cd35 jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.
2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>

	* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
	checking.
	(_Jv_JNI_SetPrimitiveArrayRegion): Likewise.

From-SVN: r41795
2001-05-03 16:56:38 +00:00
Andrew Haley ba3c22ff88 Fix bad checkin.
From-SVN: r41793
2001-05-03 16:53:38 +00:00
Jakub Jelinek 49b51f304d Wrong ChangeLog entry.
From-SVN: r41792
2001-05-03 18:40:38 +02:00
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