Commit Graph

41597 Commits

Author SHA1 Message Date
Richard Henderson 1e82682ba4 Record pr number for last change.
From-SVN: r51049
2002-03-19 14:28:51 -08:00
Richard Henderson ebf0e888b1 ia64.c: Revert 2002-03-01 patch.
* config/ia64/ia64.c: Revert 2002-03-01 patch.
        * config/ia64/ia64.h (INIT_EXPANDERS): New.

From-SVN: r51048
2002-03-19 14:16:10 -08:00
Martin Kahlert c6ef94c533 2002-03-19 Martin Kahlert <martin.kahlert@infineon.com>
* include/jni.h Use correct C comments

From-SVN: r51046
2002-03-19 21:45:42 +00:00
Jim Blandy e37b38d7d6 cppmacro.c (cpp_macro_definition): Emit a space after the macro name...
* cppmacro.c (cpp_macro_definition): Emit a space after the macro
name, even if the replacement list contains no tokens, as required
by Dwarf.

From-SVN: r51045
2002-03-19 21:43:39 +00:00
Jason Merrill f9d09ae5bb varasm.c (globalize_decl): Get the name from the RTL, not DECL_ASSEMBLER_NAME.
* varasm.c (globalize_decl): Get the name from the RTL, not
        DECL_ASSEMBLER_NAME.

From-SVN: r51043
2002-03-19 16:38:43 -05:00
Jason Merrill 2a4ea32640 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
From-SVN: r51041
2002-03-19 16:24:41 -05:00
Bob Wilson 99b96edbff xtensa.md (adddi3, [...]): Define.
* config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
        subdi_carry): Define.

