platform/upstream/gcc.git
23 years ago* flow.c (merge_blocks_nomove): Don't seek back past the bb note.
Richard Henderson [Sun, 20 Aug 2000 22:16:32 +0000 (15:16 -0700)]
* flow.c (merge_blocks_nomove): Don't seek back past the bb note.

From-SVN: r35827

23 years agoAdler32.java: Make private variables really private
Mark Wielaard [Sun, 20 Aug 2000 21:51:19 +0000 (21:51 +0000)]
Adler32.java: Make private variables really private

2000-08-20  Mark Wielaard  <mark@klomp.org>

    * java/util/zip/Adler32.java: Make private variables really private
    * java/util/zip/CRC32.java: Make private variables really private
    * java/util/zip/CheckedInputStream.java: skip() could skip to much bytes
    * java/util/zip/InflaterInputStream.java: skip() could skip to much bytes
    * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
    * java/util/zip/ZipFile.java: size() new 1.2 method
    * java/util/zip/ZipInputStream.java: Use createZipEntry not new ZipEntry.
    since 1.2 available() always returns just 1 or 0 when closed

From-SVN: r35826

23 years ago[multiple changes]
Zack Weinberg [Sun, 20 Aug 2000 21:36:18 +0000 (21:36 +0000)]
[multiple changes]

2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>

* cppinit.c (cpp_init): Set global flag when called.
(cpp_reader_init): Bomb out if cpp_init hasn't been called.

Sun Aug 20 01:41:35 MSD 2000 Dennis Chernoivanov <cdi@sparc.spb.su>

        * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
        before `process_directive' so that newlines won't be missed
        for directives.
        (cpp_printf): Increment `print->lineno' when newline is emitted.

        * cppmain.c (cb_ident): Likewise.
        (cb_define): Likewise.
        (cb_undef): Likewise.
        (cb_include): Likewise.
        (cb_def_pragma): Likewise.
        (dump_macros_helper): Likewise.

* gcc.dg/cpp/pragma-1.c: New test.
* gcc.dg/cpp/pragma-2.c: New test.

From-SVN: r35825

23 years agoJarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.
Anthony Green [Sun, 20 Aug 2000 19:40:25 +0000 (19:40 +0000)]
JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.

        * java/util/jar/JarFile.java: Don't call
        java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
        <mark@klomp.org>.

From-SVN: r35824

23 years agoia64.c (emit_insn_group_barriers): Stop if ar.lc assigned before a loop.
Richard Henderson [Sun, 20 Aug 2000 19:03:03 +0000 (12:03 -0700)]
ia64.c (emit_insn_group_barriers): Stop if ar.lc assigned before a loop.

        * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
        assigned before a loop.

        * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
        (ashrsi3, lshrsi3): Likewise.

From-SVN: r35823

23 years agoOops. Forgot some notes.
Anthony Green [Sun, 20 Aug 2000 17:54:56 +0000 (17:54 +0000)]
Oops.  Forgot some notes.

From-SVN: r35822

23 years agoURLClassLoader.java: Find the JarEntry via the JarFile.
Anthony Green [Sun, 20 Aug 2000 17:49:12 +0000 (17:49 +0000)]
URLClassLoader.java: Find the JarEntry via the JarFile.

Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>

        * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.

        * java/net/JarURLConnection.java: getEntry doesn't take any
        arguments.  Return null if element is null.

        * java/util/zip/ZipFile.java (getInputStream): Read the compressed
        size from the archive, not the inflated size.

        * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
        java.util.zip.ZipFile.getEntry.

        * gij.cc (help): Change sourceware reference to
        sources.redhat.com.

From-SVN: r35821

23 years agore GNATS gcj/305 (Interface methods implementations not always checked)
Tom Tromey [Sun, 20 Aug 2000 16:28:48 +0000 (16:28 +0000)]
re GNATS gcj/305 (Interface methods implementations not always checked)

* parse.y (check_abstract_method_definitions): Now return `int'.
Check implemented interfaces.  Fixes PR gcj/305.

From-SVN: r35820

23 years agore GNATS gcj/310 (illegal type "long" accepted for "switch" expression)
Tom Tromey [Sun, 20 Aug 2000 16:24:31 +0000 (16:24 +0000)]
re GNATS gcj/310 (illegal type "long" accepted for "switch" expression)

* parse.y (patch_switch_statement): Disallow `long' in switch
expressions.  Fixes PR gcj/310.

From-SVN: r35819

23 years agoc-lang.c: #include diagnostic.h
Gabriel Dos Reis [Sun, 20 Aug 2000 14:57:16 +0000 (14:57 +0000)]
c-lang.c: #include diagnostic.h

* c-lang.c: #include diagnostic.h
(c_tree_printer): New function.
(lang_init): Initialize lang_printer.

* Makefile.in (c-lang.o): Depends on diagnostic.h

From-SVN: r35818

23 years agoc-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
Gabriel Dos Reis [Sun, 20 Aug 2000 09:50:12 +0000 (09:50 +0000)]
c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.

* c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.

* diagnostic.c (default_diagnostic_starter,
default_diagnostic_finalizer): New functions.
(diagnostic_for_asm, diagnostic_for_decl): Tweak.
(pedwarn, pedwarn_with_file_and_line, error,
error_with_file_and_line, fatal, warning,
warning_with_file_and_line): Adjust call to report_diagnostic.
(report_diagnostic): Rework.
(set_diagnostic_context): New function.

