platform/upstream/gcc.git
26 years agoFix stabs bug with C array ranges.
Jim Wilson [Thu, 23 Jul 1998 19:14:18 +0000 (19:14 +0000)]
Fix stabs bug with C array ranges.

* dbxout.c (dbxout_range_type): Only call dbxout_type_index for
already defined type.

From-SVN: r21355

26 years agoupdate
Jason Merrill [Thu, 23 Jul 1998 19:11:58 +0000 (15:11 -0400)]
update

From-SVN: r21354

26 years agoexcept.c (process_start_catch_block_old): Call start_decl_1 for catch parm.
Jason Merrill [Thu, 23 Jul 1998 19:11:48 +0000 (15:11 -0400)]
except.c (process_start_catch_block_old): Call start_decl_1 for catch parm.

* except.c (process_start_catch_block_old): Call start_decl_1 for
catch parm.
* decl.c (start_decl_1): Avoid duplicate error.
* init.c (expand_default_init): Only perform the initialization if
it will do something.
* parse.y (base_class): Check for invalid base class.

From-SVN: r21353

26 years agoupdate
Jason Merrill [Thu, 23 Jul 1998 18:08:04 +0000 (14:08 -0400)]
update

From-SVN: r21352

26 years agox
Jason Merrill [Thu, 23 Jul 1998 18:05:41 +0000 (14:05 -0400)]
x

From-SVN: r21351

26 years agodecl2.c (import_export_template): Fold in...
Jason Merrill [Thu, 23 Jul 1998 17:51:17 +0000 (17:51 +0000)]
decl2.c (import_export_template): Fold in...

* decl2.c (import_export_template): Fold in...
(import_export_class): ...to here.  Handle dllimport/export.

From-SVN: r21350

26 years agoexpr.c (check_max_integer_computation_mode): Allow conversions of constant integers...
Jeffrey A Law [Thu, 23 Jul 1998 12:51:00 +0000 (12:51 +0000)]
expr.c (check_max_integer_computation_mode): Allow conversions of constant integers to MAX_INTEGER_COMPUTATION_MODE.

        * expr.c (check_max_integer_computation_mode): Allow conversions
        of constant integers to MAX_INTEGER_COMPUTATION_MODE.
        (expand_expr): Likewise.

From-SVN: r21349

26 years agoexpr.c (expand_expr): Expand RETURN_EXPR.
Alexandre Petit-Bianco [Thu, 23 Jul 1998 12:09:42 +0000 (05:09 -0700)]
expr.c (expand_expr): Expand RETURN_EXPR.


* expr.c (expand_expr): Expand RETURN_EXPR.

From-SVN: r21348

26 years agoexpr.c (expand_expr): Expand RETURN_EXPR.
Alexandre Petit-Bianco [Thu, 23 Jul 1998 12:09:39 +0000 (05:09 -0700)]
expr.c (expand_expr): Expand RETURN_EXPR.

8
* expr.c (expand_expr): Expand RETURN_EXPR.

From-SVN: r21347

26 years agoPatch from Torbjorn Granlund.
Jim Wilson [Thu, 23 Jul 1998 11:01:33 +0000 (11:01 +0000)]
Patch from Torbjorn Granlund.

* dwarf2out.c (dwarf2out_finish): Call stripattributes on TEXT_SECTION.

From-SVN: r21346

26 years agoclass.c (build_vtable): Pass at_eof to import_export_vtable.
Jason Merrill [Thu, 23 Jul 1998 02:29:34 +0000 (02:29 +0000)]
class.c (build_vtable): Pass at_eof to import_export_vtable.

* class.c (build_vtable): Pass at_eof to import_export_vtable.
(prepare_fresh_vtable): Likewise.
* decl2.c (import_export_class): Split out...
(finish_prevtable_vardecl): From here.
* class.c (finish_struct_1): Call import_export_class if at_eof.
* decl.c (start_function): #if 0 mysterious code I wrote and have
forgotten why.
* rtti.c (get_tinfo_fn): If this is for a class type, set
DECL_CONTEXT.

From-SVN: r21345

