platform/upstream/gcc.git
25 years agodecl.c (build_target_expr): Set TREE_SIDE_EFFECTS on the TARGET_EXPR.
Mark Mitchell [Wed, 15 Sep 1999 06:09:53 +0000 (06:09 +0000)]
decl.c (build_target_expr): Set TREE_SIDE_EFFECTS on the TARGET_EXPR.

* decl.c (build_target_expr): Set TREE_SIDE_EFFECTS on the
TARGET_EXPR.
* call.c (build_over_call): Don't set TREE_SIDE_EFFECTS on
the TARGET_EXPR.
* cvt.c (build_up_reference): Likewise.
* tree.c (build_cplus_new): Likewise.
(get_target_expr): Likewise.

From-SVN: r29426

25 years agocse.c (FIXED_BASE_PLUS_P): Do not consider referneces to arg_pointer_rtx fixed if...
Jeffrey A Law [Wed, 15 Sep 1999 04:05:38 +0000 (04:05 +0000)]
cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to arg_pointer_rtx fixed if...

        * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
        arg_pointer_rtx fixed if the argument pointer register is
        not fixed.
        (NONZERO_BASE_PLUS_P): Likewise.

From-SVN: r29425

25 years agoMakefile.in (USER_H): Remove va-foo.h.
Richard Henderson [Wed, 15 Sep 1999 03:42:26 +0000 (20:42 -0700)]
Makefile.in (USER_H): Remove va-foo.h.

        * Makefile.in (USER_H): Remove va-foo.h.

        * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
        va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
        va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
        va-spur.h,va-v850.h}: Remove.

From-SVN: r29424

25 years ago* genrecog.c (add_to_sequence): Rename MATCH_INSN2.
Richard Henderson [Wed, 15 Sep 1999 03:32:55 +0000 (20:32 -0700)]
* genrecog.c (add_to_sequence): Rename MATCH_INSN2.

From-SVN: r29423

25 years agortl.def (match_insn, [...]): Remove match_insn; rename match_insn2 to match_insn.
Richard Henderson [Wed, 15 Sep 1999 03:28:12 +0000 (20:28 -0700)]
rtl.def (match_insn, [...]): Remove match_insn; rename match_insn2 to match_insn.

        * rtl.def (match_insn, match_insn2): Remove match_insn; rename
        match_insn2 to match_insn.

From-SVN: r29422

25 years agosparc.md (eligible_for_return_delay): New attribute.
Richard Henderson [Wed, 15 Sep 1999 02:48:32 +0000 (19:48 -0700)]
sparc.md (eligible_for_return_delay): New attribute.

        * sparc/sparc.md (eligible_for_return_delay): New attribute.
        (in_return_delay): Use it instead of match_insn.

From-SVN: r29421

25 years agova_list.h (va-alpha.h): Do not include.
Alexandre Oliva [Wed, 15 Sep 1999 02:09:41 +0000 (02:09 +0000)]
va_list.h (va-alpha.h): Do not include.

* config/alpha/va_list.h (va-alpha.h): Do not include.
(__gnuc_va_list): Typedef as in varargs.h.

From-SVN: r29420

25 years agoggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and DECL_LIVE_RANGE_RTL.
Richard Henderson [Wed, 15 Sep 1999 01:14:59 +0000 (18:14 -0700)]
ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and DECL_LIVE_RANGE_RTL.

        * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
        DECL_LIVE_RANGE_RTL.

From-SVN: r29419

25 years agoexcept.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER, not NOTE_BLOCK_NUMBER.
Mark Mitchell [Tue, 14 Sep 1999 23:51:34 +0000 (23:51 +0000)]
except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER, not NOTE_BLOCK_NUMBER.

* except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
not NOTE_BLOCK_NUMBER.
(expand_eh_region_end): Likewise.
(find_exception_handler_labels): Likewise.
(scan_region): Likewise.
(exception_optimize): Likewise.
(update_rethrow_references): Likewise.
(set_insn_eh_region): Likewise.
* final.c (final_scan_insn): Likewise.
* flow.c (make_edges): Likewise.
* integrate.c (expand_inline_function): Likewise.
* print-rtl.c (print_rtx): Likewise.

From-SVN: r29418

25 years agostdarg.h, varargs.h: Implement in terms of builtin functions and types.
Richard Henderson [Tue, 14 Sep 1999 23:30:44 +0000 (16:30 -0700)]
stdarg.h, varargs.h: Implement in terms of builtin functions and types.

        * ginclude/stdarg.h, ginclude/varargs.h: Implement in
        terms of builtin functions and types.

From-SVN: r29416