From-SVN: r51039
2002-03-19 20:16:35 +00:00
Phil Edwards 0fdebf99e5 index.html (#3.6): Rewrap and close <a href> tags.
2002-03-19  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/faq/index.html (#3.6):  Rewrap and close <a href> tags.
	* docs/html/faq/index.txt:  Regenerate.

From-SVN: r51038
2002-03-19 20:16:12 +00:00
Andreas Jaeger 85763ceeb8 Remove conflict marker.
From-SVN: r51036
2002-03-19 21:02:52 +01:00
Steve Ellcey 263c6fa840 acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if...
2002-03-19  Steve Ellcey  <sje@cup.hp.com>

        * acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define
        GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if
        --enable-libunwind-exceptions is set.
        * configure.in (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Call new
        macro to check for libunwind.
        * configure: Regenerate.
        * src/Makefile.am (libstdc___la_LDFLAGS): Add
        LIBUNWIND_FLAG to libstdc link line.
        * src/Makefile.in: Regenerate.

From-SVN: r51035
2002-03-19 19:50:30 +00:00
David Edelsohn 3774b56702 rs6000.c (rs6000_override_options): Only warn about -fpic/-fPIC if extra_warnings set.
* config/rs6000/rs6000.c (rs6000_override_options): Only warn
        about -fpic/-fPIC if extra_warnings set.

From-SVN: r51034
2002-03-19 14:46:49 -05:00
David Edelsohn 21ef78aa2e expr.c (expand_expr): Sign-extend CONST_INT generated from TREE_STRING_POINTER.
* expr.c (expand_expr): Sign-extend CONST_INT generated from
        TREE_STRING_POINTER.

From-SVN: r51033
2002-03-19 14:39:03 -05:00
Richard Kenner 91d4b3fd9a sparc.h (CAN_ELMINIATE): Can only eliminate FP in favor of SP if FRAME_POINTER_REQUIRED is false.
* config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
	in favor of SP if FRAME_POINTER_REQUIRED is false.

From-SVN: r51032
2002-03-19 14:33:42 -05:00
Lars Brinkhoff 2496c7bd5f emit-rtl.c (gen_int_mode): New function.
* emit-rtl.c (gen_int_mode): New function.
        * rtl.h: Prototype for it.
        * combine.c (make_extraction, simplify_comparison), expmed.c
        (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
        (convert_modes, store_field), optabs.c (expand_fix),
        simplify-rtx.c (neg_const_int, simplify_unary_real),

        * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
        Use it instead of GEN_INT (trunc_int_for_mode (...)).

From-SVN: r51030
2002-03-19 10:00:43 -08:00
Benjamin Kosnik 09979e6f03 index.html: Add OS X workaround.
2002-03-19  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/faq/index.html: Add OS X workaround.
	* docs/html/17_intro/TODO: Update.

From-SVN: r51029
2002-03-19 17:20:22 +00:00
Benjamin Kosnik 2e4bcfd817 index.html: Add OS X workaround.
2002-03-19  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/faq/index.html: Add OS X workaround.
	* docs/html/17_intro/TODO: Update.

From-SVN: r51028
2002-03-19 17:17:46 +00:00
J"orn Rennecke c0e21eef2b * MAINTAINERS: Update my email address.
From-SVN: r51027
2002-03-19 09:06:46 +00:00
Jakub Jelinek 6ae504c9fb * gcc.dg/struct-by-value-1.c: New test.
From-SVN: r51026
2002-03-19 09:49:43 +01:00
Jakub Jelinek f735a15348 re PR c/5656 (ICE in emit_move_insn, at expr.c:2748, regression from gcc 3.0)
PR c/5656
	* langhooks.h (struct lang_hooks_for_tree_inlining): Add
	convert_parm_for_inlining.
	* c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
	Define.
	* langhooks-def.h: Likewise.
	* objc/objc-lang.c: Likewise.
	* langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
	function.
	* tree-inline.c (initialize_inlined_parameters):
	Call convert_parm_for_inlining lang hook if needed.
	* c-typeck.c (c_convert_parm_for_inlining): New function.
	* c-tree.h (c_convert_parm_for_inlining): Add prototype.

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

From-SVN: r51025
2002-03-19 09:47:14 +01:00
GCC Administrator c1ea784307 Daily bump.
From-SVN: r51024
2002-03-19 08:18:08 +00:00
Jason Merrill e61d6d83b8 add mangling note
From-SVN: r51015
2002-03-18 19:21:38 -05:00
Paolo Carlini 3039874b15 locale_facets.tcc (money_put::do_put(long double)): Fix dimensioning of temporary buffers to avoid risk of overruns.
2002-03-18  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc
	(money_put::do_put(long double)): Fix dimensioning of
	temporary buffers to avoid risk of overruns.
	(money_put::do_put(string)): Same for the buffer used to
	add the grouping chars.
	* testsuite/22_locale/money_put_members_char.cc: Add test06.
	* testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.

	* include/bits/locale_facets.tcc
	(collate::do_transform): Simplify.

From-SVN: r51012
2002-03-18 23:11:57 +00:00
Mark Mitchell 1929c971b9 calls.c (precompute_arguments): Do not assume that temporaries can be destroyed after expanding the argument.
* calls.c (precompute_arguments): Do not assume that temporaries
	can be destroyed after expanding the argument.
	(expand_call): Likewise.

From-SVN: r51011
2002-03-18 22:25:50 +00:00
Tom Tromey 9d5e46be34 jni.h (JNIIMPORT): New macro.
* include/jni.h (JNIIMPORT): New macro.
	(JNIEXPORT): Likewise.
	(JNICALL): Likewise.

From-SVN: r51009
2002-03-18 21:55:42 +00:00
Phil Edwards d2caef2e8b acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
2002-03-18  Phil Edwards  <pme@gcc.gnu.org>

	* acinclude.m4 (GLIBCPP_CONFIGURE):  Make indentation/spacing uniform.
	* configure.in:  Add comments pointing the way for autoconf 2.5x.
	* aclocal.m4, config.h.in, configure:  Regenerate.

From-SVN: r51007
2002-03-18 21:41:02 +00:00
Tom Tromey 6a4ed6c8a9 jni.exp (gcj_jni_test_one): Find libstdc++ in build tree.
* libjava.jni/jni.exp (gcj_jni_test_one): Find libstdc++ in build
	tree.
	(gcj_invoke): Added ld_library_additions argument.

From-SVN: r51006
2002-03-18 21:39:09 +00:00
Eric Christopher c79ca0ac59 Missed ChangeLog entry in checkin.
From-SVN: r51002
2002-03-18 20:48:14 +00:00
Eric Botcazou ff77ac8550 re PR c++/3882 (gcc 3.0 error referencing a variable in its initializer expression in template code)
PR c++/3882
        * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
        (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
        only after recording the declaration.

From-SVN: r50999
2002-03-18 15:19:39 -05:00
Stuart Griffith ed30079302 strtod.c (strtod): Increment 8 chars, not 7, when `infinity' seen.
2002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>

	* strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
	seen.

From-SVN: r50994
2002-03-18 19:52:14 +00:00
Jason Merrill 097955f2b0 re PR c++/2039 (bad code generated for access to unnamed union in base class)
PR c++/2039
        * init.c (resolve_offset_ref): Hand off to build_component_ref.

From-SVN: r50991
2002-03-18 14:44:29 -05:00
Alexandre Petit-Bianco c2d8e20aff re PR java/5876 (jc1 crashes when targeting mingw32)
2002-03-18  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* builtins.c (define_builtin): Do nothing if `type' is null.
	Fixes PR java/5876.

From-SVN: r50990
2002-03-18 19:38:35 +00:00
Alexandre Oliva 1bfbbbcf9d mips.md (andsi3): Force operand 1 to a register too.
* config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
a register too.
(anddi3, iorsi3): Likewise.

From-SVN: r50988
2002-03-18 19:17:27 +00:00
Alexandre Oliva c066429ee4 mips.h (ENCODE_SECTION_INFO): Don't use %gprel for symbols that are going to be placed in linkonce sections.
* config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
use %gprel for symbols that are going to be placed in linkonce
sections.

From-SVN: r50986
2002-03-18 19:15:24 +00:00
Alexandre Oliva 07e2e444ff mips.h (ELIMINABLE_REGS): Can't eliminate RETURN_ADDRESS_POINTER_REGNUM to $ra.
* config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
RETURN_ADDRESS_POINTER_REGNUM to $ra.
(CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
not needed.  Disregard leaf_function_p().
(INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
mips16 frame pointer.
* config/mips/mips.md (store ra): Only to small SP offsets.
2001-08-22  Graham Stott  <grahams@redhat.com>
* config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
return a REG rtx for the return address register.

From-SVN: r50985
2002-03-18 19:12:50 +00:00
Bob Wilson eb8e00ea23 xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat constant-pool addresses as "mode-dependent".
* config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
        constant-pool addresses as "mode-dependent".
        (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.

From-SVN: r50984
2002-03-18 18:20:19 +00:00
Andrew Haley 71c6877d3e i386-signal.h (old_i386_kernel_sigaction): New.
2002-03-18  Andrew Haley  <aph@cambridge.redhat.com>

        * include/i386-signal.h (old_i386_kernel_sigaction): New.
        INIT_SEGV: Use old_i386_kernel_sigaction.
        INIT_FP: Likewise.

From-SVN: r50980
2002-03-18 17:11:43 +00:00
Jason Merrill b663bcf33f PR c++/4222, c++/5995
PR c++/4222, c++/5995
        * call.c (build_over_call): Fix empty class logic.

From-SVN: r50978
2002-03-18 11:55:11 -05:00
Jakub Jelinek cbb9274487 re PR target/5740 (sparcv9 ICE on complex_value.cc in libstdc++ test suite)
PR target/5740
	* expr.c (emit_group_load): Use extract_bit_field if
	needed for CONCAT arguments.

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

From-SVN: r50975
2002-03-18 16:08:31 +01:00
Jason Merrill 0f4237c2da re PR c++/3870 (gcc 3.0 bogus error specializing a template function)
PR c++/3870
        * cp-tree.h (struct saved_scope): Add last_parms field.
        * decl.c (maybe_push_to_top_level): Save last_function_parms.
        (pop_from_top_level): Restore it.

From-SVN: r50970
2002-03-18 09:36:19 -05:00
Jason Merrill 001ad76c41 re PR c++/4377 (more errors with multiple non-type template parameters)
PR c++/4377
        * mangle.c (write_expression): Strip NOP_EXPRs sooner.  Also strip
        NON_LVALUE_EXPRs.

From-SVN: r50967
2002-03-18 08:38:00 -05:00
Jason Merrill ed2fa43249 re PR c++/4003 (ICE on template instantiation including friendship declaration.)
PR c++/4003
        * pt.c (tsubst_friend_function): Use decl_namespace_context.

From-SVN: r50966
2002-03-18 08:27:03 -05:00
Jason Merrill fd70bb6453 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
* class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
        type with a nontrivial destructor.

From-SVN: r50964
2002-03-18 06:34:31 -05:00
Richard Earnshaw 91f3a802eb re PR target/4863 (arm/thumb: code for switch statements: branch out of range)
PR target/4863
* arm.md (tablejump): Make this a define_expand.  For PIC add the
offset to the base of the table.
(thumb_tablejump): Matcher for Thumb tablejump insn.
* config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
as the difference of two labels.
* config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
* config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
tables in the code.
* config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
* arm.c (get_jump_table_size): If the table is not in the text
section, return zero.

From-SVN: r50962
2002-03-18 11:27:39 +00:00
Richard Earnshaw 657d9449e8 arm.md (tablejump): Make this a define_expand.
* arm.md (tablejump): Make this a define_expand.  For PIC add the
offset to the base of the table.
(thumb_tablejump): Matcher for Thumb tablejump insn.
* config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
as the difference of two labels.
* config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
* config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
tables in the code.
* config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
* arm.c (get_jump_table_size): If the table is not in the text
section, return zero.

From-SVN: r50960
2002-03-18 11:26:24 +00:00
Jason Merrill ffd696af84 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
* class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
        type with a nontrivial destructor.

From-SVN: r50959
2002-03-18 06:24:24 -05:00
Bryce McKinlay 38cb4e8407 jartool.c (expand_options): Handle tar-style argument list with a leading "-".
* jartool.c (expand_options): Handle tar-style argument list with a
	leading "-".

From-SVN: r50957
2002-03-18 11:08:21 +00:00
Philipp Thomas f07beda95a hash_map.h: hash, hashtable, hash_map and hash_multimap are in namespace __gnu_cxx.
2002-03-15  Philipp Thomas  <pthomas@suse.de>

	* include/backward/hash_map.h: hash, hashtable, hash_map and
	hash_multimap are in namespace __gnu_cxx.
	include/backward/hash_set.h: hash, hashtable, hash_set and
	hash_multiset are in namespace __gnu_cxx.
	include/backward/hashtable.h: hash and hashtable are in
	namespace __gnu_cxx.
	include/backward/rope.h: char_producer, sequence_buffer,
	rope, crope and wrope are in namespace __gnu_cxx.
	include/backward/slist.h: slist is in namespace __gnu_cxx.
	* testsuite/backward/header_hash_map_h.cc
	testsuite/backward/header_hash_set_h.cc
	testsuite/backward/header_hashtable_h.cc
	testsuite/backward/header_rope_h.cc
	testsuite/backward/header_slist_h.cc
	testsuite/backward/header_tempbuf_h.cc: New tests for
	checking that we're using the correct namespace.

From-SVN: r50956
2002-03-18 10:47:15 +00:00
Bryce McKinlay 6befbee5ff parse.y (parser_check_super_interface): Fix error message grammar/order.
* parse.y (parser_check_super_interface): Fix error message
	grammar/order.

From-SVN: r50955
2002-03-18 10:41:01 +00:00
Nick Clifton 66c17b6479 fix spelling typo in previous ChnageLog entry.
From-SVN: r50953
2002-03-18 10:21:43 +00:00
Bernd Schmidt 5d5603e2cc Fix big-endian code generation
From-SVN: r50952
2002-03-18 10:20:29 +00:00