platform/upstream/gcc.git
26 years ago* pt.c (tsubst, TEMPLATE_TEMPLATE_PARM): Simplify.
Kriang Lerdsuwanakij [Fri, 20 Mar 1998 18:11:26 +0000 (18:11 +0000)]
* pt.c (tsubst, TEMPLATE_TEMPLATE_PARM): Simplify.

From-SVN: r18735

26 years agoInitial revision
Bruce Korb [Fri, 20 Mar 1998 16:19:40 +0000 (16:19 +0000)]
Initial revision

From-SVN: r18731

26 years agoMajor cutover to using system.h:
Kaveh R. Ghazi [Fri, 20 Mar 1998 14:58:42 +0000 (14:58 +0000)]
Major cutover to using system.h:

        * Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
        c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
        caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
        dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
        expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
        integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
        prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
        reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
        rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
        tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
        on system.h.
        * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
        c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
        caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
        dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
        expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
        integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
        prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
        reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
        rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
        stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
        xcoffout.c: Include system.h.  Organize include ordering so
        that stdarg/varargs comes before other system headers.  Remove
        spurious casts of functions assured of a prototype in system.h.

From-SVN: r18726

26 years agodecl.c (make_implicit_typename): Rewrite removed code.
Jason Merrill [Fri, 20 Mar 1998 11:43:36 +0000 (11:43 +0000)]
decl.c (make_implicit_typename): Rewrite removed code.

* decl.c (make_implicit_typename): Rewrite removed code.
(make_typename_type): Call it if the type we look up comes from
a base that uses template parms.

From-SVN: r18725

26 years agopt.c (complete_template_args): Rewrite.
Jason Merrill [Fri, 20 Mar 1998 10:44:06 +0000 (05:44 -0500)]
pt.c (complete_template_args): Rewrite.

* pt.c (complete_template_args): Rewrite.
(tsubst, FUNCTION_DECL): Use it.
* semantics.c (finish_asm_stmt): Fix combine strings. Call
c_expand_asm_operands () if output_operands, input_operands or
clobbers is not NULL_TREE.
* pt.c (complete_template_args): New function.
(get_bindings): Deal with specializations of function templates
with return type containing parameters from outer class
templates.
(tsubst, TEMPLATE_TEMPLATE_PARM): When reducing parameter level,
substitute arguments and compose a new type.

From-SVN: r18724

26 years ago(pop_stack): Define. Pops any register on stack and adjusts the stack.
Stan Cox [Fri, 20 Mar 1998 08:28:06 +0000 (08:28 +0000)]
(pop_stack): Define. Pops any register on stack and adjusts the stack.

From-SVN: r18723

26 years agoMakefile.in (install-gcc): Don't specify LANGUAGES here.
Manfred Hollstein [Fri, 20 Mar 1998 00:33:35 +0000 (00:33 +0000)]
Makefile.in (install-gcc): Don't specify LANGUAGES here.

8
* Makefile.in (install-gcc): Don't specify LANGUAGES here.
(install-gcc-cross): Instead, override LANGUAGES here.

From-SVN: r18722

26 years agoconfigure.in (hppa1.0-hp-hpux10): Handle threads for this config too.
Jeffrey A Law [Thu, 19 Mar 1998 22:51:01 +0000 (22:51 +0000)]
configure.in (hppa1.0-hp-hpux10): Handle threads for this config too.

        * configure.in (hppa1.0-hp-hpux10): Handle threads for this
        config too.

From-SVN: r18721

26 years agopt.c (tsubst): Clear DECL_PENDING_INLINE_INFO for new FUNCTION_DECLs.
Mark Mitchell [Thu, 19 Mar 1998 22:31:22 +0000 (22:31 +0000)]
pt.c (tsubst): Clear DECL_PENDING_INLINE_INFO for new FUNCTION_DECLs.

* pt.c (tsubst): Clear DECL_PENDING_INLINE_INFO for new
FUNCTION_DECLs.

From-SVN: r18720

26 years ago* decl.c (make_implicit_typename): Lose useless code.
Jason Merrill [Thu, 19 Mar 1998 21:59:35 +0000 (21:59 +0000)]
* decl.c (make_implicit_typename): Lose useless code.

From-SVN: r18719

26 years ago* call.c (standard_conversion): Handle A* -> const A* properly.
Jason Merrill [Thu, 19 Mar 1998 21:37:25 +0000 (21:37 +0000)]
* call.c (standard_conversion): Handle A* -> const A* properly.

From-SVN: r18718

26 years ago* libgcc2.c (exit): Do not call __bb_exit_func if HAVE_ATEXIT.
Philippe De Muyter [Thu, 19 Mar 1998 20:24:35 +0000 (21:24 +0100)]
* libgcc2.c (exit): Do not call __bb_exit_func if HAVE_ATEXIT.

From-SVN: r18717

26 years agofold-const.c (fold): Replace sign-extension of a zero extended value by a single...
Philippe De Muyter [Thu, 19 Mar 1998 19:27:18 +0000 (20:27 +0100)]
fold-const.c (fold): Replace sign-extension of a zero extended value by a single zero extension.

        * fold-const.c (fold): Replace sign-extension of a zero extended
        value by a single zero extension.