* diagnostic.h (struct diagnostic_context): New data structure.
(diagnostic_message, diagnostic_argument_list,
diagnostic_file_location, diagnostic_line_location,
diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
(set_diagnostic_context): Declare.
(report_diagnostic): Change prototype.

From-SVN: r35817

23 years ago* fix-header.c (read_scan_file): Initialize cpplib.
Neil Booth [Sun, 20 Aug 2000 08:33:52 +0000 (08:33 +0000)]
* fix-header.c (read_scan_file): Initialize cpplib.

From-SVN: r35816

23 years ago* fix-header.c (main): Initialize cpplib.
Neil Booth [Sun, 20 Aug 2000 08:28:45 +0000 (08:28 +0000)]
* fix-header.c (main): Initialize cpplib.

From-SVN: r35815

23 years agoDaily bump.
Jeff Law [Sun, 20 Aug 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r35814

23 years agoMake sure THEN block has any insns at before testing for indirect jump
Michael Meissner [Sun, 20 Aug 2000 01:32:44 +0000 (01:32 +0000)]
Make sure THEN block has any insns at before testing for indirect jump

From-SVN: r35813

23 years agoDo not consider a THEN block ending in an indirect jump for conditional compilation...
Michael Meissner [Sat, 19 Aug 2000 22:32:11 +0000 (22:32 +0000)]
Do not consider a THEN block ending in an indirect jump for conditional compilation; Fix d30v warning

From-SVN: r35812

23 years ago* cpp.texi: Add @section for assertions.
Neil Booth [Sat, 19 Aug 2000 20:13:06 +0000 (20:13 +0000)]
* cpp.texi: Add @section for assertions.

From-SVN: r35811

23 years agoZipInputStream.java (createZipEntry): Implemented.
Tom Tromey [Sat, 19 Aug 2000 19:54:36 +0000 (19:54 +0000)]
ZipInputStream.java (createZipEntry): Implemented.

* java/util/zip/ZipInputStream.java (createZipEntry):
Implemented.

From-SVN: r35810

23 years agoAttributes.java, [...]: Imported from Classpath.
Anthony Green [Sat, 19 Aug 2000 18:19:42 +0000 (18:19 +0000)]
Attributes.java, [...]: Imported from Classpath.

Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>

* java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
java/util/jar/JarException.java, java/util/jar/JarFile.java,
java/util/jar/JarInputStream.java,
java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
java/util/AbstractSet.java, java/util/BasicMapEntry.java,
java/security/cert/CRL.java, java/security/cert/CRLException.java,
java/security/cert/Certificate.java,
java/security/cert/CertificateEncodingException.java,
java/security/cert/CertificateException.java,
java/security/cert/CertificateExpiredException.java,
java/security/cert/CertificateFactory.java,
java/security/cert/CertificateFactorySpi.java,
java/security/cert/CertificateNotYetValidException.java,
java/security/cert/CertificateParsingException.java,
java/security/cert/X509CRL.java,
java/security/cert/X509CRLEntry.java,
java/security/cert/X509Certificate.java,
java/security/cert/X509Extension.java: Imported from Classpath.
* java/util/Hashtable.java: Imported from Classpath.

* java/util/zip/ZipInputStream.java: Create stub for
createZipEntry.

* gcj/javaprims.h: Updated class list.

* Makefile.in, gcj/Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Add these new classes.

From-SVN: r35809

23 years agoloop.c (scan_loop): Use CONST_CALL_P instead of checking for REG_LIBCALL / REG_RETVAL.
John Wehle [Sat, 19 Aug 2000 16:34:44 +0000 (16:34 +0000)]
loop.c (scan_loop): Use CONST_CALL_P instead of checking for REG_LIBCALL / REG_RETVAL.

* loop.c (scan_loop): Use CONST_CALL_P instead of
checking for REG_LIBCALL / REG_RETVAL.

From-SVN: r35808

23 years agoreload1.c (reload_as_needed): Accept dumpfile argument, pass it to emit_reload_insns.
Jeffrey A Law [Sat, 19 Aug 2000 15:49:01 +0000 (15:49 +0000)]
reload1.c (reload_as_needed): Accept dumpfile argument, pass it to emit_reload_insns.

        * reload1.c (reload_as_needed): Accept dumpfile argument,
        pass it to emit_reload_insns.
        (emit_reload_insns): Add new dumpfile argument.  If non-null
        then dump the reloads for each insn into the dumpfile.
        (reload): Pass dumpfile to reload_as_needed.

From-SVN: r35807

23 years ago* invoke.texi: Clean up linux-gnu vs linux comments.
Jeffrey A Law [Sat, 19 Aug 2000 15:20:01 +0000 (15:20 +0000)]
* invoke.texi: Clean up linux-gnu vs linux comments.

From-SVN: r35806

23 years agotop.c (ffe_decode_option): Disable -fdebug-kludge and warn about it.
Toon Moene [Sat, 19 Aug 2000 13:20:07 +0000 (15:20 +0200)]
top.c (ffe_decode_option): Disable -fdebug-kludge and warn about it.

2000-08-19  Toon Moene  <toon@moene.indiv.nluug.nl>

* top.c (ffe_decode_option): Disable -fdebug-kludge
and warn about it.
* lang-options.h: Document the fact.
* g77.texi: Ditto.

From-SVN: r35805

23 years agovalarray_array.h (__valarray_min, [...]): Fix thinko.
Gabriel Dos Reis [Sat, 19 Aug 2000 11:28:22 +0000 (11:28 +0000)]
valarray_array.h (__valarray_min, [...]): Fix thinko.

* bits/valarray_array.h (__valarray_min, __valarray_max): Fix
thinko. Diagnostic messages really need to be improved for
template argument deduction.

From-SVN: r35804

23 years agoDaily bump.
Jeff Law [Sat, 19 Aug 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r35803

23 years agoia64.c (reg_or_5bit_operand): New.
Richard Henderson [Sat, 19 Aug 2000 07:15:08 +0000 (00:15 -0700)]
ia64.c (reg_or_5bit_operand): New.

        * config/ia64/ia64.c (reg_or_5bit_operand): New.
        (ia64_depz_field_mask): New.
        * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
        (PREDICATE_CODES): Update.
        * config/ia64/ia64.md: Update commentary.
        (depz_internal): New.
        (ashlsi3): Implement directly.
        (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
        (ashldi3): Use shladd.
        * config/ia64/ia64-protos.h: Update.

From-SVN: r35802

23 years agolexstrng.c: Don't include string.h.
Zack Weinberg [Sat, 19 Aug 2000 05:25:00 +0000 (05:25 +0000)]
lexstrng.c: Don't include string.h.

* gcc.dg/cpp/lexstrng.c: Don't include string.h.
* gcc.dg/cpp/paste2.c: Don't include string.h.  Prototype strcmp.

From-SVN: r35801

23 years agotoplev.c (independent_decode_option): Always process -g.
Zack Weinberg [Sat, 19 Aug 2000 01:31:47 +0000 (01:31 +0000)]
toplev.c (independent_decode_option): Always process -g.

        * toplev.c (independent_decode_option): Always process -g.
        Remove third argument, now unused.  Adjust caller to match.

From-SVN: r35800

23 years agocombine.c (make_compound_operation): Break after creating the extraction.
Richard Henderson [Sat, 19 Aug 2000 00:45:47 +0000 (17:45 -0700)]
combine.c (make_compound_operation): Break after creating the extraction.

        * combine.c (make_compound_operation): Break after creating
        the extraction.

From-SVN: r35799

23 years agocpplib.c (cpp_register_pragma_space): Just return if the namespace is already registered.
Zack Weinberg [Fri, 18 Aug 2000 22:42:14 +0000 (22:42 +0000)]
cpplib.c (cpp_register_pragma_space): Just return if the namespace is already registered.

* cpplib.c (cpp_register_pragma_space): Just return if the
namespace is already registered.

From-SVN: r35798

23 years agoOnly allow allow rotations by a constant amount.
Ray Essick [Fri, 18 Aug 2000 21:11:23 +0000 (21:11 +0000)]
Only allow allow rotations by a constant amount.

Do not generate ROTL instruction.

From-SVN: r35797

23 years agostor-layout.c (compute_record_type): Don't use mode of single field as mode of record...
Richard Kenner [Fri, 18 Aug 2000 20:52:28 +0000 (20:52 +0000)]
stor-layout.c (compute_record_type): Don't use mode of single field as mode of record if not integer mode of same type.

* stor-layout.c (compute_record_type): Don't use mode of single
field as mode of record if not integer mode of same type.

From-SVN: r35796

23 years ago* gcc.c-torture/compile/20000818-1.c: New test.
Richard Kenner [Fri, 18 Aug 2000 20:45:02 +0000 (16:45 -0400)]
* gcc.c-torture/compile/20000818-1.c: New test.

From-SVN: r35795

23 years agoNew test
Richard Kenner [Fri, 18 Aug 2000 20:43:34 +0000 (16:43 -0400)]
New test

From-SVN: r35794

23 years agoelf.h: Do not include sh/sh.h.
Alexandre Oliva [Fri, 18 Aug 2000 19:39:52 +0000 (19:39 +0000)]
elf.h: Do not include sh/sh.h.

* config/sh/elf.h: Do not include sh/sh.h.
* config/sh/rtems.h: Likewise.
* config/sh/rtemself.h: Do not include sh/elf.h.
* configure.in: Get them included with `tm_file's.
* configure: Rebuilt.

From-SVN: r35793

23 years agosh.md (fpu_switch0, [...]): Simplify.
Alexandre Oliva [Fri, 18 Aug 2000 19:10:43 +0000 (19:10 +0000)]
sh.md (fpu_switch0, [...]): Simplify.

* config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
* config/sh/sh.c (fpscr_set_from_mem): Use them.

From-SVN: r35792

23 years agoregmove.c (perhaps_ends_bb_p): New function.
Richard Kenner [Fri, 18 Aug 2000 18:21:33 +0000 (18:21 +0000)]
regmove.c (perhaps_ends_bb_p): New function.

* regmove.c (perhaps_ends_bb_p): New function.
(optimize_reg_copy_1, optimize_reg_copy_2): Call it.
(optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
(fixup_match_1): Likewise.
(fixup_match_1, combine_stack_adjustments_for_block): Add casts to
avoid signed/unsigned warnings.

From-SVN: r35791

23 years agofunction.c (fixup_var_refs_1, case MEM): Update CODE after updating X.
Richard Kenner [Fri, 18 Aug 2000 18:11:02 +0000 (18:11 +0000)]
function.c (fixup_var_refs_1, case MEM): Update CODE after updating X.

* function.c (fixup_var_refs_1, case MEM): Update CODE after
updating X.

From-SVN: r35790

23 years agocpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
Neil Booth [Fri, 18 Aug 2000 17:35:58 +0000 (17:35 +0000)]
cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.

* cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
(_cpp_trigraph_map): Declaration moved from cpplex.c

* cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
instead of 256.  Use consistent test for designated initializers.
(cpp_init): Initialize trigraph_map.
(initialize_standard_includes, parse_option):  Use memcmp
instead of strncmp.

* cpplex.c (init_trigraph_map): Remove.
(trigraph_ok, trigraph_replace, lex_line): Refer to
_cpp_trigraph_map.

* cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
(do_unassert): Remove unused "next" local.

* system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.

From-SVN: r35789

23 years ago20000818-1.c: New test.
Manfred Hollstein [Fri, 18 Aug 2000 16:54:39 +0000 (16:54 +0000)]
20000818-1.c: New test.

2000-08-18  Manfred Hollstein  <manfredh@redhat.com>

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

From-SVN: r35788

23 years agovalarray_meta.h: Fix typos...
Benjamin Kosnik [Fri, 18 Aug 2000 16:29:18 +0000 (16:29 +0000)]
valarray_meta.h: Fix typos...

2000-08-18  Benjamin Kosnik  <bkoz@gnu.org>

* bits/valarray_meta.h: Fix typos...

From-SVN: r35787

23 years ago* gcc.dg/format-va-1.c: New test.
Joseph Myers [Fri, 18 Aug 2000 16:14:32 +0000 (17:14 +0100)]
* gcc.dg/format-va-1.c: New test.

From-SVN: r35786

23 years agovalarray_meta.h (_Expr<>::shift, [...]): Implement.
Gabriel Dos Reis [Fri, 18 Aug 2000 11:01:22 +0000 (11:01 +0000)]
valarray_meta.h (_Expr<>::shift, [...]): Implement.

* bits/valarray_meta.h (_Expr<>::shift, _Expr::cshift,
_Expr<>::apply): Implement.

From-SVN: r35785

23 years agodecl.c (member_function_or_else): Use cp_error ...
Nathan Sidwell [Fri, 18 Aug 2000 10:49:17 +0000 (10:49 +0000)]
decl.c (member_function_or_else): Use cp_error ...

* decl.c (member_function_or_else): Use cp_error ... %T.
(grokdeclarator): Likewise.
(start_method): Likewise.
* friend.c (make_friend_class): Use cp_pedwarn ... %T.

From-SVN: r35784

23 years agovalarray_meta.h (_Expr<>::min, [...]): Implement.
Gabriel Dos Reis [Fri, 18 Aug 2000 10:40:23 +0000 (10:40 +0000)]
valarray_meta.h (_Expr<>::min, [...]): Implement.

* bits/valarray_meta.h (_Expr<>::min, _Expr<>::max): Implement.

* bits/valarray_array.h (__valarray_min, __valarray_max): New
function.

From-SVN: r35783

23 years agoeditbuf.h (edit_streambuf): Fix syntax error in friend-declaration.
Gabriel Dos Reis [Fri, 18 Aug 2000 10:20:52 +0000 (10:20 +0000)]
editbuf.h (edit_streambuf): Fix syntax error in friend-declaration.

* editbuf.h (edit_streambuf): Fix syntax error in
friend-declaration.

From-SVN: r35782

23 years agoFrom Emmanuel Marty <emarty@suntech.fr>
Emmanuel Marty [Fri, 18 Aug 2000 10:18:14 +0000 (12:18 +0200)]
From Emmanuel Marty  <emarty@suntech.fr>
* arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
insn.

From-SVN: r35781

23 years ago* g++.old-deja/g++.other/typedef8.C: New test.
Nathan Sidwell [Fri, 18 Aug 2000 09:49:40 +0000 (09:49 +0000)]
* g++.old-deja/g++.other/typedef8.C: New test.

From-SVN: r35780

23 years agodecl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.
Nathan Sidwell [Fri, 18 Aug 2000 09:49:06 +0000 (09:49 +0000)]
decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.

* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
TYPE_DECLs.

From-SVN: r35779

23 years ago13478.C: Mark candidate.
Nathan Sidwell [Fri, 18 Aug 2000 09:31:48 +0000 (09:31 +0000)]
13478.C: Mark candidate.

* g++.old-deja/g++.benjamin/13478.C: Mark candidate.
* g++.old-deja/g++.mike/net36.C: Mark candidate.
* g++.old-deja/g++.robertl/eb131.C: Mark candidate.
* g++.old-deja/g++.oliva/overload1.C: Remove XFAIL.
* g++.old-deja/g++.other/ptrmem7.C: New test.
* g++.old-deja/g++.pt/ptrmem10.C: New test.

From-SVN: r35778

23 years agocp-tree.h (PTRMEM_OK_P): New macro.
Nathan Sidwell [Fri, 18 Aug 2000 09:31:11 +0000 (09:31 +0000)]
cp-tree.h (PTRMEM_OK_P): New macro.

* cp-tree.h (PTRMEM_OK_P): New macro.
(itf_ptrmem_ok): New enumeration value.
* class.c (resolve_address_of_overloaded_function): Add PTRMEM
argument. Diagnose implicit pointer to member.
(instantiate_type): Don't diagnose implicit pointer to member
here. Pass itf_ptrmem_ok if ok. Adjust calls to
resolve_address_of_overloaded_function.
* init.c (build_offset_ref): Set PTRMEM_OK_P.
(resolve_offset_ref): Don't diagnose implicit pointer to member here.
* semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
* typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
(build_unary_op): Deal with single non-static member in
microsoft-land.

From-SVN: r35777

23 years ago* g++.old-deja/g++.pt/typename27.C: New test.
Nathan Sidwell [Fri, 18 Aug 2000 09:21:31 +0000 (09:21 +0000)]
* g++.old-deja/g++.pt/typename27.C: New test.

From-SVN: r35776

23 years ago* decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
Nathan Sidwell [Fri, 18 Aug 2000 09:21:04 +0000 (09:21 +0000)]
* decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.

From-SVN: r35775

23 years agocp-tree.h (enum_name_string): Remove prototype.
Nathan Sidwell [Fri, 18 Aug 2000 09:15:51 +0000 (09:15 +0000)]
cp-tree.h (enum_name_string): Remove prototype.

* cp-tree.h (enum_name_string): Remove prototype.
(report_case_error): Remove prototype.
* cp/typeck2.c (enum_name_string): Remove.
(report_case_error): Remove.
* error.c (dump_expr): Deal with enum values directly.
Correctly negate integer constant.

From-SVN: r35774

23 years agoDaily bump.
Jeff Law [Fri, 18 Aug 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r35773

23 years agoia64.c (spill_restore_mem): Handle emitting the first insn in a sequence.
Richard Henderson [Fri, 18 Aug 2000 03:03:50 +0000 (20:03 -0700)]
ia64.c (spill_restore_mem): Handle emitting the first insn in a sequence.

        * config/ia64/ia64.c (spill_restore_mem): Handle emitting
        the first insn in a sequence.

From-SVN: r35772

23 years agoalias.c (true_dependence, [...]): A read involving a label_ref or the constant pool...
John Wehle [Fri, 18 Aug 2000 02:41:58 +0000 (02:41 +0000)]
alias.c (true_dependence, [...]): A read involving a label_ref or the constant pool doesn't create a dependency.

* alias.c (true_dependence, write_dependence_p): A read
involving a label_ref or the constant pool doesn't create
a dependency.

* rtl.h (unchanging): Improve documentation.

From-SVN: r35771

23 years ago* cse.c (insert_regs): Remove unused `regno'.
Rodney Brown [Thu, 17 Aug 2000 23:03:43 +0000 (23:03 +0000)]
* cse.c (insert_regs): Remove unused `regno'.

From-SVN: r35770

23 years agonatClass.cc (finit_name): Initialized with `finit$'.
Alexandre Petit-Bianco [Thu, 17 Aug 2000 21:56:29 +0000 (21:56 +0000)]
natClass.cc (finit_name): Initialized with `finit$'.

2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
        (finit_leg_name): New global.
        (java::lang::Class::getDeclaredMethods): Test for `finit$' or
        `$finit$'. This is a backward compatibility hack.
        (java::lang::Class::_getMethods): Likewise.

(http://sources.redhat.com/ml/java-discuss/2000-08/msg00031.html
 See also the matching compiler patch:
 http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00664.html)

From-SVN: r35769

23 years agodecl.c (finit_leg_identifier_node): New global.
Alexandre Petit-Bianco [Thu, 17 Aug 2000 21:50:48 +0000 (21:50 +0000)]
decl.c (finit_leg_identifier_node): New global.

2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * decl.c (finit_leg_identifier_node): New global.
        (init_decl_processing): Use `finit$' to initialize
        finit_identifier_node. Use `$finit$' to initialize
        finit_leg_identifier_node.
        * expr.c (expand_java_field_op): Use ID_FINIT_P.
        * java-tree.h (finit_identifier_node): Changed attached comment.
        (finit_leg_identifier_node): New declaration.
        (ID_FINIT_P): Take finit_identifier_node and
        finit_leg_identifier_node into account. This is a backward
        compatibility hack.

(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00664.html
 See also the matching Java run-time patch:
 http://sources.redhat.com/ml/java-discuss/2000-08/msg00031.html)

From-SVN: r35768

23 years agolocalefwd.h (std::locale): Use explicit `class' specified when declaring friends.
Mark Mitchell [Thu, 17 Aug 2000 20:13:47 +0000 (20:13 +0000)]
localefwd.h (std::locale): Use explicit `class' specified when declaring friends.

* bits/localefwd.h (std::locale): Use explicit `class' specified
when declaring friends.
* bits/std_fstream.h (std::basic_filebuf): Likewise.

From-SVN: r35767

23 years agocppinit.c (merge_include_chains): Use remove_dup_dir, remove_dup_dirs.
Neil Booth [Thu, 17 Aug 2000 18:03:59 +0000 (18:03 +0000)]
cppinit.c (merge_include_chains): Use remove_dup_dir, remove_dup_dirs.

* (cppinit.c) merge_include_chains: Use remove_dup_dir,
remove_dup_dirs.  If qtail == brack, remove brack not
qtail.
(remove_dup_dir, remove_dup_dirs): New functions.

From-SVN: r35766

23 years agocppinit.c (cpp_cleanup): Free include dir chains.
Neil Booth [Thu, 17 Aug 2000 18:01:43 +0000 (18:01 +0000)]
cppinit.c (cpp_cleanup): Free include dir chains.

* cppinit.c (cpp_cleanup): Free include dir chains.
* cpplib.c (do_undef): Let _cpp_free_definition make the node void.
(do_unassert): Free the assert with _cpp_free_definition.
* cppmacro.c (_cpp_free_definition): Free memory allocated for
assertions.  Make the node a T_VOID node.

From-SVN: r35765

23 years agocppinit.c (path_include, [...]): Remove 2nd parameter (struct cpp_pending *).
Neil Booth [Thu, 17 Aug 2000 17:58:24 +0000 (17:58 +0000)]
cppinit.c (path_include, [...]): Remove 2nd parameter (struct cpp_pending *).

* cppinit.c (path_include, append_include_chain):
Remove 2nd parameter (struct cpp_pending *).
(path_include, initialize_standard_includes, cpp_handle_option):
Update callers appropriately.
(cpp_handle_option): Use pend.

From-SVN: r35764

23 years agocppinit.c (sort_options): Remove, put functionality in cpp_init.
Neil Booth [Thu, 17 Aug 2000 17:52:48 +0000 (17:52 +0000)]
cppinit.c (sort_options): Remove, put functionality in cpp_init.

* cppinit.c (sort_options): Remove, put functionality in
cpp_init.
(cpp_init): New.
(initialize_builtins): Free memory.
(cpp_start_read): Move init_IStable to cpp_init.

* cpplib.h (cpp_init): New prototype.
* cppmain.c (main): Call cpp_init.

From-SVN: r35763

23 years agortlanal.c (rtx_unstable_p): Use CONSTANT_P.
John Wehle [Thu, 17 Aug 2000 17:20:10 +0000 (17:20 +0000)]
rtlanal.c (rtx_unstable_p): Use CONSTANT_P.

* rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
(rtx_unstable_p, rtx_varies_p): Process vectors.

From-SVN: r35762

23 years agocxxabi.h (__cxa_vec_new2, [...]): Declare.
Nathan Sidwell [Thu, 17 Aug 2000 15:05:43 +0000 (15:05 +0000)]
cxxabi.h (__cxa_vec_new2, [...]): Declare.

* inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
(__cxa_vec_delete2, __cxa_vec_delete3): Declare.
* vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
(__cxa_vec_delete2, __cxa_vec_delete3): Implement.
(__cxa_vec_new): Use __cxa_vec_new2.
(__cxa_vec_delete): Use __cxa_vec_delete2.

From-SVN: r35761

23 years agovec.cc (__cxa_vec_new): Set "C" linkage.
Nathan Sidwell [Thu, 17 Aug 2000 14:40:31 +0000 (14:40 +0000)]
vec.cc (__cxa_vec_new): Set "C" linkage.

* vec.cc (__cxa_vec_new): Set "C" linkage.
(__cxa_vec_ctor): Likewise.
(__cxa_vec_cctor): Likewise.
(__cxa_vec_dtor): Likewise.
(__cxa_vec_delete): Likewise.
* inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
(__cxa_vec_ctor): Likewise.
(__cxa_vec_cctor): Likewise.
(__cxa_vec_dtor): Likewise.
(__cxa_vec_delete): Likewise.

From-SVN: r35760

23 years agocvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes.
Nathan Sidwell [Thu, 17 Aug 2000 14:09:21 +0000 (14:09 +0000)]
cvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes.

* cvt.c (cp_convert_to_pointer): Pass itf_complain, not
itf_no_attributes.

From-SVN: r35759

23 years agoclass.c (instantiate_type): Reinstate local variable deleted in previous change.
Nathan Sidwell [Thu, 17 Aug 2000 13:26:14 +0000 (13:26 +0000)]
class.c (instantiate_type): Reinstate local variable deleted in previous change.

* class.c (instantiate_type): Reinstate local variable
deleted in previous change.

From-SVN: r35758

23 years agocp-tree.h (instantiate_type_flags): New enumeration.
Nathan Sidwell [Thu, 17 Aug 2000 13:10:50 +0000 (13:10 +0000)]
cp-tree.h (instantiate_type_flags): New enumeration.

* cp-tree.h (instantiate_type_flags): New enumeration.
(instantiate_type): Change parameter.
* class.c (instantiate_type): Adjust prototype. Adjust.
* call.c (standard_conversion): Adjust instantiate_type call.
(reference_binding): Likewise.
(build_op_delete_call): Likewise.
(convert_like_real): Likewise.
* cvt.c (cp_convert_to_pointer): Likewise.
(convert_to_reference): Likewise.
* pt.c (convert_nontype_argument): Likewise.
* typeck.c (build_binary_op): Likewise.
(build_ptrmemfunc): Likewise.
(convert_for_assignment): Likewise.

From-SVN: r35757

23 years agofix the fibs in previous entry
Nathan Sidwell [Thu, 17 Aug 2000 12:34:36 +0000 (12:34 +0000)]
fix the fibs in previous entry

From-SVN: r35756

23 years agocp-tree.h (CPTR_AGGR_TAG): New global tree node.
Nathan Sidwell [Thu, 17 Aug 2000 12:26:39 +0000 (12:26 +0000)]
cp-tree.h (CPTR_AGGR_TAG): New global tree node.

* cp-tree.h (CPTR_AGGR_TAG): New global tree node.
(current_aggr): Define.
* decl.c (grokdeclarator): Make sure a friend class is an
elaborated type specifier.
* parse.y (current_aggr): Remove static definition.
(cp_parse_init): Adjust.
(structsp): Clear and restore current_aggr.
(component_decl_list): Clear current_aggr.

* error.c (dump_type, case TYPENAME_TYPE): Don't emit the
aggregate tag on the typename's context.

* pt.c (tsubst_friend_class): Return NULL, if parms becomes NULL.
(instantiate_class_template): Ignore NULL friend types.

From-SVN: r35755

23 years agocrash44.C: Remove XFAIL.
Nathan Sidwell [Thu, 17 Aug 2000 12:24:24 +0000 (12:24 +0000)]
crash44.C: Remove XFAIL.

* g++.old-deja/g++.pt/crash44.C: Remove XFAIL. Add ERROR.
* g++.old-deja/g++.pt/friend38.C: Remove XFAIL. Add extra test.
* g++.old-deja/g++.pt/friend45.C: New test.
* g++.old-deja/g++.other/friend8.C: New test.

From-SVN: r35754

23 years agoDaily bump.
Jeff Law [Thu, 17 Aug 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r35753

23 years agolib1funcs.asm (GLOBAL): Define.
Niibe Yutaka [Wed, 16 Aug 2000 21:17:40 +0000 (21:17 +0000)]
lib1funcs.asm (GLOBAL): Define.

* config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
references to GLOBAL symbols.  Use LOCAL where appropriate.

From-SVN: r35752

23 years agoMakefile.am (libstdc++.INC): Renamed from INCLUDES.
Alexandre Oliva [Wed, 16 Aug 2000 18:36:57 +0000 (18:36 +0000)]
Makefile.am (libstdc++.INC): Renamed from INCLUDES.

* src/Makefile.am (libstdc++.INC): Renamed from INCLUDES.
* src/Makefile.in: Regenerate.

From-SVN: r35751

23 years agoconfigure.in (libstdcxx_flags): Use libstdc++-v3/src/libstdc++.INC.
Alexandre Oliva [Wed, 16 Aug 2000 18:34:04 +0000 (18:34 +0000)]
configure.in (libstdcxx_flags): Use libstdc++-v3/src/libstdc++.INC.

* configure.in (libstdcxx_flags): Use
libstdc++-v3/src/libstdc++.INC.

From-SVN: r35750

23 years ago* gcconfig.h [OSF1] (_end): Declare as `int'.
Alexandre Oliva [Wed, 16 Aug 2000 18:17:59 +0000 (18:17 +0000)]
* gcconfig.h [OSF1] (_end): Declare as `int'.

From-SVN: r35749

23 years agoComponentDataBlitOp.java: New file.
Rolf W. Rasmussen [Wed, 16 Aug 2000 18:03:48 +0000 (20:03 +0200)]
ComponentDataBlitOp.java: New file.

* gnu/gcj/awt/ComponentDataBlitOp.java: New file.
* gnu/gcj/awt/GLightweightPeer.java: New file.
* java/awt/BorderLayout.java: Implemented all methods.
* java/awt/Button.java (actionListener, actionCommand): Renamed
and modifier change.
(addNotify): Call super.
(dispatchEventImpl): New method.
(getListeners): New method.
(label): Made package-private, not private.
* java/awt/Canvas.java: Implemented class body.
* java/awt/Color.java (brighter): New method.
(darker): New method.
(hashCode): New method.
* java/awt/Component.java (visible, enabled, eventMask): Set defaults.
(getGraphicsConfiguration): Delegate to
getGraphicsConfigurationImpl().
(getGraphicsConfigurationImpl): New method.
(getToolkit): Only return value from peer if not null.
(isDisplayable): Check with parent.
(isShowing): No parent implies not showing.
(getForeground): Check parent property if local is null.
(getBackground): Likewise.
(getFont): Likewise.
(setForeground): Inform peer.
(setBackground): Likewise
(setLocale): Invalidate component.
(getColorModel): Implemented.
(setLocation): Invalidate, or ignore if no change.
(setSize): Invalidate, or ignore if no change.
(setBounds): Invalidate, or ignore if no change.
(isOpaque): By default, heavyweight implies opaque.
(isLightweight): Implemented.
(getMaximumSize): Implemented.
(doLayout): Implemented, NOP.
(validate): Implemented, NOP.
(invalidate): Only propagate to parent if parent was valid.
(getGraphics): Implemented.
(getFontMetrics): Implemented.
(update): Implemented.
(paintAll): Implemented.
(repaint): Implemented all repaint methods.
(print): Implemented.
(printAll): Implemented.
(createImage): Implemented.
(dispatchEvent): Give the peer a chance to handle the event.
(dispatchEventImpl): Dispatch paint events.
(enableEvents): Lightweights enable events on parent component.
(coalesceEvents): Coalesce paint events, and select event type
using a switch.
(coalescePaintEvents): New method.
(processEvent): Fix unfortunate ordering of statements, and call
correct method for MOUSE_CLICKED.
(processPaintEvent): New method.
(addNotify): Allow container to notify children before event
mask is set in peer.
(addNotifyContainerChildren): New method.
(removeNotify): Visibility should not change on removeNotify.
(paramString): Implemented.
(list): Implemented two of the list methods.
* Container (myInsets): Removed, insets are managed by peer.
(getInsets): Query peer.
(addImpl): Fix reparenting, enable events for lightweights,
initialize component array.
(validate): Call doLayout in validateTree() instead.
(validateTree): Do nothing if already valid. Call beginValidate(),
endValidate() on peer. Call validateTree() instead of validate()
for children that are containers. Mark valid after validation of
children.
(setFont): Partial implementation.
(paint): Implemented.
(visitChildren): New method.
(visitChild): New method.
(update): Implemented.
(print): Implemented.
(paintComponents): Implemented.
(printComponents): Consider translation and clipping.
(getComponentAt): Ignore invisible children. Return this if no
child match.
(addNotify): Call super.
(addNotifyContainerChildren): New method.
(paramString): Implemented.
(list): Implemented.
* java/awt/EventQueue (invokeAndWait): Get system event queue the
right way.
(invokeLater): Likewise.
(isDispatchThread): Likewise.
* java/awt/FontMetrics (getLeading): Formula change.
(getDescent): Consider leading also.
(getMaxAscent): Default to getAscent().
(getMaxDescent): Default to getDescent.
(getMaxAdvance): Return value signifying unknown.
(charWidth): Both methods implemented.
(charsWidth): Implemented.
(bytesWidth): Implemented.
(getWidths): Implemented.
* java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
state): New fields.
(Frame): Rearragend constuctor chaining to disallow null being
passed as a graphics configuration.
(getTitle): Return empty string if null.
(dispose): Removed.
(getIconImage): New method.
(setIconImage): New method.
(finalize): New method.
(setMenuBar): Notify peer.
(isResizable): New method.
(setResizable): New method.
(getState): New method.
(getFont): Removed.
(remove): Implemented.
(removeNotify): New method.
(getFrames): New method.
* java/awt/Graphics.java: Implemented body of class.
* java/awt/Graphics2D.java: New file.
* java/awt/GraphicsConfiguration.java: Enabled part of the API.
* java/awt/Image.java: Implemented body of class.
* java/awt/Panel.java (Panel): Call correct super constructor.
(addNotify): Implemented.
* java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
* java/awt/RenderingHints.java: New file.
* java/awt/Toolkit.java (createComponent): Implemented.
(getSystemEventQueue): Delegate to getSystemEventQueueImpl().
* java/awt/Window.java (Window): Two new constructors. Reordered
constructor chaining.
(getGraphicsConfigurationImpl): New method.
(finalize): Call super.
(addNotify): Call super.
(pack): Do layout stuff.
(show): Ensure that peer exists and that component is valid.
(dispose): Dispose owned children.
(getOwner): Simplify code, casting null pointers is valid.
(getGraphicsConfiguration): Ask peer if local value is null.
* java/awt/event/ActionEvent.java (getActionCommand): Renamed from
getcmd().
* java/awt/image/BufferedImage.java: New file.
* java/awt/image/RasterOp.java: New file.
* java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
More powerfull replacement for getColorModel().
(getColorModel) Removed.
(setEventMask) New method.
* Makefile.am: Added new files.
* Makefile.in: Rebuilt.

From-SVN: r35748

23 years agoconfigure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.
Kaveh R. Ghazi [Wed, 16 Aug 2000 17:10:21 +0000 (17:10 +0000)]
configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.

* configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
use t-aix41 when host == target.

From-SVN: r35747

23 years agoreload.c (push_secondary_reload): Revert last change.
Richard Henderson [Wed, 16 Aug 2000 16:53:02 +0000 (09:53 -0700)]
reload.c (push_secondary_reload): Revert last change.

        * reload.c (push_secondary_reload): Revert last change.
        If we use a reload_in/out pattern, make the when the same
        as the primary reload.
        (find_reloads): Likewise.

From-SVN: r35746

23 years agoconfigure.in (libstdcxx-v3): Fix test.
Manfred Hollstein [Wed, 16 Aug 2000 16:25:19 +0000 (16:25 +0000)]
configure.in (libstdcxx-v3): Fix test.

2000-08-16  Manfred Hollstein  <manfredh@redhat.com>

* configure.in (libstdcxx-v3): Fix test.
* configure: Regenerate.

From-SVN: r35745

23 years agojvm.h (_Jv_HashCode): New hash code.
Andrew Haley [Wed, 16 Aug 2000 15:30:02 +0000 (15:30 +0000)]
jvm.h (_Jv_HashCode): New hash code.

2000-08-15  Andrew Haley  <aph@cygnus.com>

* include/jvm.h (_Jv_HashCode): New hash code.

From-SVN: r35744

23 years agocalls.c (calls_function_1, [...]): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTIO...
Richard Kenner [Wed, 16 Aug 2000 11:59:03 +0000 (11:59 +0000)]
calls.c (calls_function_1, [...]): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.

* calls.c (calls_function_1, expand_call): Only test
TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
* function.c (thread_prologue_and_epilogue_insns): Likewise.

From-SVN: r35743

23 years agocombine.c (simplify_shift_const): Revert previous two changes.
Richard Henderson [Wed, 16 Aug 2000 07:56:04 +0000 (00:56 -0700)]
combine.c (simplify_shift_const): Revert previous two changes.

        * combine.c (simplify_shift_const): Revert previous two
        changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
        before the main loop.

From-SVN: r35742

23 years agoDaily bump.
Jeff Law [Wed, 16 Aug 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r35741

23 years agoNew test.
Richard Henderson [Wed, 16 Aug 2000 06:23:40 +0000 (23:23 -0700)]
New test.

From-SVN: r35740

23 years agocombine.c (simplify_shift_const): Bound shift count when combining shifts.
Richard Henderson [Wed, 16 Aug 2000 06:22:20 +0000 (23:22 -0700)]
combine.c (simplify_shift_const): Bound shift count when combining shifts.

        * combine.c (simplify_shift_const): Bound shift count when
        combining shifts.

From-SVN: r35739

23 years agocodecvt.h: New file.
Benjamin Kosnik [Wed, 16 Aug 2000 05:00:29 +0000 (05:00 +0000)]
codecvt.h: New file.

2000-08-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* bits/codecvt.h: New file.
* src/codecvt.cc: New file.
* bits/std_locale.h: Add include here.
* src/Makefile.am (headers): Add codecvt.h
(sources): Add codecvt.cc.
* src/Makefile.in: Regenerate.
* bits/locale_facets.h (codecvt): Re-implement. Rename _Codecvt to
__codecvt_abstract_base in an attempt to point some light this way...
Move __enc_traits and codecvt bits to codecvt.h.
* src/locale-inst.cc: Remove codecvt<wchar_t, wchar_t, mbstate_t>
explicit instantiation. Separate out codecvt instantations, simplify.
* src/locale.cc: Move codecvt bits to codecvt.cc

From-SVN: r35738

23 years agocodecvt.h: New file.
Benjamin Kosnik [Wed, 16 Aug 2000 04:12:51 +0000 (04:12 +0000)]
codecvt.h: New file.

2000-08-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* bits/codecvt.h: New file.
* src/codecvt.cc: New file.
* bits/std_locale.h: Add include here.
* src/Makefile.am (headers): Add codecvt.h
(sources): Add codecvt.cc.
* src/Makefile.in: Regenerate.
* bits/locale_facets.h (codecvt): Re-implement. Rename _Codecvt to
__codecvt_abstract_base in an attempt to point some light this way...
Move __enc_traits and codecvt bits to codecvt.h.
* src/locale-inst.cc: Remove codecvt<wchar_t, wchar_t, mbstate_t>
explicit instantiation. Separate out codecvt instantations, simplify.
* src/locale.cc: Move codecvt bits to codecvt.cc

From-SVN: r35737

23 years ago* java/io/ByteArrayOutputStream.java: Merged with Classpath.
Tom Tromey [Wed, 16 Aug 2000 01:43:42 +0000 (01:43 +0000)]
* java/io/ByteArrayOutputStream.java: Merged with Classpath.

From-SVN: r35736

23 years agocalls.c (ECF_SP_DEPRESSED): New macro.
Richard Kenner [Wed, 16 Aug 2000 01:23:46 +0000 (21:23 -0400)]
calls.c (ECF_SP_DEPRESSED): New macro.

* calls.c (ECF_SP_DEPRESSED): New macro.
(calls_function_1): Treat calling sp-depressed function as alloca.
(emit_call_1): Don't adjust SP if calling sp-depressed function.
(expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
If sp-depressed, ensure block saves and restores SP.
* fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
for INTEGER_TYPE.
* function.c (keep_stack_depressed): New function.
(thread_prologue_and_epilogue_insns): Call it.
* print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
to print DECL_OFFSET_ALIGN.
Print no-force-blk and transparent-union flags properly.
* stmt.c (expand_goto_internal): Don't restore stack if last block
and function returns with sp depressed.
(fixup_gotos): Likewise.
(save_stack_pointer): New function, from code in expand_decl.
(expand_decl): Call new function.
* tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
(TYPE_RETURNS_STACK_DEPRESSED): New macro.
(save_stack_pointer): New declaration.

From-SVN: r35735

23 years agocalls.c (ECF_SP_DEPRESSED): New macro.
Richard Kenner [Wed, 16 Aug 2000 01:15:37 +0000 (01:15 +0000)]
calls.c (ECF_SP_DEPRESSED): New macro.

* calls.c (ECF_SP_DEPRESSED): New macro.
(calls_function_1): Treat calling sp-depressed function as alloca.
(emit_call_1): Don't adjust SP if calling sp-depressed function.
(expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
If sp-depressed, ensure block saves and restores SP.
* fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
for INTEGER_TYPE.
* function.c (keep_stack_depressed): New function.
(thread_prologue_and_epilogue_insns): Call it.
* print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
to print DECL_OFFSET_ALIGN.
Print no-force-blk and transparent-union flags properly.
* stmt.c (expand_goto_internal): Don't restore stack if last block
and function returns with sp depressed.
(fixup_gotos): Likewise.
(save_stack_pointer): New function, from code in expand_decl.
(expand_decl): Call new function.
* tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
(TYPE_RETURNS_STACK_DEPRESSED): New macro.
(save_stack_pointer): New declaration.

From-SVN: r35734

23 years agojcf-write.c (generate_bytecode_conditional): Re-installed lost Jan 6 2000 patch.
Alexandre Petit-Bianco [Wed, 16 Aug 2000 00:05:29 +0000 (00:05 +0000)]
jcf-write.c (generate_bytecode_conditional): Re-installed lost Jan 6 2000 patch.

2000-08-14  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * jcf-write.c (generate_bytecode_conditional): Re-installed lost
        Jan 6 2000 patch.
        (generate_bytecode_insns): Check `nargs' before emitting it.
        * verify.c (merge_type_state): Fixed typo.
        * ChangeLog: Fixed typo in some jcf-write.c entries mentioning
        generate_bytecode_{conditional,insns}.

(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00617.html)

From-SVN: r35733

23 years agodiagnostic.c (fatal_function): New variable.
Richard Kenner [Tue, 15 Aug 2000 21:39:26 +0000 (17:39 -0400)]
diagnostic.c (fatal_function): New variable.

* diagnostic.c (fatal_function): New variable.
(set_fatal_function): New function.
(fatal): Call it.
* diagnostic.h (set_fatal_function): New declaration.

From-SVN: r35732

23 years agodiagnostic.c (fatal_function): New variable.
Richard Kenner [Tue, 15 Aug 2000 21:21:12 +0000 (17:21 -0400)]
diagnostic.c (fatal_function): New variable.

* diagnostic.c (fatal_function): New variable.
(set_fatal_function): New function.
(fatal): Call it.
* diagnostic.h (set_fatal_function): New declaration.

From-SVN: r35731

23 years agoelf.h (DWARF2_DEBUGGING_INFO): Defined.
William Cohen [Tue, 15 Aug 2000 20:50:39 +0000 (20:50 +0000)]
elf.h (DWARF2_DEBUGGING_INFO): Defined.

* config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
(PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
(DWARF2_ASM_LINE_DEBUG_INFO): Defined.

From-SVN: r35730

23 years agoMinor whitespace fixes
Richard Kenner [Tue, 15 Aug 2000 20:47:38 +0000 (16:47 -0400)]
Minor whitespace fixes

From-SVN: r35729

23 years agoc90-array-lval-2.c, [...]: New tests.
Joseph Myers [Tue, 15 Aug 2000 18:08:04 +0000 (19:08 +0100)]
c90-array-lval-2.c, [...]: New tests.

* gcc.dg/c90-array-lval-2.c, gcc.dg/c90-const-expr-2.c,
gcc.dg/c99-array-lval-2.c, gcc.dg/c99-const-expr-2.c,
gcc.dg/c99-func-3.c, gcc.dg/c99-func-4.c: New tests.

From-SVN: r35728