gcc.git
26 years agoadd -Wold-style-cast
Jason Merrill [Tue, 30 Sep 1997 17:49:34 +0000 (13:49 -0400)]
add -Wold-style-cast

From-SVN: r15807

26 years agorevert gratuitous whitespace changes
Jason Merrill [Tue, 30 Sep 1997 17:47:48 +0000 (13:47 -0400)]
revert gratuitous whitespace changes

From-SVN: r15806

26 years ago* method.c (build_decl_overload_real): Reformat.
Jason Merrill [Tue, 30 Sep 1997 15:53:04 +0000 (15:53 +0000)]
* method.c (build_decl_overload_real): Reformat.

From-SVN: r15804

26 years ago* method.c (synthesize_method): If at_eof, determine our linkage.
Jason Merrill [Tue, 30 Sep 1997 07:20:00 +0000 (07:20 +0000)]
* method.c (synthesize_method): If at_eof, determine our linkage.

From-SVN: r15803

26 years agolex.c (real_yylex): Treat `$' just like `_'...
Paul Eggert [Tue, 30 Sep 1997 05:32:19 +0000 (05:32 +0000)]
lex.c (real_yylex): Treat `$' just like `_'...

1997-09-29  Paul Eggert  <eggert@twinsun.com>

* lex.c (real_yylex): Treat `$' just like `_', except issue a
diagnostic if !dollars_in_ident or if pedantic.

* lang-specs.h (@c++): -ansi no longer implies -$.

* decl2.c (lang_decode_option):
-traditional and -ansi now do not mess with
dollars_in_ident.

From-SVN: r15802

26 years agoMakefile.in (parse.o, decl.o): Also depend on $(srcdir)/../except.h $(srcdir)/.....
H.J. Lu [Tue, 30 Sep 1997 03:36:39 +0000 (03:36 +0000)]
Makefile.in (parse.o, decl.o): Also depend on $(srcdir)/../except.h $(srcdir)/../output.h.

Mon Sep 29 19:57:51 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)

* Makefile.in (parse.o, decl.o): Also depend on
$(srcdir)/../except.h $(srcdir)/../output.h.
(decl2.o): Also depend on $(srcdir)/../expr.h ../insn-codes.h
$(srcdir)/../except.h $(srcdir)/../output.h.
(typeck.o, init.o): Also depend on $(srcdir)/../expr.h
../insn-codes.h.

* call.c, cp-tree.h, decl.c, tree.c: Finish prototyping.

* expr.c (cplus_expand_expr): Make it static.

* decl2.c, init.c, typeck.c: Include "expr.h".
(expand_expr): Use proper values when calling the function.

From-SVN: r15801

26 years ago* version.c: Bump for snapshot.
Jeffrey A Law [Mon, 29 Sep 1997 20:02:27 +0000 (20:02 +0000)]
* version.c: Bump for snapshot.

From-SVN: r15795

26 years ago[multiple changes]
Jason Merrill [Mon, 29 Sep 1997 19:05:04 +0000 (15:05 -0400)]
[multiple changes]

Mon Sep 29 11:05:54 1997  Alexandre Oliva  <oliva@dcc.unicamp.br>

* lang-options.h: new -Wold-style-cast flag.
* cp-tree.h (warn_old_style_cast): new variable.
* decl2.c (warn_old_style_cast): ditto.
(lang_decode_option): support -Wold-style-cast.
(reparse_absdcl_as_casts): produce old-style-cast warning.

Mon Sep 29 09:20:53 1997  Benjamin Kosnik  <bkoz@rhino.cygnus.com>

* decl.c (cp_finish_decl): Allow expand_aggr_init to set
  TREE_USED, reset value based on already_used.

* init.c (expand_member_init): Revert change.

From-SVN: r15793

26 years agoflow.c (find_basic_blocks): Mark calls as potentially jumping to the EH labels.
Jason Merrill [Mon, 29 Sep 1997 16:49:57 +0000 (16:49 +0000)]
flow.c (find_basic_blocks): Mark calls as potentially jumping to the EH labels.

        * flow.c (find_basic_blocks): Mark calls as potentially jumping
        to the EH labels.

From-SVN: r15792

26 years ago* intdoc.c (main): Remove unused attribute for main's arguments.
Jeffrey A Law [Mon, 29 Sep 1997 16:35:19 +0000 (16:35 +0000)]
* intdoc.c (main): Remove unused attribute for main's arguments.

From-SVN: r15791

26 years agocp-tree.h, [...]: Lose DECL_C_STATIC and DECL_PUBLIC.
Jason Merrill [Mon, 29 Sep 1997 16:08:34 +0000 (16:08 +0000)]
cp-tree.h, [...]: Lose DECL_C_STATIC and DECL_PUBLIC.

* cp-tree.h, decl.c, decl2.c, pt.c:
  Lose DECL_C_STATIC and DECL_PUBLIC.  Don't pretend statics are public.

* decl2.c (lang_decode_option): Add missing ;.

From-SVN: r15789

26 years agoconfigure.in: Substitute for "install" too.
Jeffrey A Law [Mon, 29 Sep 1997 16:00:50 +0000 (16:00 +0000)]
configure.in: Substitute for "install" too.

        * configure.in: Substitute for "install" too.
        * configure: Rebuilt.

From-SVN: r15788

26 years agoMakefile.in (bootstrap-lean): New target.
Aaron Jackson [Mon, 29 Sep 1997 06:37:11 +0000 (06:37 +0000)]
Makefile.in (bootstrap-lean): New target.

        * Makefile.in (bootstrap-lean): New target.
        * gcc/Makefile.in (bootstrap-lean, compare-lean): New targets.

From-SVN: r15786

