platform/upstream/gcc.git
25 years agoUse unsigned shift instead of signed shift.
Nick Clifton [Thu, 23 Sep 1999 14:58:54 +0000 (14:58 +0000)]
Use unsigned shift instead of signed shift.

From-SVN: r29621

25 years agoAdd test case for this patch to combine.c:
Nick Clifton [Thu, 23 Sep 1999 14:58:00 +0000 (14:58 +0000)]
Add test case for this patch to combine.c:

* combine.c (simplify_comparison): Use an unsigned shift to adjust
the constant.

From-SVN: r29620

25 years ago* gcc.1: Fix a formatting error.
Guy Harris [Thu, 23 Sep 1999 14:49:11 +0000 (14:49 +0000)]
* gcc.1: Fix a formatting error.

From-SVN: r29619

25 years agoinstall.texi (Configurations): Remove pyramid.
Martin v. Löwis [Thu, 23 Sep 1999 13:58:53 +0000 (13:58 +0000)]
install.texi (Configurations): Remove pyramid.

* install.texi (Configurations): Remove pyramid. Add fr30, i686,
i786, mn10200, mn10300, pdp11, v850.

From-SVN: r29618

25 years ago* ir.texi: Fix formatting errors and typos.
Martin v. Löwis [Thu, 23 Sep 1999 13:55:27 +0000 (13:55 +0000)]
* ir.texi: Fix formatting errors and typos.

From-SVN: r29617

25 years agolibgcc2.c (num_digits): Add prototype with __attribute__((const)).
Dan Nicolaescu [Thu, 23 Sep 1999 13:37:49 +0000 (13:37 +0000)]
libgcc2.c (num_digits): Add prototype with __attribute__((const)).

        * libgcc2.c (num_digits): Add prototype with
        __attribute__((const)).
        (__terminate): Add prototype.

From-SVN: r29616

25 years agoregclass.c: Include ggc.h.
Jeff Law [Thu, 23 Sep 1999 13:07:39 +0000 (07:07 -0600)]
regclass.c: Include ggc.h.

        * regclass.c: Include ggc.h.
        * Makefile.in (regclass.o): Add ggc.h to dependency list.

From-SVN: r29615

25 years agobuiltins.c, [...]: Include tm_p.h.
Richard Henderson [Thu, 23 Sep 1999 12:36:06 +0000 (05:36 -0700)]
builtins.c, [...]: Include tm_p.h.

        * builtins.c, dbxout.c, varasm.c: Include tm_p.h.

        * alpha/alpha.c (print_operand): Fix type of `code'.
        (alpha_output_filename): Constify.
        * alpha/alpha.h: Move all function declarations ...
        * alpha/alpha-protos.h: ... here.  New file.
        * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
        (SECTION_FUNCTION_TEMPLATE): Likewise.

From-SVN: r29614

25 years agoUse cbranch patterns when available
Bernd Schmidt [Thu, 23 Sep 1999 11:34:49 +0000 (11:34 +0000)]
Use cbranch patterns when available

From-SVN: r29613

25 years agoDaily bump.
Jeff Law [Thu, 23 Sep 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29612

25 years agoAdd missing \
Jeff Law [Thu, 23 Sep 1999 02:23:48 +0000 (20:23 -0600)]
Add missing \

From-SVN: r29611

25 years ago* ir.texi: Document CLEANUP_STMT, SCOPE_STMT, and START_CATCH_STMT.
Mark Mitchell [Thu, 23 Sep 1999 02:10:55 +0000 (02:10 +0000)]
* ir.texi: Document CLEANUP_STMT, SCOPE_STMT, and START_CATCH_STMT.

From-SVN: r29610

25 years agodecl.c (pushdecl): Do create a binding for extern "C" functions...
Mark Mitchell [Thu, 23 Sep 1999 02:04:33 +0000 (02:04 +0000)]
decl.c (pushdecl): Do create a binding for extern "C" functions...

* decl.c (pushdecl): Do create a binding for extern "C" functions,
but not for their DECL_ASSEMBLER_NAMEs.
(lookup_name_current_level): Fix formatting.
(xref_tag): Likewise.
* decl2.c (start_objects): Mark static constructors and
destructors as used.

From-SVN: r29609

25 years agomips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large register offsets; let LEGITIMIZ...
Stan Cox [Thu, 23 Sep 1999 01:03:13 +0000 (01:03 +0000)]
mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large register offsets; let LEGITIMIZE_ADDRESS load it into a register.

* mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
register offsets; let LEGITIMIZE_ADDRESS load it into a register.
(LEGITIMIZE_ADDRESS): Use plus_constant to avoid (plus (reg) (const_int 0))
* mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.

From-SVN: r29608

25 years agopa.c, [...]: Support multiple assembler dialects in most assembler templates.
Jeffrey A Law [Wed, 22 Sep 1999 22:32:29 +0000 (22:32 +0000)]
pa.c, [...]: Support multiple assembler dialects in most assembler templates.

        * pa.c, pa.h, pa.md: Support multiple assembler dialects in
        most assembler templates.

From-SVN: r29607

25 years agors6000.c (expand_block_move): DImode loads and stores require word-aligned displacements.
David Edelsohn [Wed, 22 Sep 1999 22:27:58 +0000 (22:27 +0000)]
rs6000.c (expand_block_move): DImode loads and stores require word-aligned displacements.

* rs6000.c (expand_block_move): DImode loads and stores require
word-aligned displacements.  Increment address registers with
adddi3 on 64-bit platform.  Use TARGET_POWERPC64 not TARGET_64BIT.

From-SVN: r29606

25 years agoFix complex-5.c problem
Michael Meissner [Wed, 22 Sep 1999 21:37:20 +0000 (21:37 +0000)]
Fix complex-5.c problem

From-SVN: r29604

25 years agopa.c (hppa_legitimize_address): Handle full offsets for PA2.0 FP loads and stores.
Jeffrey A Law [Wed, 22 Sep 1999 20:50:44 +0000 (20:50 +0000)]
pa.c (hppa_legitimize_address): Handle full offsets for PA2.0 FP loads and stores.

        * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
        FP loads and stores.
        (following_call): Always return zero for the PA8000.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
        FP loads and stores.
        (LEGITIMIZE_RELOAD_ADDRESS): Similarly.

From-SVN: r29603

25 years ago* libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
Tom Tromey [Wed, 22 Sep 1999 20:44:41 +0000 (20:44 +0000)]
* libgcj.spec.in: Use `jc1' spec, not `cc1' spec.

