platform/upstream/gcc.git
25 years agodecl.c (duplicate_decls): Don't complain about different exceptions from an internal...
Jason Merrill [Tue, 25 Aug 1998 01:59:48 +0000 (01:59 +0000)]
decl.c (duplicate_decls): Don't complain about different exceptions from an internal decl even if pedantic.

* decl.c (duplicate_decls): Don't complain about different
exceptions from an internal decl even if pedantic.

From-SVN: r21959

25 years agotypeck.c (convert_for_assignment): Converting from pm of vbase to derived is an error...
Jason Merrill [Tue, 25 Aug 1998 01:48:47 +0000 (01:48 +0000)]
typeck.c (convert_for_assignment): Converting from pm of vbase to derived is an error, not a sorry.

* typeck.c (convert_for_assignment): Converting from pm of vbase
to derived is an error, not a sorry.
* call.c (build_over_call): Use convert_pointer_to_real for 'this'.
* class.c (fixed_type_or_null): Rename from
resolves_to_fixed_type_p.  Return the dynamic type of the
expression, if fixed, or null.
(resolves_to_fixed_type_p): Use it.  Return 0 if the dynamic type
does not match the static type.
(build_vbase_path): Rename 'alias_this' to 'nonnull'.  Use
resolves_to_fixed_type_p again.

From-SVN: r21958