26 years agoalias.c (base_alias_check): Two symbols can conflict if they are accessed via AND.
Richard Henderson [Mon, 29 Sep 1997 06:21:18 +0000 (23:21 -0700)]
alias.c (base_alias_check): Two symbols can conflict if they are accessed via AND.

        * alias.c (base_alias_check): Two symbols can conflict if they
        are accessed via AND.
        (memrefs_conflict_p): Likewise.

From-SVN: r15785

26 years agoalpha.h (SETUP_INCOMING_VARARGS): Emit a blockage insn after flushing argument regist...
Richard Henderson [Mon, 29 Sep 1997 06:18:28 +0000 (23:18 -0700)]
alpha.h (SETUP_INCOMING_VARARGS): Emit a blockage insn after flushing argument registers to the stack.

        * alpha.h (SETUP_INCOMING_VARARGS): Emit a blockage insn
        after flushing argument registers to the stack.

From-SVN: r15784

26 years ago* Makefile.in (mostlyclean): Remove .regmove files.
Richard Henderson [Mon, 29 Sep 1997 06:16:21 +0000 (23:16 -0700)]
* Makefile.in (mostlyclean): Remove .regmove files.

From-SVN: r15783

26 years ago* libgcc2.c (__throw): Fix thinko.
Jason Merrill [Mon, 29 Sep 1997 02:02:26 +0000 (02:02 +0000)]
* libgcc2.c (__throw): Fix thinko.

From-SVN: r15781

26 years agocplus-dem.c (demangle_template): Add new parameter.
Mark Mitchell [Sun, 28 Sep 1997 19:59:54 +0000 (19:59 +0000)]
cplus-dem.c (demangle_template): Add new parameter.

Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>

        * cplus-dem.c (demangle_template): Add new parameter.  Handle new
        template-function mangling.
        (consume_count_with_underscores): New function.
        (demangle_signature): Handle new name-mangling scheme.

From-SVN: r15780

26 years agocplus-dem.c (demangle_template): Add new parameter.
Mark Mitchell [Sun, 28 Sep 1997 19:37:05 +0000 (19:37 +0000)]
cplus-dem.c (demangle_template): Add new parameter.

Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>

        * cplus-dem.c (demangle_template): Add new parameter.  Handle new
        template-function mangling.
        (consume_count_with_underscores): New function.
        (demangle_signature): Handle new name-mangling scheme.

From-SVN: r15778

26 years agonew tests and adjustments for explicit function template qualification
Jason Merrill [Sun, 28 Sep 1997 19:26:50 +0000 (15:26 -0400)]
new tests and adjustments for explicit function template qualification

From-SVN: r15777

26 years ago[multiple changes]
Jason Merrill [Sun, 28 Sep 1997 19:21:52 +0000 (15:21 -0400)]
[multiple changes]

Sat Sep 27 16:48:00 1997  Jason Merrill  <jason@yorick.cygnus.com>

* std/complext.h: Lose injection decls.
* std/fcomplex.h: Likewise.
* std/dcomplex.h: Likewise.
* std/ldcomplex.h: Likewise.

Sat Sep 27 16:47:35 1997  Mark Mitchell  <mmitchell@usa.net>

* std/complext.h: Declare templates before making them
friends.  Use new friend <> syntax.
* std/complext.cc: Don't rely on guiding declarations.
* std/fcomplex.h: Use new friend <> syntax.
* std/dcomplex.h: Likewise.
* std/ldcomplex.h: Likewise.

From-SVN: r15776

26 years agoiomanip.h: Use new friend <> syntax.
Mark Mitchell [Sun, 28 Sep 1997 19:18:16 +0000 (19:18 +0000)]
iomanip.h: Use new friend <> syntax.

Sun Sep 28 12:09:04 1997  Mark Mitchell  <mmitchell@usa.net>

        * iomanip.h: Use new friend <> syntax.

From-SVN: r15775

26 years ago[multiple changes]
Jason Merrill [Sun, 28 Sep 1997 19:16:59 +0000 (15:16 -0400)]
[multiple changes]

Sat Sep 27 16:22:48 1997  Jason Merrill  <jason@yorick.cygnus.com>

* friend.c (do_friend): Disable injection for all template-derived
  decls.
* decl2.c (lang_decode_option): Handle -fguiding-decls.
* parse.y (notype_template_declarator): New nonterminal.
(direct_notype_declarator): Use it.
(complex_direct_notype_declarator): Likewise.
(object_template_id): Accept any kind of identifier after TEMPLATE.
(notype_qualified_id): Don't add template declarators here.

Sat Sep 27 16:21:58 1997  Mark Mitchell  <mmitchell@usa.net>

        * call.c (add_template_candidate): Add explicit_targs parameter.
        (build_scoped_method_call): Use it.
        (build_overload_call_real): Likewise.
        (build_user_type_conversion_1): Likewise.
        (build_new_function_call): Likewise.
        (build_object_call): Likewise.
        (build_new_op): Likewise.
        (build_new_method_call): Likewise.
        (build_new_function_call): Handle TEMPLATE_ID_EXPR.
        (build_new_method_call): Likewise.

        * class.c (finish_struct_methods): Add specialization pass to
        determine which methods were specializing which other methods.
        (instantiate_type): Handle TEMPLATE_ID_EXPR.

        * cp-tree.def (TEMPLATE_ID_EXPR): New tree code.

        * cp-tree.h (name_mangling_version): New variable.
(flag_guiding_decls): Likewise.
        (build_template_decl_overload): New function.
        (begin_specialization): Likewise.
        (reset_specialization): Likewise.
        (end_specialization): Likewise.
        (determine_explicit_specialization): Likewise.
        (check_explicit_specialization): Likewise.
        (lookup_template_function): Likewise.
        (fn_type_unification): Add explicit_targs parameter.
        (type_unification): Likewise.

        * decl.c (duplicate_decls): Add smarts for explicit
        specializations.
        (grokdeclarator): Handle TEMPLATE_ID_EXPR, and function
        specializations.
        (grokfndecl): Call check_explicit_specialization.

        * decl2.c (lang_decode_option): Handle -fname-mangling-version.
        (build_expr_from_tree): Handle TEMPLATE_ID_EXPR.
        (check_classfn): Handle specializations.

        * error.c (dump_function_name): Print specialization arguments.

