Commit Graph

40874 Commits

Author SHA1 Message Date
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
Jason Merrill
a6f3addd0b 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: r49577
2002-02-07 07:22:10 -05:00
Ulrich Weigand
fde5baddf4 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
From-SVN: r49576
2002-02-07 12:14:46 +00:00
Jan Hubicka
a9ca50b165 MAINTAINERS: Put self in as maintainer for x86-64 port.
* MAINTAINERS: Put self in as maintainer for x86-64 port.
	Remove self as Write After Approval.

From-SVN: r49575
2002-02-07 11:57:13 +00:00
Jan Hubicka
162f023b98 i386-protos.h (x86_order_regs_for_local_alloc): Declare
* i386-protos.h (x86_order_regs_for_local_alloc): Declare
	* i386.c (x86_order_regs_for_local_alloc): New global function.
	* i386.h (REG_ALLOC_ORDER): CLeanup.
	(ORDER_REGS_FOR_LOCAL_ALLOC): New.

From-SVN: r49574
2002-02-07 11:18:32 +00:00
David Billinghurst
3f9796f922 re PR fortran/3743 (Reference to intrinsic `ISHFT' invalid)
2002-02-07  David Billinghurst <David.Billinghurst@riotinto.com>

	PR fortran/3743
	* g77.f-torture/execute/intrinsic-unix-bessel.f: Remove
	unsupported cases.

From-SVN: r49573
2002-02-07 11:13:13 +00:00
Adam Megacz
1dd52a9935 For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux...
For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on
Linux; this patch backs out my patch that added the #ifdefs until I
can figure out what happened.

From-SVN: r49572
2002-02-07 10:02:59 +00:00
Richard Henderson
30203c18ab dwarf2-1.c: Update for return warnings.
* gcc.dg/debug/dwarf2-1.c: Update for return warnings.
	* gcc.dg/noncompile/920507-1.c, gcc.dg/noncompile/920721-2.c,
	gcc.dg/noncompile/label-lineno-1.c, objc.dg/const-str-1.m,
	objc.dg/const-str-2.m, objc.dg/method-1.m: Likewise.

From-SVN: r49571
2002-02-07 01:08:25 -08:00
Richard Henderson
9b462c4274 alias.c (find_base_value): Recall base values for fixed hard regs.
* alias.c (find_base_value): Recall base values for fixed hard regs.
	* loop.c (loop_regs_update): Don't use single_set on non-insns.

From-SVN: r49570
2002-02-07 00:57:04 -08:00
GCC Administrator
19c881777c Daily bump.
From-SVN: r49569
2002-02-07 08:17:30 +00:00
Alexandre Oliva
06e455a9db mips.md (define_delay): Adjust required length.
* config/mips/mips.md (define_delay) [mips16]: Adjust required
length.

From-SVN: r49567
2002-02-07 06:09:11 +00:00
Adam Megacz
b8fe3c1e06 configure.in: Changed mingw) to *mingw*).
2002-02-06  Adam Megacz <adam@xwt.org>

        * configure.in: Changed mingw) to *mingw*).
        * win32.cc: Created this file.
        * win32.h: Created this file.
        * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved
        win32_exception_handler from prims.cc to win32.cc, added
        header in win32.h.
        * prims.cc: removed some #ifdef-WIN32'd headers which are no
        longer needed now that we have platform.h

From-SVN: r49566
2002-02-07 05:26:42 +00:00
Adam Megacz
df79080e5f shs.h, [...]: use uint<n>_t instead of LONG and BYTE
2002-02-06  Adam Megacz <adam@xwt.org>

        * shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead
        of LONG and BYTE

From-SVN: r49565
2002-02-07 05:01:29 +00:00
Adam Megacz
4048d33691 name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
2002-02-06  Adam Megacz <adam@xwt.org>

        * name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H

From-SVN: r49564
2002-02-07 04:37:00 +00:00
Adam Megacz
b1d246853d gc.h: (GC_CreateThread) This function is now exposed on all Win32 platforms.
2002-02-06  Adam Megacz <adam@xwt.org>

        * boehm-gc/include/gc.h: (GC_CreateThread) This function is
        now exposed on all Win32 platforms.
        * boehm-gc/win32_threads.c: (GC_CreateThread) This now
        compiles on Win32; it invokes CreateThread() if GC is built
        as a DLL; otherwise it registers the thread.
        * boehm-gc/misc.c (GC_init): Initialize GC_allocate_ml in case
        libgcjgc was not built as a DLL.

From-SVN: r49563
2002-02-07 03:56:40 +00:00
Anthony Green
b5ee195f1e embedded updates
From-SVN: r49562
2002-02-07 03:24:12 +00:00
Tom Tromey
383aa2ef49 verify.cc (require_array_type): If argument is a null array of references, return null as the element type.
* verify.cc (require_array_type): If argument is a null array of
	references, return null as the element type.

From-SVN: r49561
2002-02-07 02:27:10 +00:00