Commit Graph

41610 Commits

Author SHA1 Message Date
Jakub Jelinek
7d7e539c5b mangle11.C was duplicate of mangle3.C
From-SVN: r51077
2002-03-20 19:03:21 +01:00
Jason Merrill
ea122333e5 re PR c++/5118 (c4x-g++ Fails on Templates)
PR c++/5118
        * class.c (get_vfield_name): Use the constructor_name.

From-SVN: r51075
2002-03-20 11:58:24 -05:00
Dale Johannesen
ed7d44bc74 PR optimization/5999, middle-end/5731
PR optimization/5999, middle-end/5731
	* expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
	multiplications by reciprocals.

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

From-SVN: r51071
2002-03-20 10:41:46 +01:00
GCC Administrator
b525f5b0f7 Daily bump.
From-SVN: r51070
2002-03-20 08:18:21 +00:00
Neil Booth
7afff7cfb0 Makefile.in: Update.
* Makefile.in: Update.
	* c-common.c: Include langhooks.h.
	(inline_forbidden_p): Use new hook.
	* diagnostic.c: Include langhooks.h.
	(format_with_decl, announce_function,
	default_print_error_function): Use new hook.
	* dwarf2out.c (dwarf2_name): Use new hook.
	* function.c: Include langhooks.h.
	(init_function_start): Use new hook.
	* langhooks-def.h (lhd_decl_printable_name): New.
	(LANGHOOKS_DECL_PRINTABLE_NAME): New.
	(LANGHOOKS_INITIALIZER): Update.
	* langhooks.c (lhd_decl_printable_name): New.
	* langhooks.h (struct lang_hooks): New hook.
	* toplev.c (decl_name, decl_printable_name): Remove.
	(open_dump_file): Use new hook.
	(process_options): Remove old hook.
	* tree.h (decl_printable_name): Remove.
ada:
	* misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
	(gnat_init): Remove old hook.
cp:
	* cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
	* cp-tree.h (lang_printable_name): Rename.
	* error.c (lang_decl_name): Use new hook.
	* lex.c (cxx_init): Remove old hook.
	* pt.c (tsubst_expr): Use new hook.
	* tree.c (lang_printable_name): Rename.
f:
	* com.c (lang_printable_name): Rename.
	(LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
	(ffe_init): Don't use old hook.
java:
	* decl.c (start_java_method): Use new hook.
	* lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
	(java_init): Remove old hook.
objc:
	* objc-act.c (objc_init): Remove old hook.
	(objc_printable_name): Export.
	* objc-act.h (objc_printable_name): New.
	* objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.

From-SVN: r51066
2002-03-20 07:58:41 +00:00
Jim Blandy
f78ce0b72f c-lex.c (cb_file_change): Pass the #inclusion's line number to the start_source_file debug hook...
* c-lex.c (cb_file_change): Pass the #inclusion's line number to
the start_source_file debug hook, not the current line number.

From-SVN: r51064
2002-03-20 05:06:51 +00:00
David Edelsohn
0c2fdcdf7f * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
From-SVN: r51061
2002-03-19 21:37:21 -05:00
Richard Henderson
15b5aef3e7 flow.c (EH_USES): Provide default.
* flow.c (EH_USES): Provide default.
        (calculate_global_regs_live): Use it for EH edges and noreturn calls.
        * doc/tm.texi (EH_USES): New.

        * config/ia64/ia64.c (ia64_eh_uses): New.
        * config/ia64/ia64-protos.h: Update.
        * config/ia64/ia64.h (EH_USES): New.

From-SVN: r51060
2002-03-19 18:13:39 -08:00
Richard Henderson
02a7a3fda1 * varasm.c (output_constant_def): Fix stupid typo.
From-SVN: r51059
2002-03-19 18:12:18 -08:00
Richard Henderson
2842be0538 Mark PR last change.
From-SVN: r51056
2002-03-19 17:06:18 -08:00
Richard Henderson
93f82d6080 except.c (current_function_has_exception_handlers): New.
* except.c (current_function_has_exception_handlers): New.
        * except.h: Declare it.
        * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
        Combine tests that disable all sibcalls for the function.

From-SVN: r51054
2002-03-19 16:49:13 -08:00
Olivier Hainque
ed4fbfa016 varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO for INTEGER_CST.
* varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
	for INTEGER_CST.

From-SVN: r51052
2002-03-19 17:51:04 -05:00
Paolo Carlini
6d8e16a463 locale-inst.cc (__convert_from_v): Add an additional __size parameter in the declarations.
2002-03-19  Paolo Carlini  <pcarlini@unitus.it>
	    Ulrich Drepper  <drepper@redhat.com>

	* src/locale-inst.cc (__convert_from_v): Add an additional
	__size parameter in the declarations.
	* include/bits/locale_facets.tcc
	(__convert_from_v): When available (that is,
	_GLIBCPP_USE_C99 defined) use snprintf instead of sprintf.
	(num_put::_M_convert_float): Depending on _GLIBCPP_USE_C99
	being defined or not, call and use __convert_from_v in the
	appropriate way.
	(num_put::_M_convert_int): Same here.
	(money_put::do_put(long double)): Same here.

Co-Authored-By: Ulrich Drepper <drepper@redhat.com>

From-SVN: r51050
2002-03-19 22:33:06 +00:00
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