* friend.c (do_friend): Don't call pushdecl for template
        instantiations.

        * init.c (build_member_call): Handle TEMPLATE_ID_EXPR.

        * lang-options.h: Add -fname-mangling-version, -fguiding-decls,
and -fno-guiding-decls.

        * lex.c (identifier_type): Return PFUNCNAME for template function
        names.

        * method.c (build_decl_overload_real): New function.
        (build_template_parm_names): New function.
        (build_overload_identifier): Use it.
        (build_underscore_int): New function.
        (build_overload_int): Use it.  Add levels for template
        parameters.
        (build_overload_name): Likewise.  Also, handle TYPENAME_TYPEs.
        (build_overload_nested_names): Handle template type parameters.
        (build_template_decl_overload): New function.

        * parse.y (YYSTYPE): New ntype member.
        (nested_name_specifier): Use it.
        (nested_name_specifier_1): Likewise.
        (PFUNCNAME): New token.
        (template_id, object_template_id): New non-terminals.
        (template_parm_list): Note specializations.
        (template_def): Likewise.
        (structsp): Likewise.
        (fn.def2): Handle member template specializations.
        (component_decl_1): Likewise.
        (direct_notype_declarator): Handle template-ids.
        (component_decl_1): Likewise.
        (direct_notype_declarator): Handle template-ids.
        (primary): Handle TEMPLATE_ID_EXPR, and template-ids.

        * pt.c (processing_specializations): New variable.
        (template_header_count): Likewise.
        (type_unification_real): New function.
        (processing_explicit_specialization): Likewise.
        (note_template_header): Likewise.
        (is_member_template): Handle specializations.
        (end_template_decl): Call reset_specialization.
        (push_template_decl): Handle member template specializations.
        (tsubst): Likewise.
        (tsubst_copy): Handle TEMPLATE_ID_EXPR.
        (instantiate_template): Handle specializations.
        (instantiate_decl): Likewise.
        (fn_type_unification): Handle explicit_targs.
        (type_unification): Likewise.  Allow incomplete unification
        without an error message, if allow_incomplete.
        (get_bindings): Use new calling sequence for fn_type_unification.

        * spew.c (yylex): Handle PFUNCNAME.

        * tree.c (is_overloaded_fn): Handle TEMPLATE_ID_EXPR.
        (really_overloaded_fn): Likewise.
        (get_first_fn): Handle function templates.

        * typeck.c (build_x_function_call): Use really_overloaded_fn.
        Handle TEMPLATE_ID_EXPR.
        (build_x_unary_op): Likewise.
        (build_unary_op): Likewise.
        (mark_addressable): Templates whose address is taken are marked
        as used.

From-SVN: r15774

26 years ago* libio.h: Don't use _IO_LOCK_T if it's not defined.
Jason Merrill [Sun, 28 Sep 1997 19:08:43 +0000 (19:08 +0000)]
* libio.h: Don't use _IO_LOCK_T if it's not defined.

From-SVN: r15773

26 years agoupdate
Jason Merrill [Sun, 28 Sep 1997 19:02:46 +0000 (15:02 -0400)]
update

From-SVN: r15772

26 years agoflow.c (print_rtl_with_bb): Cast alloca return values for variables start and end.
Philippe De Muyter [Sun, 28 Sep 1997 07:52:39 +0000 (09:52 +0200)]
flow.c (print_rtl_with_bb): Cast alloca return values for variables start and end.

        * flow.c (print_rtl_with_bb): Cast alloca return values for variables
        start and end.

From-SVN: r15753

26 years agoMake-lang.in (G77_FLAGS_TO_PASS): Pass down RANLIB, RANLIB_TEST and AR instead of...
Jeffrey A Law [Sun, 28 Sep 1997 07:44:42 +0000 (07:44 +0000)]
Make-lang.in (G77_FLAGS_TO_PASS): Pass down RANLIB, RANLIB_TEST and AR instead of the _FOR_TARGET versions.

        * Make-lang.in (G77_FLAGS_TO_PASS): Pass down RANLIB, RANLIB_TEST
        and AR instead of the _FOR_TARGET versions.

From-SVN: r15752

26 years agoframe.c: Remove last change.
Jeffrey A Law [Sun, 28 Sep 1997 07:03:02 +0000 (07:03 +0000)]
frame.c: Remove last change.

        * frame.c: Remove last change.
        * dwarf2.h: Remove last change.
        * tree.h: Add declarations of DWARF2 unwind info support
        functions.
As requested by Jason.

From-SVN: r15751

26 years agoc-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.
Jason Merrill [Sat, 27 Sep 1997 18:16:15 +0000 (18:16 +0000)]
c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.

* c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.
* tree.h (built_in_function): Likewise.
* expr.c (expand_builtin): Likewise.
* except.h: Likewise.
* dwarf2out.c (expand_builtin_dwarf_reg_size): New fn.
* libgcc2.c (copy_reg): New fn.
(__throw): Use it.

From-SVN: r15750

26 years agoregen
Jason Merrill [Sat, 27 Sep 1997 18:15:16 +0000 (14:15 -0400)]
regen

From-SVN: r15749

26 years agoNew file from Ulrich.
Jeff Law [Sat, 27 Sep 1997 04:07:24 +0000 (22:07 -0600)]
New file from Ulrich.

From-SVN: r15742