From-SVN: r18713

26 years agoexcept.c (init_eh): Do nothing.
Jason Merrill [Thu, 19 Mar 1998 18:49:57 +0000 (18:49 +0000)]
except.c (init_eh): Do nothing.

* except.c (init_eh): Do nothing.
(save_eh_status): Call init_eh_for_function, not init_eh.
* function.c (push_function_context_to): Don't call init_emit.

From-SVN: r18710

26 years agonew
Jason Merrill [Thu, 19 Mar 1998 11:53:41 +0000 (06:53 -0500)]
new

From-SVN: r18709

26 years agopt.c (get_bindings_real): Rename from get_bindings.
Jason Merrill [Thu, 19 Mar 1998 11:52:21 +0000 (11:52 +0000)]
pt.c (get_bindings_real): Rename from get_bindings.

* pt.c (get_bindings_real): Rename from get_bindings.  Add
check_rettype parm.
(get_bindings): Pass 1.
(get_bindings_overload): Pass 0.

From-SVN: r18708

26 years agoUndef RELATIVE_PREFIX_NOT_LINKDIR for System V/eabi
Michael Meissner [Thu, 19 Mar 1998 10:43:27 +0000 (10:43 +0000)]
Undef RELATIVE_PREFIX_NOT_LINKDIR for System V/eabi

From-SVN: r18705

26 years agopt.c (check_explicit_specialization): When reverting a static member function...
Mark Mitchell [Thu, 19 Mar 1998 09:08:53 +0000 (09:08 +0000)]
pt.c (check_explicit_specialization): When reverting a static member function...

* pt.c (check_explicit_specialization): When reverting a static
member function, also remove the `this' parameter from
last_function_parms.

From-SVN: r18704

26 years agoMore warning fixes...
Kaveh R. Ghazi [Thu, 19 Mar 1998 07:14:19 +0000 (07:14 +0000)]
More warning fixes...

        * final.c (shorten_branches): Add parentheses around +/- in
        operand of &.
        * flow.c (life_analysis): Wrap variable `i' in macro ELIMINABLE_REGS.

From-SVN: r18703

26 years agopt.c (tsubst_copy, CONST_DECL): Don't bother tsubsting a function context.
Jason Merrill [Thu, 19 Mar 1998 02:54:39 +0000 (02:54 +0000)]
pt.c (tsubst_copy, CONST_DECL): Don't bother tsubsting a function context.

* pt.c (tsubst_copy, CONST_DECL): Don't bother tsubsting
a function context.

From-SVN: r18702

26 years agodecl.c (store_bindings): Use free_binding_vecs.
Jason Merrill [Thu, 19 Mar 1998 02:41:03 +0000 (02:41 +0000)]
decl.c (store_bindings): Use free_binding_vecs.

* decl.c (store_bindings): Use free_binding_vecs.
(pop_from_top_level): Likewise.

From-SVN: r18701

26 years agoregclass.c (memory_move_secondary_cost): Wrap uses of SECONDARY_INPUT_RELOAD_CLASS...
Manfred Hollstein [Thu, 19 Mar 1998 00:16:37 +0000 (00:16 +0000)]
regclass.c (memory_move_secondary_cost): Wrap uses of SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS...

P
* regclass.c (memory_move_secondary_cost): Wrap uses of
SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS
with #ifdef tests.

From-SVN: r18699

26 years ago*** empty log message ***
Manfred Hollstein [Thu, 19 Mar 1998 00:16:36 +0000 (00:16 +0000)]
*** empty log message ***

From-SVN: r18698

26 years agom68k.md (addqi3): Fix typo gen_INT vs.
Manfred Hollstein [Thu, 19 Mar 1998 00:09:50 +0000 (00:09 +0000)]
m68k.md (addqi3): Fix typo gen_INT vs.


* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
* flow.c (life_analysis): #include <sys/types.h> to make sure
size_t is defined.
* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18697

26 years agom68k.md (addqi3): Fix typo gen_INT vs.
Manfred Hollstein [Thu, 19 Mar 1998 00:09:48 +0000 (00:09 +0000)]
m68k.md (addqi3): Fix typo gen_INT vs.


* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
* flow.c (life_analysis): #include <sys/types.h> to make sure
size_t is defined.
* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18696

26 years agom68k.md (addqi3): Fix typo gen_INT vs.
Manfred Hollstein [Thu, 19 Mar 1998 00:09:47 +0000 (00:09 +0000)]
m68k.md (addqi3): Fix typo gen_INT vs.


* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
* flow.c (life_analysis): #include <sys/types.h> to make sure
size_t is defined.
* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18695

26 years agom68k.md (addqi3): Fix typo gen_INT vs.
Manfred Hollstein [Thu, 19 Mar 1998 00:09:46 +0000 (00:09 +0000)]
m68k.md (addqi3): Fix typo gen_INT vs.

* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
* flow.c (life_analysis): #include <sys/types.h> to make sure
size_t is defined.
* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18694

