Commit Graph

40740 Commits

Author SHA1 Message Date
Alexandre Oliva 7aa00daf45 ptrmem.C: Lowest bit is significant on SH5.
* g++.old-deja/g++.abi/ptrmem.C: Lowest bit is significant on SH5.
* g++.old-deja/g++.jason/thunk3.C: XFAIL on sh64-*-*.

From-SVN: r49629
2002-02-09 03:06:47 +00:00
Alexandre Oliva 40fe0ec3ce config.guess: Updated to 2002-01-30's version.
* config.guess: Updated to 2002-01-30's version.
* config.sub: Updated to 2002-02-01's version.
Contribute sh64-elf.
2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
* configure.in: Added sh64-*-*.

From-SVN: r49628
2002-02-09 03:00:13 +00:00
Alexandre Oliva e4ec2cac3f hooks.c: New file.
* hooks.c: New file.
* hooks.h: New file.
* Makefile.in (HOOKS_H): New.
(TARGET_DEF_H): Added $(HOOKS_H).
(OBJS): Added hooks.o.
(cfgcleanup.o, bb-reorder.o): Added target.h.
(hooks.o): Added dependencies.
* target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
(TARGET_INITIALIZER): this.
* doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
* target.h (struct gcc_target): Added cannot_modify_jumps_p.
* bb-reorder.c: Include target.h.
(reorder_basic_blocks): Skip if cannot modify jumps.
* cfgcleanup.c: Include target.h.
(try_optimize_cfg): Skip merge blocking if cannot modify jumps.

From-SVN: r49627
2002-02-09 02:18:12 +00:00
Anthony Green b6459d9a78 xscale-elf support
From-SVN: r49626
2002-02-09 00:50:05 +00:00
Richard Henderson 85aa876c4b Annotate changelog with pr number.
From-SVN: r49625
2002-02-08 16:30:30 -08:00
Chris Demetriou 246a46e002 mips.md (casesi_internal, [...]): Protect jump delay slot instructions with .set noreorder and .set nomacro.
2002-02-08  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (casesi_internal, casesi_internal_di):
        Protect jump delay slot instructions with .set noreorder and
        .set nomacro.

