platform/upstream/gcc.git
25 years ago[multiple changes]
Alexandre Petit-Bianco [Tue, 25 May 1999 16:36:07 +0000 (16:36 +0000)]
[multiple changes]

Tue May 25 15:06:13 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (patch_assignment): Save the rhs before using it as an
        argument to _Jv_CheckArrayStore.
Tue May 25 11:23:59 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* lex.c (java_parse_doc_section): Fixed `tag' buffer size.
Mon May 24 13:26:00 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * lex.c (java_lex): Accepts `+' or `-' after the beginning of a
        floating point litteral only when the exponent indicator has been
        parsed.

From-SVN: r27147

25 years agoFix 19990525-0.f
Craig Burley [Tue, 25 May 1999 16:25:57 +0000 (16:25 +0000)]
Fix 19990525-0.f

From-SVN: r27145

25 years agoclass.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.
Mark Mitchell [Tue, 25 May 1999 15:31:38 +0000 (15:31 +0000)]
class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.

* class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to
intialize a vtable.
* cp-tree.h (NAMESPACE_LEVEL): Reformat.
(lang_decl_flags): Document MEMFUNC_POINTER_TO.  Save four bytes
by combining TEMPLATE_INFO and LEVEL into a single union.
(DECL_TEMPLATE_INFO): Reformat.
(DECL_SAVED_TREE): Document.
(DECL_TEMPLATE_INJECT): Remove.
* class.c (finish_struct): Remove code to deal with
DECL_TEMPLATE_INJECT.
* decl.c (maybe_process_template_type_declaration): Handle all new
types in templates uniformly.
* method.c (bulid_overload_identifier): Use CP_DECL_CONTEXT, not
DECL_CONTEXT.
* pt.c (lookup_template_class): Inject template instantiations of
forward-declarations.
(instantiate_class_template): Remove code processing
DECL_TEMPLATE_INJECT.
* pt.c (lookup_template_class): Tweak lookup to find member
templates.
* pt.c (tsubst_expr, case ASM_STMT): Don't tsubst into
ASM_CV_QUAL.
* semantics.c (finish_asm_stmt): Make strings permanent if they're
used in a template.

From-SVN: r27144

25 years agoFix dumb mistakes.
Jeff Law [Tue, 25 May 1999 13:53:30 +0000 (07:53 -0600)]
Fix dumb mistakes.

From-SVN: r27143

25 years ago* gcc.c-torture/execute/990525-2.c: New test.
Jeffrey A Law [Tue, 25 May 1999 13:31:37 +0000 (13:31 +0000)]
* gcc.c-torture/execute/990525-2.c: New test.

From-SVN: r27142

25 years agoflow.c (mark_set_1): Do not record BLKmode stores as dead store elimination candidates.
Jeffrey A Law [Tue, 25 May 1999 13:14:40 +0000 (13:14 +0000)]
flow.c (mark_set_1): Do not record BLKmode stores as dead store elimination candidates.


        * flow.c (mark_set_1): Do not record BLKmode stores as dead
        store elimination candidates.

From-SVN: r27140

25 years agoconfig.guess (dummy): Changed to $dummy.
H.J. Lu [Tue, 25 May 1999 13:06:22 +0000 (13:06 +0000)]
config.guess (dummy): Changed to $dummy.

Tue May 25 11:20:46 1999  H.J. Lu  (hjl@gnu.org)
* config.guess (dummy): Changed to $dummy.

From-SVN: r27139

25 years agotypeck.c (casts_away_constness, [...]): Strip both parts of pointer to data member...
Jason Merrill [Tue, 25 May 1999 11:55:58 +0000 (11:55 +0000)]
typeck.c (casts_away_constness, [...]): Strip both parts of pointer to data member types.

* typeck.c (casts_away_constness, casts_away_constness_r): Strip both
parts of pointer to data member types.

From-SVN: r27138

25 years agoExplicitly declare signed bitfields as signed.
Nick Clifton [Tue, 25 May 1999 07:16:43 +0000 (07:16 +0000)]
Explicitly declare signed bitfields as signed.

From-SVN: r27137

25 years agomips.h (ASM_OUTPUT_DOUBLE_INT): Use 'dword' if TARGET_GAS.
Gavin Romig-Koch [Tue, 25 May 1999 05:57:50 +0000 (05:57 +0000)]
mips.h (ASM_OUTPUT_DOUBLE_INT): Use 'dword' if TARGET_GAS.

* config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
TARGET_GAS.

From-SVN: r27136

