gcc.git
21 years agoResourceBundle.java (resourceBundleCache): Not final.
Mark Wielaard [Sun, 8 Dec 2002 23:38:02 +0000 (23:38 +0000)]
ResourceBundle.java (resourceBundleCache): Not final.

* java/util/ResourceBundle.java (resourceBundleCache): Not final.
(lastDefaultLocale): New field.
(getBundle): When Locale.getDefault != lastDefaultLocale reset
resourceBundleCache.

From-SVN: r59948

21 years agoi386.c (ix86_expand_int_movcc): Use force_operand instead of constructing insn directly.
Jan Hubicka [Sun, 8 Dec 2002 14:03:40 +0000 (15:03 +0100)]
i386.c (ix86_expand_int_movcc): Use force_operand instead of constructing insn directly.

* i386.c (ix86_expand_int_movcc):  Use force_operand instead of constructing
insn directly.

From-SVN: r59937

21 years agoDaily bump.
GCC Administrator [Sun, 8 Dec 2002 08:17:08 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59935

21 years agoNew test.
Gabriel Dos Reis [Sat, 7 Dec 2002 18:39:05 +0000 (18:39 +0000)]
New test.

From-SVN: r59920

21 years agoDaily bump.
GCC Administrator [Sat, 7 Dec 2002 08:17:27 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59910

21 years ago* config/h8300/h8300.md (*iorhi_shift_8): New.
Kazu Hirata [Sat, 7 Dec 2002 05:44:44 +0000 (05:44 +0000)]
* config/h8300/h8300.md (*iorhi_shift_8): New.

From-SVN: r59904

21 years agoFix errors in last change
Bernd Schmidt [Sat, 7 Dec 2002 02:31:34 +0000 (02:31 +0000)]
Fix errors in last change

From-SVN: r59903

21 years agoInetAddress.java (toString): Use hostname when not null, don't do an explicit reverse...
Mark Wielaard [Sat, 7 Dec 2002 01:19:02 +0000 (01:19 +0000)]
InetAddress.java (toString): Use hostname when not null, don't do an explicit reverse getHostName() lookup.

        * java/net/InetAddress.java (toString): Use hostname when not null,
        don't do an explicit reverse getHostName() lookup.
        * java/net/Socket.java (setSocketImplFactory): When fac == null throw
        NullPointerException.

From-SVN: r59902

21 years agoFRV docs
Bernd Schmidt [Fri, 6 Dec 2002 23:54:41 +0000 (23:54 +0000)]
FRV docs

From-SVN: r59901

21 years agojava-interp.h (class _Jv_InterpMethod): Added JV_MARKOBJ_DECL.
Tom Tromey [Fri, 6 Dec 2002 23:41:38 +0000 (23:41 +0000)]
java-interp.h (class _Jv_InterpMethod): Added JV_MARKOBJ_DECL.

* include/java-interp.h (class _Jv_InterpMethod): Added
JV_MARKOBJ_DECL.
* boehm.cc (_Jv_MarkObj): Consolidated interpreter code.  Also
mark `prepared' field of interpreted method.
* interpret.cc (compile): Use _Jv_AllocBytes.

From-SVN: r59900

21 years agoinstall.texi (Configuration): Improve description of cases where `make distclean...
Gerald Pfeifer [Fri, 6 Dec 2002 23:32:52 +0000 (00:32 +0100)]
install.texi (Configuration): Improve description of cases where `make distclean` may fail...

* doc/install.texi (Configuration): Improve description of cases
where `make distclean` may fail; clarify --with-gnu-as; fix grammar.

From-SVN: r59899

21 years agosh.c (calc_live_regs): Save fpscr only if target has FPU.
Dhananjay R. Deshpande [Fri, 6 Dec 2002 20:10:50 +0000 (20:10 +0000)]
sh.c (calc_live_regs): Save fpscr only if target has FPU.

2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>

* gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
FPU.
(push): Generate push_fpscr.
(pop): Generate pop_fpscr.
* gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
(fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.

From-SVN: r59893

21 years agoparse.y (source_end_java_method): Remove custom encoding of line numbers for a functi...
Ranjit Mathew [Fri, 6 Dec 2002 20:10:33 +0000 (20:10 +0000)]
parse.y (source_end_java_method): Remove custom encoding of line numbers for a function decl before passing it to...

2002-12-05  Ranjit Mathew <rmathew@hotmail.com>
        Andrew Haley <aph@redhat.com>

        * parse.y (source_end_java_method): Remove custom encoding of line
        numbers for a function decl before passing it to the back end.

Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r59892

21 years agosh.c (dump_table): DImode pool constants need only 32 bit alignment.
J"orn Rennecke [Fri, 6 Dec 2002 19:43:22 +0000 (19:43 +0000)]
sh.c (dump_table): DImode pool constants need only 32 bit alignment.

* sh.c (dump_table): DImode pool constants need only 32 bit alignment.
DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.

From-SVN: r59891

21 years ago* sh.md (movdi_i): Name. Remove inappropriate comment.
J"orn Rennecke [Fri, 6 Dec 2002 19:20:52 +0000 (19:20 +0000)]
* sh.md (movdi_i): Name.  Remove inappropriate comment.

From-SVN: r59890

21 years agobackport: sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
J"orn Rennecke [Fri, 6 Dec 2002 15:49:49 +0000 (15:49 +0000)]
backport: sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.

Merged from basic improvements branch (excerpt):

2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
* config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.

From-SVN: r59889

21 years agoDaily bump.
GCC Administrator [Fri, 6 Dec 2002 08:17:26 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59887

21 years agoexpr.c (expand_expr): Never modify exp in place.
Jakub Jelinek [Fri, 6 Dec 2002 07:07:57 +0000 (08:07 +0100)]
expr.c (expand_expr): Never modify exp in place.

* expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.

* gcc.c-torture/execute/20021204-1.c: New test.

From-SVN: r59881

21 years agopa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
John David Anglin [Fri, 6 Dec 2002 02:54:38 +0000 (02:54 +0000)]
pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.

* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
* pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.

From-SVN: r59879

21 years agoffi.h.in: Added FFI_STDCALL ffi_type enumeration for X86_WIN32.
Ranjit Mathew [Fri, 6 Dec 2002 01:16:45 +0000 (01:16 +0000)]
ffi.h.in: Added FFI_STDCALL ffi_type enumeration for X86_WIN32.

2002-11-10  Ranjit Mathew <rmathew@hotmail.com>

* include/ffi.h.in: Added FFI_STDCALL ffi_type
  enumeration for X86_WIN32.
* src/x86/win32.S: Added ffi_call_STDCALL function
  definition.
* src/x86/ffi.c (ffi_call/ffi_raw_call): Added
  switch cases for recognising FFI_STDCALL and
  calling ffi_call_STDCALL if target is X86_WIN32.
* src/ffitest.c (my_stdcall_strlen/stdcall_many):
  stdcall versions of the "my_strlen" and "many"
  test functions (for X86_WIN32).
  Added test cases to test stdcall invocation using
  these functions.

From-SVN: r59878

21 years agotree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.
Dale Johannesen [Fri, 6 Dec 2002 00:08:11 +0000 (00:08 +0000)]
tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.

2002-12-05  Dale Johannesen  <dalej@apple.com>

        * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.

From-SVN: r59875

21 years agocygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.
Danny Smith [Thu, 5 Dec 2002 23:55:15 +0000 (23:55 +0000)]
cygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.

* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.

From-SVN: r59874

21 years agospe.h (__ev_mwlufi): Remove.
Aldy Hernandez [Thu, 5 Dec 2002 23:02:19 +0000 (23:02 +0000)]
spe.h (__ev_mwlufi): Remove.

2002-12-05  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/spe.h (__ev_mwlufi): Remove.
(__ev_mwlufia): Remove.
(__ev_mwlumfaaw): Remove.
(__ev_mwlusfaaw): Remove.
(__ev_mwlumfanw): Remove.
(__ev_mwlusfanw): Remove.

From-SVN: r59871

21 years agoabi_check.cc: Add GLIBCPP_3.2.2.
Benjamin Kosnik [Thu, 5 Dec 2002 22:53:42 +0000 (22:53 +0000)]
abi_check.cc: Add GLIBCPP_3.2.2.

2002-12-05  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/abi_check.cc: Add GLIBCPP_3.2.2.

From-SVN: r59870

21 years ago* error.c (dump_expr): Fix format specifier warning.
Kaveh R. Ghazi [Thu, 5 Dec 2002 22:20:51 +0000 (22:20 +0000)]
* error.c (dump_expr): Fix format specifier warning.

From-SVN: r59867

21 years ago* config/h8300/h8300.md (*andorsi3_shift_8): New.
Kazu Hirata [Thu, 5 Dec 2002 14:54:47 +0000 (14:54 +0000)]
* config/h8300/h8300.md (*andorsi3_shift_8): New.

From-SVN: r59860

21 years agoh8300.c (shift_alg_si): Optimize ashift:HI and lshiftrt:SI by 28, 29, and 30 bits...
Kazu Hirata [Thu, 5 Dec 2002 13:19:16 +0000 (13:19 +0000)]
h8300.c (shift_alg_si): Optimize ashift:HI and lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.

* config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
(get_shift_alg): Return optimal assembly instructions for the
shifts mentioned above.

From-SVN: r59859

21 years agonatStackTrace.cc (fillInStackTrace): Throw #ifdef (HAVE_BACKTRACE) around the whole...
Andrew Haley [Thu, 5 Dec 2002 11:35:11 +0000 (11:35 +0000)]
natStackTrace.cc (fillInStackTrace): Throw #ifdef (HAVE_BACKTRACE) around the whole function body.

2002-12-05  Andrew Haley  <aph@redhat.com>

* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Throw
#ifdef (HAVE_BACKTRACE) around the whole function body.

From-SVN: r59855

21 years agoDaily bump.
GCC Administrator [Thu, 5 Dec 2002 08:17:18 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59854

21 years agooverride.java: New file.
Tom Tromey [Thu, 5 Dec 2002 08:06:10 +0000 (08:06 +0000)]
override.java: New file.

* libjava.lang/override.java: New file.
* libjava.lang/override.out: New file.

From-SVN: r59848

21 years agoClass.h (_Jv_SetVTableEntries): Updated declaration.
Tom Tromey [Thu, 5 Dec 2002 07:43:45 +0000 (07:43 +0000)]
Class.h (_Jv_SetVTableEntries): Updated declaration.

* java/lang/Class.h (_Jv_SetVTableEntries): Updated declaration.
* resolve.cc: Don't include AbstractMethodError.h.
(_Jv_abstractMethodError): Removed.
* defineclass.cc (handleMethodsBegin): Initialize method index to
-1.
* java/lang/natClass.cc (_Jv_LayoutVTableMethods): Don't set
method index for "new" final method.
(_Jv_SetVTableEntries): Compare index against -1 instead of using
isVirtualMethod.  Added `flags' argument.
(_Jv_MakeVTable): Throw exception for abstract method in concrete
class.

From-SVN: r59847

21 years agoFixed snafu caused when fixing previous snafu.
Tom Tromey [Thu, 5 Dec 2002 02:23:57 +0000 (02:23 +0000)]
Fixed snafu caused when fixing previous snafu.

From-SVN: r59846

21 years agoh8300.c (h8300_init_once): Do not use loop to implement ashiftrt:HI by 13 bits on...
Kazu Hirata [Thu, 5 Dec 2002 02:23:26 +0000 (02:23 +0000)]
h8300.c (h8300_init_once): Do not use loop to implement ashiftrt:HI by 13 bits on H8S.

* config/h8300/h8300.c (h8300_init_once): Do not use loop to
implement ashiftrt:HI by 13 bits on H8S.

From-SVN: r59845

21 years agoFixed ChangeLog patch snafu
Tom Tromey [Thu, 5 Dec 2002 02:22:25 +0000 (02:22 +0000)]
Fixed ChangeLog patch snafu

From-SVN: r59844

21 years ago* java/net/SocketPermission.java (hashCode): Rewrote.
Tom Tromey [Thu, 5 Dec 2002 02:16:29 +0000 (02:16 +0000)]
* java/net/SocketPermission.java (hashCode): Rewrote.

From-SVN: r59843

21 years agofptr.c (__canonicalize_funcptr_for_compare): New file and function.
John David Anglin [Thu, 5 Dec 2002 01:57:27 +0000 (01:57 +0000)]
fptr.c (__canonicalize_funcptr_for_compare): New file and function.

* pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
* pa.md (canonicalize_funcptr_for_compare): Output library call to
canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
CTOR_LIST_BEGIN): New defines.
* pa/t-linux (LIB2FUNCS_EXTRA): New define.
(fptr.c): Add make rules.

From-SVN: r59842

21 years agoIndex: gcc/ChangeLog
Geoffrey Keating [Thu, 5 Dec 2002 01:05:13 +0000 (01:05 +0000)]
Index: gcc/ChangeLog
2002-12-02  Geoffrey Keating  <geoffk@apple.com>

* combine.c (combine_simplify_rtx): Add new canonicalizations.
* doc/md.texi (Insn Canonicalizations): Document new
canonicalizations for multiply/add combinations.
* config/rs6000/rs6000.md: Add and modify floating add/multiply
patterns to ensure they're used whenever they can be.

Index: gcc/testsuite/ChangeLog
2002-12-02  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/ppc-fmadd-1.c: New file.
* gcc.dg/ppc-fmadd-2.c: New file.
* gcc.dg/ppc-fmadd-3.c: New file.

From-SVN: r59841

21 years agoMakefile.in: Rebuilt.
Tom Tromey [Thu, 5 Dec 2002 00:49:30 +0000 (00:49 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added natVMSecurityManager,
natResourceBundle.
* java/util/ResourceBundle.java (Security): Removed.
(getCallingClassLoader): Now native.
* java/util/natResourceBundle.cc: New file.
* java/lang/natVMSecurityManager.cc: New file.
* java/lang/VMSecurityManager.java (getClassContext): Now native.

From-SVN: r59840

21 years ago* MAINTAINERS: Add Christian Ehrhardt under "GNATS only".
Gerald Pfeifer [Thu, 5 Dec 2002 00:30:12 +0000 (01:30 +0100)]
* MAINTAINERS: Add Christian Ehrhardt under "GNATS only".

From-SVN: r59839

21 years ago* config/h8300/h8300.c: Update the comments related to shifts.
Kazu Hirata [Wed, 4 Dec 2002 23:45:42 +0000 (23:45 +0000)]
* config/h8300/h8300.c: Update the comments related to shifts.

From-SVN: r59836

21 years agomips.md (get_fnaddr): Correct length attribute.
Chris Demetriou [Wed, 4 Dec 2002 22:09:35 +0000 (22:09 +0000)]
mips.md (get_fnaddr): Correct length attribute.

2002-12-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (get_fnaddr): Correct length attribute.

From-SVN: r59833

21 years agoh8300.md (*extzv_8_8): New.
Kazu Hirata [Wed, 4 Dec 2002 21:01:54 +0000 (21:01 +0000)]
h8300.md (*extzv_8_8): New.

* config/h8300/h8300.md (*extzv_8_8): New.
(*extzv_8_16): Likewise.

From-SVN: r59832

21 years agoclass.c (finish_struct_1): Correct comment.
Geoffrey Keating [Wed, 4 Dec 2002 20:17:49 +0000 (20:17 +0000)]
class.c (finish_struct_1): Correct comment.

* class.c (finish_struct_1): Correct comment.
* cp-tree.c (DECL_SORTED_FIELDS): Likewise.

From-SVN: r59828

21 years agoPR c++/8461, c++/8625
Jason Merrill [Wed, 4 Dec 2002 20:13:01 +0000 (15:13 -0500)]
PR c++/8461, c++/8625

        PR c++/8461, c++/8625
        * integrate.c (copy_decl_for_inlining): Handle explicit invisible
        references.
        * tree-inline.c (initialize_inlined_parameters): Likewise.

2002-12-03  Jason Merrill  <jason@redhat.com>

        PR c++/8461, c++/8625
        * call.c (convert_for_arg_passing): Don't mess with error_mark_node.
        (cp_convert_parm_for_inlining): Remove.
        * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
        Remove.
        * cp-tree.h (ADDR_IS_INVISIREF): Remove.
        * except.c (stabilize_throw_expr): Remove ADDR_IS_INVISIREF code.

From-SVN: r59827

21 years agomips.md (get_fnaddr): Avoid placing an "la" macro instruction in a branch delay slot...
Chris Demetriou [Wed, 4 Dec 2002 19:39:57 +0000 (19:39 +0000)]
mips.md (get_fnaddr): Avoid placing an "la" macro instruction in a branch delay slot...

2002-12-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
        macro instruction in a branch delay slot, to avoid assembler
        warnings.

From-SVN: r59825

21 years ago* fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
Jakub Jelinek [Wed, 4 Dec 2002 15:50:26 +0000 (16:50 +0100)]
* fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).

From-SVN: r59819

21 years ago* gcc.c-torture/compile/20021204-1.c: New test.
Eric Botcazou [Wed, 4 Dec 2002 15:06:23 +0000 (16:06 +0100)]
* gcc.c-torture/compile/20021204-1.c: New test.

From-SVN: r59818

21 years agore PR c/7622 (tree inliner fallout (regression relative to 2.95))
Eric Botcazou [Wed, 4 Dec 2002 14:58:19 +0000 (14:58 +0000)]
re PR c/7622 (tree inliner fallout (regression relative to 2.95))

PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined
nested functions that contain no code.

From-SVN: r59817

21 years agocfgrtl.c (force_nonfallthru_and_redirect): Allow abnormal edge to be forced into...
Jan Hubicka [Wed, 4 Dec 2002 14:21:58 +0000 (15:21 +0100)]
cfgrtl.c (force_nonfallthru_and_redirect): Allow abnormal edge to be forced into nonfallthru.

* cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
to be forced into nonfallthru.

From-SVN: r59816

21 years agore PR c++/8799 (ICE: Error reporting routines re-entered.)
Gabriel Dos Reis [Wed, 4 Dec 2002 11:32:14 +0000 (11:32 +0000)]
re PR c++/8799 (ICE: Error reporting routines re-entered.)

        PR C++/8799
        * error.c (dump_expr): Don't ever try to dump a non-existent
        expression.

From-SVN: r59814

21 years agoDaily bump.
GCC Administrator [Wed, 4 Dec 2002 08:17:32 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59807

21 years agomake-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): Define for hosts with HOST_EXEC...
Danny Smith [Wed, 4 Dec 2002 01:57:27 +0000 (01:57 +0000)]
make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): Define for hosts with HOST_EXECUTABLE_SUFFIX.

* make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
Define for hosts with HOST_EXECUTABLE_SUFFIX.

From-SVN: r59797

21 years ago* config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
Jason Thorpe [Wed, 4 Dec 2002 01:33:38 +0000 (01:33 +0000)]
* config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).

From-SVN: r59795

21 years agospe.md (*movv1di_const0): New pattern.
Aldy Hernandez [Tue, 3 Dec 2002 23:41:32 +0000 (23:41 +0000)]
spe.md (*movv1di_const0): New pattern.

2002-12-03  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.md (*movv1di_const0): New pattern.

From-SVN: r59791

21 years agoJarFile.java (manifest): Not final.
Mark Wielaard [Tue, 3 Dec 2002 22:06:31 +0000 (22:06 +0000)]
JarFile.java (manifest): Not final.

        * java/util/jar/JarFile.java (manifest): Not final.
        (manifestRead): New field.
        (JarFile): Don't read Manifest in constructor.
        (getManifest): New method.
        (JarEnumeration.nextElement): Use new method.
        (getEntry): Likewise.
        * java/util/zip/ZipFile.java (name): Final.
        (raf): Likewsie.
        (entries): Change type to Hashtable.
        (closed): New field.
        (ZipFile): Don't read enties in constructor.
        (readEntries): Use Hashtable.
        (close): Set new close flag and set entries to null inside
        synchronized block.
        (entries): Contruct enumeration using new getEntries() method and
        entries Hashtable.
        (getEntryIndex): Removed.
        (getEntries): New method.
        (getEntry): Use new getEntries() method and entries Hastable.
        (getInputStream): Likewise.
        (size): Return getEntries().size().
        (ZipEntryEnumeration): Wrap entries Hashtable elements.
        * java/util/zip/ZipEntry.java (cal): Don't initialize.
        (time): Removed
        (dostime): New field.
        (zipFileIndex): Removed.
        (ZipEntry(ZipEntry)): Copy dostime.
        (setDOSTime): Now final and doesn't convert dos time.
        (getDOSTime): Likewise.
        (setTime): Convert dos time.
        (getTime): Likewise.
        (getCalendar): New method.
        (setExtra): Use setTime().
        * java/util/zip/ZipInputStream.java (getNextEntry): Format error msg.

From-SVN: r59785

21 years ago* libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
Richard Henderson [Tue, 3 Dec 2002 22:04:22 +0000 (14:04 -0800)]
* libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.

From-SVN: r59784

21 years agobitmap.c (bitmap_ior_and_compl, [...]): Initialize tmp.using_obstack to 0.
Hans-Peter Nilsson [Tue, 3 Dec 2002 21:00:16 +0000 (21:00 +0000)]
bitmap.c (bitmap_ior_and_compl, [...]): Initialize tmp.using_obstack to 0.

* bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
Initialize tmp.using_obstack to 0.

From-SVN: r59782

21 years ago* java/lang/Character.java (forDigit): Formatting fix.
Tom Tromey [Tue, 3 Dec 2002 20:13:43 +0000 (20:13 +0000)]
* java/lang/Character.java (forDigit): Formatting fix.

From-SVN: r59781

21 years agom68k.h (EH_RETURN_DATA_REGNO): Define.
Andreas Schwab [Tue, 3 Dec 2002 19:45:30 +0000 (19:45 +0000)]
m68k.h (EH_RETURN_DATA_REGNO): Define.

* config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
(EH_RETURN_STACKADJ_RTX): Define.
(EH_RETURN_HANDLER_RTX): Define.
(ASM_PREFERRED_EH_DATA_FORMAT): Define.
* config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
registers and don't save fixed registers.
(m68k_output_function_prologue): Use it.
(use_return_insn): Likewise.
(m68k_output_function_epilogue): Likewise.

From-SVN: r59780

21 years agoDSAParameterSpec.java (getP): Return p, not q.
Raif Naffah [Tue, 3 Dec 2002 18:46:59 +0000 (18:46 +0000)]
DSAParameterSpec.java (getP): Return p, not q.

2002-12-03  Raif Naffah  <raif@fl.net.au>

        * java/security/spec/DSAParameterSpec.java (getP): Return p, not q.
        * java/security/spec/DSAPrivateKeySpec.java (getP): Likewise.
        * java/security/spec/DSAPublicKeySpec.java (getP): Likewise.

From-SVN: r59779

21 years agocall.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on an ambiguous conversion.
Jason Merrill [Tue, 3 Dec 2002 17:29:43 +0000 (12:29 -0500)]
call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on an ambiguous conversion.

        * call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
        an ambiguous conversion.

From-SVN: r59775

21 years agoh8300.c (single_one_operand): Fix a warning.
Kazu Hirata [Tue, 3 Dec 2002 14:36:41 +0000 (14:36 +0000)]
h8300.c (single_one_operand): Fix a warning.

* config/h8300/h8300.c (single_one_operand): Fix a warning.
(single_zero_operand): Likewise.

From-SVN: r59772

21 years agonatClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
Andrew Haley [Tue, 3 Dec 2002 13:53:27 +0000 (13:53 +0000)]
natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.

2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
* java/lang/VMThrowable.java: Use StackTrace instead of
natVMTHrowable.
* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
* gnu/gcj/runtime/natStackTrace.cc: New file.
* gnu/gcj/runtime/MethodRef.java: New file.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

From-SVN: r59771

21 years agonatClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
Andrew Haley [Tue, 3 Dec 2002 13:50:40 +0000 (13:50 +0000)]
natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.

2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
* java/lang/VMThrowable.java: Use StackTrace instead of
natVMTHrowable.
* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

From-SVN: r59770

21 years agonatClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
Andrew Haley [Tue, 3 Dec 2002 13:50:05 +0000 (13:50 +0000)]
natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.

2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
* java/lang/VMThrowable.java: Use StackTrace instead of
natVMTHrowable.
* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

2002-12-03  Andrew Haley  <aph@redhat.com>

* class.c (make_class_data): New field, "chain".
* decl.c (java_init_decl_processing): Likewise.

From-SVN: r59769

21 years agore PR c++/8688 (ICE with segfault on missing comma in initializer of 2D array.)
Mark Mitchell [Tue, 3 Dec 2002 09:05:36 +0000 (09:05 +0000)]
re PR c++/8688 (ICE with segfault on missing comma in initializer of 2D array.)

PR c++/8688
* decl.c (reshape_init): Handle erroneous initializers.

PR c++/8688
* g++.dg/init/brace3.C: New test.

From-SVN: r59768

21 years agoDaily bump.
GCC Administrator [Tue, 3 Dec 2002 08:17:12 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59766

21 years agore PR c++/8720 (ICE with bitwise or (3 operands))
Mark Mitchell [Tue, 3 Dec 2002 06:52:25 +0000 (06:52 +0000)]
re PR c++/8720 (ICE with bitwise or (3 operands))

PR c++/8720
* spew.c (remove_last_token): Make sure that last_chunk is set
correctly.

PR c++/8615
* error.c (dump_expr): Handle character constants with
TREE_OVERFLOW set.

PR c++/8720
* g++.dg/parse/defarg1.C: New test.

PR c++/8615
* g++.dg/template/char1.C: New test.

From-SVN: r59757

21 years agojni.cc: Added `name' argument.
Tom Tromey [Tue, 3 Dec 2002 03:54:05 +0000 (03:54 +0000)]
jni.cc: Added `name' argument.

* jni.cc: Added `name' argument.
* include/jni.h (struct JNINativeInterface) [DefineClass]: Added
`const char *' argument.
(class _Jv_JNIEnv) [DefineClass]: Likewise.

From-SVN: r59756

21 years agoh8300.c (dosize): Replace argument op with sign.
Kazu Hirata [Mon, 2 Dec 2002 22:22:05 +0000 (22:22 +0000)]
h8300.c (dosize): Replace argument op with sign.

* config/h8300/h8300.c (dosize): Replace argument op with
sign.
(h8300_output_function_prologue): Update the call to dosize.
(h8300_output_function_epilogue): Likewise.

From-SVN: r59746

21 years agobasic_string.h (compare(const basic_string&)): Fully qualify min() with std::.
Paolo Carlini [Mon, 2 Dec 2002 22:15:54 +0000 (23:15 +0100)]
basic_string.h (compare(const basic_string&)): Fully qualify min() with std::.

2002-12-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.h (compare(const basic_string&)):
Fully qualify min() with std::.

From-SVN: r59745

21 years agoBug compatibility, for PR libgcj/8738:
Tom Tromey [Mon, 2 Dec 2002 21:30:13 +0000 (21:30 +0000)]
Bug compatibility, for PR libgcj/8738:

* java/io/CharArrayWriter.java (close): Do nothing.
(flush): Likewise.
(reset): Don't touch `closed'.
(write(int)): Don't throw IOException.
(write(char[],int,int)): Likewise.
(write(String,int,int)): Likewise.
(closed): Removed.

From-SVN: r59743

21 years ago* config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
Bob Wilson [Mon, 2 Dec 2002 21:24:44 +0000 (21:24 +0000)]
* config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.

From-SVN: r59740

21 years ago* gcc.dg/20020210-1.c: Fix a comment typo.
Kazu Hirata [Mon, 2 Dec 2002 20:28:38 +0000 (20:28 +0000)]
* gcc.dg/20020210-1.c: Fix a comment typo.

From-SVN: r59736

21 years agoconfigure.in: Use "missing" script to generate warning if flex or bison programs...
Craig Rodrigues [Mon, 2 Dec 2002 20:22:14 +0000 (15:22 -0500)]
configure.in: Use "missing" script to generate warning if flex or bison programs not found...

* configure.in: Use "missing" script to generate warning if
flex or bison programs not found, instead of invoking "false".
* configure: Rebuilt.

From-SVN: r59735

21 years ago* g++.dg/template/varmod1.C: Fix typo.
Mark Mitchell [Mon, 2 Dec 2002 19:44:13 +0000 (19:44 +0000)]
* g++.dg/template/varmod1.C: Fix typo.

From-SVN: r59733

21 years ago* unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
Jan Hubicka [Mon, 2 Dec 2002 19:29:45 +0000 (20:29 +0100)]
* unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.

From-SVN: r59732

21 years agoconfigure.in (libtool_VERSION): Update to 5:2:0.
Benjamin Kosnik [Mon, 2 Dec 2002 19:24:11 +0000 (19:24 +0000)]
configure.in (libtool_VERSION): Update to 5:2:0.

2002-12-02  Benjamin Kosnik  <bkoz@redhat.com>

* configure.in (libtool_VERSION): Update to 5:2:0.
* configure: Regenerate.

From-SVN: r59729

21 years agoFor PR java/8740:
Tom Tromey [Mon, 2 Dec 2002 19:04:14 +0000 (19:04 +0000)]
For PR java/8740:

* parse.y (do_resolve_class): Handle qualified name via
recursion.

From-SVN: r59728

21 years agobasic_string.tcc (basic_string::append(const basic_string&, size_type, size_type...
Paolo Carlini [Mon, 2 Dec 2002 18:53:41 +0000 (19:53 +0100)]
basic_string.tcc (basic_string::append(const basic_string&, size_type, size_type), [...]): Fully qualify min() with std::.

2002-12-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc
(basic_string::append(const basic_string&, size_type,
size_type), basic_string::compare(size_type, size_type,
const basic_string&), basic_string::compare(size_type,
size_type, const basic_string&, size_type, size_type),
basic_string::compare(const _CharT*), basic_string::
compare(size_type, size_type, const _CharT*),
basic_string::compare(size_type, size_type, const _CharT*,
size_type), _S_string_copy(const basic_string&, _CharT*,
typename _Alloc::size_type)): Fully qualify min() with std::.

2002-12-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc
(basic_string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Delay the declaration of __dnew,
fully qualify distance() with std::.
(basic_string::_M_replace_safe): Fully qualify distance()
with std::.

From-SVN: r59726

21 years ago* i386.c (ix86_expand_int_movcc): Avoid overflow.
Jan Hubicka [Mon, 2 Dec 2002 18:44:05 +0000 (19:44 +0100)]
* i386.c (ix86_expand_int_movcc):  Avoid overflow.

From-SVN: r59724

21 years agoDR 180
Kriang Lerdsuwanakij [Mon, 2 Dec 2002 17:03:13 +0000 (17:03 +0000)]
DR 180

DR 180
* decl.c (grokdeclarator): Require class-key for all friend class.
Output the correct type and context in the error message.

* g++.old-deja/g++.pt/crash32.C: Expect error.

From-SVN: r59719

21 years agoh8300.c (dosize): Output r7/er7 instead of sp.
Kazu Hirata [Mon, 2 Dec 2002 16:54:14 +0000 (16:54 +0000)]
h8300.c (dosize): Output r7/er7 instead of sp.

* config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
(push): Likewise.
(pop): Likewise.
(h8300_output_function_prologue): Likewise.
(h8300_output_function_epilogue): Likewise.

From-SVN: r59718

21 years agoexpmed.c (store_bit_field): Use int_mode_for_mode to find corresponding mode of non...
J"orn Rennecke [Mon, 2 Dec 2002 14:44:17 +0000 (14:44 +0000)]
expmed.c (store_bit_field): Use int_mode_for_mode to find corresponding mode of non-integer mode...

* expmed.c (store_bit_field): Use int_mode_for_mode to find
corresponding mode of non-integer mode, unless it is VOIDmode.

From-SVN: r59716

21 years agoh8300.md (stm_h8300s_2): New.
Kazu Hirata [Mon, 2 Dec 2002 14:24:11 +0000 (14:24 +0000)]
h8300.md (stm_h8300s_2): New.

* config/h8300/h8300.md (stm_h8300s_2): New.
(stm_h8300s_3): Likewise.
(stm_h8300s_4): Likewise.
(five define_peephole2): Likewise.

From-SVN: r59715

21 years agoDaily bump.
GCC Administrator [Mon, 2 Dec 2002 08:17:22 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59712

21 years ago* ra-build.c: Fix a comment typo.
Kazu Hirata [Mon, 2 Dec 2002 05:12:53 +0000 (05:12 +0000)]
* ra-build.c: Fix a comment typo.

From-SVN: r59705

21 years agoh8300.c (h8300_output_function_prologue): Remove variable idx.
Kazu Hirata [Mon, 2 Dec 2002 02:02:43 +0000 (02:02 +0000)]
h8300.c (h8300_output_function_prologue): Remove variable idx.

* config/h8300/h8300.c (h8300_output_function_prologue):
Remove variable idx.
(h8300_output_function_epilogue): Likewise.

From-SVN: r59703

21 years agojacks.exp (gcj_jacks_setup_xfail): New function.
Tom Tromey [Sun, 1 Dec 2002 23:50:03 +0000 (23:50 +0000)]
jacks.exp (gcj_jacks_setup_xfail): New function.

* libjava.jacks/jacks.exp (gcj_jacks_setup_xfail): New function.
(gcj_jacks_parse): Use it; set up xfails.
* libjava.jacks/jacks.xfail: New file.

From-SVN: r59702

21 years agore PR c++/5919 (ICE when passing variable array to template function)
Mark Mitchell [Sun, 1 Dec 2002 20:46:08 +0000 (20:46 +0000)]
re PR c++/5919 (ICE when passing variable array to template function)

PR c++/5919
* g++.dg/template/varmod1.C: New test.

PR c++/5919
* pt.c (unify): Use variably_modified_type_p to test validity of
template argument types.

From-SVN: r59698

21 years agore PR c++/8727 (compiler confused by inheritance from an anonymous struct)
Mark Mitchell [Sun, 1 Dec 2002 20:27:37 +0000 (20:27 +0000)]
re PR c++/8727 (compiler confused by inheritance from an anonymous struct)

PR c++/8727
* g++.dg/inherit/typeinfo1.C: New test.

PR c++/8663
* g++.dg/inherit/typedef1.C: New test.

PR c++/8727
* cp-tree.h (lang_type_class): Add typeinfo_var.
(CLASSTYPE_TYPEINFO_VAR): New macro.
* rtti.c (get_tinfo_decl): Use it.

PR c++/8663
* init.c (expand_member_init): Always get the main variant of a
base class.

From-SVN: r59694

21 years ago* config/frv/xm-frv.h: Delete, unnecessary.
Zack Weinberg [Sun, 1 Dec 2002 19:16:12 +0000 (19:16 +0000)]
* config/frv/xm-frv.h: Delete, unnecessary.

From-SVN: r59693

21 years ago* config/h8300/h8300.md: Add comments for define_peephole2.
Kazu Hirata [Sun, 1 Dec 2002 18:04:06 +0000 (18:04 +0000)]
* config/h8300/h8300.md: Add comments for define_peephole2.

From-SVN: r59690

21 years agore PR c++/8332 (strlen/template interaction causes ICE)
Mark Mitchell [Sun, 1 Dec 2002 17:51:51 +0000 (17:51 +0000)]
re PR c++/8332 (strlen/template interaction causes ICE)

PR c++/8332
PR c++/8493
* decl.c (cxx_init_decl_processing): Use size_type_node, not
c_size_type_node.
* decl2.c (coerce_new_type): Likewise.
* except.c (do_allocate_exception): Likewise.

* builtin-types.def (BT_SIZE): Use size_type_node.
* builtins.c (fold_builtin): Make the builtin strlen returns a
size_t, not a sizetype.
* c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
c_size_type_node.
(c_alignof_expr): Likewise.
(c_common_nodes_and_builtins): Likewise.
* c-common.h (CTI_C_SIZE_TYPE): Remove.
(c_size_type_node): Likewise.
* c-format.c (T_ST): Use size_type_node, not c_size_type_node.
* tree.h (TI_SIZE_TYPE): New enumeral.
(size_type_node): Likewise.

PR c++/8332
PR c++/8493
* g++.dg/template/strlen1.C: New test.

From-SVN: r59689

21 years agoRevert change accidentally applied to wrong branch
Zack Weinberg [Sun, 1 Dec 2002 17:32:33 +0000 (17:32 +0000)]
Revert change accidentally applied to wrong branch

From-SVN: r59688

21 years agoSecurityManager.java: Remerge comments, indenting and checkXXX methods with Classpath.
Mark Wielaard [Sun, 1 Dec 2002 16:16:19 +0000 (16:16 +0000)]
SecurityManager.java: Remerge comments, indenting and checkXXX methods with Classpath.

       * java/lang/SecurityManager.java: Remerge comments, indenting and
       checkXXX methods with Classpath.

From-SVN: r59685

21 years ago* libjava.mauve/xfails: Remove Inspector FAILs that now PASS.
Mark Wielaard [Sun, 1 Dec 2002 15:50:33 +0000 (15:50 +0000)]
* libjava.mauve/xfails: Remove Inspector FAILs that now PASS.

From-SVN: r59680

21 years agoDaily bump.
GCC Administrator [Sun, 1 Dec 2002 08:17:11 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r59679

21 years agoi * configure.in: Don't put ${tm_file} into host_xm_file,
Zack Weinberg [Sun, 1 Dec 2002 05:43:14 +0000 (05:43 +0000)]
i * configure.in: Don't put ${tm_file} into host_xm_file,

build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
Take location of tm-preds.h into account when calculating
tm_p_file_list.
* configure: Regenerate.
* mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
arguments.  Do not provide rtx, rtvec, tree, or GTY here.
Remove special case code for tm_p.h and *config.h; add new
special case code for tm.h and tconfig.h. Clean up a bit.

* Makefile.in (tm_file, tm_file_list): New variables set from
@-substitutions.
(GCONFIG_H): Deleted.
(GTM_H, TM_H): New.
(CONFIG_H): Is now just config.h $(host_xm_file_list).
(TM_P_H): Move up with the other mkconfig.sh-generated
headers; don't mention tm-preds.h explicitly.
(tm.h, cs-tm.h): New rule.
(cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
invocations of mkconfig.sh for changes to that program.
(mostlyclean): Delete print-rtl1.c.
(clean): Delete tm.h.
* Makefile.in, ada/Make-lang.in, cp/Make-lang.in,
f/Make-lang.in, java/Make-lang.in, objc/Make-lang.in,
treelang/Make-lang.in: Update dependencies for the files
listed below.
* mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.

* coretypes.h: New file.
* system.h: #define malloc to xmalloc and realloc to xrealloc
when FLEX_SCANNER or YYBISON is defined, independent of the
value of GCC_VERSION.
* alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
gencheck.c, gencodes.c, genconditions.c, genconfig.c,
genconstants.c, genemit.c, genextract.c, genflags.c,
gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
print-tree.c, profile.c, protoize.c, ra-build.c,
ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
regrename.c, reload.c, reload1.c, reorg.c, resource.c,
rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
xcoffout.c, config/darwin-c.c, config/darwin.c,
config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
config/i960/i960-c.c, config/i960/i960.c,
config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
config/m32r/m32r.c, config/m68hc11/m68hc11.c,
config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
config/mips/irix6-libc-compat.c, config/mips/mips.c,
config/mmix/mmix.c, config/mn10200/mn10200.c,
config/mn10300/mn10300.c, config/ns32k/ns32k.c,
config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
config/sparc/sparc.c, config/stormy16/stormy16.c,
config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
Include coretypes.h and tm.h.

* genattrtab.c, genconditions.c, genemit.c, genextract.c,
gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
genrecog.c: Include coretypes.h and tm.h from the file
generated by this program.

* unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
coretypes.h and tm.h, and tsystem.h when not already included.
No need to include stddef.h nor stdlib.h.

* ada/cuintp.c, ada/decl.c, ada/deftarg.c, ada/misc.c,
ada/targtyps.c, ada/trans.c, ada/utils.c, ada/utils2.c:
Include coretypes.h and tm.h, and system.h when not already
included.

* cp/call.c, cp/class.c, cp/cp-lang.c, cp/cvt.c, cp/cxxfilt.c,
cp/decl.c, cp/decl2.c, cp/dump.c, cp/error.c, cp/except.c,
cp/expr.c, cp/friend.c, cp/g++spec.c, cp/init.c, cp/lex.c,
cp/mangle.c, cp/method.c, cp/optimize.c, cp/parse.y, cp/pt.c,
cp/ptree.c, cp/repo.c, cp/rtti.c, cp/search.c, cp/semantics.c,
cp/spew.c, cp/tree.c, cp/typeck.c, cp/typeck2.c:
Include coretypes.h and tm.h.

* f/proj.h, f/ansify.c, f/g77spec.c, f/intdoc.c:
Include coretypes.h and tm.h.

* fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
include auto-host.h or ansidecl.h/
* fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
* fixinc/procopen.c: Include server.h after fixlib.h.  Do not
include auto-host.h, ansidecl.h, or system.h.
* fixinc/server.c: Likewise.  Also, do not include signal.h,
and do not redefine volatile.

* java/boehm.c, java/buffer.c, java/builtins.c,
java/check-init.c, java/class.c, java/constants.c,
java/decl.c, java/except.c, java/expr.c, java/gjavah.c,
java/jcf-depend.c, java/jcf-dump.c, java/jcf-io.c,
java/jcf-parse.c, java/jcf-path.c, java/jcf-write.c,
java/jv-scan.c, java/jvgenmain.c, java/jvspec.c, java/lang.c,
java/mangle.c, java/mangle_name.c, java/parse-scan.y,
java/parse.y, java/typeck.c, java/verify.c, java/xref.c,
java/zextract.c: Include coretypes.h and tm.h.

* treelang/lex.l: Move "%{" below copyright notice; get rid of
"/*" embedded in comment.  Do not #undef IN_GCC; do not
include stdio.h, memory.h, or ansidecl.h; do not include
config.h twice.  Do include coretypes.h and tm.h.
* treelang/parse.y: Do not #undef IN_GCC, provide bogus
definitions of tree and rtx typedefs, or include stdio.h,
stdlib.h, string.h, or ansidecl.h. Do include coretypes.h and
tm.h.
* treelang/tree1.c: Do not include ansidecl.h, stdlib.h,
unistd.h, ctype.h, stdarg.h, string.h, or stdio.h.  Do include
coretypes.h and tm.h.
* treelang/treetree.c: Do not include stdlib.h, unistd.h,
safe-ctype.h, errno.h. stdarg.h, limits.h, string.h, fcntl.h,
getopt.h. stdio.h, or ansidecl.h.  Do include coretypes.h and
tm.h.

[[Split portion of a mixed commit.]]

From-SVN: r59673.2

21 years agore PR c++/8227 (g++ 3.3: ctors not called in static array initialization)
Mark Mitchell [Sun, 1 Dec 2002 04:55:20 +0000 (04:55 +0000)]
re PR c++/8227 (g++ 3.3: ctors not called in static array initialization)

PR c++/8227
* decl.c (layout_var_decl): Deal gracefully with erroneous types.
(check_initializer): Validate the type of the initialized
variable, even if the initializer is absent.
* typeck.c (cp_type_quals): Deal gracefully with erroneous types.

PR c++/8227
* g++.dg/template/ctor2.C: New test.

From-SVN: r59672