[Also, fix date on my previous checkin to the ChangeLog file.  It
should have been today's date.]

From-SVN: r49624
2002-02-08 14:51:30 -08:00
Chris Demetriou 6a5ea3f4ab mips.md (casesi_internal_di): Calculate the index into the target offset table correctly.
2002-02-07  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (casesi_internal_di): Calculate
        the index into the target offset table correctly.

From-SVN: r49623
2002-02-08 14:46:27 -08:00
Richard Henderson fdf473ae1b expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
* expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
        * final.c (output_addr_const): Accept and discard SUBREG.
        * varasm.c (decode_addr_const): Don't abort on unknown expressions --
        mark them unknown instead.
        (simplify_subtraction): Handle RTX_UNKNOWN.
        (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.

        * gcc.c-torture/compile/labels-3.c: New.

From-SVN: r49622
2002-02-08 14:20:16 -08:00
Tom Tromey 30d287947e interpret.cc (convert): New function.
* interpret.cc (convert): New function.
	(continue1) [insn_d2i, insn_d2l, insn_f2i, insn_f2l]: Use
	convert.
	Include Long.h.

From-SVN: r49621
2002-02-08 20:00:40 +00:00
David Edelsohn c50503ac9b * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
From-SVN: r49620
2002-02-08 13:44:24 -05:00
Joseph Myers 236930f5d7 gcc_release: Substitute dates in snapshot-README and snapshot-index.html files rather than...
* gcc_release: Substitute dates in snapshot-README and
	snapshot-index.html files rather than directly using the old files
	on the FTP site.  Set QMAILHOST.

From-SVN: r49619
2002-02-08 17:56:12 +00:00
Chris Demetriou 694d53ee5f MAINTAINERS: Belatedly add myself to write after approval list.
2002-02-08  Chris Demetriou  <cgd@broadcom.com>

	* MAINTAINERS: Belatedly add myself to write after approval list.

From-SVN: r49618
2002-02-08 09:38:00 -08:00
Gerald Pfeifer af1b92c22e * snapshot-index.html: Improve markup.
From-SVN: r49617
2002-02-08 15:41:03 +00:00
Anthony Green 9782d8f5aa Add xscale-elf support
From-SVN: r49616
2002-02-08 14:46:36 +00:00
Martin Kahlert d3ae0d490d jni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not dereferenced.
2002-02-08  Martin Kahlert  <martin.kahlert@infineon.com>

	* jni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not
	dereferenced.
	(_Jv_JNI_AttachCurrentThread): Produce full featured env->locals
	frame.

From-SVN: r49615
2002-02-08 14:18:24 +00:00
Benjamin Kosnik e7d7a7a734 2002-02-08 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h
	(numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
	(__timepunct<_CharT>::_M_initialize_timepunct): Same.
	(__timepunct<_CharT>::_M_put_helper): Same.
	(moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.

	* include/bits/fstream.tcc (filebuf::underflow): Remove
	__codecvt_type typedef.
	(filebuf::_M_convert_to_external): Same.

From-SVN: r49614
2002-02-08 12:59:49 +00:00
GCC Administrator 19afc459e6 Daily bump.
From-SVN: r49612
2002-02-08 08:16:18 +00:00
Richard Henderson 3660d2171c * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
From-SVN: r49611
2002-02-08 00:12:29 -08:00
Andreas Jaeger 565472991e config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
* config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
	* config/i386/t-linux64: New file.

From-SVN: r49610
2002-02-08 08:53:36 +01:00
Jakub Jelinek 1cf537c53e c-common.c (c_expand_expr): Revert 2002-02-06 patch.
* c-common.c (c_expand_expr): Revert 2002-02-06 patch.
	* c-parse.in (compstmt): Clear last_expr_type.

	* parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
	instead of compstmt.
	(compstmt_or_stmtexpr): Renamed from compstmt.
	(compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.

	* gcc.c-torture/execute/20020206-1.c: Test whether nesting 2
	expression statements work instead.
	* gcc.dg/noncompile/20020207-1.c: New test.

From-SVN: r49609
2002-02-08 08:51:19 +01:00
Phil Edwards 8f94053d32 TODO: Update.
2002-02-08  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/TODO:  Update.
	* docs/doxygen/doxygroups.cc:  Tweak __gnu_cxx description.
	* docs/doxygen/mainpage.html:  Add TODO list link.
	* docs/doxygen/user.cfg.in:  Add @doctodo hook.
	* docs/doxygen/tables.html:  New file, emoty structure only.

	* include/bits/stl_iterator.h:  Doxygenate just about everything.
	* include/bits/stl_iterator_base_funcs.h:  Ditto, clean up spaces.
	* include/bits/stl_iterator_base_types.h:  Add notes.

From-SVN: r49608
2002-02-08 07:34:54 +00:00
Tom Tromey 6478d7c9c1 natFile.cc (_access): Use __builtin_alloca.
* java/io/natFile.cc (_access): Use __builtin_alloca.
	(_stat): Likewise.
	(attr): Likewise.
	(getCanonicalPath): Likewise.
	(performList): Likewise.
	(performMkdir): Likewise.
	(performSetReadOnly): Likewise.
	(performRenameTo): Likewise.
	(performSetLastModified): Likewise.
	(performCreate): Likewise.
	(performDelete): Likewise.

From-SVN: r49607
2002-02-08 04:48:03 +00:00
Richard Henderson 5c7f5a5f55 loop.c (strength_reduce): Sink final_value when not eliminating a biv.
* loop.c (strength_reduce): Sink final_value when not
        eliminating a biv.

From-SVN: r49606
2002-02-07 19:36:35 -08:00
Richard Henderson 9dd7fc76c7 * gcc.dg/debug/dwarf2-1.c (foo): Return a value.
From-SVN: r49605
2002-02-07 19:34:02 -08:00
Adam Megacz b8d87c3632 Reformatted a changelog entry
From-SVN: r49604
2002-02-08 03:12:51 +00:00
David O'Brien b1138bf371 freebsd.h: Fix mismatched spec {.
2002-02-07  David O'Brien  <obrien@FreeBSD.org>
	* config/sparc/freebsd.h: Fix mismatched spec {.

From-SVN: r49603
2002-02-08 02:49:25 +00:00
Stephan Buys ad2a4e2b47 stl_map.h: Tweak doxygen markup.
2002-02-07  Stephan Buys  <sbproxy@icon.co.za>

	* include/bits/stl_map.h:  Tweak doxygen markup.
	* include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
	* include/bits/stl_vector.h:  Likewise.

From-SVN: r49602
2002-02-08 02:19:06 +00:00
Benjamin Kosnik 07814743cf std_fstream.h (filebuf::__file_type): Change to __basic_file<char>.
2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/5286
	libstdc++/3860
	* include/std/std_fstream.h (filebuf::__file_type): Change to
	__basic_file<char>.
	(filebuf::_M_convert_to_external): Declare.
	* include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
	codecvt bits for wide streams.
	(filebuf::_M_really_overflow): Use it.
	(filebuf::underflow): Use codecvt.
	* config/locale/codecvt_specializations_ieee_1003.1-200x.h:
	(codecvt<__enc_traits>::do_out): Deal with partial.
	(codecvt<__enc_traits>::do_encoding): Return something useful.
	* src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
	wchar_t.
	* testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
	Change expected encoding output.
	(test02): Same.
	* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
	(test02): Same.

From-SVN: r49601
2002-02-08 01:34:41 +00:00
Bryce McKinlay e291c8db1b * HACKING: Fix URL for the automake-gcj.
From-SVN: r49600
2002-02-08 01:22:47 +00:00
David Billinghurst fecb60af33 prune.exp: Remove "In (program|subroutine"block-data)" message from g77
2002-02-07  David Billinghurst <David.Billinghurst@riotinto.com>

	* lib/prune.exp: Remove "In (program|subroutine"block-data)"
	message from g77
	* lib/g77-dg.exp: Trim g77 error messages so that they are
	recognised by dg.exp.

From-SVN: r49599
2002-02-08 00:38:29 +00:00
Richard Henderson b6878a45f7 cfgrtl.c: Include recog.h and insn-config.h.
* cfgrtl.c: Include recog.h and insn-config.h.
        (keep_with_call_p): Fix general_operand invocation.
        * Makefile.in (cfgrtl.o): Update dependencies.

From-SVN: r49598
2002-02-07 16:35:15 -08:00
Kazu Hirata ae19f5ef34 h8300.c (two_insn_adds_subs_operand): Revise a comment.
* config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
	comment.  Accept HImode only if TARGET_H8300.

From-SVN: r49597
2002-02-08 00:26:36 +00:00
Richard Henderson 21e0995208 adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
* adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
        * adaint.h (__gnat_to_gm_time): Update prototype.

From-SVN: r49596
2002-02-07 15:53:29 -08:00
Eric Christopher b137f9fcd3 crtn.asm: Cleanup #ifdefs.
2002-02-07  Eric Christopher  <echristo@redhat.com>

	* config/mips/crtn.asm: Cleanup #ifdefs.

Add ChangeLog entry for previous patch that didn't seem to make it.

From-SVN: r49595
2002-02-07 23:43:23 +00:00
David Billinghurst d3dac0ae11 re PR fortran/5473 (ICE on BESJN(integer*8,real))
2002-02-07  David Billinghurst <David.Billinghurst@riotinto.com>

	PR fortran/5473
	* g77.dg/pr5473.f: Now dg-error.  Add additional cases.

From-SVN: r49594
2002-02-07 23:30:12 +00:00
Tom Rix 768070a00c Fix for string-opt-7 failure on rs6000 -maix64.
From-SVN: r49593
2002-02-07 21:57:55 +00:00
Richard Henderson ff9ea96711 new2.C: Arrange for allocated memory to be sufficiently aligned for integers.
* g++.old-deja/g++.brendan/new2.C: Arrange for allocated memory
        to be sufficiently aligned for integers.

From-SVN: r49592
2002-02-07 13:49:27 -08:00
Nathan Sidwell c2ea3a40d9 Rename instantiate_type_flags to tsubst_flags_t & expand use.
* cp-tree.h (instantiate_type_flags): Rename to ...
	(tsubst_flags_t): ... here. Rename itf_complain to tf_error,
	add tf_warning flag.
	(instantiate_type): Adjust prototype.
	(tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
	do_type_instantiation, cp_build_qualified_type_real): Likewise.
	cp_build_qualified_type: Adjust.
	* class.c (instantiate_type): Adjust parameter. Rename itf_* to
	tf_*.
	* call.c (standard_conversion): Rename itf_* to tf_*.
	(reference_binding): Likewise.
	(convert_like_real): Likewise.
	* cvt.c (cp_convert_to_pointer): Likewise.
	(convert_to_reference): Likewise.
	* decl.c (lookup_namespace_name): Use tf_* flags.
	(make_typename_type): Likewise.
	(grokdeclarator): Likewise.
	* pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
	(coerce_template_template_parms, convert_template_argument,
	coerce_template_parms, maybe_get_template_decl_from_type_decl,
	lookup_template_class, tsubst_friend_function, tsubst_friend_class,
	instantiate_class_template, tsubst_template_arg_vector,
	tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
	tsubst_decl, tsubst_arg_types, tsubst_function_type,
	tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
	instantiate_template, fn_type_unification,
	resolve_overloaded_unification, verify_class_unification,
	unify, get_bindings_real, do_type_instantiation,
	regenerate_decl_from_template, instantiate_decl,
	tsubst_initializer_list, tsubst_enum,
	get_mostly_instantiated_function_type,
	invalid_nontype_parm_type_p): Likewise.
	* tree.c (cp_build_qualified_type_real): Likewise.
	* typeck.c (build_binary_op): Rename itf_* to tf_*.
	(build_ptrmemfunc): Likewise.
	(convert_for_assignment): Likewise.

From-SVN: r49591
2002-02-07 20:51:15 +00:00
Benjamin Kosnik 3ab57fab23 basic_ios.tcc (basic_ios::narrow): Add default value.
2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
            Wolfgang Bangerth  <wolfgang.bangerth@iwr.uni-heidelberg.de>

	* include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
	(basic_ios::widen): Same.

Co-Authored-By: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>

From-SVN: r49590
2002-02-07 20:28:55 +00:00
Nathan Sidwell d5614afb57 re PR c++/109 (g++ 2.95.2 can't handle dependent friend member functions)
cp:
	PR c++/109
	* decl.c (grokdeclarator): Allow friend declarations from
	dependant types.
	* decl2.c (handle_class_head): Don't push into template parm contexts.
	* pt.c (push_template_decl_real): Template parm contexts are never
	being defined.
testsuite:
	* g++.dg/template/friend4.C: New test.

From-SVN: r49589
2002-02-07 19:49:10 +00:00
Tom Tromey 5d65aeb7e4 gcj.texi (Input Options): --CLASSPATH does not suppress system path.
* gcj.texi (Input Options): --CLASSPATH does not suppress system
	path.

From-SVN: r49588
2002-02-07 19:39:27 +00:00
Paolo Carlini a092e4ebba money_get_members_char.cc: Add comment, tidy up.
2002-02-07  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/money_get_members_char.cc:
	Add comment, tidy up.
	(test01): more "en_HK" tests (without showbase).
	* testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.

From-SVN: r49587
2002-02-07 19:27:38 +00:00
Tom Tromey 85ea93b38f natThrowable.cc: Updated copyright.
* java/lang/natThrowable.cc: Updated copyright.
	* java/io/natFileWin32.cc: Updated copyright.
	* java/io/natFileDescriptorWin32.cc: Updated copyright.
	* win32-threads.cc: Updated copyright.
	* name-finder.cc: Updated copyright.
	* include/name-finder.h: Updated copyright.

From-SVN: r49586
2002-02-07 19:26:06 +00:00
Tom Tromey 9f2618df7e name-finder.h: Conditionally include sys/wait.h.
* include/name-finder.h: Conditionally include sys/wait.h.
	* include/config.h.in: Rebuilt.

From-SVN: r49585
2002-02-07 19:25:28 +00:00
Tom Tromey fc7563ecb0 natFile.cc (_access): Don't stack-allocate buffer.
* java/io/natFile.cc (_access): Don't stack-allocate buffer.
	Size buffer based on real size of string.
	(_stat): Likewise.
	(attr): Likewise.
	(getCanonicalPath): Likewise.
	(performList): Likewise.
	(performMkdir): Likewise.
	(performSetReadOnly): Likewise.
	(unixroot): Removed.
	(performRenameTo): Likewise.
	(performSetLastModified): Likewise.
	(performCreate): Likewise.
	(performDelete): Likewise.
	(performListRoots): Always return new array.

From-SVN: r49584
2002-02-07 19:18:35 +00:00
Tom Tromey 73272ce608 prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
	* win32.cc (win32_exception_handler): Now static.
	* include/win32.h (_Jv_platform_initialize): Declare.
	(win32_exception_handler): Don't declare.
	* java/lang/natSystem.cc (currentTimeMillis): Use
	_Jv_platform_gettimeofday.
	* posix.cc (_Jv_platform_gettimeofday): Renamed.
	(_Jv_select): Use new name.
	(_Jv_platform_initialize): New function.
	* include/posix.h (_Jv_platform_gettimeofday): Renamed from
	_Jv_gettimeofday.
	(_Jv_platform_initialize): Declare.

From-SVN: r49583
2002-02-07 18:59:52 +00:00
Jeff Sturm 225909c3c9 sparc.c (compute_frame_size): Don't correct frame offset for stack bias.
* config/sparc/sparc.c (compute_frame_size): Don't correct frame
        offset for stack bias.

From-SVN: r49582
2002-02-07 10:48:13 -08:00
Tom Tromey 0669d0ed20 configure: Rebuilt.
* configure: Rebuilt.
	* configure.in: Removed unnecessary parens.

From-SVN: r49581
2002-02-07 18:21:19 +00:00
H.J. Lu 15fae023ea linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2002-02-07  H.J. Lu <hjl@gnu.org>

	* config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.

From-SVN: r49580
2002-02-07 09:05:40 -08:00
Jason Merrill 3adb9cb9af c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.
* c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49579
2002-02-07 07:36:46 -05:00