From-SVN: r29602

25 years ago* pa.h (BRANCH_COST): Define.
Jeffrey A Law [Wed, 22 Sep 1999 20:37:28 +0000 (20:37 +0000)]
* pa.h (BRANCH_COST): Define.

From-SVN: r29601

25 years ago* lang-specs.h: Added `%(jc1)' to the jc1 spec.
Tom Tromey [Wed, 22 Sep 1999 20:30:30 +0000 (20:30 +0000)]
* lang-specs.h: Added `%(jc1)' to the jc1 spec.

From-SVN: r29600

25 years ago* pa.md (return, return_internal): Use bve for PA2.0.
Jeffrey A Law [Wed, 22 Sep 1999 20:29:43 +0000 (20:29 +0000)]
* pa.md (return, return_internal): Use bve for PA2.0.

From-SVN: r29599

25 years agopa.md (fused multiply): Add variants which reduce height for the fused multiply...
Jeffrey A Law [Wed, 22 Sep 1999 20:24:45 +0000 (20:24 +0000)]
pa.md (fused multiply): Add variants which reduce height for the fused multiply...

        * pa.md (fused multiply): Add variants which reduce height for the
        fused multiply, but which still generate 2 insns.
        (fnegabs): Similarly.

From-SVN: r29598

25 years agopa.md (subsi3): Turn into an expander.
Jeffrey A Law [Wed, 22 Sep 1999 20:11:22 +0000 (20:11 +0000)]
pa.md (subsi3): Turn into an expander.

        * pa.md (subsi3): Turn into an expander.  Create two anonymous
        patterns.  One for PA2.0 one for PA1.x.  Use mtsarcm for PA2.0.
        * pa.h (EXTRA_CONSTRAINT): Handle 'S'.

From-SVN: r29597

25 years agopa.md (subsi3): Turn into an expander.
Jeffrey A Law [Wed, 22 Sep 1999 20:10:13 +0000 (20:10 +0000)]
pa.md (subsi3): Turn into an expander.

        * pa.md (subsi3): Turn into an expander.  Create two anonymous
        patterns.  One for PA2.0 one for PA1.x.  Use mtsarcm for PA2.0.

From-SVN: r29596