26 years agolibio changes from Ulrich to help "old linux" systems.
Ulrich Drepper [Sat, 27 Sep 1997 04:07:00 +0000 (04:07 +0000)]
libio changes from Ulrich to help "old linux" systems.

libio changes from Ulrich to help "old linux" systems.  See ChangeLog
for details.

From-SVN: r15741

26 years agoframe.c: Include gansidecl.h for PROTO.
Andreas Schwab [Sat, 27 Sep 1997 03:58:57 +0000 (03:58 +0000)]
frame.c: Include gansidecl.h for PROTO.

        * frame.c: Include gansidecl.h for PROTO.
        * dwarf2out.c: Move inclusion of dwarf2.h down so that PROTO is
        defined.  Don't declare dwarf2out_cfi_label here.
        * dwarf2.h: Add declarations of DWARF2 unwind info support
        functions.
        * m68k.c: Include dwarf2.h.
        (output_function_prologue): Add dwarf2 support.
        * m68k.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_REGNUM): New macros.
        (INCOMING_FRAME_SP_OFFSET): Likewise.
Update m68k patch from Andreas.

From-SVN: r15740

26 years agoc-typeck.c (build_binary_op): Warn about comparing signed vs unsigned if...
Paul Eggert [Sat, 27 Sep 1997 03:46:35 +0000 (03:46 +0000)]
c-typeck.c (build_binary_op): Warn about comparing signed vs unsigned if...

        * c-typeck.c (build_binary_op): Warn about comparing signed vs
        unsigned if -W is specified and -Wno-sign-compare is not.
        * c-decl.c (warn_sign_compare): Initialize to -1.
        (c_decode_option): -Wall no longer implies -Wsign-compare.

From-SVN: r15739

26 years agointegrate.c (expand_inline_function): Make sure there is at least one insn that can...
Andreas Schwab [Sat, 27 Sep 1997 03:42:59 +0000 (03:42 +0000)]
integrate.c (expand_inline_function): Make sure there is at least one insn that can be used as an insertion point.

        * integrate.c (expand_inline_function): Make sure there is at
        least one insn that can be used as an insertion point.

From-SVN: r15738

26 years agodecl.c (init_decl_processing): Declare __builtin_constant_p as accepting any kind...
Andreas Schwab [Fri, 26 Sep 1997 15:59:35 +0000 (15:59 +0000)]
decl.c (init_decl_processing): Declare __builtin_constant_p as accepting any kind of type, not only int.

1997-09-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* decl.c (init_decl_processing): Declare __builtin_constant_p as
accepting any kind of type, not only int.

From-SVN: r15734

26 years agoupdate
Jason Merrill [Fri, 26 Sep 1997 15:50:51 +0000 (11:50 -0400)]
update

From-SVN: r15733

26 years agosearch.c (get_matching_virtual): Notice virtual bases when sorrying about covariant...
Jason Merrill [Fri, 26 Sep 1997 15:42:46 +0000 (15:42 +0000)]
search.c (get_matching_virtual): Notice virtual bases when sorrying about covariant returns.

* search.c (get_matching_virtual): Notice virtual bases when sorrying
about covariant returns.

From-SVN: r15732

26 years agonever mind
Jason Merrill [Fri, 26 Sep 1997 15:39:41 +0000 (11:39 -0400)]
never mind

From-SVN: r15731

26 years agoadd
Jason Merrill [Fri, 26 Sep 1997 07:40:44 +0000 (03:40 -0400)]
add

From-SVN: r15721

26 years agoparse.y (member_init): Also imply typename here.
Jason Merrill [Fri, 26 Sep 1997 07:24:48 +0000 (07:24 +0000)]
parse.y (member_init): Also imply typename here.

* parse.y (member_init): Also imply typename here.  Remove ancient
extension for initializing base members.

From-SVN: r15720

26 years agofix thinko
Jason Merrill [Fri, 26 Sep 1997 07:03:44 +0000 (03:03 -0400)]
fix thinko

From-SVN: r15719

26 years agoadd
Jason Merrill [Fri, 26 Sep 1997 03:13:35 +0000 (23:13 -0400)]
add

From-SVN: r15718

26 years agobastring.h: Enable exceptions.
Jason Merrill [Fri, 26 Sep 1997 03:01:01 +0000 (03:01 +0000)]
bastring.h: Enable exceptions.

* std/bastring.h: Enable exceptions.
  (assign, append, insert, replace): Implement member template versions.

* tstring.cc: Add some tests for the member templates.

From-SVN: r15717

26 years agoupdate
Jason Merrill [Fri, 26 Sep 1997 01:38:04 +0000 (21:38 -0400)]
update

From-SVN: r15716

26 years agoHandle multi-level typenames and implicit typename in base list.
Jason Merrill [Thu, 25 Sep 1997 18:56:40 +0000 (18:56 +0000)]
Handle multi-level typenames and implicit typename in base list.

* parse.y (typename_sub{,[0-2]}): New rules.
(structsp, rule TYPENAME_KEYWORD): Use typename_sub.
(nonnested_type): New rule.
(complete_type_name): Use it.
(base_class.1): Use typename_sub and nonnested_type.
(nested_name_specifier): Don't elide std:: here.
* decl.c (make_typename_type): Handle getting a type for NAME.
(lookup_name_real): Turn std:: into :: here.

Rvalue conversions were removed in London.
* call.c (is_subseq): Don't consider lvalue transformations.
(build_conv): LVALUE_CONV and RVALUE_CONV get IDENTITY_RANK.
(joust): Reenable ?: kludge.

From-SVN: r15715

26 years agoAdd docs for sparc -malign-{jumps,loops,functions}.
Doug Evans [Thu, 25 Sep 1997 15:57:01 +0000 (15:57 +0000)]
Add docs for sparc -malign-{jumps,loops,functions}.

Fix typo in i386 -malign-functions docs.
Brought over from FSF.