25 years agosh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
Richard Henderson [Tue, 14 Sep 1999 23:29:48 +0000 (16:29 -0700)]
sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.

        * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
        (sh_build_va_list, sh_va_start, sh_va_arg): New.
        * sh.h (BUILD_VA_LIST_TYPE): New.
        (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.

From-SVN: r29415

25 years agomips.c (mips_build_va_list): New.
Richard Henderson [Tue, 14 Sep 1999 23:29:31 +0000 (16:29 -0700)]
mips.c (mips_build_va_list): New.

        * mips.c (mips_build_va_list): New.
        (mips_va_start, mips_va_arg): New.
        * mips.h (BUILD_VA_LIST_TYPE): New.
        (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.

From-SVN: r29414

25 years agorecog.h (struct recog_data): Make dup_num...
Richard Henderson [Tue, 14 Sep 1999 23:23:17 +0000 (16:23 -0700)]
recog.h (struct recog_data): Make dup_num...

        * recog.h (struct recog_data): Make dup_num, operand_address_p,
        n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
        (struct insn_data): Likewise with n_operands, n_dups,
        n_alternatives, output_format.
        * regclass.c (scan_one_insn): Cast n_operands to int before
        arithmetic inside comparison.

From-SVN: r29413

25 years ago* toplev.c (compile_function): Unconditionally emit nop.
Richard Henderson [Tue, 14 Sep 1999 22:14:31 +0000 (15:14 -0700)]
* toplev.c (compile_function): Unconditionally emit nop.

From-SVN: r29412

25 years agohaifa-sched.c (actual_hazard): Move declaration of variable `this_cost' into the...
Kaveh R. Ghazi [Tue, 14 Sep 1999 18:44:10 +0000 (18:44 +0000)]
haifa-sched.c (actual_hazard): Move declaration of variable `this_cost' into the scope where it is used.

       * haifa-sched.c (actual_hazard): Move declaration of variable
       `this_cost' into the scope where it is used.

From-SVN: r29411

25 years agoc-pragma.c (handle_pragma_token): Wrap variables `name' and `value' in HANDLE_PRAGMA_...
Kaveh R. Ghazi [Tue, 14 Sep 1999 18:19:09 +0000 (18:19 +0000)]
c-pragma.c (handle_pragma_token): Wrap variables `name' and `value' in HANDLE_PRAGMA_WEAK.

       * c-pragma.c (handle_pragma_token): Wrap variables `name' and
       `value' in HANDLE_PRAGMA_WEAK.  Wrap variable `align' in
       HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.

       * genrecog.c (make_insn_sequence): Call memset, not bzero.

       * jump.c (find_insert_position): Don't declare or define unless
       !HAVE_conditional_arithmetic.
       (returnjump_p_1, delete_prior_computation): Add static prototypes.

       * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.

       * recog.c (offsettable_address_p): Prototype function pointer.
       (preprocess_constraints): Call memset, not bzero.

       * tree.c (tree_node_kind_names): Constify a char*.  Make static.
       (gcc_obstack_init): Don't declare.
       (fix_sizetype): Add static prototype.
       (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
       (tree_cons): Call memset, not bzero.

       * varasm.c (remove_from_pending_weak_list): Wrap declaration and
       definition in macro ASM_WEAKEN_LABEL.
       (mark_const_hash_entry): Add static prototype.

From-SVN: r29410

25 years agoc-lex.c (handle_generic_pragma): Remove unused variable `c'.
Kaveh R. Ghazi [Tue, 14 Sep 1999 16:27:32 +0000 (16:27 +0000)]
c-lex.c (handle_generic_pragma): Remove unused variable `c'.

       * c-lex.c (handle_generic_pragma): Remove unused variable `c'.

       * unroll.c (find_common_reg_term, subtract_reg_term,
       loop_find_equiv_value): Add static prototypes.
       (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
       (copy_loop_body): Remove unreachable break statement.

       * sparc.c (sparc_va_arg): Remove unused variable `tmp'.

       * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.

From-SVN: r29409

25 years agog77spec.c (lang_specific_driver): Remove unnecessary argument in call to function...
Kaveh R. Ghazi [Tue, 14 Sep 1999 16:16:31 +0000 (16:16 +0000)]
g77spec.c (lang_specific_driver): Remove unnecessary argument in call to function `fatal'.

       * g77spec.c (lang_specific_driver): Remove unnecessary argument in
       call to function `fatal'.

From-SVN: r29408

25 years agoUndo bogus changes from gcc2 merge
Bernd Schmidt [Tue, 14 Sep 1999 14:37:12 +0000 (14:37 +0000)]
Undo bogus changes from gcc2 merge

From-SVN: r29407

25 years agojava-insns.h: Turned constants into an enum.
Tom Tromey [Tue, 14 Sep 1999 14:19:59 +0000 (14:19 +0000)]
java-insns.h: Turned constants into an enum.

* include/java-insns.h: Turned constants into an enum.  Added
multiple-inclusion protection.

From-SVN: r29406

25 years ago* gthr-win32.h: New file.
Mumit Khan [Tue, 14 Sep 1999 10:13:49 +0000 (10:13 +0000)]
* gthr-win32.h: New file.

From-SVN: r29405

25 years agowinnt.c (i386_pe_valid_decl_attribute_p): Recognize shared as a valid attribute.
Mumit Khan [Tue, 14 Sep 1999 10:06:06 +0000 (10:06 +0000)]
winnt.c (i386_pe_valid_decl_attribute_p): Recognize shared as a valid attribute.

        * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
        shared as a valid attribute.
        * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
        * extend.texi: Document `shared' variable attribute.

From-SVN: r29404

25 years agoconfigure.in: Handle --enable-threads on FreeBSD.
Loren J. Rittle [Tue, 14 Sep 1999 10:04:04 +0000 (04:04 -0600)]
configure.in: Handle --enable-threads on FreeBSD.

        * configure.in: Handle --enable-threads on FreeBSD.
        * configure: Rebuit.

From-SVN: r29403

25 years agoconfigure.in: Add crtbeginS.o, crtendS.o for mips-linux; add thread support.
Andreas Jaeger [Tue, 14 Sep 1999 10:01:01 +0000 (10:01 +0000)]
configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add thread support.

        * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
        thread support.
        * configure: Rebuilt.

From-SVN: r29402

25 years agoconfigure.in (m68k-*-rtemscoff*): Added.
Joel Sherrill [Tue, 14 Sep 1999 09:52:09 +0000 (09:52 +0000)]
configure.in (m68k-*-rtemscoff*): Added.

        * configure.in (m68k-*-rtemscoff*): Added.
        * configure.in (mips64orion-*-rtems*): Converted to ELF.
        * configure.in (sparc-*-rtemsaout*): Added as alias for old
        sparc-rtems configuration.
        * configure.in (sparc-*-rtemself*): Added.
        * configure.in (sparc-*-rtems*): Now ELF not a.out.
        * config/i386/rtems.h: Added comment.
        * config/sparc/rtemself.h: New file.

        * configure.in (m68k-rtemself): Added.
        * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
        and DWARF_DEBUGGING_INFO.
        * config/m68k/crti.s: New file.
        * config/m68k/crtn.s: New file.
        * config/m68k/t-crtstuff: New file.
        * config/m68k/rtemself.h: New file.

        * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
        global ctor/dtor and C++ exception handling.
        * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
        for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
        ENDFILE_SPEC.
        * config/i386/t-rtems-i386: New File.

Co-Authored-By: Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
Co-Authored-By: Rosimildo DaSilva <rdasilva@connecttel.com>
From-SVN: r29401

25 years agostmt.c (expand_end_case): Return right away if the case stack is empty.
Andreas Schwab [Tue, 14 Sep 1999 07:52:02 +0000 (07:52 +0000)]
stmt.c (expand_end_case): Return right away if the case stack is empty.

* stmt.c (expand_end_case): Return right away if the case stack is
empty.

From-SVN: r29400

25 years agoMakefile.in (version.c): Remove rule incorrectly brought in from the gcc2 merge.
Jeffrey A Law [Tue, 14 Sep 1999 07:48:44 +0000 (07:48 +0000)]
Makefile.in (version.c): Remove rule incorrectly brought in from the gcc2 merge.

        * Makefile.in (version.c): Remove rule incorrectly brought in from
        the gcc2 merge.

From-SVN: r29399

25 years ago* objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
Marc Espie [Tue, 14 Sep 1999 07:46:09 +0000 (07:46 +0000)]
* objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.

From-SVN: r29398

25 years ago* Makefile.in: Prepend $(SHELL) to move-if-change calls.
Marc Espie [Tue, 14 Sep 1999 07:45:42 +0000 (07:45 +0000)]
* Makefile.in:  Prepend $(SHELL) to move-if-change calls.

From-SVN: r29397

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

From-SVN: r29396

25 years agoMakefile.in: Prepend $(SHELL) to move-if-change calls.
Marc Espie [Tue, 14 Sep 1999 07:42:59 +0000 (07:42 +0000)]
Makefile.in: Prepend $(SHELL) to move-if-change calls.

        * Makefile.in:  Prepend $(SHELL) to move-if-change calls.
        * msdos/top.sed:  Take into account a prepended $(SHELL) to
        move-if-change.
        * winnt/config-nt.sed:  Likewise.  Kill bogus substitution.

From-SVN: r29395

25 years agoregmove.c (fixup_match_1): Don't change an unchanging register.
J"orn Rennecke [Tue, 14 Sep 1999 07:39:14 +0000 (07:39 +0000)]
regmove.c (fixup_match_1): Don't change an unchanging register.

        * regmove.c (fixup_match_1): Don't change an unchanging register.
        (stable_but_for_p): Renamed to:
        (stable_and_no_regs_but_for_p).  Reject unchanging registers too.
        Changed all callers.

From-SVN: r29394

25 years agoloop.c (strength_reduce): Don't call reg_used_between_p if the insn from BL2 is after...
Andreas Schwab [Tue, 14 Sep 1999 07:34:59 +0000 (07:34 +0000)]
loop.c (strength_reduce): Don't call reg_used_between_p if the insn from BL2 is after the insn from BL.

        * loop.c (strength_reduce): Don't call reg_used_between_p if the
        insn from BL2 is after the insn from BL.

From-SVN: r29393

25 years agoFix typo in comment.
Jeff Law [Tue, 14 Sep 1999 07:18:02 +0000 (01:18 -0600)]
Fix typo in comment.

From-SVN: r29392

25 years agoFix typos in a recent revision.
Jeff Law [Tue, 14 Sep 1999 06:52:41 +0000 (00:52 -0600)]
Fix typos in a recent revision.

From-SVN: r29391

25 years agolibiberty.h (basename): OpenBSD has a correct prototype.
Marc Espie [Tue, 14 Sep 1999 06:35:01 +0000 (06:35 +0000)]
libiberty.h (basename): OpenBSD has a correct prototype.

        * libiberty.h (basename):  OpenBSD has a correct prototype.
        (xrealloc):  Remove outdated comment.

From-SVN: r29390

25 years agorecog.h (INSN_OUTPUT_FORMAT_*): New.
Richard Henderson [Tue, 14 Sep 1999 04:19:34 +0000 (21:19 -0700)]
recog.h (INSN_OUTPUT_FORMAT_*): New.

        * recog.h (INSN_OUTPUT_FORMAT_*): New.
        (struct insn_data): Merge `template' and `outfun' into `output'.
        Add `output_format'.
        * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
        (struct data): Remove `outfun'; add `output_format'.
        (name_for_index): Remove declaration.
        (output_insn_data): Handle output formats.
        (process_template): Emit the bare array for @.
        (gen_expand, gen_split): Set output_format to NONE.
        * output.h (get_insn_template): Declare.
        * final.c (get_insn_template): New.
        (final_scan_insn): Use it.
        * toplev.c (compile_file): Likewise.

        * c4x/c4x.c (c4x_process_after_reload): Likewise.
        * i860/i860.c (output_delayed_branch): Likewise.
        (output_delay_insn): Likewise.

From-SVN: r29389

25 years ago* rtl.c (obstack_alloc_rtx): Removed.
Alexandre Oliva [Tue, 14 Sep 1999 02:31:19 +0000 (02:31 +0000)]
* rtl.c (obstack_alloc_rtx): Removed.

From-SVN: r29388

25 years agocp-tree.h (build_target_expr): New function.
Mark Mitchell [Tue, 14 Sep 1999 00:50:07 +0000 (00:50 +0000)]
cp-tree.h (build_target_expr): New function.

* cp-tree.h (build_target_expr): New function.
* call.c (build_conditional_expr): Use build_target_expr.
(convert_like): Likewise.
(build_over_call): Likewise.
* cvt.c (build_up_reference): Likewise.
* decl.c (build_cleanup_on_safe_obstack): Fold into ...
(destroy_local_var): Here.
(build_target_expr): New function.
* tree.c (build_cplus_new): Use it.
(get_target_expr): Likewise.

From-SVN: r29387

25 years agogmicro.md: Disable move DF->DI anonymous pattern.
Zack Weinberg [Tue, 14 Sep 1999 00:02:56 +0000 (00:02 +0000)]
gmicro.md: Disable move DF->DI anonymous pattern.

1999-09-13 17:03 -0700  Zack Weinberg  <zack@bitmover.com>

* config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.

From-SVN: r29386

25 years agoi386.c (call_insn_operand): Reject const_int.
Richard Henderson [Mon, 13 Sep 1999 22:22:48 +0000 (15:22 -0700)]
i386.c (call_insn_operand): Reject const_int.

        * i386.c (call_insn_operand): Reject const_int.
        (expander_call_insn_operand): Use call_insn_operand.

From-SVN: r29385

25 years ago* gcc.c (getrusage): Wrap prototype arguments in PROTO().
Kaveh R. Ghazi [Mon, 13 Sep 1999 21:46:32 +0000 (21:46 +0000)]
* gcc.c (getrusage): Wrap prototype arguments in PROTO().

From-SVN: r29384

25 years agoFix typos commenting out movdicc, movdfcc
Zack Weinberg [Mon, 13 Sep 1999 19:20:51 +0000 (19:20 +0000)]
Fix typos commenting out movdicc, movdfcc

From-SVN: r29383

25 years agoi370.md (mulsi, [...]): Use DImode operation.
Zack Weinberg [Mon, 13 Sep 1999 19:19:17 +0000 (19:19 +0000)]
i370.md (mulsi, [...]): Use DImode operation.

1999-09-13 12:18 -0700  Zack Weinberg  <zack@bitmover.com>

* config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
Use DImode operation.

From-SVN: r29382

25 years agogcc.c: Include sys/resource.h.
Zack Weinberg [Mon, 13 Sep 1999 19:16:24 +0000 (19:16 +0000)]
gcc.c: Include sys/resource.h.

1999-09-13 12:13 -0700  Zack Weinberg  <zack@bitmover.com>

* gcc.c: Include sys/resource.h.
(report_times): New flag.
(execute):  If report_times is set, calculate and report the
CPU time consumed by each subprocess.

(rus, prus): New globals.
(option_map): Add --time.
(display_help): Document -time.
(process_command): Set report_times if -time is given.
Turn off -pipe if -time is given.

* invoke.texi: Document new option -time.

* configure.in: Check for getrusage.  Check if we have to
prototype getrusage.
* acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
* configure: Regenerate.
* config.in: Regenerate.

From-SVN: r29381

25 years agocppinit.c (append_include_chain): Initialize 'next' and 'alloc' fields.
Dave Brolley [Mon, 13 Sep 1999 16:58:44 +0000 (16:58 +0000)]
cppinit.c (append_include_chain): Initialize 'next' and 'alloc' fields.

Mon Sep 13 12:57:06 1999  Dave Brolley  <brolley@cygnus.com>

* cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
fields.

From-SVN: r29380

25 years agosizeof3.C: Remove XFAILS.
Nathan Sidwell [Mon, 13 Sep 1999 14:23:16 +0000 (14:23 +0000)]
sizeof3.C: Remove XFAILS.

* g++.old-deja/g++.other/sizeof3.C: Remove XFAILS.
* g++.old-deja/g++.other/sizeof4.C: Remove XFAILS.

From-SVN: r29379

25 years agotypeck.c (expr_sizeof): Don't decay arrays and functions.
Nathan Sidwell [Mon, 13 Sep 1999 13:41:30 +0000 (13:41 +0000)]
typeck.c (expr_sizeof): Don't decay arrays and functions.

* typeck.c (expr_sizeof): Don't decay arrays and functions.
Remove misleading comment.
(build_compound_expr): Don't decay arrays.

From-SVN: r29378

25 years agoSet *correct* g++ options.
Nathan Sidwell [Mon, 13 Sep 1999 13:14:43 +0000 (13:14 +0000)]
Set *correct* g++ options.

From-SVN: r29377

25 years ago* config/mpeix.mt: New for MPEiX port.
Mark Klein [Mon, 13 Sep 1999 12:30:08 +0000 (12:30 +0000)]
* config/mpeix.mt: New for MPEiX port.

From-SVN: r29374

25 years ago* gcc.c-torture/compile/990913-1.c: New test.
Jeffrey A Law [Mon, 13 Sep 1999 12:28:55 +0000 (12:28 +0000)]
* gcc.c-torture/compile/990913-1.c: New test.

From-SVN: r29373

25 years agocall.c (build_conditional_expr): Always use a TARGET_EXPR for class rvalues again.
Jason Merrill [Mon, 13 Sep 1999 10:12:07 +0000 (10:12 +0000)]
call.c (build_conditional_expr): Always use a TARGET_EXPR for class rvalues again.

* call.c (build_conditional_expr): Always use a TARGET_EXPR for
class rvalues again.

From-SVN: r29372

25 years agoMove definition of 'thenan' to its own object file in order to save space.
Nick Clifton [Mon, 13 Sep 1999 09:14:21 +0000 (09:14 +0000)]
Move definition of 'thenan' to its own object file in order to save space.

From-SVN: r29371

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

From-SVN: r29370

25 years agotree.c (fix_sizetype): Exchange the types for TYPE_SIZE and TYPE_SIZE_UNIT.
Andreas Schwab [Mon, 13 Sep 1999 07:41:20 +0000 (07:41 +0000)]
tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and TYPE_SIZE_UNIT.

* tree.c (fix_sizetype):  Exchange the types for TYPE_SIZE and
TYPE_SIZE_UNIT.

From-SVN: r29369

25 years agoFix typo in last change.
Kaveh Ghazi [Mon, 13 Sep 1999 04:40:51 +0000 (04:40 +0000)]
Fix typo in last change.

From-SVN: r29368

25 years agoMakefile.in (gcc.o, [...]): Depend on gcc.h.
Kaveh R. Ghazi [Mon, 13 Sep 1999 03:57:40 +0000 (03:57 +0000)]
Makefile.in (gcc.o, [...]): Depend on gcc.h.

* Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.

* gcc.h: New file.
(lang_specific_driver): Don't take a function pointer parameter.
All callers changed.

* gcc.c: Include gcc.h.
(do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
lang_specific_extra_outfiles, fatal): Don't declare.
(multilib_defaults_raw): Constify.
(read_specs): Call memset, rather than bzero.
(main): Call return, not exit.
(lookup_compiler): Call memcpy, not bcopy.
(fatal): Make extern.

* cppspec.c: Include gcc.h.
(lang_specific_driver): Initialize variable `quote'.  Constify a
char*.  All calls to the function pointer parameter now
explicitly call `fatal'.

* gccspec.c (lang_specific_driver): Include gcc.h.

cp:

* Make-lang.in (g++spec.o): Depend on system.h and gcc.h.

* g++spec.c: Include gcc.h.
(lang_specific_driver): Constify a char*.  Call xcalloc, not
  xmalloc/bzero.  All calls to the function pointer parameter now
  explicitly call `fatal'.

f:

* Make-lang.in (g77spec.o): Depend on system.h and gcc.h.

* g77spec.c: Include gcc.h.
(g77_xargv): Constify.
(g77_fn): Add parameter prototypes.
(lookup_option, append_arg): Add static prototypes.
(g77_newargv): Constify.
(lookup_option, append_arg, lang_specific_driver): Constify a char*.
(lang_specific_driver): All calls to the function pointer
  parameter now explicitly call `fatal'.

java:

* Make-lang.in (jvspec.o): Depend on system.h and gcc.h.

* jvspec.c: Include gcc.h.  Don't include gansidecl.h.
(do_spec, lang_specific_pre_link, lang_specific_driver,
input_filename, input_filename_length): Don't declare.
(main_class_name, jvgenmain_spec, lang_specific_driver):
Constify a char*.
(lang_specific_driver): All calls to the function pointer
parameter now explicitly call `fatal'.

From-SVN: r29367

25 years agocall.c (implicit_conversion): Robustify.
Mark Mitchell [Mon, 13 Sep 1999 00:35:00 +0000 (00:35 +0000)]
call.c (implicit_conversion): Robustify.

* call.c (implicit_conversion): Robustify.  Handle OFFSET_REFs.
* cvt.c (ocp_convert): Complete the from and destination types.
Adjust warning about functions always being `true' in conditionals.
* decl.c (duplicate_decls): Don't play funny games with abort.
* error.c (dump_expr): Handle OVERLOADs.
* spew.c (probe_obstack): Remove.
* typeck.c (condition_conversion): Use perform_implicit_conversion.

From-SVN: r29366

25 years agodecl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
Mark Mitchell [Sun, 12 Sep 1999 21:19:02 +0000 (21:19 +0000)]
decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.

* decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
(init_decl_processing): Don't set TREE_PERMANENT for the
error_mark_node.
(start_decl): Don't rebuild non-permanent ARRAY_TYPEs.
(grokdeclarator): Likewise.
(grokparms): Don't check TREE_PERMANENT when building up lists.
* decl2.c (grokfield): Don't assert TREE_PERMANENT.
(mark_inline_for_output): Likewise.
* expr.c (cplus_expand_expr): Don't check TREE_PERMANENT.
* init.c (build_offset_ref): Don't check TREE_PERMANENT.
* lex.c (check_newline): Don't check ggc_p; it is always one.
* pt.c (process_template_parm): Don't check TREE_PERMANENT.
* spew.c (yylex): Don't copy_node or probe_obstacks for
non-permanent CONSTANTs and STRINGs.
* tree.c (build_cplus_array_type_1): Don't fuss with
TREE_PERMANENT on ARRAY_TYPEs.

From-SVN: r29365

25 years agoarm.c (note_invalid_constants): Use recog_data.operand_type for recog_op_type.
Richard Earnshaw [Sun, 12 Sep 1999 18:51:35 +0000 (18:51 +0000)]
arm.c (note_invalid_constants): Use recog_data.operand_type for recog_op_type.

* arm.c (note_invalid_constants): Use recog_data.operand_type
for recog_op_type.

From-SVN: r29364

25 years agoFix stupid mistake
Bernd Schmidt [Sun, 12 Sep 1999 15:15:54 +0000 (15:15 +0000)]
Fix stupid mistake

From-SVN: r29363

25 years agoAdd missing declarations
Bernd Schmidt [Sun, 12 Sep 1999 15:03:28 +0000 (15:03 +0000)]
Add missing declarations

From-SVN: r29362

25 years agoUse structures not many single arrays in reload
Bernd Schmidt [Sun, 12 Sep 1999 14:54:56 +0000 (14:54 +0000)]
Use structures not many single arrays in reload

From-SVN: r29361

25 years agodefine_function cleanup
Bernd Schmidt [Sun, 12 Sep 1999 14:03:23 +0000 (14:03 +0000)]
define_function cleanup

From-SVN: r29360

25 years ago* alpha.md (adddi3): Make `pattern' array static.
Richard Henderson [Sun, 12 Sep 1999 12:46:27 +0000 (05:46 -0700)]
* alpha.md (adddi3): Make `pattern' array static.

From-SVN: r29359

25 years agoReplace insn_foo with insn_data.foo.
Richard Henderson [Sun, 12 Sep 1999 12:46:08 +0000 (05:46 -0700)]
Replace insn_foo with insn_data.foo.

From-SVN: r29358

25 years agoc4x.h (c4x_rpts_cycles_string, [...]): Constify char *.
Michael Hayes [Sun, 12 Sep 1999 10:24:02 +0000 (10:24 +0000)]
c4x.h (c4x_rpts_cycles_string, [...]): Constify char *.

* config/c4x/c4x.h (c4x_rpts_cycles_string,
c4x_cpu_version_string): Constify char *.
* config/c4x/c4x.c (c4x_rpts_cycles_string,
c4x_cpu_version_string): Likewise.

From-SVN: r29357

25 years agoDaily bump.
Jeff Law [Sun, 12 Sep 1999 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29356

25 years agotree.c (save_tree_status): Revert 10 Sep change.
Richard Henderson [Sun, 12 Sep 1999 06:30:39 +0000 (23:30 -0700)]
tree.c (save_tree_status): Revert 10 Sep change.

        * tree.c (save_tree_status): Revert 10 Sep change.
        (restore_tree_status): Likewise.  Call obstack_free with NULL
        before freeing the obstack proper.

From-SVN: r29355

25 years ago* cse.c (cse_main): If gc'ing, collect around cse_basic_block.
Richard Henderson [Sun, 12 Sep 1999 06:26:04 +0000 (23:26 -0700)]
* cse.c (cse_main): If gc'ing, collect around cse_basic_block.

From-SVN: r29354

25 years agoggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context.
Richard Henderson [Sun, 12 Sep 1999 06:25:44 +0000 (23:25 -0700)]
ggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context.

        * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
        surrounding context.

From-SVN: r29353

25 years agore GNATS gcj/18 (Internal error: segfault on invalid cast)
Alexandre Petit-Bianco [Sun, 12 Sep 1999 03:20:31 +0000 (03:20 +0000)]
re GNATS gcj/18 (Internal error: segfault on invalid cast)

Sat Sep 11 16:46:44 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (find_applicable_accessible_methods_list): Search
        abstract classes as interfaces.

(Fix to Java PR #18:
 http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00015.html)

From-SVN: r29352

25 years agotree.c (type_hash_canon): Put all types in the hash-table, when GC'ing.
Mark Mitchell [Sun, 12 Sep 1999 02:49:34 +0000 (02:49 +0000)]
tree.c (type_hash_canon): Put all types in the hash-table, when GC'ing.

* tree.c (type_hash_canon): Put all types in the hash-table, when
GC'ing.

From-SVN: r29351

25 years agodecl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
Mark Mitchell [Sun, 12 Sep 1999 02:45:30 +0000 (02:45 +0000)]
decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.

* decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
(init_decl_processing): Don't set TREE_PERMANENT for the
error_mark_node.
(start_decl): Don't rebuild non-permanent ARRAY_TYPEs.
(grokdeclarator): Likewise.
(grokparms): Don't check TREE_PERMANENT when building up lists.
* decl2.c (grokfield): Don't assert TREE_PERMANENT.
(mark_inline_for_output): Likewise.
* expr.c (cplus_expand_expr): Don't check TREE_PERMANENT.
* init.c (build_offset_ref): Don't check TREE_PERMANENT.
* lex.c (check_newline): Don't check ggc_p; it is always one.
* pt.c (process_template_parm): Don't check TREE_PERMANENT.
* spew.c (yylex): Don't copy_node or probe_obstacks for
non-permanent CONSTANTs and STRINGs.
* tree.c (build_cplus_array_type_1): Don't fuss with
TREE_PERMANENT on ARRAY_TYPEs.

From-SVN: r29350

25 years agoReplace recog_foo with recog_data.foo.
Richard Henderson [Sun, 12 Sep 1999 01:51:28 +0000 (18:51 -0700)]
Replace recog_foo with recog_data.foo.

From-SVN: r29349

25 years agocp-tree.def (CLEANUP_STMT): New node.
Mark Mitchell [Sun, 12 Sep 1999 01:12:59 +0000 (01:12 +0000)]
cp-tree.def (CLEANUP_STMT): New node.

* cp-tree.def (CLEANUP_STMT): New node.
* cp-tree.h (language_function): Add name_declared.
(current_function_name_declared): New macro.
(CLEANUP_DECL): New macro.
(CLEANUP_EXPR): Likewise.
(emit_local_var): Likewise.
(finish_decl_cleanup): New function.
* cvt.c (build_up_reference): Simplify.
(ocp_convert): Remove dead code.
* decl.c (start_decl): Remove call to add_decl_stmt.
(grok_reference_init): Adjust, to handle bindings temporaries to
references.  Remove dead code.
(initialize_local_var): Don't generate RTL for
declarations here, or build cleanups here.  Don't fuss with
obstacks.  Replace expand_start_target_temps calls with explicit
setting of stms_are_full_exprs_p.
(destroy_local_var): New function.
(emit_local_var): Likewise.
(cp_finish_decl): Use them, as appropriate.
(start_function): Announce template functions.
(store_parm_decls): Don't call declare_function_name here.
(finish_stmt): Don't start emit base-initialization code when just
building the statement-tree.
* init.c (create_temporary_var): Move add_decl_stmt call ...
(get_temp_regvar): Here.
* pt.c (tsubst_expr): Make DECL_INITIAL look like what
cp_finish_decl would expect.  Don't call add_decl_stmt.
* semantics.c (begin_compound_stmt): Call declare_function_name,
if appropriate.
(finish_decl_cleanup): New function.
(expand_stmt): Use emit_local_var to output variables.
(expand_body): Set current_funtion_name_declared.

From-SVN: r29348

25 years agoclass.c (finish_class): We're now outside a valid method declaration.
Alexandre Petit-Bianco [Sat, 11 Sep 1999 22:22:57 +0000 (22:22 +0000)]
class.c (finish_class): We're now outside a valid method declaration.

Thu Sep  9 17:33:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * class.c (finish_class): We're now outside a valid method
        declaration. Tell the rest of gcc so.

From-SVN: r29347

25 years agoNew shell scripts to ease dealing with Netlib f2c vis-a-vis g77 libg2c
Craig Burley [Sat, 11 Sep 1999 21:53:17 +0000 (21:53 +0000)]
New shell scripts to ease dealing with Netlib f2c vis-a-vis g77 libg2c

From-SVN: r29346

25 years agoRemove trailing whitespace from lines
Zack Weinberg [Sat, 11 Sep 1999 21:13:01 +0000 (21:13 +0000)]
Remove trailing whitespace from lines

From-SVN: r29283

25 years agoUpdate copyright.
Richard Henderson [Sat, 11 Sep 1999 19:50:42 +0000 (12:50 -0700)]
Update copyright.

From-SVN: r29282

25 years agoAlex Samuel <samuel@codesourcery.com>
Alex Samuel [Sat, 11 Sep 1999 19:48:37 +0000 (19:48 +0000)]
Alex Samuel  <samuel@codesourcery.com>

        * ggc.h (rtvec_def): Forward declare.
        (tree_node): Likewise.
        (ggc_root): Define.
        (roots): Declare.
        (ggc_set_mark_rtx): Add prototype.
        (ggc_set_mark_rtvec): Likewise.
        (ggc_set_mark_tree): Likewise.
        * ggc-simple.c (ggc_root): Don't define.
        (roots): Don't declare.
        (ggc_mark_rtx): Remove.
        (ggc_mark_rtvec): Likewise.
        (ggc_mark_tree): Likewise.
        (ggc_mark_varray): Likewise.
        (ggc_mark_tree_hash_table_entry): Likewise.
        (ggc_mark_tree_hash_table): Likewise.
        (ggc_set_mart_rtx): New function.
        (ggc_set_mark_rtvec): Likewise.
        (ggc_set_mark_tree): Likewise.
        (ggc_add_root): Remove.
        (ggc_add_rtx_root): Likewise.
        (ggc_remove_tree_root): Likewise.
        (ggc_add_string_root): Likewise.
        (ggc_add_tree_varray_root): Likewise.
        (ggc_add_tree_hash_table_root): Likewise.
        (ggc_del_root): Likewise.
        (ggc_mark_rtx_ptr): Likewise.
        (ggc_mark_tree_ptr): Likewise.
        (ggc_mark_string_ptr): Likewise.
        (ggc_mark_tree_varray_ptr): Likewise.
        (ggc_mark_tree_hash_table_ptr): Likewise.
        * ggc-common.c: New file.
        * Makefile.in (OBJS): Add ggc-common.o.
        (ggc-common.o): List dependencies.

From-SVN: r29281

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

From-SVN: r29280

25 years agocppalloc.c (xstrdup): Use memcpy.
Zack Weinberg [Sat, 11 Sep 1999 05:38:06 +0000 (05:38 +0000)]
cppalloc.c (xstrdup): Use memcpy.

1999-09-10 22:37 -0700  Zack Weinberg  <zack@bitmover.com>

* cppalloc.c (xstrdup): Use memcpy.
* cpperror.c (cpp_print_containing_files): Don't use
cpp_notice.
* cpplib.c (conditional_skip): Set temp->lineno.
(do_endif): Make error message less obscure.
(if_directive_name): New function.
(cpp_get_token [case EOF]): Unwind the if stack and generate
error messages for each unterminated conditional in this file.
(parse_string):  Do not behave differently if -traditional.

From-SVN: r29279

25 years agoconfigure: Rebuilt.
Tom Tromey [Fri, 10 Sep 1999 22:03:10 +0000 (22:03 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Build include/Makefile.
* Makefile.in: Rebuilt.
* Makefile.am (SUBDIRS): Added gcj and include.
(install-data-local): New target.
(extra_headers): New macro.
* include/Makefile.in: New file.
* include/Makefile.am: New file.

* interpret.cc: Don't include gcj/field.h or gcj/cni.h.
* java/lang/reflect/natField.cc: Don't include gcj/field.h or
gcj/cni.h.
* boehm.cc: Don't include java-threads.h or gcj/field.h.
* resolve.cc: Include config.h.
* defineclass.cc: Include config.h.
* include/java-interp.h: Don't include config.h.
* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
cni.h.

* gcj/javaprims.h: Regenerated namespace decls.
* classes.pl (scan): Don't put `;' after closing brace.

* Makefile.in: Rebuilt.
* Makefile.am (INCLUDES): Added -I for top_srcdir.
* configure.in: Create gcj/Makefile.
* gcj/Makefile.in: New file.
* gcj/Makefile.am: New file.
* java/lang/Object.h: Don't include any other headers.
* gcj/array.h: Renamed from include/java-array.h.
* gcj/field.h: Renamed from include/java-field.h.
* gcj/method.h: Renamed from include/java-method.h.
* gcj/cni.h, gcj/javaprims.h: Moved from include/.
Updated all files to reflect new include structure.

From-SVN: r29278

25 years agogjavah.c (add_class_decl): Generate include for gcj/array.h, not java-array.h.
Tom Tromey [Fri, 10 Sep 1999 21:45:39 +0000 (21:45 +0000)]
gjavah.c (add_class_decl): Generate include for gcj/array.h, not java-array.h.

* gjavah.c (add_class_decl): Generate include for gcj/array.h, not
java-array.h.
(decode_signature_piece): Don't emit "::" in JArray<>.
(print_namelet): Only print trailing `;' when printing a class.

From-SVN: r29277

25 years agobuiltins.c (expand_builtin_va_arg): Cope with an array-type va_list decomposing to...
Richard Henderson [Fri, 10 Sep 1999 21:06:36 +0000 (14:06 -0700)]
builtins.c (expand_builtin_va_arg): Cope with an array-type va_list decomposing to pointer-type.

        * builtins.c (expand_builtin_va_arg): Cope with an array-type
        va_list decomposing to pointer-type.
        * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
        (rs6000_va_arg): Likewise.

From-SVN: r29276

25 years agoFix too small buffer problem found by ia64 port.
Jim Wilson [Fri, 10 Sep 1999 20:28:12 +0000 (20:28 +0000)]
Fix too small buffer problem found by ia64 port.

* except.c (start_dynamic_handler): Compute size using
STACK_SAVEAREA_MODE.

From-SVN: r29275

25 years agoprotoize.c: Remove various __STDC__ and POSIX hacks.
Kaveh R. Ghazi [Fri, 10 Sep 1999 20:03:36 +0000 (20:03 +0000)]
protoize.c: Remove various __STDC__ and POSIX hacks.

* protoize.c: Remove various __STDC__ and POSIX hacks.  Don't
include directory headers.  Don't define strrchr.  Don't provide
my_* replacement functions.  Prefer PTR over `pointer_type'.
Don't prototype system functions.  Don't redefine getopt.

(shortpath, fancy_abort, notice, savestring, dupnstr, substr,
safe_read, safe_write, save_pointers, restore_pointers,
is_id_char, in_system_include_dir, directory_specified_p,
file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
find_corresponding_lparen, referenced_file_is_newer,
save_def_or_dec, munge_compile_params, gen_aux_info_file,
process_aux_info_file, identify_lineno, check_source,
seek_to_line, forward_to_next_token_char, output_bytes,
output_string, output_up_to, other_variable_style_function,
find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
do_processing, is_syscalls_file, rename_c_file, find_extern_def,
find_static_definition, connect_defs_and_decs, add_local_decl,
add_global_decls, needs_to_be_converted, visit_each_hash_node,
add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
edit_fn_declaration, edit_formals_lists, edit_fn_definition,
scan_for_missed_items, edit_file, string_list_cons): Add static
prototypes.
(standard_exec_prefix, target_machine, target_version,
default_syscalls_dir, string_list, string_list_cons, find_file,
do_cleaning): Constify a char*.
(safe_read, safe_write): Use PTR, not a char*.
(is_id_char): Take an int, not a char.
(main): Add prototype.  Call return, not exit.

From-SVN: r29274

25 years agoloop.c (basic_induction_var): Typo NULL_RTX -> NULL.
Richard Henderson [Fri, 10 Sep 1999 18:45:22 +0000 (11:45 -0700)]
loop.c (basic_induction_var): Typo NULL_RTX -> NULL.

        * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
        (strength_reduce): Release the varrays from the no-bivs early exit.

        * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
        the loop over the registers.

        * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
        for a new obstack.
        (restore_tree_status): Check that instead when freeing the obstack.

From-SVN: r29273

25 years agoFix missing ChangeLog entry
Mark Mitchell [Fri, 10 Sep 1999 17:55:50 +0000 (17:55 +0000)]
Fix missing ChangeLog entry

From-SVN: r29272

25 years agotree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields when comparing types.
Andrew Haley [Fri, 10 Sep 1999 16:07:18 +0000 (16:07 +0000)]
tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields when comparing types.

Fri Sep 10 16:48:26 1999  Andrew Haley  <aph@cygnus.com>

        * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
        when comparing types.

From-SVN: r29271

25 years agoloop.c (basic_induction_var): Typo NULL_RTX -> NULL.
Richard Henderson [Fri, 10 Sep 1999 15:50:22 +0000 (08:50 -0700)]
loop.c (basic_induction_var): Typo NULL_RTX -> NULL.

        * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
        (strength_reduce): Release the varrays from the no-bivs early exit.

        * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
        the loop over the registers.

        * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
        for a new obstack.
        (restore_tree_status): Check that instead when freeing the obstack.

From-SVN: r29270

25 years agoalias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers.
Andrew Haley [Fri, 10 Sep 1999 14:12:01 +0000 (14:12 +0000)]
alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers.

Wed Sep  8 16:12:04 1999  Andrew Haley  <aph@cygnus.com>

        * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
        as pointers.

From-SVN: r29269

25 years agorfg4.C: Revert erroneous change, add -w.
Nathan Sidwell [Fri, 10 Sep 1999 11:05:30 +0000 (11:05 +0000)]
rfg4.C: Revert erroneous change, add -w.

* g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
* g++.old-deja/g++.jason/rfg5.C: Likewise.

From-SVN: r29268

25 years agoFix ashlqi3 bug
Bernd Schmidt [Fri, 10 Sep 1999 11:01:50 +0000 (11:01 +0000)]
Fix ashlqi3 bug

From-SVN: r29267

25 years agoMove declarations and building code for common tree nodes to tree.[ch]
Bernd Schmidt [Fri, 10 Sep 1999 10:36:02 +0000 (10:36 +0000)]
Move declarations and building code for common tree nodes to tree.[ch]

From-SVN: r29266

25 years agocp-tree.h (language_function): Rename expanding_p to x_expanding_p.
Mark Mitchell [Fri, 10 Sep 1999 10:19:47 +0000 (10:19 +0000)]
cp-tree.h (language_function): Rename expanding_p to x_expanding_p.

* cp-tree.h (language_function): Rename expanding_p to
x_expanding_p.  Rename named_label_uses to x_named_label_uses.
(expanding_p): Adjust accordingly.
(TREE_VIA_PRIVATE): Fix typo in comment.
(DECL_REFERENCE_SLOT): Remove.
(SET_DECL_REFERENCE_SLOT): Likewise.
* decl.c (named_label_uses): Adjust. Remove chicken comment.
(push_overloaded_decl): Don't truncate the chain of bindings when
adding an overloaded function.
(grok_reference_init): Don't use DECL_REFERENCE_SLOT.
(initialize_local_var): Fix typo in comment.
(store_parm_decls): Don't set DECL_REFERENCE_SLOT.  Tidy up.
* decl2.c (start_objects): Make the fact that we are expanding
the generated function right away explicit.
(start_static_storage_duration_function): Likewise.
(finish_file): Fix typo in comment.
* init.c (build_vec_init): Correct bugs in handling cleanups.
* semantics.c (maybe_convert_cond): New function.
(FINISH_COND): Always store the condition, even if there's
a declaration.
(finish_if_stmt_cond): Use maybe_convert_cond.
(finish_while_stmt_cond): Likewise.
(finish_do_stmt): Likewise.
(finish_for_cond): Likewise.
(expand_cond): Adjust.

From-SVN: r29265

25 years agocp-tree.h (finish_cleanup_try_block): New function.
Mark Mitchell [Fri, 10 Sep 1999 09:30:57 +0000 (09:30 +0000)]
cp-tree.h (finish_cleanup_try_block): New function.

* cp-tree.h (finish_cleanup_try_block): New function.
* semantics.c (finish_cleanup_try_block): Add comment.

From-SVN: r29264

25 years agocp-tree.h (FN_TRY_BLOCK_P): New macro.
Mark Mitchell [Fri, 10 Sep 1999 09:21:37 +0000 (09:21 +0000)]
cp-tree.h (FN_TRY_BLOCK_P): New macro.

* cp-tree.h (FN_TRY_BLOCK_P): New macro.
* init.c (perform_member_init): Remove obstack machinations.
(expand_cleanup_for_base): Likewise.
(finish_init_stmts): Mark the statement-expression as used.
* method.c (emit_thunk): Use tree-generating functions, not
RTL.
(do_build_copy_constructor): Likewise.
(do_build_assign_ref): Likewise.
(synthesize_method): Likewise.  Keep track of line numbers.
* pt.c (tsubst_expr): Handle various kinds of try blocks.
* semantics.c (expand_stmts): Remove.
(begin_function_try_block): Set FN_TRY_BLOCK_P.
(finish_function_try_block): Be careful rechaining
function try blocks.
(expand_stmt): Loop through all the statements at a given level.
(exapnd_body): Be careful with line-numbers here too.  Prepare for
being called directly from the parser.

From-SVN: r29263

25 years agocp-tree.h (finish_function): Adjust prototype.
Mark Mitchell [Fri, 10 Sep 1999 09:10:24 +0000 (09:10 +0000)]
cp-tree.h (finish_function): Adjust prototype.

* cp-tree.h (finish_function): Adjust prototype.
* decl.c (finish_function): Return the function compiled.
* pt.c (instantiate_decl): Don't play games with obstacks.
* tree.c (mapcar): Handle OFFSET_REF and BIT_FIELD_REF.
(search_tree): Likewise.
* typeck.c: Fix typo in comment.
* typeck2.c (store_init_value): Add comment.

From-SVN: r29262