26 years agofinal.c (insn_noperands): Change type to unsigned int.
Manfred Hollstein [Thu, 19 Mar 1998 00:01:20 +0000 (00:01 +0000)]
final.c (insn_noperands): Change type to unsigned int.

P
* final.c (insn_noperands): Change type to unsigned int.
(final_scan_insn): Likewise for noperands;
properly check operand number boundaries.

From-SVN: r18693

26 years agofinal.c (insn_noperands): Change type to unsigned int.
Manfred Hollstein [Thu, 19 Mar 1998 00:01:18 +0000 (00:01 +0000)]
final.c (insn_noperands): Change type to unsigned int.


* final.c (insn_noperands): Change type to unsigned int.
(final_scan_insn): Likewise for noperands;
properly check operand number boundaries.

From-SVN: r18692

26 years agoTestcase for reg-stack failure for testcase using fp conditional move.
Jim Wilson [Wed, 18 Mar 1998 16:28:32 +0000 (08:28 -0800)]
Testcase for reg-stack failure for testcase using fp conditional move.

* gcc.dg/980313-1.c: New test for fp conditional move on PPro.

From-SVN: r18679

26 years ago* gcc.dg/980312-1.c: Fix typo in -march command.
Jim Wilson [Wed, 18 Mar 1998 16:22:58 +0000 (16:22 +0000)]
* gcc.dg/980312-1.c: Fix typo in -march command.

From-SVN: r18678

26 years agoAlso fix op1's predicate, though extract_bit_field ignores it.
Richard Henderson [Wed, 18 Mar 1998 16:22:17 +0000 (08:22 -0800)]
Also fix op1's predicate, though extract_bit_field ignores it.

From-SVN: r18677

26 years agoalpha.md (extzv): Don't reject register operands.
Richard Henderson [Wed, 18 Mar 1998 16:21:14 +0000 (08:21 -0800)]
alpha.md (extzv): Don't reject register operands.

* alpha.md (extzv): Don't reject register operands.  Fix
mode of operand 1.

From-SVN: r18676

26 years agodbxout.c (dbxout_function_end): Fix last change.
Richard Henderson [Wed, 18 Mar 1998 16:14:28 +0000 (08:14 -0800)]
dbxout.c (dbxout_function_end): Fix last change.

* dbxout.c (dbxout_function_end): Fix last change.  The correct
predicate is ASM_OUTPUT_SECTION_NAME.

From-SVN: r18675

26 years agoFix bug reported by Toshi Morita.
Jim Wilson [Wed, 18 Mar 1998 15:45:35 +0000 (15:45 +0000)]
Fix bug reported by Toshi Morita.

* sh.md (ashlsi_c-1): Delete 3rd argument to gen_ashlsi_c.
(ashlsi): Use match_dup 1 instead of match_operand 2.

From-SVN: r18674

26 years agoCorrected spelling of my name
Bruce Korb [Wed, 18 Mar 1998 14:09:23 +0000 (14:09 +0000)]
Corrected spelling of my name

From-SVN: r18673

26 years agofold-const.c (operand_equal_for_comparison_p): See if equal when nop conversions...
Richard Kenner [Wed, 18 Mar 1998 13:45:28 +0000 (13:45 +0000)]
fold-const.c (operand_equal_for_comparison_p): See if equal when nop conversions are removed.

Wed Mar 18 13:46:07 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * fold-const.c (operand_equal_for_comparison_p): See if equal
        when nop conversions are removed.

From-SVN: r18672

26 years agoexpr.c (expand_expr, [...]): If have conditional move, don't use ORIGINAL_TARGET...
Richard Kenner [Wed, 18 Mar 1998 13:41:50 +0000 (13:41 +0000)]
expr.c (expand_expr, [...]): If have conditional move, don't use ORIGINAL_TARGET unless REG.

Wed Mar 18 13:42:01 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * expr.c (expand_expr, case COND_EXPR): If have conditional move,
        don't use ORIGINAL_TARGET unless REG.

From-SVN: r18671

26 years ago* netbsd.h (ASM_OUTPUT_ALIGN): Redefine.
J"orn Rennecke [Wed, 18 Mar 1998 12:52:07 +0000 (12:52 +0000)]
* netbsd.h (ASM_OUTPUT_ALIGN): Redefine.

From-SVN: r18670

26 years agoFix sparc-sun-solaris2 -O2 -fPIC bootstrap failure with gcse code.
Jim Wilson [Wed, 18 Mar 1998 12:45:22 +0000 (12:45 +0000)]
Fix sparc-sun-solaris2 -O2 -fPIC bootstrap failure with gcse code.

* loop.c (struct movable): New field move_insn_first.
(scan_loop): In consec sets code, set it.  Clear it otherwise.
(move_movables): In consec sets code, use it.  Copy REG_NOTES from
p to i1 only if i1 does not have REG_NOTES.  Delete obsolete ifdefed
out code.

From-SVN: r18669