25 years agopa.md (floatunssisf2, [...]): Generate different RTL for TARGET_PA_20.
Jeffrey A Law [Wed, 22 Sep 1999 19:57:37 +0000 (19:57 +0000)]
pa.md (floatunssisf2, [...]): Generate different RTL for TARGET_PA_20.

        * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
        for TARGET_PA_20.
        (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
        code generation.
        (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
        (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.

From-SVN: r29595

25 years agodecl.c (define_case_label): Don't crash if we're not in a switch.
Jason Merrill [Wed, 22 Sep 1999 19:16:37 +0000 (19:16 +0000)]
decl.c (define_case_label): Don't crash if we're not in a switch.

* decl.c (define_case_label): Don't crash if we're not in a switch.

* decl2.c (lang_decode_option): Don't bother explicitly ignoring flags.
* lang-options.h: Restore -fthis-is-variable.  Remove help strings
for unsupported flags.
* decl2.c (lang_decode_option): Accept and ignore -finit-priority.
Accept and warn about -fthis-is-variable.

From-SVN: r29594

25 years agojavaop.h (WORD_TO_FLOAT): Use `inline' unconditionally.
Tom Tromey [Wed, 22 Sep 1999 16:59:35 +0000 (16:59 +0000)]
javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally.

* javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally.
(WORDS_TO_LONG): Likewise.
(WORDS_TO_DOUBLE): Likewise.

From-SVN: r29593

25 years agobasic-block.h (add_noreturn_fake_exit_edges): Use correct name.
Andrew MacLeod [Wed, 22 Sep 1999 15:44:57 +0000 (15:44 +0000)]
basic-block.h (add_noreturn_fake_exit_edges): Use correct name.

Wed Sep 22 11:34:08 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
* flow.c (remove_edge): Remove extra whitespace.
(remove_fake_edges): Fix comment.
(add_noreturn_fake_exit_edges): Use the correct name.

From-SVN: r29592

25 years agoMakefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
Nathan Sidwell [Wed, 22 Sep 1999 15:24:30 +0000 (15:24 +0000)]
Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.

* Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
(mostlyclean): Depend on INTL_MOSTLYCLEAN.
(clean): Depend on INTL_CLEAN.
(maintainer-clean): Adjust.

From-SVN: r29591

25 years agoconfigure.in (AC_PREREQ): Bump to 2.13.
Kaveh R. Ghazi [Wed, 22 Sep 1999 14:23:22 +0000 (14:23 +0000)]
configure.in (AC_PREREQ): Bump to 2.13.

        * configure.in (AC_PREREQ): Bump to 2.13.
        (AC_C_STRINGIZE): Call this instead of using a custom macro.

        * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.

        * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.

        * acconfig.h (HAVE_CPP_STRINGIFY): Delete.

        * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
        (HAVE_STRINGIZE): Define.

From-SVN: r29590

25 years agoregclass.c (init_regs): Add "top_of_stack" as a garbage collection root.
Jeffrey A Law [Wed, 22 Sep 1999 14:12:00 +0000 (14:12 +0000)]
regclass.c (init_regs): Add "top_of_stack" as a garbage collection root.

        * regclass.c (init_regs): Add "top_of_stack" as a garbage
        collection root.

From-SVN: r29589

25 years agoc-parse.in: save and restore warn_pointer_arith on __extension__ along with pedantic.
Jim Kingdon [Wed, 22 Sep 1999 12:58:30 +0000 (06:58 -0600)]
c-parse.in: save and restore warn_pointer_arith on __extension__ along with pedantic.

       * c-parse.in: save and restore warn_pointer_arith on __extension__
        along with pedantic.
        (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
        Set the type of extension to itype rather than $<itype>1 kludge.
        * extend.texi (Alternate Keywords): Adjust documentation.
        * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.

From-SVN: r29588

25 years agoflow.c (record_active_eh_regions): Terminate loop after finding the last insn in...
Jeffrey A Law [Wed, 22 Sep 1999 12:09:23 +0000 (12:09 +0000)]
flow.c (record_active_eh_regions): Terminate loop after finding the last insn in the last basic block.

        * flow.c (record_active_eh_regions): Terminate loop after finding
        the last insn in the last basic block.

From-SVN: r29587

25 years agoUdo previous delta
Nick Clifton [Wed, 22 Sep 1999 10:46:35 +0000 (10:46 +0000)]
Udo previous delta

From-SVN: r29586

25 years agoFix/suppress some testsuite failures for the Arm.
Nick Clifton [Wed, 22 Sep 1999 10:22:30 +0000 (10:22 +0000)]
Fix/suppress some testsuite failures for the Arm.

From-SVN: r29583

25 years agooops - add change missed from previous delta
Nick Clifton [Wed, 22 Sep 1999 10:15:28 +0000 (10:15 +0000)]
oops - add change missed from previous delta

From-SVN: r29582

25 years ago* config/c4x/c4x.md: Delete parallel instruction peepholes.
Michael Hayes [Wed, 22 Sep 1999 08:26:38 +0000 (08:26 +0000)]
* config/c4x/c4x.md: Delete parallel instruction peepholes.

From-SVN: r29581

25 years ago* config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
Michael Hayes [Wed, 22 Sep 1999 08:00:56 +0000 (08:00 +0000)]
* config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.

From-SVN: r29580

25 years agoc4x.c (c4x_process_after_reload): Rework machdep insn splitting to not use output...
Michael Hayes [Wed, 22 Sep 1999 07:58:01 +0000 (07:58 +0000)]
c4x.c (c4x_process_after_reload): Rework machdep insn splitting to not use output template.

* config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
splitting to not use output template.

From-SVN: r29579

25 years agoc4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
Michael Hayes [Wed, 22 Sep 1999 07:53:41 +0000 (07:53 +0000)]
c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.

* config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
* config/c4x/c4x.c (c4x_va_start): New function.

From-SVN: r29578

25 years agoDaily bump.
Jeff Law [Wed, 22 Sep 1999 07:45:14 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29577

25 years agoTypo last change.
Richard Henderson [Wed, 22 Sep 1999 06:53:35 +0000 (23:53 -0700)]
Typo last change.

From-SVN: r29576

25 years agoVarious fixes for problems discovered stress-testing GC.
Alex Samuel [Wed, 22 Sep 1999 05:51:44 +0000 (05:51 +0000)]
Various fixes for problems discovered stress-testing GC.

* config/i386/i386.c (pic_label_name): Change to char pointer.
(global_offset_table): New variable.
(load_pic_register): Fill global_offset_table if it hasn't
already been done.  Allocate pic_label_name dynamically.
* ggc.h (empty_string): New variable.
* ggc-simple.c (empty_string): Likewise.
(init_ggc): Allocate empty_string and add as root.
* stmt.c (digit_strings): New variable.
(init_stmt): Add last_block_end_note as root.  Allocate and
initialize digit_strings.
(expand_asm_operands): Use empty_string and digit_string instead
of string constants.
* profile.c (init_arc_profiler): Allocate with ggc_alloc_string
instead of xmalloc.
(output_func_start_profiler): Likewise.
* c-typeck.c (digest_init): Check if init is error_mark_node.

From-SVN: r29575

25 years agoMessageFormat.java (MessageFormat(String)): Set the default locale.
Bryce McKinlay [Wed, 22 Sep 1999 04:41:26 +0000 (04:41 +0000)]
MessageFormat.java (MessageFormat(String)): Set the default locale.

1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
* java/text/MessageFormat.java (MessageFormat(String)): Set the
default locale.
* java/text/NumberFormat.java: Check that object is a Number. If
not, throw IllegialArgumentException.

From-SVN: r29574

25 years agoJan Hubicka <hubicka@freesoft.cz>
Jan Hubicka [Wed, 22 Sep 1999 01:40:28 +0000 (03:40 +0200)]
Jan Hubicka  <hubicka@freesoft.cz>

        * genrecog.c (not_both_true): Handle correctly cases when called for
        tests with different positions in the insn.

From-SVN: r29573

25 years agoremove check_lang_option prototype
Jason Merrill [Wed, 22 Sep 1999 00:35:28 +0000 (20:35 -0400)]
remove check_lang_option prototype

From-SVN: r29572

25 years agodecl2.c (lang_decode_option): Accept and ignore -finit-priority.
Jason Merrill [Wed, 22 Sep 1999 00:30:34 +0000 (00:30 +0000)]
decl2.c (lang_decode_option): Accept and ignore -finit-priority.

* decl2.c (lang_decode_option): Accept and ignore -finit-priority.
Accept and warn about -fthis-is-variable.

From-SVN: r29571

25 years agoOutput_UTF8.java (write): Don't exit loop unless both `inlength' and `bytes_todo...
Tom Tromey [Tue, 21 Sep 1999 23:20:43 +0000 (23:20 +0000)]
Output_UTF8.java (write): Don't exit loop unless both `inlength' and `bytes_todo' are 0.

* gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
        both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.

From-SVN: r29570

25 years agoposix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex.
Tom Tromey [Tue, 21 Sep 1999 23:01:23 +0000 (23:01 +0000)]
posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex.

* include/posix-threads.h (_Jv_MutexDestroy): Use
_Jv_PthreadGetMutex.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.

From-SVN: r29569

25 years agomachmode.h (HOST_PTR_PRINTF): Move from here ...
Kaveh R. Ghazi [Tue, 21 Sep 1999 22:31:29 +0000 (22:31 +0000)]
machmode.h (HOST_PTR_PRINTF): Move from here ...

       * machmode.h (HOST_PTR_PRINTF): Move from here ...

       * system.h (HOST_PTR_PRINTF): ... to here.

       * mips-tfile.c: Don't include machmode.h.

       * Makefile.in (MACHMODE_H): New variable.  Update to use it.
       (mips-tfile.o): Don't depend on machmode.h.

From-SVN: r29568

25 years agohaifa-sched.c (sched_analyze): Rename local variable `region' to avoid conflicts...
Kaveh R. Ghazi [Tue, 21 Sep 1999 22:28:47 +0000 (22:28 +0000)]
haifa-sched.c (sched_analyze): Rename local variable `region' to avoid conflicts with typedef struct `region'...

       * haifa-sched.c (sched_analyze): Rename local variable `region' to
       avoid conflicts with typedef struct `region' at the top level scope.

From-SVN: r29567

25 years agoOutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it too was...
Tom Tromey [Tue, 21 Sep 1999 21:35:41 +0000 (21:35 +0000)]
OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it too was incorrect.

* java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
previous patch; it too was incorrect.
* java/io/PrintStream.java (PrintStream): Likewise.

From-SVN: r29566

25 years agobasic-block.h (basic_block): Add eh_beg, eh_end.
Richard Henderson [Tue, 21 Sep 1999 21:15:37 +0000 (14:15 -0700)]
basic-block.h (basic_block): Add eh_beg, eh_end.

        * basic-block.h (basic_block): Add eh_beg, eh_end.
        * flow.c (entry_exit_blocks): Update.
        (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
        Call new functions.
        (find_basic_blocks_1): Don't record eh_list at each bb.  Use
        lists.c functions to allocate insn lists.
        (make_edges): Use eh_beg+eh_end, not the lists.  Split out EH
        edge creation ...
        (make_eh_edge): ... here.  New.
        (move_stray_eh_region_notes): New.
        (record_active_eh_regions): New.
        (delete_unreachable_blocks): Split out block merging ...
        (try_merge_blocks): ... here.  New.
        (merge_blocks_move_predecessor_nojumps): Remove edge arg.
        Dump debugging data.
        (merge_blocks_move_successor_nojumps): Likewise.
        (merge_blocks): Use eh_beg+eh_end to validate block movement.

From-SVN: r29565

25 years agodump.c (dequeue_and_dump): Handle START_CATCH_STMT, CLEANUP_STMT, and SCOPE_STMT.
Mark Mitchell [Tue, 21 Sep 1999 20:32:44 +0000 (20:32 +0000)]
dump.c (dequeue_and_dump): Handle START_CATCH_STMT, CLEANUP_STMT, and SCOPE_STMT.

* dump.c (dequeue_and_dump): Handle START_CATCH_STMT,
CLEANUP_STMT, and SCOPE_STMT.

From-SVN: r29564

25 years ago* g++.dg/ecos.exp: Don't supply -finit-priority to cc1plus.
Mark Mitchell [Tue, 21 Sep 1999 20:27:48 +0000 (20:27 +0000)]
* g++.dg/ecos.exp: Don't supply -finit-priority to cc1plus.

From-SVN: r29563

25 years agodecl2.c (lang_decode_option): Adjust, in the wake of recent changes to option processing.
Mark Mitchell [Tue, 21 Sep 1999 20:19:18 +0000 (20:19 +0000)]
decl2.c (lang_decode_option): Adjust, in the wake of recent changes to option processing.

* decl2.c (lang_decode_option): Adjust, in the wake of recent
changes to option processing.

From-SVN: r29562

25 years agoNew test case.
Martin v. Löwis [Tue, 21 Sep 1999 19:51:16 +0000 (19:51 +0000)]
New test case.

From-SVN: r29561

25 years agoOutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling...
Tom Tromey [Tue, 21 Sep 1999 19:49:13 +0000 (19:49 +0000)]
OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling superclass constructor.

* java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
refer to `this' before calling superclass constructor.
* java/io/PrintStream.java (PrintStream): Don't refer to `this'
before calling superclass constructor.

From-SVN: r29560

25 years agotypeck.c (get_member_function_from_ptrfunc): Allow extraction of function pointer...
Martin v. Löwis [Tue, 21 Sep 1999 19:49:04 +0000 (19:49 +0000)]
typeck.c (get_member_function_from_ptrfunc): Allow extraction of function pointer from pmfs with no object given.

* typeck.c (get_member_function_from_ptrfunc): Allow extraction of
function pointer from pmfs with no object given.
(convert_for_assignment): Do not return error when converting
pmfs.

From-SVN: r29559

25 years agoextend.texi (Bound member functions): Document unbound pmf conversion.
Martin v. Löwis [Tue, 21 Sep 1999 19:34:59 +0000 (19:34 +0000)]
extend.texi (Bound member functions): Document unbound pmf conversion.

* extend.texi (Bound member functions): Document unbound pmf
conversion.

From-SVN: r29558

25 years agoextend.texi (Bound member functions): Document unbound pmf conversion.
Martin v. Löwis [Tue, 21 Sep 1999 19:34:55 +0000 (19:34 +0000)]
extend.texi (Bound member functions): Document unbound pmf conversion.

* extend.texi (Bound member functions): Document unbound pmf
 conversion.

From-SVN: r29557

25 years agoflow.c (split_edge): Handle insertion on a fallthrough edge which has the EXIT_BLOCK...
Andrew MacLeod [Tue, 21 Sep 1999 18:57:12 +0000 (18:57 +0000)]
flow.c (split_edge): Handle insertion on a fallthrough edge which has the EXIT_BLOCK as a dest.

Tue Sep 21 14:55:11 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* flow.c (split_edge): Handle insertion on a fallthrough edge which
has the EXIT_BLOCK as a dest.

From-SVN: r29556

25 years agoflow.c (remove_edge): New function to remove an edge from the flow graph.
Andrew MacLeod [Tue, 21 Sep 1999 18:54:34 +0000 (18:54 +0000)]
flow.c (remove_edge): New function to remove an edge from the flow graph.

Tue Sep 21 14:51:23 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* flow.c (remove_edge): New function to remove an edge from the
flow graph.
(remove_fake_successors): New function to remove fake successor edges.
(remove_fake_edges): New function to remove all fake edges from the
flow graph.
(add_fake_exit_edges): New function to add fake edges from all blocks
with no successors to the exit block.
* basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
prototypes for new functions.

From-SVN: r29555

25 years agoelf64.h (ASM_OUTPUT_CONSTRUCTOR, [...]): Use Pmode to determine whether to output...
Andrew MacLeod [Tue, 21 Sep 1999 18:52:37 +0000 (18:52 +0000)]
elf64.h (ASM_OUTPUT_CONSTRUCTOR, [...]): Use Pmode to determine whether to output .dword or .word.

Tue Sep 21 14:49:53 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
Use Pmode to determine whether to output .dword or .word.

From-SVN: r29554

25 years agoReplace string const "<internal>" with dynamic allocation.
Alex Samuel [Tue, 21 Sep 1999 18:14:26 +0000 (18:14 +0000)]
Replace string const "<internal>" with dynamic allocation.

* lex.c (internal_filename): New variable.
(INTERNAL_FILENAME): New macro.
(init_parse): Allocate internal_filename and mark as root.  Use it
instead of a string constant.

From-SVN: r29553

25 years agoReplace string const "<built-in>" with dynamic allocation.
Alex Samuel [Tue, 21 Sep 1999 18:09:54 +0000 (18:09 +0000)]
Replace string const "<built-in>" with dynamic allocation.

* tree.c (built_in_filename): New variable.
(BUILT_IN_FILENAME): New macro.
(init_tree_codes): Allocate built_in_filename.
(make_node): Use built_in_filename instead of string constant.

From-SVN: r29552

25 years agoAdd FR30 to list of targets for which -fpic is inappropriate.
Nick Clifton [Tue, 21 Sep 1999 16:42:20 +0000 (16:42 +0000)]
Add FR30 to list of targets for which -fpic is inappropriate.

From-SVN: r29551

25 years agore GNATS gcj/46 (Static inializers compiled incorrectly)
Alexandre Petit-Bianco [Tue, 21 Sep 1999 15:53:23 +0000 (15:53 +0000)]
re GNATS gcj/46 (Static inializers compiled incorrectly)

Thu Sep 16 15:42:39 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK
  instead of fndecl.

(This patch fixes the net Java PR #46:
 http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00092.html)

From-SVN: r29550

25 years agoAdd FR30 port.
Nick Clifton [Tue, 21 Sep 1999 15:21:17 +0000 (15:21 +0000)]
Add FR30 port.

From-SVN: r29549

25 years agoAdd FR30 target.
Nick Clifton [Tue, 21 Sep 1999 15:17:53 +0000 (15:17 +0000)]
Add FR30 target.

From-SVN: r29548

25 years ago* g77spec.c (lang_specific_driver): Initialise return value.
Toon Moene [Tue, 21 Sep 1999 15:10:06 +0000 (17:10 +0200)]
* g77spec.c (lang_specific_driver): Initialise return value.

From-SVN: r29547

25 years agodyncast1.C: New test.
Nathan Sidwell [Tue, 21 Sep 1999 15:00:41 +0000 (15:00 +0000)]
dyncast1.C: New test.

* g++.old-deja/g++.other/dyncast1.C: New test.
* g++.old-deja/g++.other/dyncast2.C: New test.
* g++.old-deja/g++.other/dyncast3.C: New test.
* g++.old-deja/g++.other/dyncast4.C: New test.
* g++.old-deja/g++.other/dyncast5.C: New test.
* g++.old-deja/g++.eh/catch3.C: New test.
* g++.old-deja/g++.eh/catch3p.C: New test.
* g++.old-deja/g++.eh/catch4.C: New test.
* g++.old-deja/g++.eh/catch4p.C: New test.
* g++.old-deja/g++.eh/catch5.C: New test.
* g++.old-deja/g++.eh/catch5p.C: New test.
* g++.old-deja/g++.eh/catch6.C: New test.
* g++.old-deja/g++.eh/catch6p.C: New test.
* g++.old-deja/g++.eh/catch7.C: New test.
* g++.old-deja/g++.eh/catch7p.C: New test.
* g++.old-deja/g++.eh/catch8.C: New test.
* g++.old-deja/g++.eh/catch8p.C: New test.
* g++.old-deja/g++.eh/catch9.C: New test.
* g++.old-deja/g++.eh/catch9p.C: New test.

From-SVN: r29546

25 years agoflow.c (merge_blocks_move_successor_nojumps): Delete the BARRIER at the end of the...
Jeffrey A Law [Tue, 21 Sep 1999 14:47:23 +0000 (14:47 +0000)]
flow.c (merge_blocks_move_successor_nojumps): Delete the BARRIER at the end of the successor...

        * flow.c (merge_blocks_move_successor_nojumps): Delete the
        BARRIER at the end of the successor, not the BARRIER before
        the successor.

From-SVN: r29545

25 years agoReimplement dynamic cast and catch matching.
Nathan Sidwell [Tue, 21 Sep 1999 14:40:13 +0000 (14:40 +0000)]
Reimplement dynamic cast and catch matching.

* cp-tree.h (get_dynamic_cast_base_type): Prototype new function
* search.c (dynamic_cast_base_recurse): New function.
(get_dynamic_cast_base_type): New function for dynamic cast.
* rtti.c (build_dynamic_cast_1): Determine source and target
class relationship. Call __dynamic_cast_2.
* tinfo.h (__user_type_info::upcast): New catch dispatcher.
(__user_type_info::dyncast): New dynamic cast dispatcher.
(__user_type_info::sub_kind): New nested enumeration.
(__user_type_info::contained_p): sub_kind predicate.
(__user_type_info::contained_public_p): Likewise.
(__user_type_info::contained_nonpublic_p): Likewise.
(__user_type_info::contained_nonvirtual_p: Likewise.
(__user_type_info::upcast_result): New nested struct.
(__user_type_info::dyncast_result): New nested struct.
(*::do_upcast): New catch function.
(*::do_dyncast): New dynamic cast function.
(__user_type_info::find_public_subobj): New dynamic cast
helper dispatcher.
(*::do_find_public_subobj): New dynamic cast helper function.
* tinfo.cc (__user_type_info::upcast): Define catch dispatcher.
(__user_type_info::dyncast): Define dynamic cast dispatcher.
(*::do_upcast): Define catch function.
(*::do_dyncast): Define dynamic cast function.
(*::do_find_public_subobj): Define dynamic cast helper function.
* tinfo2.cc (__throw_type_match_rtti_2): Use upcast.
(__dynamic_cast): Backwards compatibility wrapper. Use dyncast.
(__dynamic_cast_2): New dynamic cast runtime.

From-SVN: r29544

25 years agoMakefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to the compiler when building...
Jeffrey A Law [Tue, 21 Sep 1999 13:48:59 +0000 (13:48 +0000)]
Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to the compiler when building C code.

        * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
        the compiler when building C code.

From-SVN: r29543

25 years ago* pa.c (pa_add_gc_roots): Fix thinko in last change.
Jeffrey A Law [Tue, 21 Sep 1999 12:48:36 +0000 (12:48 +0000)]
* pa.c (pa_add_gc_roots): Fix thinko in last change.

From-SVN: r29542

25 years agostmt.c (any_pending_cleanups): Don't crash when current_function->stmt is unset.
Richard Earnshaw [Tue, 21 Sep 1999 11:31:14 +0000 (11:31 +0000)]
stmt.c (any_pending_cleanups): Don't crash when current_function->stmt is unset.

        * stmt.c (any_pending_cleanups): Don't crash when
        current_function->stmt is unset.

From-SVN: r29541

25 years agoAdd myself to the list.
Alex Samuel [Tue, 21 Sep 1999 08:53:52 +0000 (08:53 +0000)]
Add myself to the list.

From-SVN: r29540

25 years agoForce check-in to ensure that it is up to date.
Mark Mitchell [Tue, 21 Sep 1999 07:45:38 +0000 (07:45 +0000)]
Force check-in to ensure that it is up to date.

From-SVN: r29539

25 years agoDaily bump.
Jeff Law [Tue, 21 Sep 1999 07:45:11 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29538

25 years agocp-tree.h (finish_stmt_expr): Change prototype.
Mark Mitchell [Tue, 21 Sep 1999 07:41:01 +0000 (07:41 +0000)]
cp-tree.h (finish_stmt_expr): Change prototype.

* cp-tree.h (finish_stmt_expr): Change prototype.
* expr.c (cplus_expand_expr): Adjust call accordingly.
* init.c (finish_init_stmts): Likewise.
* parse.y (primary): Likewise.
* pt.c (tsubst_copy): Likewise.
* semantics.c (finish_stmt_expr): Don't take two parameters.
Don't remove generated BLOCKs from the block-tree.

From-SVN: r29537

25 years agocp-tree.h (finish_stmt_expr): Change prototype.
Alexandre Oliva [Tue, 21 Sep 1999 04:06:31 +0000 (04:06 +0000)]
cp-tree.h (finish_stmt_expr): Change prototype.

        * cp-tree.h (finish_stmt_expr): Change prototype.
        * expr.c (cplus_expand_expr): Adjust call accordingly.
        * init.c (finish_init_stmts): Likewise.
        * parse.y (primary): Likewise.
        * pt.c (tsubst_copy): Likewise.
        * semantics.c (finish_stmt_expr): Don't take two parameters.
        Don't remove generated BLOCKs from the block-tree.

From-SVN: r29536

25 years agoemit-rtl.c (init_emit_once): Initialize const_int_rtx before other initializations...
Alexandre Oliva [Tue, 21 Sep 1999 04:04:16 +0000 (04:04 +0000)]
emit-rtl.c (init_emit_once): Initialize const_int_rtx before other initializations that may use it for...

* emit-rtl.c (init_emit_once): Initialize const_int_rtx before
other initializations that may use it for relative offsets.

From-SVN: r29535

25 years agosol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
Alexandre Oliva [Tue, 21 Sep 1999 00:55:08 +0000 (00:55 +0000)]
sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.

* config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
(ASM_SPEC): Moved from sol2dbg.h.  Added work-around for gas.
* config/i386/sol2dbg.h: Removed.
* config/i386/sol2gas.h: New file, to enable gas work-around.
* configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
Don't use sol2dbg.h.
* configure: Rebuilt.

From-SVN: r29534

25 years agocp-tree.h (finish_stmt_expr): Change prototype.
Mark Mitchell [Mon, 20 Sep 1999 21:26:06 +0000 (21:26 +0000)]
cp-tree.h (finish_stmt_expr): Change prototype.

* cp-tree.h (finish_stmt_expr): Change prototype.
* expr.c (cplus_expand_expr): Adjust call accordingly.
* init.c (finish_init_stmts): Likewise.
* parse.y (primary): Likewise.
* pt.c (tsubst_copy): Likewise.
* semantics.c (finish_stmt_expr): Don't take two parameters.
Don't remove generated BLOCKs from the block-tree.

From-SVN: r29533

25 years ago* invoke.texi (-fthis-is-variable): Remove documentation.
Mark Mitchell [Mon, 20 Sep 1999 20:24:42 +0000 (20:24 +0000)]
* invoke.texi (-fthis-is-variable): Remove documentation.

From-SVN: r29532

25 years agoRemove support for assigning to `this'.
Mark Mitchell [Mon, 20 Sep 1999 20:19:04 +0000 (20:19 +0000)]
Remove support for assigning to `this'.

* NEWS: Note that fact.
* class.c (build_vbase_path): Don't check flag_this_is_variable.
* cp-tree.h (EXPR_STMT_ASSIGNS_THIS): Remove.
(language_function): Remove assigns_this, just_assigned_this, and
x_base_init_expr.  Add x_vcalls_possible_p.  Add vtbls_set_up_p.
(base_init_expr): Remove.
(current_vcalls_possible_p): New macro.
(vtbls_set_up_p): Likewise.
(emit_base_init): Change prototype.
* decl.c (finish_destructor_body): New function, split out from
finish_function.
(current_function_assigns_this): Remove.
(current_function_just_assigned_this): Likewise.
(start_function): Don't set them.
(finish_function): Don't check them.  Don't emit
base-initialization code here.  Generate code for destructors when
doing semantic analysis.
(finish_stmt): Don't check current_function_just_assigned_this.
* decl2.c (lang_f_options): Remove this-is-variable.
(lang_decode_option): Likewise.
(grokclassfn): Don't check flag_this_is_variable.
* init.c (emit_base_init): Return the expression generated.
(construct_virtual_bases): Don't push/pop obstacks.  Fix
typo.
(build_new_1): Don't check flag_this_is_variable.
(get_temp_regvar): Don't set DECL_REGISTER.
(build_vec_init): Don't call use_variable.
* lang-options.h: Remove "-fthis-is-variable" and
"-fno-this-is-variable".
* pt.c (tsubst_expr): Don't check EXPR_STMT_ASSIGNS_THIS.
* search.c (expand_upcast_fixups): Use finish_expr_stmt, not
expand_expr_stmt.
* semantics.c (finish_expr_stmt_real): Rename to ...
(finish_expr_stmt): This.  Remove assigned_this parameter.
(begin_if_stmt): Call do_pushlevel before starting the statement.
(begin_compound_stmt): Don't declare __FUNCTION__ in scope-less
blocks.
(setup_vtbl_ptr): Emit initialization code for bases and members
at semantic-analysis time.  Emit code to initialize vtables in
destructors here.
(expand_stmt): Use finish_expr_stmt, not finish_expr_stmt_real.
Don't handle CTOR_INITIALIZER any more.
* typeck.c (build_modify_expr): Don't check for assignments to
this.
(c_expand_return): Don't suggest assigning to `this'.

* Makefile.in (decl.o): Depend on RTL_H.
(decl2.o): Likewise.
(class.o): Likewise.
(call.o): Likewise.
(method.o): Likewise.
(search.o): Likewise.
(tree.o): Likewise.
(pt.o): Likewise.

* decl.c (duplicate_decls): When a builtin function is redeclared
as static, make sure it is mangled correctly.

* ir.texi (CTOR_INITIALIZER): Remove mention.  Fix typo.  Add
detail about the statement-tree.

From-SVN: r29531

25 years agobasic-block.h (compute_bb_for_insn): Declare.
Richard Henderson [Mon, 20 Sep 1999 20:11:36 +0000 (13:11 -0700)]
basic-block.h (compute_bb_for_insn): Declare.

        * basic-block.h (compute_bb_for_insn): Declare.
        * flow.c (compute_bb_for_insn): Export.  Don't accept the varray
        to use; set size of basic_block_for_insn directly.
        (find_basic_blocks): Update.

From-SVN: r29530

25 years agoconfigure: Rebuilt.
Tom Tromey [Mon, 20 Sep 1999 20:09:42 +0000 (20:09 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Send output of `-fuse-divide-subroutine' test
compilation to /dev/null.

From-SVN: r29529

25 years ago* flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
Kaveh R. Ghazi [Mon, 20 Sep 1999 19:14:48 +0000 (19:14 +0000)]
* flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".

From-SVN: r29528

25 years agocrtstuff.c (ON_EXIT): Delete empty macro definition.
Kaveh R. Ghazi [Mon, 20 Sep 1999 18:59:09 +0000 (18:59 +0000)]
crtstuff.c (ON_EXIT): Delete empty macro definition.

       * crtstuff.c (ON_EXIT): Delete empty macro definition.
       (__do_global_ctors_aux): Call atexit(), not ON_EXIT().

From-SVN: r29527

25 years agoRevert this change. Gavin's patch to operand_equal_p is a better fix.
Jeffrey A Law [Mon, 20 Sep 1999 17:12:03 +0000 (17:12 +0000)]
Revert this change.  Gavin's patch to operand_equal_p is a better fix.

         * fold-const.c (fold_range_test): Do not try to fold the range
         test if the rhs or lhs has side effects.

From-SVN: r29526

25 years agoMakefile.in (parse.o): Depend on $(JAVA_TREE_H).
Andreas Schwab [Mon, 20 Sep 1999 16:27:29 +0000 (16:27 +0000)]
Makefile.in (parse.o): Depend on $(JAVA_TREE_H).

1999-09-15  Andreas Schwab  <schwab@suse.de>

* Makefile.in (parse.o): Depend on $(JAVA_TREE_H).

From-SVN: r29525

25 years ago* parse.y (primary): Use build_functional_cast for CV_QUALIFIER.
Nathan Sidwell [Mon, 20 Sep 1999 16:19:26 +0000 (16:19 +0000)]
* parse.y (primary): Use build_functional_cast for CV_QUALIFIER.

From-SVN: r29524

25 years agobasic-block.h (compute_flow_dominators): Declare.
Jeffrey A Law [Mon, 20 Sep 1999 14:53:51 +0000 (14:53 +0000)]
basic-block.h (compute_flow_dominators): Declare.

        * basic-block.h (compute_flow_dominators): Declare.

        * gcse.c (alloc_code_hoist_mem): New function.
        (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
        (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
        (hoist_code, one_code_hoisting_pass): Likewise.
        (gcse_main): If optimizing for size, then hoist expressions
        computed in multiple dominated basic blocks.

From-SVN: r29523

25 years agoAdd comment saying that lang_decode_options should not complain about
Nick Clifton [Mon, 20 Sep 1999 14:26:59 +0000 (14:26 +0000)]
Add comment saying that lang_decode_options should not complain about
unrecognised options.

From-SVN: r29522

25 years agogcse.c (invalid_nonnull_info): New function.
Jeffrey A Law [Mon, 20 Sep 1999 13:58:33 +0000 (13:58 +0000)]
gcse.c (invalid_nonnull_info): New function.

        * gcse.c (invalid_nonnull_info): New function.
        (delete_null_pointer_checks): Likewise.
        * rtl.h (delete_null_pointer_checks): Declare.
        * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.

From-SVN: r29521

25 years agoPass all command line options to both language dependent and language independent
Nick Clifton [Mon, 20 Sep 1999 13:48:12 +0000 (13:48 +0000)]
Pass all command line options to both language dependent and language independent
decoders.

From-SVN: r29520

25 years agoflow.c (merge_blocks_move_predecessor_nojumps): New function.
Jeffrey A Law [Mon, 20 Sep 1999 12:34:26 +0000 (12:34 +0000)]
flow.c (merge_blocks_move_predecessor_nojumps): New function.

        * flow.c (merge_blocks_move_predecessor_nojumps): New function.
        (merge-blocks_move_successor_nojumps): Likewise.
        (merge_blocks): Allow merging of some blocks, even if it requires
        physical movement of the blocks, but not if it requires new jumps.

From-SVN: r29519