From-SVN: r15714

26 years agodwarf2out.c: s/flag_verbose_asm/flag_debug_asm/
Jason Merrill [Thu, 25 Sep 1997 04:57:50 +0000 (04:57 +0000)]
dwarf2out.c: s/flag_verbose_asm/flag_debug_asm/

* dwarf2out.c: s/flag_verbose_asm/flag_debug_asm/

* final.c (final_end_function): Also do dwarf2 thing if
DWARF2_DEBUGGING_INFO.
(final_start_function): Likewise.

From-SVN: r15713

26 years agoBump for snapshot.
Jeffrey A Law [Thu, 25 Sep 1997 04:10:25 +0000 (04:10 +0000)]
Bump for snapshot.

From-SVN: r15710

26 years agosparc stuff brought over from fsf.
Doug Evans [Thu, 25 Sep 1997 01:15:30 +0000 (01:15 +0000)]
sparc stuff brought over from fsf.

From-SVN: r15709

26 years agosparc.h (ASM_CPU_SPEC): Pass -Av9a for v8plus, ultrasparc.
Doug Evans [Thu, 25 Sep 1997 01:14:03 +0000 (01:14 +0000)]
sparc.h (ASM_CPU_SPEC): Pass -Av9a for v8plus, ultrasparc.

* sparc/sparc.h (ASM_CPU_SPEC): Pass -Av9a for v8plus, ultrasparc.
(TARGET_OPTIONS): Add -malign-loops=, -malign-jumps=,
-malign-functions=.
(sparc_align_{loops,jumps,funcs}_string): Declare.
(sparc_align_{loops,jumps,funcs}): Declare.
(DEFAULT_SPARC_ALIGN_FUNCS): New macro.
(FUNCTION_BOUNDARY): Use sparc_align_funcs.
(STACK_BIAS): Define.
(SPARC_SIMM*_P): Cast to unsigned HOST_WIDE_INT first, then perform
test.
(SPARC_SETHI_P): New macro.
(CONST_OK_FOR_LETTER_P): Use it.
(ASM_OUTPUT_ALIGN_CODE): Define.
(ASM_OUTPUT_LOOP_ALIGN): Define.

* sparc.h (ASM_COMMENT_START): Define.

* sparc/sparc.h (ASM_OUTPUT_{FLOAT,DOUBLE,LONG_DOUBLE}): Print
ascii form as well.

From-SVN: r15708

26 years agosparc.c (dwarf2out_cfi_label): Add declaration.
Doug Evans [Thu, 25 Sep 1997 01:10:47 +0000 (01:10 +0000)]
sparc.c (dwarf2out_cfi_label): Add declaration.