26 years agodecl.c (make_implicit_typename): Only change the type of a TYPENAME_TYPE.
Jason Merrill [Wed, 18 Mar 1998 12:42:05 +0000 (12:42 +0000)]
decl.c (make_implicit_typename): Only change the type of a TYPENAME_TYPE.

* decl.c (make_implicit_typename): Only change the type of a
TYPENAME_TYPE.

From-SVN: r18668

26 years agosemantics.c: New file, containing routines to perform the semantic phase of parsing.
Mark Mitchell [Wed, 18 Mar 1998 10:52:04 +0000 (10:52 +0000)]
semantics.c: New file, containing routines to perform the semantic phase of parsing.

* semantics.c: New file, containing routines to perform the
semantic phase of parsing.
* parse.y: Use it.
* pt.c (tsubst_expr): Likewise.
* cp-tree.h: Declare the various functions in semantics.c.
Provide macros to access _STMT tree nodes.
* cp-tree.def: Add ASM_STMT tree node.
* Makefile.in, Make-lang.in: Add dependencies on and for
semantics.c.

From-SVN: r18658

26 years agortl.c (read_rtx): Fall back on homebrew atoll if HOST_WIDE_INT is large...
Richard Henderson [Wed, 18 Mar 1998 09:55:53 +0000 (01:55 -0800)]
rtl.c (read_rtx): Fall back on homebrew atoll if HOST_WIDE_INT is large...

        * rtl.c (read_rtx): Fall back on homebrew atoll if HOST_WIDE_INT
        is large, and the system doesn't provide atoll or atoq.
        (atoll): New.
        * alpha/xm-vms.h (HAVE_ATOLL): Define.
        Reported by Klaus Kaempf <kkaempf@progis.de>.

From-SVN: r18657

26 years agoMakefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file...
Dave Love [Wed, 18 Mar 1998 08:51:01 +0000 (08:51 +0000)]
Makefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file since /dev/null loses with bash...

1998-03-18  Dave Love  <d.love@dl.ac.uk>
* Makefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a
non-existent file since /dev/null loses with bash 2.0/autoconf 2.12.

From-SVN: r18656