26 years agoDaily bump.
Jeff Law [Thu, 23 Jul 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21344

26 years agoexception: Change terminate and unexpected to ().
Jason Merrill [Wed, 22 Jul 1998 17:54:26 +0000 (17:54 +0000)]
exception: Change terminate and unexpected to ().

* inc/exception: Change terminate and unexpected to ().
* parse.y (named_class_head_sans_basetype_defn): A
named_class_head_sans_basetype followed by '{' or ':' is a defn.

From-SVN: r21342

26 years agodwarf2out.c (output_aranges): Call stripattributes for TEXT_SECTION references.
Catherine Moore [Wed, 22 Jul 1998 17:16:20 +0000 (17:16 +0000)]
dwarf2out.c (output_aranges): Call stripattributes for TEXT_SECTION references.

Wed Jul 22 19:10:00 1998  Catherine Moore  <clm@cygnus.com>
        * dwarf2out.c (output_aranges):  Call stripattributes
        for TEXT_SECTION references.
        (output_line_info): Likewise.

From-SVN: r21341

26 years agoprofile.c (branch_prob): Call allocate_reg_info after outputting profile rtl in instr...
David S. Miller [Wed, 22 Jul 1998 16:14:27 +0000 (16:14 +0000)]
profile.c (branch_prob): Call allocate_reg_info after outputting profile rtl in instrument_arcs.

* profile.c (branch_prob): Call allocate_reg_info after outputting
profile rtl in instrument_arcs.

From-SVN: r21340

26 years agoAvoid irix 6.2/irix 6.3 header file conflict.
Jim Wilson [Wed, 22 Jul 1998 12:50:10 +0000 (12:50 +0000)]
Avoid irix 6.2/irix 6.3 header file conflict.

* fixinc.irix (math.h): Install wrapper instead of copying.

From-SVN: r21339

26 years agotree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression so WFL are expanded...
Alexandre Petit-Bianco [Wed, 22 Jul 1998 12:38:23 +0000 (12:38 +0000)]
tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression so WFL are expanded correctly when...


* tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression
  so WFL are expanded correctly when contained in a COMPOUND_EXPR.
* tree.h (EXPR_WFL_EMIT_LINE_NOTE): Change macro not to use
  lang_flag_0. Added documentation in the flag table.

From-SVN: r21338

26 years agotree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression so WFL are expanded...
Per Bothner [Wed, 22 Jul 1998 12:38:21 +0000 (05:38 -0700)]
tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression so WFL are expanded correctly when...

* tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression
  so WFL are expanded correctly when contained in a COMPOUND_EXPR.
* tree.h (EXPR_WFL_EMIT_LINE_NOTE): Change macro not to use
  lang_flag_0. Added documentation in the flag table.

From-SVN: r21337

26 years agoDaily bump.
Jeff Law [Wed, 22 Jul 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21336

26 years agog77spec.c (lang_specific_driver): Return unmolested command line when --help seen.
Craig Burley [Tue, 21 Jul 1998 22:34:23 +0000 (16:34 -0600)]
g77spec.c (lang_specific_driver): Return unmolested command line when --help seen.

P
* g77spec.c (lang_specific_driver): Return unmolested
command line when --help seen.
Comment out code that printed g77-specific --help info.

From-SVN: r21332

26 years agog77spec.c (lang_specific_driver): Return unmolested command line when --help seen.
Craig Burley [Tue, 21 Jul 1998 22:34:22 +0000 (16:34 -0600)]
g77spec.c (lang_specific_driver): Return unmolested command line when --help seen.


* g77spec.c (lang_specific_driver): Return unmolested
command line when --help seen.
Comment out code that printed g77-specific --help info.

From-SVN: r21331

26 years agocccp.c (do_include): Fix vax c style include handling.
Klaus Kaempf [Tue, 21 Jul 1998 22:31:41 +0000 (16:31 -0600)]
cccp.c (do_include): Fix vax c style include handling.

8
        * cccp.c (do_include): Fix vax c style include handling.

From-SVN: r21330

26 years agocccp.c (do_include): Fix vax c style include handling.
Klaus Kaempf [Tue, 21 Jul 1998 22:31:39 +0000 (16:31 -0600)]
cccp.c (do_include): Fix vax c style include handling.


        * cccp.c (do_include): Fix vax c style include handling.

From-SVN: r21329

26 years ago* cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
Jason Merrill [Tue, 21 Jul 1998 18:16:29 +0000 (18:16 +0000)]
* cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.

From-SVN: r21325

26 years agotree.c (canonical_type_variant): New fn to handle arrays.
Jason Merrill [Tue, 21 Jul 1998 18:16:09 +0000 (18:16 +0000)]
tree.c (canonical_type_variant): New fn to handle arrays.

* tree.c (canonical_type_variant): New fn to handle arrays.
* cp-tree.h (CANONICAL_TYPE_VARIANT): Remove.
* pt.c (unify, default case): Also fold arg.  Fix array bounds case.
* method.c (process_overload_item): Use build_overload_value for
arrays.

From-SVN: r21324

26 years agors6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
David Edelsohn [Tue, 21 Jul 1998 12:56:31 +0000 (12:56 +0000)]
rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.

        * rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
        * rs6000.md (movsi, movdi): Add CONSTANT_P_RTX.
        * rs6000.c (short_cint_operand): Add CONSTANT_P_RTX.
        (u_short_cint_operand): Same.
        (reg_or_cint_operand): Same.
        (logical_operand): Same.
        (input_operand): Same.
        (reg_or_short_operand): Use u_short_cint_operand.

From-SVN: r21323

26 years agoalpha.md (fix_truncdfsi2, [...]): Remove the define_expands, but keep the insns and...
Richard Henderson [Tue, 21 Jul 1998 08:57:27 +0000 (01:57 -0700)]
alpha.md (fix_truncdfsi2, [...]): Remove the define_expands, but keep the insns and splits.

        * alpha.md (fix_truncdfsi2, fix_truncsfsi2): Remove the define_expands,
        but keep the insns and splits.  Adjust so when the ultimate destination
        is memory, use cvtql.

From-SVN: r21322

26 years ago* flow.c (regno_uninitialized): Fixed regs are never uninitialized.
Richard Henderson [Tue, 21 Jul 1998 08:54:29 +0000 (01:54 -0700)]
* flow.c (regno_uninitialized): Fixed regs are never uninitialized.

From-SVN: r21321

26 years agogcc.c (do_spec): Call "error" not "warning".
Jeffrey A Law [Tue, 21 Jul 1998 07:52:35 +0000 (07:52 +0000)]
gcc.c (do_spec): Call "error" not "warning".

        * gcc.c (do_spec): Call "error" not "warning".
Opps.

From-SVN: r21319

26 years agoDaily bump.
Jeff Law [Tue, 21 Jul 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21317

26 years agoconfigure.in: Fix minor problems with gas feature detection code.
Jeffrey A Law [Mon, 20 Jul 1998 23:56:42 +0000 (23:56 +0000)]
configure.in: Fix minor problems with gas feature detection code.

        * configure.in: Fix minor problems with gas feature detection code.
        * configure: Rebuilt.

From-SVN: r21315

26 years agogcc.c (do_spec): Issue a warning for '%[]' usage.
Jeffrey A Law [Mon, 20 Jul 1998 23:38:58 +0000 (23:38 +0000)]
gcc.c (do_spec): Issue a warning for '%[]' usage.

Tue Jul 21 00:31:01 1998  Jeffrey A Law  (law@cygnus.com)
        * gcc.c (do_spec): Issue a warning for '%[]' usage.
        * Undo this change.
        * gcc.c: Delete %[spec] support.
        (do_spec_1, case '('): Likewise.
        (do_spec_1, case '['): Call error.

From-SVN: r21314

26 years agoalpha.h (CPP_SPEC): Tidy.
Richard Henderson [Mon, 20 Jul 1998 23:04:58 +0000 (16:04 -0700)]
alpha.h (CPP_SPEC): Tidy.

        * alpha.h (CPP_SPEC): Tidy.  Hook to cpp_cpu and cpp_subtarget.
        (CPP_SUBTARGET_SPEC): Default to empty string.
        (CPP_AM_*, CPP_IM_*, CPP_CPU_*, CPP_CPU_SPEC): New.
        (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): New.
        * alpha/elf.h (LD_SPEC): Use %(elf_dynamic_linker).
        * alpha/linux-elf.h (SUBTARGET_EXTRA_SPECS): New.
        (LIB_SPEC): Tidy.
        * alpha/linux.h (CPP_PREDEFINES): Tidy.
        * alpha/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): New.
        * alpha/netbsd.h (CPP_PREDEFINES): Tidy.
        * alpha/osf.h (CPP_PREDEFINES): Remove bits subsumed by CPP_CPU_SPEC.
        * alpha/win-nt.h (CPP_PREDEFINES): Likewise.
        * alpha/vsf.h (CPP_PREDEFINES): Likewise.
        (CPP_SUBTARGET_SPEC): New.  Do this instead of overriding CPP_SPEC.
        * alpha/vxworks.h: Likewise.

From-SVN: r21311

26 years agoRemove accidental checkin.
Jeff Law [Mon, 20 Jul 1998 22:36:45 +0000 (16:36 -0600)]
Remove accidental checkin.

From-SVN: r21309

26 years agomips.md (reload_outsi): Added missing REGNO call.
Ken Raeburn [Mon, 20 Jul 1998 19:53:04 +0000 (19:53 +0000)]
mips.md (reload_outsi): Added missing REGNO call.

* mips.md (reload_outsi): Added missing REGNO call.
(smulsi3_highpart, umulsi3_highpart): Provide prototype for function pointer.
(mul_acc_di, mul_acc_64bit_di): Don't use match_op_dup, use another
match_operator and compare the codes.
* mips.h (MASK_DEBUG_E, MASK_DEBUG_I): Set to zero.
* MIPS multiply pattern fixes:
* mips.h (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add union
classes for HI, LO, or HILO plus general registers.
(GENERATE_MADD): Deleted.
* mips.md (mulsi3_mult3): Don't disparage output-LO alternative.  Add
TARGET_MAD to condition.
(mulsi3): Test HAVE_mulsi3_mult3, not specific flags.
(mul_acc_si): Expand GENERATE_MADD here; it's the only use.  Use "*d" for
accumulator, to give preference to LO initially but not during reload.

From-SVN: r21305

26 years agolex.c (mbchar.h): #include it.
Dave Brolley [Mon, 20 Jul 1998 13:36:43 +0000 (13:36 +0000)]
lex.c (mbchar.h): #include it.

1998-07-20  Dave Brolley  <brolley@cygnus.com>
* lex.c (mbchar.h): #include it.
(GET_ENVIRONMENT): New macro.
(init_parse): Set character set based on LANG environment variable.
(real_yylex): Handle multibyte characters in character literals.
(real_yylex): Handle multibyte characters in string literals.

From-SVN: r21304

26 years agoconfigure.in (enable_c_mbchar): New configure option.
Dave Brolley [Mon, 20 Jul 1998 13:35:38 +0000 (13:35 +0000)]
configure.in (enable_c_mbchar): New configure option.

Mon Jul 20 16:16:38 1998  Dave Brolley  <brolley@cygnus.com>
* configure.in (enable_c_mbchar): New configure option.
(extra_cpp_objs): Always available now.
* cexp.y (mbchar.h): #include it.
(yylex): Handle Multibyte characters in character literals.
* cccp.c (mbchar.h): #include it.
(main): Set character set based on LANG environment variable.
(rescan): Handle multibyte characters in comments.
(skip_if_group): See above.
(validate_else): See above.
(skip_to_end_of_comment): See above.
(macarg1): See above.
(discard_comments): See above.
(rescan): Handle multibyte characters in string and character literals.
(collect_expansion): See above.
(skip_quoted_string): See above.
(macroexpand): See above.
(macarg1): See above.
(discard_comments): See above.
(change_newlines): See above.
* c-lex.c (mbchar.h): #include it.
(GET_ENVIRONMENT): New macro.
(init_lex): Set character set based on LANG environment variable.
(yylex): Handle multibyte characters in character literals.
(yylex): Handle multibyte characters in string literals.
* Makefile.in (mbchar.o): New target.
(cccp$(exeext)): @extra_cpp_objs@ is always available.
(cppmain$(exeext)): @extra_cpp_objs@ is always available.
* mbchar.[ch]: New files for multibyte character handling.

From-SVN: r21303

26 years agojump.c (jump_optimize): When simplifying noop moves and PUSH_ROUNDING...
David S. Miller [Mon, 20 Jul 1998 02:20:07 +0000 (02:20 +0000)]
jump.c (jump_optimize): When simplifying noop moves and PUSH_ROUNDING...

* jump.c (jump_optimize): When simplifying noop moves and
PUSH_ROUNDING, fix thinko so we use same criterion for identifying
the PUSHes to rewrite in second loop as we did in the first.

From-SVN: r21302

26 years agoDaily bump.
Jeff Law [Mon, 20 Jul 1998 00:45:31 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21301

26 years agonew
Jason Merrill [Mon, 20 Jul 1998 00:29:35 +0000 (20:29 -0400)]
new

From-SVN: r21300

26 years agoconfig.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
Robert Lipe [Mon, 20 Jul 1998 00:00:54 +0000 (18:00 -0600)]
config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.

8
* config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
(*-pc-unixware7) Add detection for Pentium II, Pentium Pro.

From-SVN: r21297

26 years agoconfig.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
Robert Lipe [Mon, 20 Jul 1998 00:00:52 +0000 (18:00 -0600)]
config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.

@
* config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
(*-pc-unixware7) Add detection for Pentium II, Pentium Pro.

From-SVN: r21296

26 years agolang-options.h: Fix up doc strings.
Craig Burley [Sun, 19 Jul 1998 23:55:30 +0000 (19:55 -0400)]
lang-options.h: Fix up doc strings.

        * lang-options.h: Fix up doc strings.
        Remove the unimplemented -fdcp-intrinsics-* options.
        * str-1t.fin: Change mixed-case spelling of `GoTo' from
        `Goto'.

From-SVN: r21292

26 years agolex.c (do_identifier): Look for class value even if we don't have a global value.
Jason Merrill [Sun, 19 Jul 1998 23:47:18 +0000 (23:47 +0000)]
lex.c (do_identifier): Look for class value even if we don't have a global value.

* lex.c (do_identifier): Look for class value even if we don't
have a global value.  Do implicit declaration if parsing is 2.
* semantics.c (finish_call_expr): Pass 2 if we're doing Koenig
lookup.

From-SVN: r21291

26 years agodecl.c (pushtag): Revert previous change.
Mark Mitchell [Sun, 19 Jul 1998 18:55:38 +0000 (18:55 +0000)]
decl.c (pushtag): Revert previous change.

* decl.c (pushtag): Revert previous change.
* pt.c (lookup_template_class): Don't put out debugging
information for types that use template parameters.

From-SVN: r21286

26 years agodecl.c (pushtag): Don't put out debugging information for compiler-generated typedefs.
Mark Mitchell [Sun, 19 Jul 1998 18:00:47 +0000 (18:00 +0000)]
decl.c (pushtag): Don't put out debugging information for compiler-generated typedefs.

* decl.c (pushtag): Don't put out debugging information for
compiler-generated typedefs.

From-SVN: r21285

26 years agoerror.c (dump_type_real): Don't crash when presented with intQI_type_node or the...
Mark Mitchell [Sun, 19 Jul 1998 17:54:13 +0000 (17:54 +0000)]
error.c (dump_type_real): Don't crash when presented with intQI_type_node or the like.

* error.c (dump_type_real): Don't crash when presented with
intQI_type_node or the like.

From-SVN: r21284

26 years agosemantics.c (finish_translation_unit): Fix spelling error in comment.
Mark Mitchell [Sun, 19 Jul 1998 17:52:17 +0000 (17:52 +0000)]
semantics.c (finish_translation_unit): Fix spelling error in comment.

* semantics.c (finish_translation_unit): Fix spelling error in
comment.

From-SVN: r21283

26 years agoThis fixes a problem when using KNR compilers.
Kaveh R. Ghazi [Sun, 19 Jul 1998 05:28:57 +0000 (05:28 +0000)]
This fixes a problem when using KNR compilers.

        * cplus-dem.c (demangle_nested_args): Make function definition
        static to match the prototype.

From-SVN: r21281

26 years agoMakefile.in (all): Depend on s-libe77, not e77.
Dave Love [Sun, 19 Jul 1998 04:54:39 +0000 (04:54 +0000)]
Makefile.in (all): Depend on s-libe77, not e77.

1998-07-19  Dave Love  <d.love@dl.ac.uk>
* Makefile.in (all): Depend on s-libe77, not e77.
(.PHONY): Remove e77.

From-SVN: r21280

26 years ago(all): Depend on s-libe77, not e77.
Dave Love [Sun, 19 Jul 1998 04:54:06 +0000 (04:54 +0000)]
(all): Depend on s-libe77, not e77.

(.PHONY): Remove e77.

From-SVN: r21279

26 years agoDaily bump.
Jeff Law [Sun, 19 Jul 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21276

26 years agoFix typo.
Marc Lehmann [Sat, 18 Jul 1998 15:48:44 +0000 (15:48 +0000)]
Fix typo.

From-SVN: r21275

26 years ago*** empty log message ***
Mark Mitchell [Sat, 18 Jul 1998 15:25:20 +0000 (15:25 +0000)]
*** empty log message ***

From-SVN: r21274

26 years agodecl.c (lookup_name_real): Pull out single function here.
Jason Merrill [Sat, 18 Jul 1998 02:26:44 +0000 (02:26 +0000)]
decl.c (lookup_name_real): Pull out single function here.

* decl.c (lookup_name_real): Pull out single function here.
(select_decl): Not here.
(unqualified_namespace_lookup): Use CP_DECL_CONTEXT.

From-SVN: r21268

26 years agoDaily bump.
Jeff Law [Sat, 18 Jul 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21267

26 years ago* decl.c (qualify_lookup): Tweak again.
Jason Merrill [Fri, 17 Jul 1998 17:19:31 +0000 (17:19 +0000)]
* decl.c (qualify_lookup): Tweak again.

From-SVN: r21266

26 years agopt.c (lookup_template_class): Don't mess with the context of the instantiation.
Jason Merrill [Fri, 17 Jul 1998 16:29:25 +0000 (16:29 +0000)]
pt.c (lookup_template_class): Don't mess with the context of the instantiation.

* pt.c (lookup_template_class): Don't mess with the context of the
instantiation.
* decl2.c (current_decl_namespace): Remove special handling for
templates.

From-SVN: r21265

26 years agoalloca.c: Respect USE_C_ALLOCA.
Richard Henderson [Fri, 17 Jul 1998 15:00:11 +0000 (08:00 -0700)]
alloca.c: Respect USE_C_ALLOCA.

        * alloca.c: Respect USE_C_ALLOCA.
        * gencheck.c (xmalloc): Ignore __GNUC__ for definition.
        * gengenrtl.c (xmalloc): Likewise.

From-SVN: r21264

26 years agoloop.h (struct induction): Add no_const_addval.
Richard Henderson [Fri, 17 Jul 1998 14:46:06 +0000 (07:46 -0700)]
loop.h (struct induction): Add no_const_addval.

        * loop.h (struct induction): Add no_const_addval.
        * loop.c (the_movables, reg_address_cost): New variables.
        (init_loop): Init reg_address_cost.
        (loop_optimize): Call end_alias_analysis.
        (scan_loop): Init the_movables.
        (record_giv): Init induction->no_const_addval.
        (basic_induction_var) [PLUS]: Use rtx_equal_p instead of ==.
        [REG]: Rearrange loop search test to catch more cases.
        (general_induction_var): Return success not benefit; take an extra
        argument for that.  Change all callers.
        (simplify_giv_expr) [PLUS]: Always combine invariants.  Use sge_plus.
        [MULT]: Use rtx_equal_p instead of ==.  Combine simple invariants.
        [default]: Search the_movables for additional combinations.
        (sge_plus_constant, sge_plus): New functions.
        (express_from_1): New function.
        (express_from): Always define.  Rewrite using express_from_1.
        (combine_givs_p): Handle more cases.  Ignore address cost.
        (cmp_combine_givs_stats): New function.
        (combine_givs_used_once, combine_givs_benefit_from): New functions.
        (combine_givs): Rewrite to do best-fit combination.
        * fold-const.c (operand_equal_p): Handle RTL_EXPR.
        (fold): Do a complete (A*C)+(B*C) association check.

From-SVN: r21263

26 years agomark as expected failure
Nick Clifton [Fri, 17 Jul 1998 14:20:47 +0000 (14:20 +0000)]
mark as expected failure

From-SVN: r21262

26 years agoFix some sparc complex testsuite failures.
Jim Wilson [Fri, 17 Jul 1998 11:22:40 +0000 (11:22 +0000)]
Fix some sparc complex testsuite failures.

* function.c (fixup_var_refs_insns): Handle CLOBBER of a CONCAT.

From-SVN: r21251

26 years ago* mn10300.c (MODES_TIEABLE_P): Fix typo.
Jeffrey A Law [Fri, 17 Jul 1998 10:53:58 +0000 (10:53 +0000)]
* mn10300.c (MODES_TIEABLE_P): Fix typo.

From-SVN: r21249

26 years agopt.c (tsubst, [...]): Fix getting complete args for a member template specialization.
Jason Merrill [Fri, 17 Jul 1998 06:19:07 +0000 (06:19 +0000)]
pt.c (tsubst, [...]): Fix getting complete args for a member template specialization.

* pt.c (tsubst, case FUNCTION_DECL): Fix getting complete args for
a member template specialization.
* tree.c (ovl_member): Use decls_match to compare functions.
* decl.c (decls_match): Check the context of a function.

From-SVN: r21248

26 years agotree.c (valid_machine_attribute): Only create a new type variant if there is a decl...
Richard Earnshaw [Fri, 17 Jul 1998 03:34:34 +0000 (03:34 +0000)]
tree.c (valid_machine_attribute): Only create a new type variant if there is a decl to use it.

* tree.c (valid_machine_attribute): Only create a new type variant if
there is a decl to use it.

From-SVN: r21247

26 years agoparse.y (primary): Use notype_unqualified_id instead of IDENTIFIER in Koenig lookup...
Jason Merrill [Fri, 17 Jul 1998 02:48:08 +0000 (02:48 +0000)]
parse.y (primary): Use notype_unqualified_id instead of IDENTIFIER in Koenig lookup support rules.

* parse.y (primary): Use notype_unqualified_id instead of IDENTIFIER
in Koenig lookup support rules.
* semantics.c (finish_call_expr): Handle the new cases.
* typeck.c (build_x_function_call): Handle overloaded methods.
* decl.c (grokvardecl): Don't call build_static_name for extern "C".

From-SVN: r21245

26 years agotmap.cc: Use less<int>.
Jason Merrill [Fri, 17 Jul 1998 01:30:01 +0000 (01:30 +0000)]
tmap.cc: Use less<int>.

* tmap.cc: Use less<int>.
* tlist.cc (main): Use remove_if.

From-SVN: r21244

26 years agoDaily bump.
Jeff Law [Fri, 17 Jul 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21241

26 years agosemantics.c (finish_object_call_expr): Revert previous change.
Mark Mitchell [Thu, 16 Jul 1998 23:38:43 +0000 (23:38 +0000)]
semantics.c (finish_object_call_expr): Revert previous change.

1998-07-16  Mark Mitchell  <mark@markmitchell.com>
* semantics.c (finish_object_call_expr): Revert previous change.
* call.c (build_new_method_call): Likewise.  Instead, convert
TYPE_DECLs to IDENTIFIERs here, in the presence of templates.

From-SVN: r21240

26 years ago(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
Jeff Law [Thu, 16 Jul 1998 22:53:02 +0000 (16:53 -0600)]
(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...

* (ffecom_finish_symbol_transform_): Revert change
of 1998-05-23, as it was too aggressive, in that it
prevented transformation of (used) functions before
primary code generation.

From-SVN: r21236

26 years ago(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
Craig Burley [Thu, 16 Jul 1998 22:53:01 +0000 (16:53 -0600)]
(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...

d
* (ffecom_finish_symbol_transform_): Revert change
of 1998-05-23, as it was too aggressive, in that it
prevented transformation of (used) functions before
primary code generation.

From-SVN: r21235

26 years ago(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
Craig Burley [Thu, 16 Jul 1998 22:52:59 +0000 (16:52 -0600)]
(ffecom_finish_symbol_transform_): Revert change of 1998-05-23...


* (ffecom_finish_symbol_transform_): Revert change
of 1998-05-23, as it was too aggressive, in that it
prevented transformation of (used) functions before
primary code generation.

From-SVN: r21234

26 years agoUpdates from craig.
Jeff Law [Thu, 16 Jul 1998 22:51:15 +0000 (16:51 -0600)]
Updates from craig.

From-SVN: r21233

26 years agogcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.
Nick Clifton [Thu, 16 Jul 1998 22:45:49 +0000 (16:45 -0600)]
gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.

8
* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
a suffix.

From-SVN: r21229

26 years agogcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.
Nick Clifton [Thu, 16 Jul 1998 22:45:47 +0000 (16:45 -0600)]
gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.


* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
a suffix.

From-SVN: r21228

26 years ago* libU77/Makefile.in: Missed one config.h.in -> config.hin change.
Jeffrey A Law [Thu, 16 Jul 1998 21:33:58 +0000 (21:33 +0000)]
* libU77/Makefile.in: Missed one config.h.in -> config.hin change.

From-SVN: r21224

26 years agodecl.c (qualify_lookup): Handle templates.
Jason Merrill [Thu, 16 Jul 1998 21:16:06 +0000 (21:16 +0000)]
decl.c (qualify_lookup): Handle templates.

* decl.c (qualify_lookup): Handle templates.
* decl2.c (do_using_directive): Don't pass ancestor.
* decl.c (push_using_directive): Calculate ancestor.
* decl2.c (do_nonmember_using_decl): Allow for type shadowing.
* decl.c (pushdecl): Move type shadowing handling from here...
(duplicate_decls): ...to here.
* decl.c (set_identifier_local_value_with_scope): New fn.
(pushdecl): Use it.
(set_identifier_local_value, lookup_type_current_level): New fns.
* decl2.c (do_local_using_decl): Handle types and binding level
stuff properly.

From-SVN: r21223

26 years ago* gcc.c-torture/execute/980716-1.c: New test.
Jeffrey A Law [Thu, 16 Jul 1998 20:47:24 +0000 (20:47 +0000)]
* gcc.c-torture/execute/980716-1.c: New test.

From-SVN: r21222

26 years agoextend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may be deleted"
Hans-Peter Nilsson [Thu, 16 Jul 1998 20:00:57 +0000 (14:00 -0600)]
extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may be deleted"

(
* extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may
be deleted"

From-SVN: r21221

26 years agoextend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may be deleted"
Hans-Peter Nilsson [Thu, 16 Jul 1998 20:00:55 +0000 (14:00 -0600)]
extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may be deleted"

* extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may
be deleted"

From-SVN: r21220

26 years agoinit.c (build_offset_ref): Don't call mark_used on an OVERLOAD.
Jason Merrill [Thu, 16 Jul 1998 17:48:39 +0000 (17:48 +0000)]
init.c (build_offset_ref): Don't call mark_used on an OVERLOAD.

* init.c (build_offset_ref): Don't call mark_used on an OVERLOAD.
* decl.c (select_decl): Extract a lone function from an OVERLOAD.
(lookup_namespace_name): Likewise.
* typeck.c (build_unary_op): Not here anymore.
* decl2.c (do_class_using_decl): Make sure we get an identifier.
* class.c (handle_using_decl): Ignore TYPE_DECLs.

From-SVN: r21219

26 years agodecl.c (qualify_lookup): New fn.
Jason Merrill [Thu, 16 Jul 1998 16:38:26 +0000 (12:38 -0400)]
decl.c (qualify_lookup): New fn.

* decl.c (qualify_lookup): New fn.
(lookup_name_real): Use it.
* decl2.c (add_using_namespace): When directly using a namespace
that was indirect before, promote it.
* cp-tree.h (LOOKUP_PREFER_TYPES, LOOKUP_PREFER_NAMESPACES,
LOOKUP_PREFER_BOTH, LOOKUP_NAMESPACES_ONLY, LOOKUP_TYPES_ONLY,
LOOKUP_QUALIFIERS_ONLY, LOOKUP_TEMPLATES_EXPECTED): New macros.
* decl.c (select_decl): Replace two flag parameters by one.
(unqualified_namespace_lookup): Likewise, pass flag.
(lookup_flags): New function.
(lookup_name_real): Compute flags, pass them.
(lookup_namespace_name): Call with zero-flag.
* decl2.c (ambiguous_decl): Add flag parameter, complain only
according to flags.
(lookup_using_namespace, qualified_lookup_using_namespace):
Add flag parameter, pass them through.
* lex.c (do_scoped_id): Call with zero-flag.

From-SVN: r21218

26 years ago* typeck.c (convert_for_assignment): Use comptypes.
Jason Merrill [Thu, 16 Jul 1998 15:02:05 +0000 (15:02 +0000)]
* typeck.c (convert_for_assignment): Use comptypes.

From-SVN: r21216

26 years agomn10300.c (count_tst_insns): New arg oreg_countp.
Jeffrey A Law [Thu, 16 Jul 1998 14:10:24 +0000 (14:10 +0000)]
mn10300.c (count_tst_insns): New arg oreg_countp.

        * mn10300.c (count_tst_insns): New arg oreg_countp.  Callers changed.
        Simplify tests for clearing an address register.
        (expand_prologue): Corresponding changes.

From-SVN: r21215

26 years agomn10300.md (movXX patterns): Make sure the destination is an ADDRESS_REG when...
Jeffrey A Law [Thu, 16 Jul 1998 13:54:53 +0000 (13:54 +0000)]
mn10300.md (movXX patterns): Make sure the destination is an ADDRESS_REG when...

        * mn10300.md (movXX patterns): Make sure the destination is an
        ADDRESS_REG when substituting "zero_areg" for (const_int 0).
        (logical patterns): Split into expanders + patterns
        (zero and sign extension patterns): Similarly.
        (shift patterns): Similarly.

From-SVN: r21214

26 years agosemantics.c (finish_object_call_expr): Move test for the function called being a...
Mark Mitchell [Thu, 16 Jul 1998 11:46:44 +0000 (11:46 +0000)]
semantics.c (finish_object_call_expr): Move test for the function called being a TYPE_DECL to ...

1998-07-16  Mark Mitchell  <mark@markmitchell.com>
* semantics.c (finish_object_call_expr): Move test for the
function called being a TYPE_DECL to ...
* call.c (build_new_method_call): Here.

From-SVN: r21213

26 years agoNew test case.
Martin v. Löwis [Thu, 16 Jul 1998 01:07:25 +0000 (01:07 +0000)]
New test case.

From-SVN: r21212

26 years agoDaily bump.
Jeff Law [Thu, 16 Jul 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r21211

26 years agoloop.c (emit_iv_add_mult): Scan the entire insn list generated for the sequence,...
Richard Henderson [Thu, 16 Jul 1998 00:22:41 +0000 (18:22 -0600)]
loop.c (emit_iv_add_mult): Scan the entire insn list generated for the sequence, recording base values.

8
        * loop.c (emit_iv_add_mult): Scan the entire insn list generated
        for the sequence, recording base values.

From-SVN: r21208

26 years agoloop.c (emit_iv_add_mult): Scan the entire insn list generated for the sequence,...
Richard Henderson [Thu, 16 Jul 1998 00:22:39 +0000 (18:22 -0600)]
loop.c (emit_iv_add_mult): Scan the entire insn list generated for the sequence, recording base values.


        * loop.c (emit_iv_add_mult): Scan the entire insn list generated
        for the sequence, recording base values.

From-SVN: r21207

26 years agodecl2.c (arg_assoc_class): Also look at template arguments, if any.
Jason Merrill [Thu, 16 Jul 1998 00:16:25 +0000 (00:16 +0000)]
decl2.c (arg_assoc_class): Also look at template arguments, if any.

* decl2.c (arg_assoc_class): Also look at template arguments, if any.
(arg_assoc): Handle error_mark_node and multiple levels of TREE_LIST.
* lex.c (looking_for_typename): Don't initialize.
* decl2.c (ambiguous_decl): Clarify error message.
* decl.c (push_using_directive): Iterate over namespaces used
indirectly.

From-SVN: r21205

26 years agog2c.hin: Renamed from g2c.h.in.
Jeffrey A Law [Thu, 16 Jul 1998 00:07:42 +0000 (00:07 +0000)]
g2c.hin: Renamed from g2c.h.in.

        * g2c.hin: Renamed from g2c.h.in.
        * Makefile.in, configure.in: Changed as needed.
        * configure: Rebuilt.
        * libU77/config.hin: Renamed from libU77/config.h.in.
        * Makefile.in, configure.in: Changed as needed.
        * configure: Rebuilt.

From-SVN: r21202

26 years agodecl2.c (add_using_namespace): Iterate over namespaces used indirectly.
Martin v. Löwis [Wed, 15 Jul 1998 17:27:24 +0000 (13:27 -0400)]
decl2.c (add_using_namespace): Iterate over namespaces used indirectly.

* decl2.c (add_using_namespace): Iterate over namespaces used
indirectly.
* decl.c (lookup_name_real): Accept namespace aliases as locals.
(cat_namespace_levels): Ignore aliases.
(duplicate_decls): Ignore duplicate aliases.
* decl2.c (do_namespace_alias): Process block level namespace
aliases. Store alias with pushdecl. Remove odr errors.
* parse.y (namespace_alias): New non-terminal.
(extdef): Use it.

From-SVN: r21201

26 years agodecl2.c (arg_assoc_type): Handle METHOD_TYPE like FUNCTION_TYPE.
Jason Merrill [Wed, 15 Jul 1998 16:56:50 +0000 (16:56 +0000)]
decl2.c (arg_assoc_type): Handle METHOD_TYPE like FUNCTION_TYPE.

* decl2.c (arg_assoc_type): Handle METHOD_TYPE like FUNCTION_TYPE.
Handle TEMPLATE_TYPE_PARM.
(arg_assoc): Rewrite.

From-SVN: r21199

26 years agoAdd aliases in nested blocks
Martin v. Löwis [Wed, 15 Jul 1998 14:38:06 +0000 (14:38 +0000)]
Add aliases in nested blocks

From-SVN: r21197

26 years agopt.c (complete_template_args): Don't look at the context unless we have to.
Jason Merrill [Wed, 15 Jul 1998 14:21:35 +0000 (14:21 +0000)]
pt.c (complete_template_args): Don't look at the context unless we have to.

* pt.c (complete_template_args): Don't look at the context unless
we have to.

From-SVN: r21195

26 years agoNew test case.
Martin v. Löwis [Wed, 15 Jul 1998 12:17:53 +0000 (12:17 +0000)]
New test case.

From-SVN: r21194

26 years agoMake-lang.in (f77.rebuilt): Fix to depend on build-dir-based, not source-based, g77...
Craig Burley [Wed, 15 Jul 1998 11:39:21 +0000 (11:39 +0000)]
Make-lang.in (f77.rebuilt): Fix to depend on build-dir-based, not source-based, g77.info.

Mon Jul 13 18:45:06 1998  Craig Burley  <burley@gnu.org>
* Make-lang.in (f77.rebuilt): Fix to depend on
build-dir-based, not source-based, g77.info.
* g77.texi: Merge docs with 0.5.24.
* g77install.texi: Ditto.

From-SVN: r21192

26 years agointdoc.texi: Regenerated.
Dave Love [Wed, 15 Jul 1998 11:38:08 +0000 (11:38 +0000)]
intdoc.texi: Regenerated.

1998-07-15  Dave Love  <d.love@dl.ac.uk>
* intdoc.texi: Regenerated.

From-SVN: r21191

26 years agoUpdate from Craig, previously missed.
Dave Love [Wed, 15 Jul 1998 11:05:36 +0000 (11:05 +0000)]
Update from Craig, previously missed.

From-SVN: r21187