Commit Graph

40975 Commits

Author SHA1 Message Date
Jakub Jelinek
149d6f9edd re PR debug/4461 (Invalid dawrf2 debug code)
PR debug/4461
	* varasm.c (get_pool_constant_mark): New.
	* rtl.h (get_pool_constant_mark): Add prototype.
	* dwarf2out.c (mem_loc_descriptor): A pool constant cannot
	be represented if it has not been output.

	* gcc.dg/debug/20020220-1.c: New test.

From-SVN: r49921
2002-02-21 00:19:24 +01:00
Alexandre Oliva
4161da1219 combine.c (do_SUBST): Sanity check substitutions of CONST_INTs...
* combine.c (do_SUBST): Sanity check substitutions of
CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
(subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
CONST_INT into its operand.
(known_cond): Likewise, for ZERO_EXTEND.
* simplify-rtx.c (simplify_unary_operation): Fix condition to
allow for simplification of wide modes.  Reject CONST_INTs in
ZERO_EXTEND when their actual mode is not given.

From-SVN: r49920
2002-02-20 23:15:00 +00:00
Alexandre Oliva
8e8d61f5c1 * gcc.c-torture/compile/20020110.c: New test.
From-SVN: r49919
2002-02-20 23:13:17 +00:00
Nic Ferrier
db444fbe8e gcj.texi: Option --classpath' becomes --CLASSPATH.'Option `--CLASSPATH' becomes...
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
 	`--CLASSPATH' becomes `--classpath.'
        * gjavah.c: Likewise.
        * jcf-dump.c: Likewise.
        * lang-options.h: Likewise.
        * lang.c: Likewise.
        * jcf-path.c: Updated comment.
        (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
        (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
        * jcf.h (jcf_path_CLASSPATH_arg): Ditto.
        (jcf_path_CLASSPATH_arg): Ditto.
        (classpath_u): Updated leading comment.

From-SVN: r49918
2002-02-20 23:12:25 +00:00
Alexandre Oliva
3704ef744f c-decl.c (pushdecl): If no global declaration is found for an extern declaration in block scope...
* c-decl.c (pushdecl): If no global declaration is found for an
extern declaration in block scope, try a limbo one.

From-SVN: r49917
2002-02-20 23:10:36 +00:00
Jakub Jelinek
7552da58e1 re PR c++/4401 (Array subscript evaluation sometimes wrong for 64-bit architectures)
PR c++/4401
	* c-common.c (pointer_int_sum): Moved from...
	* c-typeck.c (pointer_int_sum): ...here.
	* c-common.h (pointer_int_sum): Add prototype.

	* typeck.c (cp_pointer_int_sum): Renamed from
	pointer_int_sum, call pointer_int_sum.

	* g++.dg/opt/ptrintsum1.C: New test.

From-SVN: r49916
2002-02-21 00:05:47 +01:00
Jakub Jelinek
00fae85dcb re PR c++/5713 (Redeclaration causes ice in in make_decl_rtl, at varasm.c:835)
PR c++/5713
	* c-decl.c (duplicate_decls): Return 0 if issued error about
	redeclaration.

	* decl.c (duplicate_decls): Return 0 if issued error about
	redeclaration.

	* gcc.dg/noncompile/20020220-1.c: New test.

From-SVN: r49915
2002-02-20 23:59:35 +01:00
Jakub Jelinek
4636c87e23 re PR c/4389 (Improper constant folding)
PR c/4389
	* tree.c (host_integerp): Ensure that the constant integer is
	representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
	when pos is zero or non-zero respectively.  Clarify comment.
	* c-format.c (check_format_info_recurse): Fix host_integerp
	usage; the pos argument should be zero when assigning to a
	signed HOST_WIDE_INT.

	* gcc.dg/20020219-1.c: New test.

From-SVN: r49914
2002-02-20 23:54:35 +01:00
Phil Edwards
c98b201bd9 acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
2002-02-20  Phil Edwards  <pme@gcc.gnu.org>

	* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES):  Also check version.
	(GLIBCPP_ENABLE_SYMVERS):  Redo logic, use linker version.
	* configure.in (GLIBCPP_ENABLE_SYMVERS):  Move later in the script.
	* aclocal.m4:  Regenerate.
	* configure:  Regenerate.
	* config/linker-map.dummy:  New file.  Contains nothing useful.

From-SVN: r49913
2002-02-20 22:10:39 +00:00
Richard Henderson
59bef18918 i386.c (ix86_expand_vector_move): Use the mode of the operand, rather than assuming TImode.
* config/i386/i386.c (ix86_expand_vector_move): Use the mode
        of the operand, rather than assuming TImode.
        (ix86_expand_binop_builtin): Cope with commutative patterns
        using nonimmediate_operand for both operands.
        (ix86_expand_timode_binop_builtin): Likewise.
        (ix86_expand_store_builtin): Validate operand 1.
        (ix86_expand_unop1_builtin): Likewise.

From-SVN: r49912
2002-02-20 13:57:23 -08:00
Philip Blundell
9338ffe610 re PR target/5705 (code generated for ARM interrupt("IRQ") attribute)
2002-02-20  Philip Blundell  <philb@gnu.org>

	PR 5705
	* config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.

From-SVN: r49911
2002-02-20 21:39:56 +00:00
Benjamin Kosnik
04fc13943f money_put_members_char.cc: Fix.
2002-02-20  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/money_put_members_char.cc: Fix.
	* testsuite/22_locale/money_put_members_wchar_t.cc: Fix.

	* testsuite/27_io/standard_manipulators.cc: New file.

	* testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
	* testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().

From-SVN: r49910
2002-02-20 21:06:42 +00:00
Per Bothner
9fe2cc0556 builtins.c (check_for_builtin): New function.
* builtins.c (check_for_builtin):  New function.
	(build_call_or_builtin):  Remove.
	* java-tree.h:  Update accordingly.
	* expr.c (expand_invoke):  Use build + check_for_builtin instead
	of build_call_or_builtin.
	* parse.y (patch_invoke):  Likewise.  This avoids needlessly creating
	a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER
	flag (which had caused jcf-write to incorrectly emit invokevirtual).

From-SVN: r49909
2002-02-20 11:53:49 -08:00
Jakub Jelinek
f67e0d112d * gcc.c-torture/execute/20020219-1.c: New test.
From-SVN: r49908
2002-02-20 20:46:29 +01:00
Richard Henderson
f322b42319 re PR c/5615 (ICE in size_binop, at fold-const.c:1914)
PR c/5615
        * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.

From-SVN: r49904
2002-02-20 10:34:28 -08:00
Tom Tromey
d94084f79a fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
	* config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
	* config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
	* config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
	* dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
	unconditionally.

From-SVN: r49903
2002-02-20 18:31:24 +00:00
Alan Matsuoka
37fa124a73 rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look for (const_int 0) in X not just INTVAL.
Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>

	* config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
	  for (const_int 0) in X not just INTVAL.

From-SVN: r49902
2002-02-20 18:19:38 +00:00
Joseph Myers
6e5bb5ad40 * doc/extend.texi: Avoid or reduce overfull hboxes.
From-SVN: r49901
2002-02-20 18:11:53 +00:00
Danny Smith
be6efd9f31 2002-02-20 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/mingw32/bits/ctype_noninline.h
	(ctype<char>::ctype): Remove default args from parm list.
	* config/os/djgpp/bits/ctype_noninline.h: Same.

From-SVN: r49900
2002-02-20 17:18:00 +00:00
Diego Novillo
420e7dfad9 expmed.c (store_bit_field): Do not store bit fields using SUBREG operations if...
* expmed.c (store_bit_field): Do not store bit fields using SUBREG
	operations if the field does not start at a mode boundary.

From-SVN: r49899
2002-02-20 08:53:13 -05:00
Joel Sherrill
1b7a2af6dd rtems.h, [...]: Use new style of -Asystem= rather than -Asystem().
2001-02-20	Joel Sherrill <joel@OARcorp.com>

	* config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
	config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
	Also done for -Acpu and -Amachine.

From-SVN: r49898
2002-02-20 12:15:06 +00:00
Bryce McKinlay
dd071c207a Makefile.am: Re-add SUBDIRS parameter which was lost in merge.
* Makefile.am: Re-add SUBDIRS parameter which was lost in merge.
	* Makefile.in: Rebuilt.

From-SVN: r49895
2002-02-20 08:46:41 +00:00
GCC Administrator
2a785a211d Daily bump.
From-SVN: r49893
2002-02-20 08:16:22 +00:00
Neil Booth
56cd5b954e cppinit.c (init_dependency_output): Take deps output file from -o if none given with -MF.
* cppinit.c (init_dependency_output): Take deps output file
	from -o if none given with -MF.  Suppress normal output.
	* gcc.c (cpp_unique_options): Have -M and -MM imply -E.
	* doc/cpp.texi, doc/invoke.texi: Update.

From-SVN: r49892
2002-02-20 07:24:10 +00:00
Zack Weinberg
042cdf7164 toplev.c (output_quoted_string): Write unprintable characters with octal escapes.
* toplev.c (output_quoted_string): Write unprintable
	characters with octal escapes.

From-SVN: r49891
2002-02-20 05:04:39 +00:00
David Edelsohn
c1f1154803 [multiple changes]
2002-02-19  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
        really_call_used[VRSAVE_REGNO] if not Altivec.

2002-02-19  Alan Modra  <amodra@bigpond.net.au>

        * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
        MODE_MASK.
        (constant_pool_expr_1): Fix formatting.
        (rs6000_legitimize_reload_address): Likewise.

From-SVN: r49890
2002-02-19 23:56:34 -05:00
Bryce McKinlay
d1cfac5b6e * libjava.lang/stringconst.xfail: xfail-output -> xfail-source-output.
From-SVN: r49889
2002-02-20 04:18:54 +00:00
Bryce McKinlay
a2139e0c48 libjava.exp: Add "xfail-byte-output" and "xfail-source-output".
* lib/libjava.exp: Add "xfail-byte-output" and "xfail-source-output".
	Don't display expected and actual output for a failed output test.

	* libjava.lang/ArrayStore.java: New file.
	* libjava.lang/ArrayStore.out: New file.
	* libjava.lang/ArrayStore.xfail: New file. xfail-byte-output.
	* libjava.lang/ArrayStore2.java: New file.
	* libjava.lang/ArrayStore2.out: New file.
	* libjava.lang/ArrayStore2.xfail: New file. xfail-source-output.

From-SVN: r49888
2002-02-20 04:14:15 +00:00
Jason Merrill
6ea868b758 ABI change: Mangle `void (A::*)() const' as M1AKFvvE, not MK1AFvvE.
ABI change: Mangle `void (A::*)() const' as
	M1AKFvvE, not MK1AFvvE.
	* mangle.c (write_function_type): Write cv-quals for member
	function type here.
	(write_pointer_to_member_type): Not here.

From-SVN: r49887
2002-02-19 23:09:05 -05:00
Tom Tromey
e4e35417f9 re PR libgcj/5696 (natClass.cc run through superclasses of target if they exist while comparing variable types.)
Fix for PR libgcj/5696:
	* verify.cc (is_assignable_from_slow): Never call
	_Jv_IsAssignableFrom.
	(verify_instructions_0): Added new debug statement.
	(state::print): Print information about whether local has
	changed.
	(state::merge): Don't call note_variable when merging locals.
	(state::set_exception): Removed old FIXME comment.

From-SVN: r49886
2002-02-20 03:16:30 +00:00
Richard Kenner
c964d90e21 sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx now that we have one.
* config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
	now that we have one.

From-SVN: r49885
2002-02-19 20:21:06 -05:00
Benjamin Kosnik
0d223e3a4e std_iomanip.h: Inline, tweaks.
2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/std_iomanip.h: Inline, tweaks.
	* config/linker-map.gnu: Remove hacks.

	* testsuite/21_strings/capacity.cc: Add explicit instantiations.
	* testsuite/27_io/ios_init.cc: Same.
	* testsuite/22_locale/money_get_members_char.cc (test07): Fix.
	* testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.

From-SVN: r49884
2002-02-20 00:58:17 +00:00
Zack Weinberg
ae34ac46dc tree.h (struct tree_common): Remove aux.
* tree.h (struct tree_common): Remove aux.  Add unused_0 at
	end of first block of bitfields (which was only seven bits);
	rename dummy to unused_1; remove comment which is no longer true.

From-SVN: r49883
2002-02-20 00:19:33 +00:00
Gaute B Strokkenes
293c28eedb * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
From-SVN: r49881
2002-02-19 22:51:17 +00:00
Phil Blundell
0cb6c58daa Duh, fix PR number in last commit.
From-SVN: r49880
2002-02-19 22:26:38 +00:00
Philip Blundell
7b8781c861 re PR target/5185 ([ARM] Segmentation fault in final.c)
2002-02-19  Philip Blundell  <pb@nexus.co.uk>

	PR 5185
	* config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
	if generating PIC.

	PR 5054
	* config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
	arm_is_longcall_p rather than inspecting call-type cookie
	directly.
	(call_value_insn) [TARGET_THUMB]: Likewise.

From-SVN: r49879
2002-02-19 22:23:56 +00:00
Benjamin Kosnik
9b41c37048 linker-map.gnu: Export global vtable, typeinfo, guard variable, and thunk info as per CXXABI docs.
2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>

	* config/linker-map.gnu: Export global vtable, typeinfo, guard
	variable, and thunk info as per CXXABI docs.

From-SVN: r49878
2002-02-19 21:47:05 +00:00
Loren J. Rittle
42ebb17f48 Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
2002-02-19  Loren Rittle <ljrittle@acm.org>

	* include/Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
	* include/Makefile.in: Rebuilt.

From-SVN: r49877
2002-02-19 21:37:37 +00:00
Graham Stott
5c46458361 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
From-SVN: r49876
2002-02-19 20:05:28 +00:00
Scott Snyder
b1c1a22fb2 demangle-expected: Add test case for infinite loop in demangler.
* testsuite/demangle-expected: Add test case for infinite loop in
demangler.
* cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
if do_type() doesn't make any progress --- prevents an infinite
loop.

From-SVN: r49875
2002-02-19 15:02:16 -05:00
David Edelsohn
6d1def5c66 Add (FP_SAVE_INLINE): Delete. to previous entry.
From-SVN: r49874
2002-02-19 14:46:51 -05:00
David Edelsohn
71c061e673 linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
	({STARTFILE,ENDFILE}_LINUX_SPEC): Define.

	* config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
	* config/rs6000/eabi.asm: Remove ABI save restore routines.
	* config/rs6000/t-ppccomm: Build crtsavres.o.
	* config/rs6000/crtsavres.asm: New file.

From-SVN: r49873
2002-02-19 14:40:41 -05:00
Philip Blundell
3a7731fdc1 arm.c (use_return_insn): Don't reject interrupt functions.
2002-02-19  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.c (use_return_insn): Don't reject interrupt
	functions.
	(arm_compute_save_reg_mask): Save LR for interrupt functions too.
	(output_return_instruction): Allow interrupt functions to return with
	ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
	(arm_expand_prologue): Subtract 4 before stacking LR in an
	interrupt function.

From-SVN: r49872
2002-02-19 18:08:10 +00:00
Philip Blundell
14f583b8c3 arm.c (arm_encode_call_attribute): Operate on any decl, not just FUNCTION_DECL.
2002-02-19  Philip Blundell  <pb@nexus.co.uk>

	* config/arm/arm.c (arm_encode_call_attribute): Operate on any
	decl, not just FUNCTION_DECL.
	(legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
	(arm_assemble_integer): Likewise.
	* config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
	marked local.

From-SVN: r49871
2002-02-19 18:04:05 +00:00
Matthew Green
4cb7482c3a config.gcc (sparc-*-netbsdelf*): Enable target.
2002-02-19  matthew green  <mrg@eterna.com.au>

* config.gcc (sparc-*-netbsdelf*): Enable target.
(sparc64-*-netbsd*): New target.
* config/sparc/netbsd-elf.h: New file.
* config/sparc/t-netbsd64: New file.

From-SVN: r49870
2002-02-19 17:43:25 +00:00
Gaute B Strokkenes
2df3a718da * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
From-SVN: r49867
2002-02-19 17:27:12 +00:00
Ryan T. Sammartino
77f6c1eb3a invoke.texi: explicitly list the style guidelines that -Weffc++ checks for.
* doc/invoke.texi: explicitly list the style guidelines that
        -Weffc++ checks for.

From-SVN: r49866
2002-02-19 09:05:53 -05:00
Jan Hubicka
fd973d5630 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
From-SVN: r49864
2002-02-19 11:39:01 +00:00
GCC Administrator
419a71d37c Daily bump.
From-SVN: r49861
2002-02-19 08:16:52 +00:00
Neil Booth
30518e459c gcc.c (cpp_unique_options): Treat -o as indicating object file only if not -E.
* gcc.c (cpp_unique_options): Treat -o as indicating object file
	only if not -E.  If -E, pass -o through to the preprocessor.

From-SVN: r49860
2002-02-19 07:44:38 +00:00