* sparc.c (dwarf2out_cfi_label): Add declaration.
(save_regs, output_function_prologue): Remove cast for it.
(sparc_flat_{save_restore,output_function_prologue): Likewise.
({save,restore}_regs): No longer inline.

From-SVN: r15707

26 years agosparc.c (finalize_pic): Update call to gen_get_pc_via_call.
Doug Evans [Thu, 25 Sep 1997 01:09:41 +0000 (01:09 +0000)]
sparc.c (finalize_pic): Update call to gen_get_pc_via_call.

* sparc/sparc.c (finalize_pic): Update call to gen_get_pc_via_call.

* sparc/sparc.c (sparc_align_{loops,jumps,funcs}_string): New globals.
(sparc_align_{loops,jumps,funcs}): New globals.
(sparc_override_options): Handle -malign-loops=, -malign-jumps=,
-malign-functions=.
(move_operand): Use SPARC_SETHI_P.
(arith_double_operand): Cast to unsigned HOST_WIDE_INT first, then
perform test.
(arith11_double_operand): Likewise.
(arith10_double_operand): Likewise.
(finalize_pic): Finish sparc64 support.
(emit_move_sequence): Use SPARC_SETHI_P.  Simplify low part of
64 bit constants if able.
(output_fp_move_quad): Don't use fmovq unless TARGET_HARD_QUAD.
(sparc_builtin_saveregs, sparc64 case): Don't save fp regs if
! TARGET_FPU.

* sparc.h (ASM_COMMENT_START): Define.
* sparc.c (output_function_prologue): Use it.
(sparc_flat_output_function_{epi,pro}logue): Likewise.

From-SVN: r15706

26 years agosparc.md (*): Use GEN_INT instead of gen_rtx.
Doug Evans [Thu, 25 Sep 1997 01:03:13 +0000 (01:03 +0000)]
sparc.md (*): Use GEN_INT instead of gen_rtx.

* sparc/sparc.md (*): Use GEN_INT instead of gen_rtx.
(get_pc_sp32): Use for sparc64 as well.
(lo_sum_di_sp{32,64}): Fix handling on 64 bit hosts.
(sethi_di_sp64_const): Likewise.
(movtf_cc_sp64): Check TARGET_HARD_QUAD.
(cmp_zero_extract_sp64): Use unsigned HOST_WIDE_INT in cast.
(ashlsi3, ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.

From-SVN: r15705

26 years agoRegenerate.
Doug Evans [Thu, 25 Sep 1997 00:59:12 +0000 (00:59 +0000)]
Regenerate.

From-SVN: r15704

26 years agoconfigure.in (sparc64-*-linux*): Recognize.
Doug Evans [Thu, 25 Sep 1997 00:55:32 +0000 (00:55 +0000)]
configure.in (sparc64-*-linux*): Recognize.

* configure.in (sparc64-*-linux*): Recognize.  Add sparc/xm-sparc.h
to xm_file list on 32-bit sparc-linux.

From-SVN: r15703

26 years ago* glimits.h (LONG_MAX): Handle sparc64.
Doug Evans [Thu, 25 Sep 1997 00:50:38 +0000 (00:50 +0000)]
* glimits.h (LONG_MAX): Handle sparc64.

From-SVN: r15702

26 years ago* config/xm-linux.h (HAVE_PUTENV, HAVE_ATEXIT): Define.
Doug Evans [Thu, 25 Sep 1997 00:49:27 +0000 (00:49 +0000)]
* config/xm-linux.h (HAVE_PUTENV, HAVE_ATEXIT): Define.

From-SVN: r15701

26 years agoxm-linux.h: Include some standard headers if not inhibit_libc.
Doug Evans [Thu, 25 Sep 1997 00:44:26 +0000 (00:44 +0000)]
xm-linux.h: Include some standard headers if not inhibit_libc.

* sparc/xm-linux.h: Include some standard headers if not inhibit_libc.
Don't include xm-sparc.h.

From-SVN: r15700

26 years agoSync with fsf version.
Doug Evans [Thu, 25 Sep 1997 00:41:02 +0000 (00:41 +0000)]
Sync with fsf version.

From-SVN: r15699

26 years agosysv4.h (ASM_COMMENT_START): Delete.
Doug Evans [Thu, 25 Sep 1997 00:38:04 +0000 (00:38 +0000)]
sysv4.h (ASM_COMMENT_START): Delete.

* sparc/sysv4.h (ASM_COMMENT_START): Delete.
* sparc/sysv4.h (ASM_OUTPUT_{FLOAT,DOUBLE,LONG_DOUBLE}): Delete,
use sparc.h's copies.

From-SVN: r15698

26 years agolinux-aout.h (COMMENT_BEGIN): Delete.
Doug Evans [Thu, 25 Sep 1997 00:33:48 +0000 (00:33 +0000)]
linux-aout.h (COMMENT_BEGIN): Delete.

* sparc/linux-aout.h (COMMENT_BEGIN): Delete.
* sparc/linux.h (COMMENT_BEGIN): Likewise.
Bring over from FSF.

From-SVN: r15697

26 years agoFix typo in hjl ChangeLog entry.
Jim Wilson [Wed, 24 Sep 1997 22:31:10 +0000 (15:31 -0700)]
Fix typo in hjl ChangeLog entry.

From-SVN: r15689

26 years agoupdate
Jason Merrill [Wed, 24 Sep 1997 04:51:57 +0000 (00:51 -0400)]
update

From-SVN: r15687

26 years agonew test (already in c-torture)
Jeff Law [Tue, 23 Sep 1997 21:20:32 +0000 (15:20 -0600)]
new test (already in c-torture)

From-SVN: r15685

26 years agoNew files for sparc64-linux port.
Doug Evans [Tue, 23 Sep 1997 18:41:47 +0000 (18:41 +0000)]
New files for sparc64-linux port.

From-SVN: r15679

26 years agofold-const.c (make_range): Correctly handle cases of converting from unsigned to...
Jeff Law [Tue, 23 Sep 1997 18:35:51 +0000 (12:35 -0600)]
fold-const.c (make_range): Correctly handle cases of converting from unsigned to signed type.

        * fold-const.c (make_range): Correctly handle cases of converting
        from unsigned to signed type.

        * fold-const.c (merge_ranges): Make sure that if one range is subset
        of another, it will always be the second range.  Correct (+,-) case to
        account for this.

Brought over from gcc2; fixes sparc bug.

From-SVN: r15678

26 years agoNew files for sparc64-linux port.
Doug Evans [Tue, 23 Sep 1997 18:33:32 +0000 (18:33 +0000)]
New files for sparc64-linux port.

From-SVN: r15675

26 years agoexpmed.c (expand_divmod): If compute_mode is not the same as mode...
David S. Miller [Tue, 23 Sep 1997 07:25:25 +0000 (07:25 +0000)]
expmed.c (expand_divmod): If compute_mode is not the same as mode...

        * expmed.c (expand_divmod): If compute_mode is not the same as
        mode, handle the case where convert_modes() causes op1 to no
        longer be a CONST_INT.

From-SVN: r15672

26 years agoForgot to commit.
Alexandre Oliva [Tue, 23 Sep 1997 07:19:31 +0000 (01:19 -0600)]
Forgot to commit.

From-SVN: r15671

26 years agoreorg.c (dbr_schedule): At end of this pass...
David S. Miller [Tue, 23 Sep 1997 07:14:07 +0000 (07:14 +0000)]
reorg.c (dbr_schedule): At end of this pass...

        * reorg.c (dbr_schedule): At end of this pass, add REG_BR_PRED
        note holding get_jump_flags() calculation to all JUMP_INSNs.
        * rtl.h (enum reg_note): New note types REG_BR_PRED and REG_SAVE_AREA.
        * rtl.c (reg_note_name): Add new note types.

From-SVN: r15670

26 years agodtime_.c (G77_dtime_0): Fix types in HAVE_GETRUSAGE case so as not to truncate result...
Dave Love [Tue, 23 Sep 1997 07:06:54 +0000 (07:06 +0000)]
dtime_.c (G77_dtime_0): Fix types in HAVE_GETRUSAGE case so as not to truncate results to integer values.

        * libU77/dtime_.c (G77_dtime_0): Fix types in HAVE_GETRUSAGE case
        so as not to truncate results to integer values.
        * libU77/Version.c: Bump.

From-SVN: r15669

26 years agoFix typo.
Jeff Law [Tue, 23 Sep 1997 07:01:34 +0000 (01:01 -0600)]
Fix typo.

From-SVN: r15668

26 years agortlanal.c (jmp_uses_reg_or_mem): Fix typo in last change.
Jeffrey A Law [Tue, 23 Sep 1997 06:58:12 +0000 (06:58 +0000)]
rtlanal.c (jmp_uses_reg_or_mem): Fix typo in last change.

        * rtlanal.c (jmp_uses_reg_or_mem): Fix typo in last change.
Fixes various bootstrap problems (hopefully).

From-SVN: r15667

26 years agoloop.c (indirect_jump_in_function_p): Return 0 by default.
H.J. Lu [Tue, 23 Sep 1997 06:40:37 +0000 (06:40 +0000)]
loop.c (indirect_jump_in_function_p): Return 0 by default.

        * loop.c (indirect_jump_in_function_p): Return 0
        by default.

From-SVN: r15666

26 years agoMake-lang.in: install.texi was renamed to g77install.texi
Alexandre Oliva [Tue, 23 Sep 1997 06:38:19 +0000 (00:38 -0600)]
Make-lang.in: install.texi was renamed to g77install.texi

        * Make-lang.in: install.texi was renamed to g77install.texi
        * install0.texi: Likewise.

From-SVN: r15665

26 years agoxm-rs6000.h: Fix thinko in last change.
Jeffrey A Law [Tue, 23 Sep 1997 06:31:44 +0000 (06:31 +0000)]
xm-rs6000.h: Fix thinko in last change.

        * rs6000/xm-rs6000.h: Fix thinko in last change.
        * rs6000/xm-sysv4.h: Likewise.

From-SVN: r15664

26 years agoFix irix5/irix6 dwarf2out assertion failures
Jim Wilson [Tue, 23 Sep 1997 04:48:36 +0000 (04:48 +0000)]
Fix irix5/irix6 dwarf2out assertion failures

Fix irix5/irix6 dwarf2out assertion failures
* mips.c (save_restore_insns): Only set RTX_FRAME_RELATED_P if store_p.

From-SVN: r15661

26 years agodecl.c (start_function): Up warning of no return type to be a pedwarn.
Brendan Kehoe [Tue, 23 Sep 1997 02:13:04 +0000 (02:13 +0000)]
decl.c (start_function): Up warning of no return type to be a pedwarn.

* decl.c (start_function): Up warning of no return type to be a
pedwarn.

From-SVN: r15660

26 years ago* reg-stack.c (find_blocks): Fix thinko in last change.
Jeffrey A Law [Mon, 22 Sep 1997 20:38:35 +0000 (20:38 +0000)]
* reg-stack.c (find_blocks): Fix thinko in last change.

From-SVN: r15655

26 years agom68k.c (output_function_prologue): Add dwarf2 support.
Andreas Schwab [Mon, 22 Sep 1997 17:46:38 +0000 (17:46 +0000)]
m68k.c (output_function_prologue): Add dwarf2 support.

        * m68k.c (output_function_prologue): Add dwarf2 support.

        * m68k.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_REGNUM,
        INCOMING_FRAME_SP_OFFSET): New definitions.

From-SVN: r15631

26 years agocombine.c (try_combine): Use NULL_RTX instead of '0' where appropriate in calls to...
David S. Miller [Mon, 22 Sep 1997 17:41:48 +0000 (17:41 +0000)]
combine.c (try_combine): Use NULL_RTX instead of '0' where appropriate in calls to gen_rtx().

        * combine.c (try_combine): Use NULL_RTX instead of '0' where
        appropriate in calls to gen_rtx().
        * cse.c (cse_main): Likewise.
        * emit-rtl.c (gen_label_rtx): Likewise.
        * expr.c (init_expr_once): Likewise.
        * haifa-sched.c (flush_pending_lists, sched_analyze_insn,
        sched_analyze, init_rgn_data_dependences,
        compute_block_backward_dependences): Likewise.
        * sched.c (schedule_insns): Likewise.
        * varasm.c (immed_double_const): Likewise.

From-SVN: r15630

26 years agosparc.h (INCOMING_FRAME_SP_OFFSET): Define to SPARC_STACK_BIAS for sake of dwarf2...
David S. Miller [Mon, 22 Sep 1997 17:34:49 +0000 (17:34 +0000)]
sparc.h (INCOMING_FRAME_SP_OFFSET): Define to SPARC_STACK_BIAS for sake of dwarf2 on sparc64.

        * sparc.h (INCOMING_FRAME_SP_OFFSET): Define to
        SPARC_STACK_BIAS for sake of dwarf2 on sparc64.

From-SVN: r15628

26 years agosco5.h: Make ELF default file format and add -mcoff/-melf..
J. Kean Johnston [Mon, 22 Sep 1997 17:31:47 +0000 (17:31 +0000)]
sco5.h: Make ELF default file format and add -mcoff/-melf..

        * i386/sco5.h: Make ELF default file format and add -mcoff/-melf..
        (MULTILIB_DEFAULTS): Define.
        (ASM_SPEC, CPP_SPEC): Handle -mcoff.
        (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC): Likewise.
        (LIBGCC_SPEC): Likewise.
        (MASK_COFF, TARGET_COFF, TARGET_ELF): Define.
        (SUBTARGET_SWITCHES): Add -mcoff and -melf.
        * i386/t-sco5 (CRTSTUFF_T_CFLAGS): Add -fPIC.
        (CRTSTUFF_T_CFLAGS_S): Tweak for COFF.
        (EXTRA_PARTS, TAROUTOPTS): Delete.
        (libgcc1-elf, libgcc2-elf, libgcc-elf targets): Delete.
        (MULTILIB_OPTIONS): Define.
        (MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): Likewise.
        (MULTILIB_MATCHE, MULTILIB_EXTRA_OPTS): Likewise.
SCO Open Server patches.

From-SVN: r15627

26 years ago* version.c: Bump for snapshot.
Jeffrey A Law [Mon, 22 Sep 1997 08:08:15 +0000 (08:08 +0000)]
* version.c: Bump for snapshot.

From-SVN: r15624

26 years agoloop.c (loop_number): Delete function.
Jeffrey A Law [Mon, 22 Sep 1997 03:04:36 +0000 (03:04 +0000)]
loop.c (loop_number): Delete function.

        * loop.c (loop_number): Delete function.  Change all references
        to use uid_loop_num array.
        * loop.h (loop_number): Delete declaration.
        * unroll.c (unroll_loop): Change "loop_number" references to
        use uid_loop_num instead.
Still cleaning up haifa.

From-SVN: r15623

26 years agoloop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.
Jeff Law [Mon, 22 Sep 1997 01:50:04 +0000 (19:50 -0600)]
loop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.

        * loop.c (loop_unroll_factor): Move outside #ifdef HAIFA
        conditional.
        (loop_unroll_iter): Remove unused variable and all references.
        (loop_optimize): Always allocate and clear space for loop_unroll_factor.
        (insert_bct): Fix minor formatting problems.
        * loop.h (loop_unroll_factor): Move decl outside #ifdef HAIFA.
        (loop_unroll_iter): Removed unused decl.
        * unroll.c (unroll_loop): Remove code to set loop_unroll_iter.
        Always record the unrolling factor.

From-SVN: r15622

26 years agoloop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.
Jeff Law [Mon, 22 Sep 1997 01:49:19 +0000 (19:49 -0600)]
loop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.

        * loop.c (loop_unroll_factor): Move outside #ifdef HAIFA
        conditional.
        (loop_unroll_iter): Remove unused variable and all references.
        (loop_optimize): Always allocate and clear space for loop_unroll_factor.
        (insert_bct): Fix minor formatting problems.
        * loop.h (loop_unroll_factor): Move decl outside #ifdef HAIFA.
        (loop_unroll_iter): Removed unused decl.
        * unroll.c (unroll_loop): Remove code to set loop_unroll_iter.
        Always record the unrolling factor.
More haifa cleanup

From-SVN: r15621

26 years agoForgot to check in last time.
Jeff Law [Mon, 22 Sep 1997 01:44:35 +0000 (19:44 -0600)]
Forgot to check in last time.

From-SVN: r15620

26 years agoFix typo.
Jeff Law [Mon, 22 Sep 1997 01:33:52 +0000 (19:33 -0600)]
Fix typo.

From-SVN: r15619

26 years agocse.c (simplify_relational_operation): Set h0u just like h0s.
Jeffrey A Law [Mon, 22 Sep 1997 01:28:22 +0000 (01:28 +0000)]
cse.c (simplify_relational_operation): Set h0u just like h0s.

        * cse.c (simplify_relational_operation): Set h0u just like h0s.
        Similarly for h1u and h1s.

From-SVN: r15616

26 years agojump.c (jmp_uses_reg_or_mem): Deleted unused function.
Jeffrey A Law [Mon, 22 Sep 1997 00:49:32 +0000 (00:49 +0000)]
jump.c (jmp_uses_reg_or_mem): Deleted unused function.

        * jump.c (jmp_uses_reg_or_mem): Deleted unused function.
        (find_basic_blocks): Use computed_jump_p to determine if a
        particular JUMP_INSN is a computed jump.
        * reg-stack.c (find_blocks): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
        * rtlanal.c (jmp_uses_reg_or_mem): New function.
        (computed_jump_p): Likewise.
        * rtl.h (computed_jump_p): Declare.
        * genattrtab.c (pc_rtx): Define and initialize.
        * loop.c (loop_optimize): Always determine if the current
        function has a computed jump.
        (indirect_jump_in_function_p): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
General (and haifa) cleanups.

From-SVN: r15615

26 years agoFinish last change.
Jeff Law [Sun, 21 Sep 1997 23:46:54 +0000 (17:46 -0600)]
Finish last change.

From-SVN: r15614

26 years agoloop.c (fix_bct_param): Delete unused function.
Jeffrey A Law [Sun, 21 Sep 1997 23:43:38 +0000 (23:43 +0000)]
loop.c (fix_bct_param): Delete unused function.

        * loop.c (fix_bct_param): Delete unused function.
        (check_bct_param): Likewise.

From-SVN: r15613

26 years ago* frame.c (__deregister_frame): Check properly for initialized object.
Jason Merrill [Sat, 20 Sep 1997 23:46:43 +0000 (23:46 +0000)]
* frame.c (__deregister_frame): Check properly for initialized object.

From-SVN: r15601

26 years agocall.c (build_over_call): Do require_complete_type before build_cplus_new.
Jason Merrill [Sat, 20 Sep 1997 22:38:48 +0000 (22:38 +0000)]
call.c (build_over_call): Do require_complete_type before build_cplus_new.

* call.c (build_over_call): Do require_complete_type before
build_cplus_new.

Fixes t20.C mode problem.

From-SVN: r15598

27 years ago* alpha/linux.h (HANDLE_SYSV_PRAGMA): Defined.
H.J. Lu [Sat, 20 Sep 1997 02:48:37 +0000 (20:48 -0600)]
* alpha/linux.h (HANDLE_SYSV_PRAGMA): Defined.

From-SVN: r15594

27 years agoMakefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
Jim Wilson [Sat, 20 Sep 1997 02:43:51 +0000 (02:43 +0000)]
Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.

        * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.

Brought over from devo.

From-SVN: r15593

27 years agojump.c (thread_jumps): check can_reverse_comparison_p before threading a reversed...
J"orn Rennecke [Sat, 20 Sep 1997 01:05:16 +0000 (01:05 +0000)]
jump.c (thread_jumps): check can_reverse_comparison_p before threading a reversed-condition jump.

        * jump.c (thread_jumps): check can_reverse_comparison_p before
        threading a reversed-condition jump.

From-SVN: r15590

27 years agosched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
J"orn Rennecke [Sat, 20 Sep 1997 00:52:52 +0000 (00:52 +0000)]
sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.

        * sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r15589