25 years agoDaily bump.
Jeff Law [Tue, 25 May 1999 00:45:34 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r27134

25 years ago* gcc.c-torture/execute/990525-1.c: New test.
Jeffrey A Law [Tue, 25 May 1999 00:26:35 +0000 (00:26 +0000)]
* gcc.c-torture/execute/990525-1.c: New test.

From-SVN: r27132

25 years agodecl2.c (mark_vtable_entries): Don't make a copy of a function, and then make it...
Mark Mitchell [Mon, 24 May 1999 23:38:55 +0000 (23:38 +0000)]
decl2.c (mark_vtable_entries): Don't make a copy of a function, and then make it look like `abort'.

* decl2.c (mark_vtable_entries): Don't make a copy of a function,
and then make it look like `abort'.  Just use `abort' instead.

From-SVN: r27131

25 years agoFix aix --with-gnu-ld configuration bug.
Jim Wilson [Mon, 24 May 1999 20:32:23 +0000 (20:32 +0000)]
Fix aix --with-gnu-ld configuration bug.

* configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
Add use of x-aix41-gld.

From-SVN: r27130

25 years agolinux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
Jakub Jelinek [Mon, 24 May 1999 16:45:19 +0000 (18:45 +0200)]
linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.

        * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
        (ASM_OUTPUT_DESTRUCTOR): Define.

From-SVN: r27129

25 years agotypeck.c (build_static_cast): Don't allow static_casts that cast away constness.
Mark Mitchell [Mon, 24 May 1999 15:26:25 +0000 (15:26 +0000)]
typeck.c (build_static_cast): Don't allow static_casts that cast away constness.

* typeck.c (build_static_cast): Don't allow static_casts that cast
away constness.
(casts_away_constness_r): New function.
(casts_away_constness): Likewise.

From-SVN: r27128

25 years agoTidied up case statements
Nick Clifton [Mon, 24 May 1999 15:24:52 +0000 (15:24 +0000)]
Tidied up case statements

From-SVN: r27127

25 years agoResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.
Tom Tromey [Mon, 24 May 1999 15:00:02 +0000 (15:00 +0000)]
ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.

* java/util/ResourceBundle.java (getBundle): Throw
NullPointerException if baseName is null.

From-SVN: r27126

25 years agoloop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the last CODE_LABEL...
Jeffrey A Law [Mon, 24 May 1999 13:43:22 +0000 (13:43 +0000)]
loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the last CODE_LABEL in a loop if...

* loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
last CODE_LABEL in a loop if we have previously passed a jump
to the top of the loop.

From-SVN: r27125

25 years ago* gcc.c-torture/execute/990524-1.c: New test.
Jeffrey A Law [Mon, 24 May 1999 13:27:14 +0000 (13:27 +0000)]
* gcc.c-torture/execute/990524-1.c: New test.

From-SVN: r27122

25 years agoFix blunder made when applying patch to arm.h
Nick Clifton [Mon, 24 May 1999 07:58:01 +0000 (07:58 +0000)]
Fix blunder made when applying patch to arm.h

From-SVN: r27121

25 years agoanon3.C: New test.
Nathan Sidwell [Mon, 24 May 1999 04:24:30 +0000 (04:24 +0000)]
anon3.C: New test.

* g++.old-deja/g++.other/anon3.C: New test.
* g++.old-deja/g++.other/anon4.C: New test.
* g++.old-deja/g++.ext/anon1.C: Inhibit -pedantic option.
* g++.old-deja/g++.g++.robertl/eb131.C/: Remove unrequired ERROR tag,
after downgrade to warning (cp/ChangeLog: 1999-05-20 Jason
Merrill).

From-SVN: r27120

25 years agostmt.c (expand_end_bindings): Ignore any elements of VARS that are not VAR_DECLs.
Mark Mitchell [Mon, 24 May 1999 00:58:56 +0000 (00:58 +0000)]
stmt.c (expand_end_bindings): Ignore any elements of VARS that are not VAR_DECLs.

* stmt.c (expand_end_bindings): Ignore any elements of VARS that
are not VAR_DECLs.

From-SVN: r27118

25 years agodecl.c (lookup_tag): Remove code no longer needed after name-lookup improvements.
Mark Mitchell [Mon, 24 May 1999 00:47:01 +0000 (00:47 +0000)]
decl.c (lookup_tag): Remove code no longer needed after name-lookup improvements.

* decl.c (lookup_tag): Remove code no longer needed after
name-lookup improvements.
* decl2.c (handle_class_head): Make error-recovery more robust.
* friend.c (make_friend_class): Reject templated typename types.
* lex.c (is_global): A template parameter isn't global.
* parse.y (class_head): Robustify.
* parse.c: Regenerated.

From-SVN: r27117

25 years agoDaily bump.
Jeff Law [Mon, 24 May 1999 00:45:33 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r27116

25 years ago* gcc.dg/990524-1.c: New test.
Jeffrey A Law [Sun, 23 May 1999 23:12:23 +0000 (23:12 +0000)]
* gcc.dg/990524-1.c: New test.

From-SVN: r27114

25 years ago* gcc.c-torture/compile/990523-1.c: New test.
Franz Sirl [Sun, 23 May 1999 21:26:27 +0000 (21:26 +0000)]
* gcc.c-torture/compile/990523-1.c: New test.

From-SVN: r27113

25 years ago[multiple changes]
Jeff Law [Sun, 23 May 1999 19:37:42 +0000 (13:37 -0600)]
[multiple changes]

Sun May 23 20:31:16 1999  Jeffrey A Law  (law@cygnus.com)
        * loop.c (strength_reduce): Grow reg_single_usage as needed.
Sun May 23 10:13:20 1999  David O'Brien <obrien@FreeBSD.org>
        * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
        Also remove a useless comment.
Sun May 23 10:05:23 1999  Jerry Quinn <jquinn@nortelnetworks.com>
        * pa.md (negdf2,negsf2):  Use fneg instead of fsub on pa 2.0.

From-SVN: r27111

25 years agoDaily bump.
Jeff Law [Sun, 23 May 1999 00:45:05 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r27109

25 years agopt.c (for_each_template_parm): Walk into TYPENAME_TYPEs, INDIRECT_REFs, and COMPONENT...
Mark Mitchell [Sat, 22 May 1999 19:00:23 +0000 (19:00 +0000)]
pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs, INDIRECT_REFs, and COMPONENT_REFs.

* pt.c (for_each_template_parm): Walk into TYPENAME_TYPEs,
INDIRECT_REFs, and COMPONENT_REFs.  Handle FIELD_DECLs.

From-SVN: r27108

25 years agoexpected
Jason Merrill [Sat, 22 May 1999 18:44:19 +0000 (14:44 -0400)]
expected

From-SVN: r27107

25 years agocollect2.c (main): Only generate import or export file and add to link arguments...
David Edelsohn [Sat, 22 May 1999 18:14:31 +0000 (14:14 -0400)]
collect2.c (main): Only generate import or export file and add to link arguments if non-empty.

        * collect2.c (main): Only generate import or export file and add
        to link arguments if non-empty.  Use xmalloc not alloca.
        (write_{export,import}_file): Delete.
        (write_aix_file): New function.
        (locatelib): Use xmalloc not malloc.
        (GCC_OK_SYMBOL): Do not check type if aix64.

From-SVN: r27106

25 years agoZipInputStream.java (fill): New method.
Tom Tromey [Sat, 22 May 1999 18:08:46 +0000 (18:08 +0000)]
ZipInputStream.java (fill): New method.

* java/util/zip/ZipInputStream.java (fill): New method.
(compressed_len): New instance variable.
(getNextStream): Set it.
(read): Reset inflater on EOF.  Only read via `super' if entry is
deflated.
(skip): Only skip via `super' if entry is deflated.
* java/util/zip/Deflater.java (last_input_count): Removed.
* java/util/zip/natDeflater.cc (deflate): Return 0 if input array
is length 0.
(needsInput): Don't use last_input_count.
(setInput): Don't set last_input_count.
* java/util/zip/natInflater.cc (getRemaining): Return correct
result.
(inflate): Return 0 if input array is length 0.
(setInput): Don't set last_input_count.
* java/util/zip/Inflater.java (last_input_count): Removed.

From-SVN: r27105

25 years ago[multiple changes]
Alexandre Petit-Bianco [Sat, 22 May 1999 14:38:13 +0000 (14:38 +0000)]
[multiple changes]

Sat May 22 13:54:41 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* parse.y (formal_parameter:): Construct argument tree list
  element even if a yet unsupported final parameter was encountered.
Tue May 18 00:28:58 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* parse.y (finish_method_declaration): Issue errors for native or
  abstract methods declared with a method body, as well as for non
  native or non abstract methods with no method body.

From-SVN: r27104

25 years agocp-tree.h (push_nested_namespace): Declare.
Mark Mitchell [Sat, 22 May 1999 14:26:55 +0000 (14:26 +0000)]
cp-tree.h (push_nested_namespace): Declare.

* cp-tree.h (push_nested_namespace): Declare.
(pop_nested_namespace): Likewise.
* decl.c (push_nested_namespace): New function.
(pop_nested_namespace): Likewise.
* pt.c (instantiate_class_template): Use them.

From-SVN: r27103

25 years ago* tree.c (mapcar): Handle LVALUE_EXPR.
Mark Mitchell [Sat, 22 May 1999 11:24:43 +0000 (11:24 +0000)]
* tree.c (mapcar): Handle LVALUE_EXPR.

From-SVN: r27101

25 years agoApply patch from Philip Blundell <pb@nexus.co.uk> to fix PIC support for
Philip Blundell [Sat, 22 May 1999 09:40:04 +0000 (09:40 +0000)]
Apply patch from Philip Blundell  <pb@nexus.co.uk> to fix PIC support for
constant tables.

From-SVN: r27100

25 years agoFix erroneous warning message
Philip Blundell [Sat, 22 May 1999 09:11:10 +0000 (09:11 +0000)]
Fix erroneous warning message

From-SVN: r27099

25 years agooops - omitted from previous delta
Nick Clifton [Sat, 22 May 1999 09:07:56 +0000 (09:07 +0000)]
oops - omitted from previous delta

From-SVN: r27098

25 years agoOnly defined NEED_PLT_GOT if it is not already defined.
Nick Clifton [Sat, 22 May 1999 09:07:33 +0000 (09:07 +0000)]
Only defined NEED_PLT_GOT if it is not already defined.

From-SVN: r27097

25 years agoFix description of a stack element in a PARALLEL generated by FUNCTION_ARG
Nick Clifton [Sat, 22 May 1999 07:18:02 +0000 (07:18 +0000)]
Fix description of a stack element in a PARALLEL generated by FUNCTION_ARG

From-SVN: r27096

25 years agoFix comment (insns -> bytes).
Jeff Law [Sat, 22 May 1999 05:54:15 +0000 (23:54 -0600)]
Fix comment (insns -> bytes).

From-SVN: r27095

25 years agoconfig.guess: Handle NEC UX/4800.
Ben Elliston [Sat, 22 May 1999 05:41:47 +0000 (05:41 +0000)]
config.guess: Handle NEC UX/4800.

1999-05-22  Ben Elliston  <bje@cygnus.com>
* config.guess: Handle NEC UX/4800. Contributed by Jiro Takabatake
<jiro@din.or.jp>.

From-SVN: r27094

25 years agoconfig.guess: Merge with FSF version.
Ben Elliston [Sat, 22 May 1999 05:17:55 +0000 (05:17 +0000)]
config.guess: Merge with FSF version.

1999-05-22  Ben Elliston  <bje@cygnus.com>
* config.guess: Merge with FSF version. Future changes will be
more accurately recorded in this ChangeLog.
* config.sub: Likewise.

From-SVN: r27093

25 years agocp-tree.h (cplus_expand_constant): Declare.
Mark Mitchell [Sat, 22 May 1999 01:30:11 +0000 (01:30 +0000)]
cp-tree.h (cplus_expand_constant): Declare.

* cp-tree.h (cplus_expand_constant): Declare.
* cvt.c (convert_to_pointer): Expand PTRMEM_CSTs when they're
converted from one pointer-to-object type to another.
* expr.c (cplus_expand_constant): Don't make it static.
* typeck.c (build_component_ref): Don't crash when presented with
a component which is a TEMPLATE_DECL.
(build_ptrmemfunc): Tidy.  Clarify comment.  Make sure that even a
cast from a pointer-to-member constant to its own type does not
result in a valid non-type template argument.

From-SVN: r27092

25 years ago* expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
Mark Mitchell [Sat, 22 May 1999 01:24:58 +0000 (01:24 +0000)]
* expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.

From-SVN: r27090

25 years agoDaily bump.
Jeff Law [Sat, 22 May 1999 00:45:33 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r27089

25 years agors6000.c (output_mi_thunk): Enable full support again.
Franz Sirl [Fri, 21 May 1999 18:23:29 +0000 (18:23 +0000)]
rs6000.c (output_mi_thunk): Enable full support again.

Fri May 21 21:19:02 1999  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
        * rs6000.c (output_mi_thunk): Enable full support again.

From-SVN: r27087

25 years agoMake-lang.in (cc1plus): Make it depend on gxx.gperf.
Mark Mitchell [Fri, 21 May 1999 15:55:56 +0000 (15:55 +0000)]
Make-lang.in (cc1plus): Make it depend on gxx.gperf.

* Make-lang.in (cc1plus): Make it depend on gxx.gperf.
* cp-tree.h: Fix typo in documentation on pointers-to-members.
(cp_build_qualified_type): Make it a macro.
(cp_build_qualified_type_real): Declare.
* decl.c (grokdeclarator): Remove misleading comment.  Avoid
problem with template parameters and restrict-qualification.
* gxx.gperf: Replace NORID with RID_UNUSED throughout.
* hash.h: Regenerated.
* lex.h (rid): Move RID_FIRST_MODIFIER and RID_LAST_MODIFIER into
the enumeration.
(NORID): Remove definition.
* pt.c (tsubst_aggr_type): Use cp_build_qualified_type_real.
(tsubst): Likewise.  Remove special handling for FUNCTION_TYPEs.
(fn_type_unification): Check that the function type resulting from
the deduction is legal.
(check_cv_quals_for_unify): Don't handle FUNCTION_TYPEs specially.
(unify): Use cp_build_qualified_type_real.
* tree.c (build_cplus_array_type_1): Handle error_marks as inputs.
(cp_build_qualified_type): Rename to ...
(cp_build_qualified_type_real): Add additional COMPLAIN parameter
and modify appropriately.

Co-Authored-By: Nathan Sidwell <nathan@acm.org>
From-SVN: r27086

25 years agotypeck.c (build_ptrmemfunc): Handle PTRMEM_CSTs carefully to reveal optimization...
Mark Mitchell [Fri, 21 May 1999 15:42:55 +0000 (15:42 +0000)]
typeck.c (build_ptrmemfunc): Handle PTRMEM_CSTs carefully to reveal optimization opportunities.

* typeck.c (build_ptrmemfunc): Handle PTRMEM_CSTs carefully to
reveal optimization opportunities.

From-SVN: r27084

25 years agoMakefile.in: Rebuilt.
Tom Tromey [Fri, 21 May 1999 13:09:54 +0000 (13:09 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (INCLUDES): Added $(ZINCS).
* configure: Rebuilt.
* configure.in (ZINCS): New subst.

From-SVN: r27083

25 years agoTypo fix in last patch.
Joern Rennecke [Fri, 21 May 1999 12:23:23 +0000 (13:23 +0100)]
Typo fix in last patch.

From-SVN: r27082

25 years ago* sh.h (BRANCH_COST): Define.
J"orn Rennecke [Fri, 21 May 1999 12:14:10 +0000 (12:14 +0000)]
* sh.h (BRANCH_COST): Define.

From-SVN: r27081

25 years agopt.c (tsubst): Don't issue error messages when we're not complaining...
Mark Mitchell [Fri, 21 May 1999 09:55:50 +0000 (09:55 +0000)]
pt.c (tsubst): Don't issue error messages when we're not complaining...

* pt.c (tsubst): Don't issue error messages when we're not
complaining, even if we see a qualified function type.
(check_cv_quals_for_unify): Don't allow a qualified function
type.

From-SVN: r27080

25 years agosparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to allow...
Andrew Haley [Fri, 21 May 1999 06:03:30 +0000 (06:03 +0000)]
sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to allow the same exceptions to be rethrown...

1999-05-21  Andrew Haley  <aph@cygnus.com>
        * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
        to signal options to allow the same exceptions to be rethrown
        later.

From-SVN: r27079

25 years agoDaily bump.
Jeff Law [Fri, 21 May 1999 00:45:03 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r27077

25 years agoMakefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
Stephen L Moshier [Thu, 20 May 1999 22:24:35 +0000 (22:24 +0000)]
Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.

Thu May 20 10:00:42 1999   Stephen L Moshier  <moshier@world.std.com>
         * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.

From-SVN: r27074

25 years ago[multiple changes]
Jeff Law [Thu, 20 May 1999 22:22:34 +0000 (16:22 -0600)]
[multiple changes]

Thu May 20 10:00:42 1999   Stephen L Moshier  <moshier@world.std.com>
        * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
Thu May 20 09:58:57 1999  Jan Hubicka <hubicka@freesoft.cz>
        * function.c (assign_stack_local): Align stack slot propertly.
        (assign_outer_stack_local): Likewise.

From-SVN: r27073

25 years agoclass.c (instantiate_type): Downgrade errors for object-dependent memfn refs to pedwarn.
Jason Merrill [Thu, 20 May 1999 20:19:42 +0000 (20:19 +0000)]
class.c (instantiate_type): Downgrade errors for object-dependent memfn refs to pedwarn.

* class.c (instantiate_type): Downgrade errors for object-dependent
memfn refs to pedwarn.

From-SVN: r27072

25 years agodecl.c (grokdeclarator): Don't treat [] as indicating a zero-sized array in a typedef.
Mark Mitchell [Thu, 20 May 1999 18:10:28 +0000 (18:10 +0000)]
decl.c (grokdeclarator): Don't treat [] as indicating a zero-sized array in a typedef.

* decl.c (grokdeclarator): Don't treat [] as indicating a
zero-sized array in a typedef.

From-SVN: r27070

25 years agocall.c (build_object_call): Don't look at DECL_NAME for a type.
Mark Mitchell [Thu, 20 May 1999 17:19:29 +0000 (17:19 +0000)]
call.c (build_object_call): Don't look at DECL_NAME for a type.

* call.c (build_object_call): Don't look at DECL_NAME for a type.
(pt.c): Or CP_TYPE_QUALS for an ERROR_MARK.
(typeck.c): Or TYPE_MAIN_VARIANT for a type.

From-SVN: r27068

25 years agoRemove duplicate parameter name
Mark Mitchell [Thu, 20 May 1999 17:07:28 +0000 (17:07 +0000)]
Remove duplicate parameter name

From-SVN: r27067

25 years agopt.c (for_each_template_parm): Rework to match documentation.
Mark Mitchell [Thu, 20 May 1999 14:58:40 +0000 (14:58 +0000)]
pt.c (for_each_template_parm): Rework to match documentation.

  * pt.c (for_each_template_parm): Rework to match documentation.
Don't be fooled by a COMPONENT_REF with no TREE_TYPE.

From-SVN: r27066

25 years agoclass.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
Jason Merrill [Thu, 20 May 1999 12:21:53 +0000 (12:21 +0000)]
class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.

* class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
* class.c (finish_base_struct): Allow non-COM bases for COM classes
except at the leftmost position.
(modify_one_vtable, fixup_vtable_deltas1, override_one_vtable):
Pass the binfo's class, not the most derived, to skip_rtti_stuff.
* search.c (get_abstract_virtuals, expand_upcast_fixups): Likewise.

From-SVN: r27065

25 years agonew
Jason Merrill [Thu, 20 May 1999 12:21:15 +0000 (08:21 -0400)]
new

From-SVN: r27064

25 years agotree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
Jason Merrill [Thu, 20 May 1999 12:17:36 +0000 (12:17 +0000)]
tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.

* tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
(build_cplus_new): Make sure that what we return is of the right type.

From-SVN: r27063

25 years agocp-tree.h (make_ptrmem_cst): New function.
Mark Mitchell [Thu, 20 May 1999 10:44:47 +0000 (10:44 +0000)]
cp-tree.h (make_ptrmem_cst): New function.

* cp-tree.h (make_ptrmem_cst): New function.
* expr.c (cplus_expand_constant): Split out from ...
(cplus_expand_expr): Here.  Use cplus_expand_constant.
(init_cplus_expand): Set lang_expand_constant.
* pt.c (convert_nontype_argument): Use make_ptrmem_cst.
* tree.c (make_ptrmem_cst): Define.
* typeck.c (unary_complex_lvalue): Use make_ptrmem_cst.
* typeck2.c (initializer_constant_valid_p): Use make_ptrmem_cst.

From-SVN: r27060

25 years agoexpr.h (lang_expand_constant): Declare.
Mark Mitchell [Thu, 20 May 1999 10:37:50 +0000 (10:37 +0000)]
expr.h (lang_expand_constant): Declare.

* expr.h (lang_expand_constant): Declare.
* toplev.c (lang_expand_constant): Define it.
* varasm.c (output_constant): Use it.

From-SVN: r27058

25 years agooptabs.c (expand_cmplxdiv_straight, [...]): Change function definitions to K&R style.
Kaveh R. Ghazi [Thu, 20 May 1999 08:29:52 +0000 (08:29 +0000)]
optabs.c (expand_cmplxdiv_straight, [...]): Change function definitions to K&R style.

        * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
        Change function definitions to K&R style.

From-SVN: r27057

25 years agoprims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.
Andrew Haley [Thu, 20 May 1999 08:26:55 +0000 (08:26 +0000)]
prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.

1999-05-20  Andrew Haley  <aph@cygnus.com>
        * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
        added.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
        (INIT_FPE): Exception string made more informative.
        * include/sparc-signal.h (INIT_FPE): Exception string made more
        informative.
        * testsuite/libjava.lang/Divide_1.java: New file.
        * testsuite/libjava.lang/Divide_1.out: New file.

From-SVN: r27056

25 years agoA fix for one breaks another :( - do not ignore SIGCLD!
Bruce Korb [Thu, 20 May 1999 08:19:05 +0000 (08:19 +0000)]
A fix for one breaks another :( - do not ignore SIGCLD!

From-SVN: r27055

25 years agostatic initialization removal & K&R-ification
Alexandre Oliva [Thu, 20 May 1999 07:10:41 +0000 (07:10 +0000)]
static initialization removal & K&R-ification

From-SVN: r27052

25 years agolibchill, libf2c, libobjc:
Jeff Law [Thu, 20 May 1999 02:27:28 +0000 (20:27 -0600)]
libchill, libf2c, libobjc:

        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.
libio, libstdc++
        * configure.in: Test for ${compiler_name}.exe as well.

From-SVN: r27050

25 years agodbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the...
Andreas Schwab [Thu, 20 May 1999 01:54:28 +0000 (01:54 +0000)]
dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the label name.

        * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
        asm_fprintf and %L to generate the label name.
        * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
        (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.

From-SVN: r27048

25 years agoDaily bump.
Jeff Law [Thu, 20 May 1999 00:52:36 +0000 (18:52 -0600)]
Daily bump.

From-SVN: r27046

25 years agojump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditio...
Jeff Law [Thu, 20 May 1999 00:41:26 +0000 (18:41 -0600)]
jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.

p
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27043

25 years agojump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditio...
Jeff Law [Thu, 20 May 1999 00:41:24 +0000 (18:41 -0600)]
jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.


        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27042

25 years agomips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specifi...
Jeff Law [Wed, 19 May 1999 23:06:13 +0000 (17:06 -0600)]
mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...

x
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27038

25 years agomips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specifi...
Jeff Law [Wed, 19 May 1999 23:06:09 +0000 (17:06 -0600)]
mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...


        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27037

25 years ago* pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.
Mark Mitchell [Wed, 19 May 1999 20:01:04 +0000 (20:01 +0000)]
* pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.

From-SVN: r27034

25 years agoaclocal.m4, configure: Rebuilt.
Tom Tromey [Wed, 19 May 1999 12:55:15 +0000 (12:55 +0000)]
aclocal.m4, configure: Rebuilt.

* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.

From-SVN: r27033

25 years agoGZIPOutputStream.java (write(byte[])): New method.
Tom Tromey [Wed, 19 May 1999 12:35:06 +0000 (12:35 +0000)]
GZIPOutputStream.java (write(byte[])): New method.

* java/util/zip/GZIPOutputStream.java (write(byte[])): New
method.

From-SVN: r27031

25 years agoWarning fixes:
Kaveh R. Ghazi [Wed, 19 May 1999 11:30:30 +0000 (11:30 +0000)]
Warning fixes:

        * class.c (build_utf8_ref): Initialize variable `field'.
        * decl.c (init_decl_processing): Initialize variable `field'.
        * expr.c (build_known_method_ref): Mark parameters `method_type',
        `method_signature' and `arg_list' with ATTRIBUTE_UNUSED.
        (process_jvm_instruction): Likewise for parameter `length'.
        * jvspec.c (lang_specific_driver): Mark variables `saw_math',
        `saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with
        ATTRIBUTE_UNUSED.
        * parse.y (maybe_generate_clinit): Remove unused variable
        `has_non_primitive_fields'.
        (find_in_imports_on_demand): Initialize variables `node_to_use'
        and `cl'.
        (patch_binop): Likewise for variable `prom_type'.
        (patch_unaryop): Likewise for variable `prom_type'.
        * verify.c (verify_jvm_instructions): Likewise for variable `last'.
        * xref.c (xref_table): Add missing initializer.

From-SVN: r27030

25 years agodecl2.c (start_static_storage_duration_function): Fix comment.
Mark Mitchell [Wed, 19 May 1999 11:24:18 +0000 (11:24 +0000)]
decl2.c (start_static_storage_duration_function): Fix comment.

* decl2.c (start_static_storage_duration_function): Fix comment.
(finish_file): Create static storage duration functions lazily.

From-SVN: r27029

25 years agonatInflater.cc (inflate): Cast `len' to unsigned.
Tom Tromey [Wed, 19 May 1999 11:03:36 +0000 (11:03 +0000)]
natInflater.cc (inflate): Cast `len' to unsigned.

* java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
Include <stdlib.h>.
* java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
Include <stdlib.h>.
(update): Fail in default case.  Always initialize `strat'.

From-SVN: r27028

25 years agoImplement anonymous structs.
Jason Merrill [Wed, 19 May 1999 10:44:22 +0000 (10:44 +0000)]
Implement anonymous structs.

* cp-tree.h (ANON_AGGR_TYPE_P): Rename from ANON_UNION_TYPE_P.
* class.c, decl.c, decl2.c, init.c, pt.c, search.c, typeck.c: Adjust.
* class.c (finish_struct_1): Remove redundant check for anon struct.
* decl.c (fixup_anonymous_aggr): Renamed from fixup_anonymous_union.
(check_tag_decl): Check for anonymous struct here.
* decl2.c (build_anon_union_vars): Catch anon struct at file scope.
* init.c (sort_member_init, emit_base_init): Handle getting fields
as well as names in current_member_init_list.
(perform_member_init): Handle getting an anon aggr.
* method.c (do_build_assign_ref): Don't descend into anon aggrs.
(do_build_copy_constructor): Likewise.

From-SVN: r27027

25 years agonew
Jason Merrill [Wed, 19 May 1999 10:41:46 +0000 (06:41 -0400)]
new

From-SVN: r27026

25 years ago* mauve-libgcj: Enable java.util.zip.
Tom Tromey [Wed, 19 May 1999 09:26:17 +0000 (09:26 +0000)]
* mauve-libgcj: Enable java.util.zip.

From-SVN: r27025

25 years agoKandR-ification of fixincl.x
Bruce Korb [Wed, 19 May 1999 08:37:57 +0000 (08:37 +0000)]
KandR-ification of fixincl.x

From-SVN: r27024

25 years agoShazam.java: New file.
Anthony Green [Wed, 19 May 1999 06:53:20 +0000 (06:53 +0000)]
Shazam.java: New file.

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

From-SVN: r27022

25 years agotree.c (cp_build_qualified_type): Don't allow qualified function types.
Mark Mitchell [Wed, 19 May 1999 04:32:46 +0000 (04:32 +0000)]
tree.c (cp_build_qualified_type): Don't allow qualified function types.

* tree.c (cp_build_qualified_type): Don't allow qualified function
types.

From-SVN: r27021

25 years agostmt.c (expand_return): Call start_cleanup_deferral and end_cleanup_deferral around...
Mark Mitchell [Wed, 19 May 1999 03:54:49 +0000 (03:54 +0000)]
stmt.c (expand_return): Call start_cleanup_deferral and end_cleanup_deferral around conditional code.

* stmt.c (expand_return): Call start_cleanup_deferral and
end_cleanup_deferral around conditional code.

From-SVN: r27018

25 years agofixincl.tpl: Avoid depending on ANSI C features for filename lists.
Bruce Korb [Wed, 19 May 1999 02:15:03 +0000 (20:15 -0600)]
fixincl.tpl: Avoid depending on ANSI C features for filename lists.

p
        * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
        filename lists.
        * fixinc/fixincl.x: Rebuilt.

From-SVN: r27017

25 years agofixincl.tpl: Avoid depending on ANSI C features for filename lists.
Bruce Korb [Wed, 19 May 1999 02:14:51 +0000 (20:14 -0600)]
fixincl.tpl: Avoid depending on ANSI C features for filename lists.


        * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
        filename lists.
        * fixinc/fixincl.x: Rebuilt.

From-SVN: r27016

25 years ago990519-1.c: New test.
Raja R Harinath [Wed, 19 May 1999 02:01:52 +0000 (20:01 -0600)]
990519-1.c: New test.

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

From-SVN: r27011

25 years ago990519-1.c: New test.
Raja R Harinath [Wed, 19 May 1999 02:01:50 +0000 (20:01 -0600)]
990519-1.c: New test.


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

From-SVN: r27010

25 years agoAvoid version # duplication.
Jeff Law [Wed, 19 May 1999 01:58:23 +0000 (19:58 -0600)]
Avoid version # duplication.

From-SVN: r27009

25 years ago* gxxint.texi: Fix typo.
Arvind Sankar [Wed, 19 May 1999 01:56:41 +0000 (01:56 +0000)]
* gxxint.texi: Fix typo.

From-SVN: r27006

25 years ago* i386.c (output_float_compare): Avoid GNU-C extensions.
Jan Hubicka [Wed, 19 May 1999 01:54:03 +0000 (03:54 +0200)]
* i386.c (output_float_compare): Avoid GNU-C extensions.

From-SVN: r27005

25 years agocall.c (find_scoped_type, [...]): Lose.
Jason Merrill [Wed, 19 May 1999 00:48:10 +0000 (00:48 +0000)]
call.c (find_scoped_type, [...]): Lose.

* call.c (find_scoped_type, resolve_scope_to_name): Lose.
* class.c (finish_struct_1): Use CLASS_TYPE_P.
* ptree.c (print_lang_type): Likewise.
* typeck.c (build_modify_expr, c_expand_asm_operands): Use
IS_AGGR_TYPE_CODE.
* typeck2.c (digest_init): Likewise.

From-SVN: r27001