25 years agoDaily bump.
Jeff Law [Tue, 25 Aug 1998 00:45:32 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21956

25 years agoloop.c (scan_loop): Allocate some slop to handle pseudos generated by move_movables.
David S. Miller [Tue, 25 Aug 1998 00:37:12 +0000 (00:37 +0000)]
loop.c (scan_loop): Allocate some slop to handle pseudos generated by move_movables.

* loop.c (scan_loop): Allocate some slop to handle pseudos
generated by move_movables.
(load_mems_and_recount_loop_regs_set): Honor AVOID_CC_MODE_COPIES
here too.

From-SVN: r21955

25 years ago* tree.def (DECL_RESULT): Correct documentation.
Jim Wilson [Mon, 24 Aug 1998 19:46:49 +0000 (19:46 +0000)]
* tree.def (DECL_RESULT): Correct documentation.

From-SVN: r21954

25 years agopt.c (tsubst_decl): Move special case code for dealing with tricky friend templates...
Mark Mitchell [Mon, 24 Aug 1998 19:44:48 +0000 (19:44 +0000)]
pt.c (tsubst_decl): Move special case code for dealing with tricky friend templates here from ...

* pt.c (tsubst_decl): Move special case code for dealing with
tricky friend templates here from ...
(regenerate_decl_from_template): Here.

From-SVN: r21953

25 years agoreload1.c (reload_reg_free_before_p): New argument EQUIV; Changed all callers.
J"orn Rennecke [Mon, 24 Aug 1998 17:19:55 +0000 (17:19 +0000)]
reload1.c (reload_reg_free_before_p): New argument EQUIV; Changed all callers.

* reload1.c (reload_reg_free_before_p): New argument EQUIV;  Changed
all callers.  Abort for RELOAD_FOR_INSN.  RELOAD_FOR_OUTADDR_ADDR:
conflicts will all RELOAD_FOR_OUTPUT reloads.

From-SVN: r21952

25 years agoreload1.c (reload_cse_regs_1): When deleting a no-op move that loads the function...
J"orn Rennecke [Mon, 24 Aug 1998 17:03:34 +0000 (17:03 +0000)]
reload1.c (reload_cse_regs_1): When deleting a no-op move that loads the function result, substitute with a USE.

* reload1.c (reload_cse_regs_1): When deleting a no-op move that
loads the function result, substitute with a USE.

From-SVN: r21951

25 years agodecl.c (start_decl): Remove redundant linkage check.
Jason Merrill [Mon, 24 Aug 1998 16:31:38 +0000 (12:31 -0400)]
decl.c (start_decl): Remove redundant linkage check.

* decl.c (start_decl): Remove redundant linkage check.
* typeck.c (c_expand_return): Handle the case that valtype
is wider than the functions return type.

From-SVN: r21950

25 years ago930326-1.x: Fix typo.
Jeffrey A Law [Mon, 24 Aug 1998 15:39:58 +0000 (15:39 +0000)]
930326-1.x: Fix typo.

Mon Aug 24 16:38:52 1998  Jeffrey A Law  (law@cygnus.com)
        * gcc.c-torture/compile/930326-1.x: Fix typo.

From-SVN: r21949

25 years agoFix typo.
Nick Clifton [Mon, 24 Aug 1998 14:21:27 +0000 (14:21 +0000)]
Fix typo.

From-SVN: r21948

25 years agors6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64 when testing LEGITIMATE_IND...
David Edelsohn [Mon, 24 Aug 1998 12:32:03 +0000 (12:32 +0000)]
rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64 when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.

        * rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64
        when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.
        (LEGITIMIZE_ADDRESS): Use TARGET_POWERPC64 for INDEXED fixup.
        * rs6000.c (print_operand, case 'L'): Add UNITS_PER_WORD, not 4.
        (print_operand, cases 'O' and 'T'): Fix typos in lossage strings.
        * rs6000.md (fix_truncdfsi2_store): Remove %w from non-CONST_INT
        operand.
        (movdf_softfloat32, movdf_hardfloat64, movdf_softfloat64): Change
        'o' to 'm' for GPR variant constraints.

From-SVN: r21947

25 years ago* pt.c (process_template_parm): Undo previous change.
Mark Mitchell [Mon, 24 Aug 1998 12:07:58 +0000 (12:07 +0000)]
* pt.c (process_template_parm): Undo previous change.

From-SVN: r21946

25 years agocp-tree.h (CLASS_TYPE_P): New macro.
Mark Mitchell [Mon, 24 Aug 1998 12:04:39 +0000 (12:04 +0000)]
cp-tree.h (CLASS_TYPE_P): New macro.

* cp-tree.h (CLASS_TYPE_P): New macro.
* decl.c (grokdeclarator): Use it instead of IS_AGGR_TYPE.

From-SVN: r21945

25 years ago*** empty log message ***
Benjamin Kosnik [Mon, 24 Aug 1998 11:57:29 +0000 (11:57 +0000)]
*** empty log message ***

From-SVN: r21944

25 years agocp-tree.h: Declare.
Benjamin Kosnik [Mon, 24 Aug 1998 11:57:09 +0000 (11:57 +0000)]
cp-tree.h: Declare.


1998-08-24  Benjamin Kosnik  <bkoz@cygnus.com>
* cp-tree.h: Declare.
* pt.c (decl_template_parm_p): New function.
* decl.c (pushdecl): Check decls for redeclaring template parms.
(xref_tag): Make redeclaration an error, print decl.
* decl2.c (grokfield): Check field_decls for redeclaration as well.

From-SVN: r21943

25 years agocp-tree.h: Declare.
Benjamin Kosnik [Mon, 24 Aug 1998 11:57:04 +0000 (11:57 +0000)]
cp-tree.h: Declare.

h
1998-08-24  Benjamin Kosnik  <bkoz@cygnus.com>
* cp-tree.h: Declare.
* pt.c (decl_template_parm_p): New function.
* decl.c (pushdecl): Check decls for redeclaring template parms.
(xref_tag): Make redeclaration an error, print decl.
* decl2.c (grokfield): Check field_decls for redeclaration as well.

From-SVN: r21942

25 years agocp-tree.h: Declare.
Benjamin Kosnik [Mon, 24 Aug 1998 11:57:02 +0000 (11:57 +0000)]
cp-tree.h: Declare.


1998-08-24  Benjamin Kosnik  <bkoz@cygnus.com>
* cp-tree.h: Declare.
* pt.c (decl_template_parm_p): New function.
* decl.c (pushdecl): Check decls for redeclaring template parms.
(xref_tag): Make redeclaration an error, print decl.
* decl2.c (grokfield): Check field_decls for redeclaration as well.

From-SVN: r21941

25 years agocomment
Jason Merrill [Mon, 24 Aug 1998 11:27:27 +0000 (07:27 -0400)]
comment

From-SVN: r21940

25 years ago* parse.y (primary): Fix up the type of string constants.
Jason Merrill [Mon, 24 Aug 1998 11:25:21 +0000 (11:25 +0000)]
* parse.y (primary): Fix up the type of string constants.

From-SVN: r21939

25 years agotypeck.c (convert_for_initialization): Move check for odd uses of NULL to avoid dupli...
Mark Mitchell [Mon, 24 Aug 1998 11:12:27 +0000 (11:12 +0000)]
typeck.c (convert_for_initialization): Move check for odd uses of NULL to avoid duplicate warnings.

* typeck.c (convert_for_initialization): Move check for odd uses
of NULL to avoid duplicate warnings.

From-SVN: r21938

25 years agoUpdate Bug Reporting to allow compression, and to recommend --save-temps
Martin v. Löwis [Mon, 24 Aug 1998 11:10:03 +0000 (11:10 +0000)]
Update Bug Reporting to allow compression, and to recommend --save-temps

From-SVN: r21937

25 years agoOpps.
Jeff Law [Mon, 24 Aug 1998 11:09:10 +0000 (05:09 -0600)]
Opps.

From-SVN: r21936

25 years ago* loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.
Jeffrey A Law [Mon, 24 Aug 1998 11:06:09 +0000 (11:06 +0000)]
* loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.

From-SVN: r21935

25 years ago* h8300.h (STRIP_NAME_ENCODING): Fix typo.
Jeffrey A Law [Mon, 24 Aug 1998 10:26:45 +0000 (10:26 +0000)]
* h8300.h (STRIP_NAME_ENCODING): Fix typo.

From-SVN: r21934

25 years agosparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect when the source and...
Jeffrey A Law [Mon, 24 Aug 1998 10:01:01 +0000 (10:01 +0000)]
sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect when the source and destination overlap.

        * sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect
        when the source and destination overlap.

From-SVN: r21933

25 years agostmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global...
Jeff Law [Mon, 24 Aug 1998 09:27:39 +0000 (03:27 -0600)]
stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global type.

8
        * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
        clash with global type.

From-SVN: r21932

25 years agostmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global...
Jeff Law [Mon, 24 Aug 1998 09:27:36 +0000 (03:27 -0600)]
stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global type.


        * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
        clash with global type.

From-SVN: r21931

25 years ago`
Robert Lipe [Mon, 24 Aug 1998 08:51:17 +0000 (08:51 +0000)]
`
980310-1.C eb71.C : replace hardcoded "-typedef unsigned int size_t"
with "typedef __SIZE_TYPE__ size_t".

From-SVN: r21930

25 years ago/
Robert Lipe [Mon, 24 Aug 1998 08:51:16 +0000 (08:51 +0000)]
/
980310-1.C eb71.C : replace hardcoded "-typedef unsigned int size_t"
with "typedef __SIZE_TYPE__ size_t".

From-SVN: r21929

25 years agoc-common.c (combine_strings): Also set TREE_READONLY.
Jason Merrill [Mon, 24 Aug 1998 02:08:45 +0000 (22:08 -0400)]
c-common.c (combine_strings): Also set TREE_READONLY.

* c-common.c (combine_strings): Also set TREE_READONLY.
Change warn_write_strings to flag_const_strings.
* c-decl.c, c-tree.h: Likewise.
cp/
* tree.c (lvalue_type): Fix for arrays.
* typeck.c (string_conv_p): New fn.
(convert_for_assignment): Use it.
(build_unary_op): Use lvalue_type.
* call.c (standard_conversion, convert_like): Use string_conv_p.
(add_function_candidate): Use lvalue_type.
* cvt.c (convert_to_reference): Likewise.
* decl2.c (lang_decode_option): Ignore -traditional.
* decl.c (init_decl_processing): flag_writable_strings inhibits
flag_const_strings.
* lang-options.h (lang_options): Add fconst-strings to the list
of valid options.
* decl2.c (lang_f_options, lang_decode_option): Likewise.

From-SVN: r21928

25 years ago* search.c (my_tree_cons): Reimplement.
Martin v. Löwis [Mon, 24 Aug 1998 02:05:51 +0000 (22:05 -0400)]
* search.c (my_tree_cons): Reimplement.

From-SVN: r21927

25 years agolex.c (real_yylex): Don't warn about long long constants if we're allowing long long.
Jason Merrill [Mon, 24 Aug 1998 02:00:27 +0000 (22:00 -0400)]
lex.c (real_yylex): Don't warn about long long constants if we're allowing long long.

        * lex.c (real_yylex): Don't warn about long long constants if
        we're allowing long long.
* decl.c (pushdecl): Use IDENTIFIER_NAMESPACE_VALUE instead of
accessing bindings directly.
* lang-specs.h: Remove __HONOR_STD.
* inc/exception, inc/new, inc/new.h, inc/typeinfo: Likewise.

From-SVN: r21926

25 years ago* fixinc.irix: Add curses.h handling from fixinc.wrap.
Jason Merrill [Mon, 24 Aug 1998 00:54:37 +0000 (00:54 +0000)]
* fixinc.irix: Add curses.h handling from fixinc.wrap.

From-SVN: r21923

25 years agoDaily bump.
Jeff Law [Mon, 24 Aug 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21921

25 years agoFix thinko in previous commit.
David S. Miller [Sun, 23 Aug 1998 23:03:03 +0000 (16:03 -0700)]
Fix thinko in previous commit.

From-SVN: r21920

25 years agosparc.c (sparc_emit_set_const32): If outputting a CONST_INT...
David S. Miller [Sun, 23 Aug 1998 19:48:11 +0000 (19:48 +0000)]
sparc.c (sparc_emit_set_const32): If outputting a CONST_INT...

* config/sparc/sparc.c (sparc_emit_set_const32): If outputting a
CONST_INT, not a symbolic reference, don't use a HIGH/LO_SUM
sequence, use SET/IOR instead so CSE can see it.
* config/sparc/sparc.md (movhi_const64_special,
movsi_const64_special): New patterns necessitated by that change.
(movhi_high): Remove.
(movhi_lo_sum): Change to match an IOR.
(movdf_insn_sp32): Test TARGET_V9 not TARGET_ARCH64.
(movdf_insn_v9only): New pattern for when V9 but not ARCH64.
(movdf_insn_sp64): Test both TARGET_V9 and TARGET_ARCH64.
(movdf splits): Allow when not V9 or when not ARCH64 and integer
registers are involved.
(snesi_zero_extend split): Remove reload_completed test.
(unnamed plus and minus zero_extend sidi splits): Add it.

From-SVN: r21919

25 years agoold-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.
Mark Mitchell [Sun, 23 Aug 1998 15:29:09 +0000 (15:29 +0000)]
old-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.

* lib/old-dejagnu.exp: Make it possible to XFAIL a test that
causes an ICE.

From-SVN: r21918

25 years agoold-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.
Mark Mitchell [Sun, 23 Aug 1998 15:21:34 +0000 (15:21 +0000)]
old-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.

* lib/old-dejagnu.exp: Make it possible to XFAIL a test that
causes an ICE.

From-SVN: r21917

25 years agodecl.c (grokdeclarator): Complain about in-class initialization of aggregates and...
Mark Mitchell [Sun, 23 Aug 1998 14:40:50 +0000 (14:40 +0000)]
decl.c (grokdeclarator): Complain about in-class initialization of aggregates and/or references.

* decl.c (grokdeclarator): Complain about in-class initialization
of aggregates and/or references.
* pt.c (process_template_parm): Clear IS_AGGR_TYPE for
TEMPLATE_TYPE_PARMs.

From-SVN: r21916

25 years agoiomanip.h: Use __extension__ for `extern' explicit template instantiations.
Mark Mitchell [Sun, 23 Aug 1998 12:47:24 +0000 (12:47 +0000)]
iomanip.h: Use __extension__ for `extern' explicit template instantiations.

* iomanip.h: Use __extension__ for `extern' explicit template
instantiations.
* sinst.cc: Don't explicitly instantiation string_char_traits<char>.
* cinst.cc: Likewiwse, for complex<float>, complex<double>,
complex<long double>.
* extend.texi: Remove description of extension to explicit
instantiation that is now endorsed by standard C++.
* decl2.c (grok_array_decl): Add comment.
(mark_used): Don't instantiate an explicit instantiation.
* friend.c (make_friend_class): Remove bogus comment.  Fix check
for partial specializations.
* pt.c (check_explicit_specialization): Don't
SET_DECL_EXPLICIT_INSTANTIATION here.
(mark_decl_instantiated): Or here.
(do_decl_instantiation): Do it here, instead.  Add checks for
duplicate explicit instantiations, etc.  Tidy.
(do_type_instantiation): Likewise.
(instantiate_decl): Improve comments.  Complain about explicit
instantiations where no definition is available.
* cp-tree.h (ansi_null_node): Remove.
* call.c (build_over_call): Warn about converting NULL to an
arithmetic type.
* cvt.c (build_expr_type_conversion): Likewise.  Use
null_ptr_cst_p instead of expanding it inline.
* decl.c (ansi_null_node): Remove.
(init_decl_processing): Make null_node always have integral type.
* except.c (build_throw): Warn about converting NULL to an
arithmetic type.
* lex.c (init_parse): Remove handling of ansi_null_node.
* pt.c (type_unification_real): Don't convert NULL to void* type.
* typeck.c (build_binary_op_nodefault): Fix NULL warnings.
(convert_for_assignment): Warn about converting NULL to an
arithmetic type.
(convert_for_initialization): Likewise.

From-SVN: r21915

25 years agoarc.c (arc_initialize_pic): Remove.
David S. Miller [Sun, 23 Aug 1998 10:43:54 +0000 (10:43 +0000)]
arc.c (arc_initialize_pic): Remove.

* config/arc/arc.c (arc_initialize_pic): Remove.
* config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
nothing on any platform and is invoked by no-one, it does not even
appear in the documentation.
* config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
* config/sparc/sparc.c (initialize_pic): Likewise.
(find_addr_reg): Remove this as well, no longer referenced after
my rewrite.

From-SVN: r21914

25 years agoDaily bump.
Jeff Law [Sun, 23 Aug 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21912

25 years agorecog.c (validate_replace_rtx_group): New function.
Jeff Law [Sat, 22 Aug 1998 23:21:24 +0000 (17:21 -0600)]
recog.c (validate_replace_rtx_group): New function.


        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21910

25 years agorecog.c (validate_replace_rtx_group): New function.
Jeff Law [Sat, 22 Aug 1998 23:21:23 +0000 (17:21 -0600)]
recog.c (validate_replace_rtx_group): New function.


        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21909

25 years agorecog.c (validate_replace_rtx_group): New function.
Jeff Law [Sat, 22 Aug 1998 23:21:19 +0000 (17:21 -0600)]
recog.c (validate_replace_rtx_group): New function.


        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21908

25 years agoloop.c (load_mems): Fix initializers.
Klaus-Georg Adams [Sat, 22 Aug 1998 22:32:55 +0000 (16:32 -0600)]
loop.c (load_mems): Fix initializers.


        * loop.c (load_mems): Fix initializers.

From-SVN: r21907

25 years agoloop.c (load_mems): Fix initializers.
Klaus-Georg Adams [Sat, 22 Aug 1998 22:32:53 +0000 (16:32 -0600)]
loop.c (load_mems): Fix initializers.

(
        * loop.c (load_mems): Fix initializers.

From-SVN: r21906

25 years agoFix thinko in this change.
David S. Miller [Sat, 22 Aug 1998 04:53:45 +0000 (21:53 -0700)]
Fix thinko in this change.

From-SVN: r21905

25 years agoexpmed.c (make_tree): Sign extend even if TREE_UNSIGNED...
David S. Miller [Sat, 22 Aug 1998 03:17:56 +0000 (03:17 +0000)]
expmed.c (make_tree): Sign extend even if TREE_UNSIGNED...

* expmed.c (make_tree) [CONST_INT]: Sign extend even if
TREE_UNSIGNED, when bitsize of type's mode is larger than
HOST_BITS_PER_WIDE_INT.

From-SVN: r21904

25 years agoDaily bump.
Jeff Law [Sat, 22 Aug 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21902

25 years agosparc.md (TFmode splits): Handle destination registers being referenced in the addres...
David S. Miller [Sat, 22 Aug 1998 00:11:24 +0000 (00:11 +0000)]
sparc.md (TFmode splits): Handle destination registers being referenced in the address correctly.

* config/sparc/sparc.md (TFmode splits): Handle destination
registers being referenced in the address correctly.

From-SVN: r21901

25 years agomemtst.c: Reduce size of array when STACK_SIZE is defined.
Jeffrey A Law [Fri, 21 Aug 1998 23:30:36 +0000 (23:30 +0000)]
memtst.c: Reduce size of array when STACK_SIZE is defined.

        * gcc.c-torture/unsorted/memtst.c: Reduce size of array when
        STACK_SIZE is defined.
        * gcc.c-torture/unsorted/stuct.c: Similarly.
Makes targets with 16bit address spaces happy.

From-SVN: r21900

25 years ago* gcc.c-torture/compile/980821-1.c: New test.
Jeffrey A Law [Fri, 21 Aug 1998 23:00:36 +0000 (23:00 +0000)]
* gcc.c-torture/compile/980821-1.c: New test.

From-SVN: r21899

25 years agotree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
Alexandre Petit-Bianco [Fri, 21 Aug 1998 19:32:21 +0000 (12:32 -0700)]
tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.


* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
   * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
  EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
  macros.
* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
  EXIT_BLOCK_EXPR.

From-SVN: r21898

25 years agotree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
Alexandre Petit-Bianco [Fri, 21 Aug 1998 19:32:19 +0000 (12:32 -0700)]
tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.


* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
   * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
  EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
  macros.
* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
  EXIT_BLOCK_EXPR.

From-SVN: r21897

25 years agotree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
Alexandre Petit-Bianco [Fri, 21 Aug 1998 19:32:18 +0000 (12:32 -0700)]
tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.


* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
   * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
  EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
  macros.
* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
  EXIT_BLOCK_EXPR.

From-SVN: r21896

25 years agotree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
Alexandre Petit-Bianco [Fri, 21 Aug 1998 19:32:16 +0000 (12:32 -0700)]
tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.


* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
   * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
  EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
  macros.
* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
  EXIT_BLOCK_EXPR.

From-SVN: r21895

25 years ago980526-2.c: Disable for targets with 16bit ints.
Jeff Law [Fri, 21 Aug 1998 02:15:12 +0000 (20:15 -0600)]
980526-2.c: Disable for targets with 16bit ints.

        * gcc.c-torture/980526-2.c: Disable for targets with 16bit ints.

From-SVN: r21894

25 years ago980526-2.c: Disable for targets with 16bit ints.
Jeff Law [Fri, 21 Aug 1998 02:15:11 +0000 (20:15 -0600)]
980526-2.c: Disable for targets with 16bit ints.


        * gcc.c-torture/980526-2.c: Disable for targets with 16bit ints.

From-SVN: r21893

25 years agoh8300.c (h8300_encode_label): Use '&' for tiny data items.
Jeffrey A Law [Fri, 21 Aug 1998 02:07:01 +0000 (02:07 +0000)]
h8300.c (h8300_encode_label): Use '&' for tiny data items.

        * h8300.c (h8300_encode_label): Use '&' for tiny data items.
        * h8300.h (TINY_DATA_NAME_P): Likewise.
        (STRIP_NAME_ENCODING): Handle '&'.

From-SVN: r21892

25 years agoDaily bump.
Jeff Law [Fri, 21 Aug 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21890

25 years agomn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the register (it could be...
Jeffrey A Law [Thu, 20 Aug 1998 23:48:14 +0000 (23:48 +0000)]
mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the register (it could be accessed via an outer SUBREG).

        * mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the
        register (it could be accessed via an outer SUBREG).
        (REG_OK_FOR_BASE_P): Likewwise.
        (GO_IF_LEGITIMATE_ADDRESS): Consistently use REGNO_OK_FOR_BASE_P.

From-SVN: r21889

25 years agooops
Jason Merrill [Thu, 20 Aug 1998 23:35:23 +0000 (19:35 -0400)]
oops

From-SVN: r21888

25 years agoremove.c (optimize_reg_copy_3): Abort instead of silently generating bogus rtl.
Jeffrey A Law [Thu, 20 Aug 1998 23:19:05 +0000 (23:19 +0000)]
remove.c (optimize_reg_copy_3): Abort instead of silently generating bogus rtl.

        * remove.c (optimize_reg_copy_3): Abort instead of silently generating
        bogus rtl.

From-SVN: r21887

25 years agojump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
Jeffrey A Law [Thu, 20 Aug 1998 18:45:48 +0000 (18:45 +0000)]
jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.

        * jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
Because it isn't inside a MEM on the PA.  Fixes 930628-1.c on the mainline
branch.

From-SVN: r21886

25 years agosparc.md (movtf_insn_sp32): All memory operands must be offsettable so the splits...
David S. Miller [Thu, 20 Aug 1998 18:39:29 +0000 (18:39 +0000)]
sparc.md (movtf_insn_sp32): All memory operands must be offsettable so the splits can be made.

* config/sparc/sparc.md (movtf_insn_sp32): All memory operands
must be offsettable so the splits can be made.

From-SVN: r21885

25 years agotree.c (search_tree, [...]): New fn.
Jason Merrill [Thu, 20 Aug 1998 17:41:43 +0000 (17:41 +0000)]
tree.c (search_tree, [...]): New fn.

* tree.c (search_tree, no_linkage_helper, no_linkage_check): New fn.
* pt.c (coerce_template_parms): Use no_linkage_check.
* decl.c (grokvardecl): Likewise.
(grokfndecl): Likewise.  Members of anonymous types have no linkage.
* method.c (process_overload_item): Remove useless code.

From-SVN: r21884

25 years agoUse new ChangeLog style.
Per Bothner [Thu, 20 Aug 1998 16:45:53 +0000 (09:45 -0700)]
Use new ChangeLog style.

From-SVN: r21883

25 years agoHandle new'ing of Java classes.
Per Bothner [Thu, 20 Aug 1998 16:44:03 +0000 (09:44 -0700)]
Handle new'ing of Java classes.


Handle new'ing of Java classes.
* init.c (build_class_classref):  New function.
(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
constructor does not return this;  don't need to exception-protect.
* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21882

25 years agoHandle new'ing of Java classes.
Per Bothner [Thu, 20 Aug 1998 16:44:01 +0000 (09:44 -0700)]
Handle new'ing of Java classes.

Handle new'ing of Java classes.
* init.c (build_class_classref):  New function.
(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
constructor does not return this;  don't need to exception-protect.
* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21881

25 years agoHandle new'ing of Java classes.
Per Bothner [Thu, 20 Aug 1998 16:43:59 +0000 (09:43 -0700)]
Handle new'ing of Java classes.

(
Handle new'ing of Java classes.
* init.c (build_class_classref):  New function.
(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
constructor does not return this;  don't need to exception-protect.
* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21880

25 years agoHandle new'ing of Java classes.
Per Bothner [Thu, 20 Aug 1998 16:43:58 +0000 (09:43 -0700)]
Handle new'ing of Java classes.

d
Handle new'ing of Java classes.
* init.c (build_class_classref):  New function.
(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
constructor does not return this;  don't need to exception-protect.
* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21879

25 years agodecl2.c (import_export_vtable): Suppress vtables for Java classes.
Per Bothner [Thu, 20 Aug 1998 14:42:08 +0000 (14:42 +0000)]
decl2.c (import_export_vtable): Suppress vtables for Java classes.


* decl2.c (import_export_vtable):  Suppress vtables for Java classes.

From-SVN: r21878

25 years agoregen
Jason Merrill [Thu, 20 Aug 1998 13:54:54 +0000 (09:54 -0400)]
regen

From-SVN: r21877

25 years agodecl.c (duplicate_decls): Always merge the old and new patterns for templates...
Mark Mitchell [Thu, 20 Aug 1998 13:46:53 +0000 (13:46 +0000)]
decl.c (duplicate_decls): Always merge the old and new patterns for templates...

* decl.c (duplicate_decls): Always merge the old and new patterns
for templates, regardless of whether or not the new one has
DECL_INITIAL.  Don't throw away specializations.  Merge
DECL_SAVED_TREE.
* pt.c (tsubst_decl): Use the right pattern when calculating the
complete args for a new template instance.
(do_decl_instantiation): Fix typo in comment.
(regenerate_decl_from_template): Deal with tricky friend template
case.
(instantiate_decl): Likewise.

From-SVN: r21876

25 years agoInclude system.h, not stdio.h
Michael Meissner [Thu, 20 Aug 1998 11:00:20 +0000 (11:00 +0000)]
Include system.h, not stdio.h

From-SVN: r21874

25 years ago* rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
David Edelsohn [Thu, 20 Aug 1998 10:50:39 +0000 (10:50 +0000)]
* rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.

From-SVN: r21873

25 years agostor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits.
Dave Brolley [Thu, 20 Aug 1998 10:29:22 +0000 (10:29 +0000)]
stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits.

Thu Aug 20 13:15:11 1998  Dave Brolley  <brolley@cygnus.com>
* stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
arrays of bits.
* cpplib.c (cpp_define): Handle macros with parameters.

From-SVN: r21872

25 years agoinit.c (build_builtin_delete_call): Add missing assemble_external call.
Jeffrey A Law [Thu, 20 Aug 1998 08:10:49 +0000 (08:10 +0000)]
init.c (build_builtin_delete_call): Add missing assemble_external call.

        * init.c (build_builtin_delete_call): Add missing assemble_external
        call.

From-SVN: r21871

25 years ago* parse.y (notype_unqualified_id): Also accept ~A<int>.
Jason Merrill [Thu, 20 Aug 1998 02:54:29 +0000 (02:54 +0000)]
* parse.y (notype_unqualified_id): Also accept ~A<int>.

From-SVN: r21870

25 years agoDaily bump.
Jeff Law [Thu, 20 Aug 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21868

25 years agoold-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling code.
Mark Mitchell [Wed, 19 Aug 1998 23:42:39 +0000 (23:42 +0000)]
old-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling code.

* lib/old-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling
code.

From-SVN: r21865

25 years agors6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
David Edelsohn [Wed, 19 Aug 1998 19:43:19 +0000 (19:43 +0000)]
rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.

        * rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
        (output_toc): Use single TOC slot or llong minimal-toc for DFmode
        and DImode 64-bit.  Use llong for minimal-toc SFmode and
        SYMBOL_REF / LABEL_REF 64-bit.
        (output_function_profiler): Use llong for profiler label and ld to
        load 64-bit label address.

From-SVN: r21864

25 years agotypeck.c (build_binary_op_nodefault): Warn on use of NULL in arithmetic.
Mark Mitchell [Wed, 19 Aug 1998 18:48:58 +0000 (18:48 +0000)]
typeck.c (build_binary_op_nodefault): Warn on use of NULL in arithmetic.

* typeck.c (build_binary_op_nodefault): Warn on use of NULL in
arithmetic.
* except.c (build_throw): Warn when NULL is thrown, even with
-ansi.  Use ansi_null_node, rather than integer_zero_node, in the
thrown expression.

From-SVN: r21863

25 years agothumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.
Nick Clifton [Wed, 19 Aug 1998 16:56:21 +0000 (10:56 -0600)]
thumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.

        * config/arm/thumb.md (extendqisi2_insn): Cope with REG +
        OFFSET addressing.

From-SVN: r21862

25 years agothumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.
Nick Clifton [Wed, 19 Aug 1998 16:56:19 +0000 (10:56 -0600)]
thumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.


        * config/arm/thumb.md (extendqisi2_insn): Cope with REG +
        OFFSET addressing.

From-SVN: r21861

25 years ago
Nick Clifton [Wed, 19 Aug 1998 16:31:30 +0000 (10:31 -0600)]

From Nick Clifton
        * execute/ieee/930529-1.c (main): Check to see if __thumb__ is
        defined, and test for ARM style doubles if so.
        * execute/comp-goto-1.c (main): Make main() return an int.

From-SVN: r21860

25 years ago8
Nick Clifton [Wed, 19 Aug 1998 16:31:28 +0000 (10:31 -0600)]
8
From Nick Clifton
        * execute/ieee/930529-1.c (main): Check to see if __thumb__ is
        defined, and test for ARM style doubles if so.
        * execute/comp-goto-1.c (main): Make main() return an int.

From-SVN: r21859

25 years agocp-tree.h (ansi_null_node): New variable.
Mark Mitchell [Wed, 19 Aug 1998 15:14:58 +0000 (15:14 +0000)]
cp-tree.h (ansi_null_node): New variable.

* cp-tree.h (ansi_null_node): New variable.
* decl.c (ansi_null_node): New variable.
(init_decl_processing): Initialize its type.
* lex.c (init_parse): Initialize its value.  Use ansi_null_node
for null_node in non-ANSI mode.
* typeck.c (build_binary_op_nodefault): Use ansi_null_node in
place of null_node to avoid spurious errors.

From-SVN: r21858

25 years agoBump for snapshot
Jeffrey A Law [Wed, 19 Aug 1998 14:13:35 +0000 (08:13 -0600)]
Bump for snapshot

From-SVN: r21856

25 years ago* rtlanal.c (for_each_rtx): Check in the change mentioned below.
Mark Mitchell [Wed, 19 Aug 1998 13:44:57 +0000 (13:44 +0000)]
* rtlanal.c (for_each_rtx): Check in the change mentioned below.

From-SVN: r21855

25 years agoBump for snapshot
Jeffrey A Law [Wed, 19 Aug 1998 13:10:34 +0000 (07:10 -0600)]
Bump for snapshot

From-SVN: r21854

25 years agoFix SunOS4 build failure.
Jason Merrill [Wed, 19 Aug 1998 13:07:52 +0000 (13:07 +0000)]
Fix SunOS4 build failure.

* collect2.c (extract_init_priority): Use atoi instead of strtoul.

From-SVN: r21853

25 years agocplus-dem.c (work_stuff): Add dllimported.
Mumit Khan [Wed, 19 Aug 1998 13:05:52 +0000 (07:05 -0600)]
cplus-dem.c (work_stuff): Add dllimported.

x
* cplus-dem.c (work_stuff): Add dllimported.
(demangled_prefix): Mark symbols imported from PE DLL.
(internal_cplus_demangled): Handle.

From-SVN: r21852

25 years agocplus-dem.c (work_stuff): Add dllimported.
Mumit Khan [Wed, 19 Aug 1998 13:05:50 +0000 (07:05 -0600)]
cplus-dem.c (work_stuff): Add dllimported.


* cplus-dem.c (work_stuff): Add dllimported.
(demangled_prefix): Mark symbols imported from PE DLL.
(internal_cplus_demangled): Handle.

From-SVN: r21851

25 years ago* tm.texi (Misc): Fix typo "teh"...
Hans-Peter Nilsson [Wed, 19 Aug 1998 13:02:31 +0000 (15:02 +0200)]
* tm.texi (Misc): Fix typo "teh"...

From-SVN: r21850

25 years ago* tm.texi (PIC): Fix typo "PPIC".
Hans-Peter Nilsson [Wed, 19 Aug 1998 12:54:49 +0000 (14:54 +0200)]
* tm.texi (PIC): Fix typo "PPIC".

From-SVN: r21849

25 years agotm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no effect when -O2 and...
Hans-Peter Nilsson [Wed, 19 Aug 1998 12:53:25 +0000 (14:53 +0200)]
tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no effect when -O2 and higher.

        * tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no
        effect when -O2 and higher.
        * invoke.texi (Optimize Options): Likewise for -fcaller-saves.

From-SVN: r21848

25 years agoregclass.c: Changed register set documentation to be consistent with GCC behaviour.
Michael Hayes [Wed, 19 Aug 1998 12:49:17 +0000 (12:49 +0000)]
regclass.c: Changed register set documentation to be consistent with GCC behaviour.

        * regclass.c: Changed register set documentation to be consistent
        with GCC behaviour.
        * final.c (final_start_function) Removed redundant test for
        call_fixed_regs.

From-SVN: r21847