26 years ago($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file since...
Dave Love [Wed, 18 Mar 1998 08:39:32 +0000 (08:39 +0000)]
($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file since...

($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a
non-existent file since /dev/null loses with bash 2.0/autoconf 2.12.

From-SVN: r18655

26 years agoFix more warnings...
Kaveh R. Ghazi [Wed, 18 Mar 1998 07:18:06 +0000 (07:18 +0000)]
Fix more warnings...

        * c-lang.c (finish_file): Wrap variable `void_list_node' with macro
        test !ASM_OUTPUT_CONSTRUCTOR || !ASM_OUTPUT_DESTRUCTOR.
        * calls.c (emit_call_1): Wrap variable `already_popped' with macro
        test !ACCUMULATE_OUTGOING_ARGS.
        * collect2.c (write_c_file_glob): Wrap function definition in
        macro test !LD_INIT_SWITCH.
        * combine.c (try_combine): Wrap variables `cc_use' and
        `compare_mode' in macro test EXTRA_CC_MODES.
        * cpplib.c (do_ident): Remove unused variable `len'.
        (skip_if_group): Remove unused variables `at_beg_of_line' and
        `after_ident'.
        (cpp_get_token): Remove unused variable `dummy'.
        * dbxout.c (scope_labelno): Move static variable definition inside
        the one function scope where it is used.
        (dbxout_function_end): Wrap prototype and definition in
        macro test !NO_DBX_FUNCTION_END.
        * dwarf2out.c (add_subscript_info): Wrap variable `dimension_number'
        in macro test !MIPS_DEBUGGING_INFO.
        * expr.c (expand_builtin_setjmp): Move declaration of variable `i'
        into the scope where it is used.  Wrap empty else-statement body
        in braces.
        * fix-header.c: Fix typo in comment.
        (inf_skip_spaces): Cast results of INF_UNGET to (void).
        (check_protection, main): Likewise.
        * flow.c (find_basic_blocks_1): Remove dangling comment text.
        * function.c (contains): Wrap prototype and definition in macro
        test HAVE_prologue || HAVE_epilogue.
        (fixup_var_refs_1): Remove unused variable `width'.
        * gen-protos.c (main): Remove unused variable `optr'.
        * haifa-sched.c (debug_control_flow): Remove unused variable `j'.
        * libgcc2.c (__udiv_w_sdiv): Provide dummy return value of 0.
        (__sjpopnthrow): Remove unused variable `jmpbuf'.
        (__throw): Remove unused variable `val'.
        * protoize.c: Check for a previously existing definition before
        defining *_OK macros.
        * scan-decls.c (scan_decls): Remove unused variable `old_written'.

From-SVN: r18654

26 years ago* pt.c (push_template_decl): Only check primary templates.
Jason Merrill [Wed, 18 Mar 1998 02:30:09 +0000 (02:30 +0000)]
* pt.c (push_template_decl): Only check primary templates.

From-SVN: r18653

26 years agopt.c (check_explicit_specialization): Complain about default args in explicit special...
Jason Merrill [Wed, 18 Mar 1998 01:07:57 +0000 (01:07 +0000)]
pt.c (check_explicit_specialization): Complain about default args in explicit specialization.

* pt.c (check_explicit_specialization): Complain about default args
in explicit specialization.

From-SVN: r18652

26 years agoupdate
Jason Merrill [Wed, 18 Mar 1998 01:05:51 +0000 (20:05 -0500)]
update

From-SVN: r18651

26 years agoparse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator.
Jason Merrill [Wed, 18 Mar 1998 00:31:01 +0000 (00:31 +0000)]
parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator.

* parse.y (nomods_initdcl0): Also call cp_finish_decl for a
constructor_declarator.

From-SVN: r18650

26 years agoRegenerate.
Jim Wilson [Tue, 17 Mar 1998 17:14:11 +0000 (09:14 -0800)]
Regenerate.

From-SVN: r18649

26 years agoRegenerate.
Jim Wilson [Tue, 17 Mar 1998 16:48:45 +0000 (08:48 -0800)]
Regenerate.

From-SVN: r18648

26 years agotypeck2.c (build_x_arrow): Don't crash when an aggregate type has no overloaded opera...
Mark Mitchell [Tue, 17 Mar 1998 14:59:43 +0000 (14:59 +0000)]
typeck2.c (build_x_arrow): Don't crash when an aggregate type has no overloaded operator ->.

* typeck2.c (build_x_arrow): Don't crash when an aggregate type
has no overloaded operator ->.
* call.c (build_field_call): Don't crash when presented with a
field that is actually a nested type.
* decl.c (pushtag): Deal with friend class injection in local
classes.
* call.c (build_object_call): Don't crash if OBJ is a
pointer-to-member-function.

From-SVN: r18647

26 years agopt.c (push_template_decl): Complain about template with C linkage, anonymous template...
Jason Merrill [Tue, 17 Mar 1998 12:20:38 +0000 (12:20 +0000)]
pt.c (push_template_decl): Complain about template with C linkage, anonymous template class.

* pt.c (push_template_decl): Complain about template with C linkage,
anonymous template class.

From-SVN: r18646

26 years agoconfig-ml.in: After building symlink tree call make distclean if...
Manfred Hollstein [Tue, 17 Mar 1998 01:38:14 +0000 (01:38 +0000)]
config-ml.in: After building symlink tree call make distclean if...


* config-ml.in: After building symlink tree call make distclean
if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
to be the case for libiberty.
* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18645

26 years agoconfig-ml.in: After building symlink tree call make distclean if...
Manfred Hollstein [Tue, 17 Mar 1998 01:38:13 +0000 (01:38 +0000)]
config-ml.in: After building symlink tree call make distclean if...


* config-ml.in: After building symlink tree call make distclean
if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
to be the case for libiberty.
* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18644

26 years agoconfig-ml.in: After building symlink tree call make distclean if...
Manfred Hollstein [Tue, 17 Mar 1998 01:38:12 +0000 (01:38 +0000)]
config-ml.in: After building symlink tree call make distclean if...


* config-ml.in: After building symlink tree call make distclean
if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
to be the case for libiberty.
* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18643

26 years agoconfig-ml.in: After building symlink tree call make distclean if...
Manfred Hollstein [Tue, 17 Mar 1998 01:38:10 +0000 (01:38 +0000)]
config-ml.in: After building symlink tree call make distclean if...

P
* config-ml.in: After building symlink tree call make distclean
if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
to be the case for libiberty.
* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18642

26 years agoconfigure: When making link, also check the current directory.
H.J. Lu [Tue, 17 Mar 1998 01:24:55 +0000 (01:24 +0000)]
configure: When making link, also check the current directory.

8
* configure: When making link, also check the current
directory. The configure scripts may create one.

From-SVN: r18641

26 years agoconfigure: When making link, also check the current directory.
H.J. Lu [Tue, 17 Mar 1998 01:24:54 +0000 (01:24 +0000)]
configure: When making link, also check the current directory.

p
* configure: When making link, also check the current
directory. The configure scripts may create one.

From-SVN: r18640

26 years agoundo
Jason Merrill [Tue, 17 Mar 1998 00:20:08 +0000 (19:20 -0500)]
undo

From-SVN: r18639

26 years agonew
Jason Merrill [Tue, 17 Mar 1998 00:19:43 +0000 (19:19 -0500)]
new

From-SVN: r18638

26 years agoclass.c (pushclass): Only use the mi_matrix stuff #ifdef MI_MATRIX.
Jason Merrill [Tue, 17 Mar 1998 00:03:43 +0000 (00:03 +0000)]
class.c (pushclass): Only use the mi_matrix stuff #ifdef MI_MATRIX.

* class.c (pushclass): Only use the mi_matrix stuff #ifdef MI_MATRIX.
* search.c: Likewise.
* lex.c (do_pending_defargs): Only call
maybe_{begin,end}_member_template_processing for FUNCTION_DECLs.
* parse.y (initdcl0_innards): Move maybeasm back into initdcl0 et al.

From-SVN: r18637

26 years agofix
Jason Merrill [Mon, 16 Mar 1998 23:56:43 +0000 (18:56 -0500)]
fix

From-SVN: r18636

26 years agoNew testcase from H.J. Lu for PPro FP conditional move bug.
H.J. Lu [Mon, 16 Mar 1998 20:03:19 +0000 (20:03 +0000)]
New testcase from H.J. Lu for PPro FP conditional move bug.

* gcc.dg/980312-1.c: Another new test for fp on PPro.

From-SVN: r18633

26 years ago* vax.h (ADDR_VEC_ALIGN): Define.
J"orn Rennecke [Mon, 16 Mar 1998 16:47:30 +0000 (16:47 +0000)]
* vax.h (ADDR_VEC_ALIGN): Define.

From-SVN: r18632

26 years agoEnsure sum from SDA is 16-bit
Michael Meissner [Mon, 16 Mar 1998 15:35:24 +0000 (15:35 +0000)]
Ensure sum from SDA is 16-bit

From-SVN: r18631

26 years agoFix off by 1 error in handling multilibs
Michael Meissner [Mon, 16 Mar 1998 13:06:49 +0000 (13:06 +0000)]
Fix off by 1 error in handling multilibs

From-SVN: r18630

26 years agoPatch from Ingolf Kock to fix -m68060 problems.
Jim Wilson [Mon, 16 Mar 1998 12:57:02 +0000 (12:57 +0000)]
Patch from Ingolf Kock to fix -m68060 problems.

* config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}.

From-SVN: r18629

26 years ago* minor update in posting address
Andrew Macleod [Mon, 16 Mar 1998 12:55:45 +0000 (12:55 +0000)]
* minor update in posting address

From-SVN: r18628

26 years agosparc.md: Add calls to 'in_same_eh_region' in 4 peepholes involving calls and...
Andrew Macleod [Mon, 16 Mar 1998 12:52:33 +0000 (12:52 +0000)]
sparc.md: Add calls to 'in_same_eh_region' in 4 peepholes involving calls and...

* config/sparc/sparc.md: Add calls to 'in_same_eh_region' in 4
peepholes involving calls and unconditional branches.

From-SVN: r18627

26 years agogenpeep.c (main): Add "except.h" to include file list in generated file insn-peep.c.
Andrew Macleod [Mon, 16 Mar 1998 12:52:09 +0000 (12:52 +0000)]
genpeep.c (main): Add "except.h" to include file list in generated file insn-peep.c.

* genpeep.c (main): Add "except.h" to include file list in generated
file insn-peep.c.

From-SVN: r18626

26 years agofinal.c (final): Initialize the table indicating which instructions belong in which...
Andrew Macleod [Mon, 16 Mar 1998 12:51:56 +0000 (12:51 +0000)]
final.c (final): Initialize the table indicating which instructions belong in which exception region.

* final.c (final): Initialize the table indicating which instructions
belong in which exception region.

From-SVN: r18625

26 years agoexcept.c (insn_eh_region, [...]): New static variables.
Andrew Macleod [Mon, 16 Mar 1998 12:51:39 +0000 (12:51 +0000)]
except.c (insn_eh_region, [...]): New static variables.

* except.c (insn_eh_region, maximum_uid): New static variables.
(set_insn_eh_region): New static function to set region numbers.
(free_insn_eh_region): New function to free EH region table.
(init_insn_eh_region): New function to initialize EH region table.
(in_same_eh_region): New function used to determine if two rtl
instructions are in the same exception region or not.

From-SVN: r18624

26 years agoexcept.h (in_same_eh_region): New prototype.
Andrew Macleod [Mon, 16 Mar 1998 12:51:14 +0000 (12:51 +0000)]
except.h (in_same_eh_region): New prototype.

* except.h (in_same_eh_region): New prototype.
(free_insn_eh_region, init_insn_eh_region): New prototypes.

From-SVN: r18623

26 years agoexcept.h (in_same_eh_region): New prototype.
Andrew Macleod [Mon, 16 Mar 1998 12:50:46 +0000 (12:50 +0000)]
except.h (in_same_eh_region): New prototype.

* except.h (in_same_eh_region): New prototype.
(free_insn_eh_region, init_insn_eh_region): New prototypes.
* except.c (insn_eh_region, maximum_uid): New static variables.
(set_insn_eh_region): New static function to set region numbers.
(free_insn_eh_region): New function to free EH region table.
(init_insn_eh_region): New function to initialize EH region table.
(in_same_eh_region): New function used to determine if two rtl
instructions are in the same exception region or not.
* final.c (final): Initialize the table indicating which instructions
belong in which exception region.
* genpeep.c (main): Add "except.h" to include file list in generated
file insn-peep.c.
* config/sparc/sparc.md: Add calls to 'in_same_eh_region' in 4
peepholes involving calls and unconditional branches.

From-SVN: r18622

26 years agoChange MEMORY_MOVE_COST defs and uses to be able to take register class into account.
Ken Raeburn [Mon, 16 Mar 1998 11:56:25 +0000 (11:56 +0000)]
Change MEMORY_MOVE_COST defs and uses to be able to take register class into account.

Change MEMORY_MOVE_COST defs and uses to be able to take register class into
account.  Change mips def to actually do so, others to just ignore extra args.
Doc changes too.

From-SVN: r18621

26 years ago* parse.y: Deal with CONSTRUCTORS in new_initializers.
Mark Mitchell [Mon, 16 Mar 1998 11:46:07 +0000 (11:46 +0000)]
* parse.y: Deal with CONSTRUCTORS in new_initializers.

From-SVN: r18620

26 years agoInstructions and patches for building GNAT with EGCS.
Jim Wilson [Mon, 16 Mar 1998 11:19:03 +0000 (11:19 +0000)]
Instructions and patches for building GNAT with EGCS.

* README.gnat: New file.

From-SVN: r18619

26 years agopt.c (tsubst_copy): Deal with BIND_EXPR in a way that more closely mimics the behavio...
Mark Mitchell [Mon, 16 Mar 1998 10:54:48 +0000 (10:54 +0000)]
pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more closely mimics the behavior in parse.y.

* pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more
closely mimics the behavior in parse.y.
(tsubst_expr): Return the resuting BLOCK when making a tsubst'ing
into a compound statement.

From-SVN: r18618

26 years agom68k.c: Include <stdlib.h> for atoi.
Andreas Schwab [Mon, 16 Mar 1998 02:16:43 +0000 (02:16 +0000)]
m68k.c: Include <stdlib.h> for atoi.

* config/m68k/m68k.c: Include <stdlib.h> for atoi.  Include
"recog.h" for offsettable_memref_p.
(legitimize_pic_address): Remove unused variable `offset'.
(notice_update_cc): Change return type to void.  Add default label
to switch.
(standard_68881_constant_p): Remove unused variable mode.
(print_operand): Define local variable i only if SUPPORT_SUN_FPA.
(const_int_cost): Explicitly declare as returning int.
(output_dbcc_and_branch): Change return type to void.
* config/m68k/linux.h, config/m68k/m68k.md, config/m68k/m68k.c,
config/m68k/m68k.h: Replace gen_rtx (XXX, ...) with gen_rtx_XXX
(...).  Use GEN_INT instead of gen_rtx_CONST_INT.

From-SVN: r18617

26 years agoBump for snapshot
Jeffrey A Law [Sun, 15 Mar 1998 22:30:46 +0000 (15:30 -0700)]
Bump for snapshot

From-SVN: r18611

26 years agonew
Jason Merrill [Sun, 15 Mar 1998 19:54:36 +0000 (14:54 -0500)]
new

From-SVN: r18596

26 years agocp-tree.h (TEMPLATE_PARMS_FOR_INLINE): New macro.
Jason Merrill [Sun, 15 Mar 1998 19:53:08 +0000 (14:53 -0500)]
cp-tree.h (TEMPLATE_PARMS_FOR_INLINE): New macro.

* cp-tree.h (TEMPLATE_PARMS_FOR_INLINE): New macro.
* pt.c (inline_needs_template_parms): New fn.
(original_template): New fn.
(push_inline_template_parms_recursive): New fn.
(maybe_begin_member_template_processing): Use them.
(maybe_end_member_template_processing): Likewise.
(is_member_or_friend_template): Rename to is_member_template.
Member functions of local classes are never member templates.
* lex.c (do_identifier): Handle TEMPLATE_DECL that was
added in the class scope to catch redefinition error.
* pt.c (reduce_template_parm_level): Also copy
the DECL_TEMPLATE_PARMS field.

From-SVN: r18595

26 years agopt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a reduced-level template type...
Mark Mitchell [Sun, 15 Mar 1998 10:57:04 +0000 (10:57 +0000)]
pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a reduced-level template type parameter.

* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
        reduced-level template type parameter.

From-SVN: r18591

26 years agocp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
Manfred Hollstein [Sun, 15 Mar 1998 03:28:07 +0000 (03:28 +0000)]
cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.

d
* cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
(DECL_NEEDS_FINAL_OVERRIDER_P): New macro.
* class.c (override_one_vtable): Set DECL_NEEDS_FINAL_OVERRIDER_P.
* decl.c (duplicate_decls): Propagate it.
* typeck2.c (abstract_virtuals_error): Use two loops to emit
abstract virtual functions and virtual functions which need a
final overrider separately.

From-SVN: r18588

26 years agocp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
Manfred Hollstein [Sun, 15 Mar 1998 03:28:04 +0000 (03:28 +0000)]
cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.

a
* cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
(DECL_NEEDS_FINAL_OVERRIDER_P): New macro.
* class.c (override_one_vtable): Set DECL_NEEDS_FINAL_OVERRIDER_P.
* decl.c (duplicate_decls): Propagate it.
* typeck2.c (abstract_virtuals_error): Use two loops to emit
abstract virtual functions and virtual functions which need a
final overrider separately.

From-SVN: r18587

26 years agocp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
Manfred Hollstein [Sun, 15 Mar 1998 03:28:01 +0000 (03:28 +0000)]
cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.


* cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
(DECL_NEEDS_FINAL_OVERRIDER_P): New macro.
* class.c (override_one_vtable): Set DECL_NEEDS_FINAL_OVERRIDER_P.
* decl.c (duplicate_decls): Propagate it.
* typeck2.c (abstract_virtuals_error): Use two loops to emit
abstract virtual functions and virtual functions which need a
final overrider separately.

From-SVN: r18586

26 years agoupdate
Jason Merrill [Sun, 15 Mar 1998 00:16:49 +0000 (19:16 -0500)]
update

From-SVN: r18585

26 years agoInitial revision
Jeff Law [Sat, 14 Mar 1998 10:55:20 +0000 (03:55 -0700)]
Initial revision

From-SVN: r18557

26 years agoInitial revision
Jeff Law [Sat, 14 Mar 1998 10:49:19 +0000 (03:49 -0700)]
Initial revision

From-SVN: r18554

26 years agom68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range check for 'M' constraint.
Andreas Schwab [Fri, 13 Mar 1998 02:33:38 +0000 (02:33 +0000)]
m68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range check for 'M' constraint.

* config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range
check for 'M' constraint.

From-SVN: r18523

26 years agoDon't accept GNU C macro varargs extension when pedantic.
Jim Wilson [Thu, 12 Mar 1998 14:49:30 +0000 (14:49 +0000)]
Don't accept GNU C macro varargs extension when pedantic.

* cccp.c (create_definition): If pedantic, call pedwarn for macro
varargs feature.

From-SVN: r18522

26 years agoi386.c (ix86_logical_operator): New function.
Bernd Schmidt [Thu, 12 Mar 1998 12:43:42 +0000 (05:43 -0700)]
i386.c (ix86_logical_operator): New function.

        * i386.c (ix86_logical_operator): New function.
        (split_di): Ensure that when a MEM is split, the resulting MEMs have
        SImode.
        * i386.md (anddi3, xordi3, iordi3): New patterns. Add a define_split
        to implement them.

From-SVN: r18514

26 years agoWarning fixes, resulting in the addition of a new target macro:
Kaveh R. Ghazi [Thu, 12 Mar 1998 12:32:24 +0000 (12:32 +0000)]
Warning fixes, resulting in the addition of a new target macro:

        * tm.texi (DEFAULT_RTX_COSTS): Document new macro.
        * arm.h (DEFAULT_RTX_COSTS): Define instead of RTX_COSTS.
        * cse.c (rtx_cost): Provide a default case in an enumeration
        switch, and call DEFAULT_RTX_COSTS if it's defined.

Co-Authored-By: Nick Clifton <nickc@cygnus.com>
Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
From-SVN: r18513

26 years agobasic-block.h (compute_preds_succs): Change return type in prototype to void.
Manfred Hollstein [Thu, 12 Mar 1998 01:04:46 +0000 (01:04 +0000)]
basic-block.h (compute_preds_succs): Change return type in prototype to void.

* basic-block.h (compute_preds_succs): Change return type in
prototype to void.
* flow.c (compute_preds_succs): Likewise in function definition.
* regmove.c (find_matches): Cast char used as array index to unsigned char
to supress warning.

From-SVN: r18508

26 years agobasic-block.h (compute_preds_succs): Change return type in prototype to void.
Manfred Hollstein [Thu, 12 Mar 1998 01:04:45 +0000 (01:04 +0000)]
basic-block.h (compute_preds_succs): Change return type in prototype to void.

d
* basic-block.h (compute_preds_succs): Change return type in
prototype to void.
* flow.c (compute_preds_succs): Likewise in function definition.
* regmove.c (find_matches): Cast char used as array index to unsigned char
to supress warning.

From-SVN: r18507

26 years agobasic-block.h (compute_preds_succs): Change return type in prototype to void.
Manfred Hollstein [Thu, 12 Mar 1998 01:04:43 +0000 (01:04 +0000)]
basic-block.h (compute_preds_succs): Change return type in prototype to void.

a
* basic-block.h (compute_preds_succs): Change return type in
prototype to void.
* flow.c (compute_preds_succs): Likewise in function definition.
* regmove.c (find_matches): Cast char used as array index to unsigned char
to supress warning.

From-SVN: r18506

26 years agobasic-block.h (compute_preds_succs): Change return type in prototype to void.
Manfred Hollstein [Thu, 12 Mar 1998 01:04:42 +0000 (01:04 +0000)]
basic-block.h (compute_preds_succs): Change return type in prototype to void.


* basic-block.h (compute_preds_succs): Change return type in
prototype to void.
* flow.c (compute_preds_succs): Likewise in function definition.
* regmove.c (find_matches): Cast char used as array index to unsigned char
to supress warning.

From-SVN: r18505

26 years agotypeck.c (build_binary_op_nodefault): Correctly place parens around && and || in...
Manfred Hollstein [Thu, 12 Mar 1998 01:01:10 +0000 (01:01 +0000)]
typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in expression.


* typeck.c (build_binary_op_nodefault): Correctly place parens around
&& and || in expression.

From-SVN: r18504