gcc.git
26 years agoANSI does not allow a prototype to specify an item smaller than an int if the functio...
Kaveh R. Ghazi [Thu, 21 May 1998 06:29:55 +0000 (06:29 +0000)]
ANSI does not allow a prototype to specify an item smaller than an int if the function uses an old-style definition.

ANSI does not allow a prototype to specify an item smaller than an int
if the function uses an old-style definition.  This only worked as a
GNUC extension, so stop doing it.
       * gengenrtl.c (type_from_format, accessor_from_format): Change
       type of parameter `c' from `char' to `int'.

From-SVN: r19922

26 years agodecl2.c (maybe_make_one_only): New fn.
Jason Merrill [Thu, 21 May 1998 05:42:51 +0000 (05:42 +0000)]
decl2.c (maybe_make_one_only): New fn.

* decl2.c (maybe_make_one_only): New fn.
(import_export_vtable): Use it.
(import_export_decl): Likewise.
* pt.c (mark_decl_instantiated): Likewise.

From-SVN: r19921

26 years agodecl2.c (find_representative_member): Rename to ...
Mark Mitchell [Thu, 21 May 1998 00:48:49 +0000 (00:48 +0000)]
decl2.c (find_representative_member): Rename to ...

* decl2.c (find_representative_member): Rename to ...
(build_anon_union_vars): New function.
(finish_anon_union): Fix stupidity of previous change.

From-SVN: r19920

26 years agodecl.c (grokfndecl): Handle definition of specialization in friend declaration.
Jason Merrill [Wed, 20 May 1998 23:53:04 +0000 (23:53 +0000)]
decl.c (grokfndecl): Handle definition of specialization in friend declaration.

* decl.c (grokfndecl): Handle definition of specialization in
friend declaration.
* error.c (dump_decl): Fix LOOKUP_EXPR handling.

From-SVN: r19919

26 years agoclass.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P to look for type declar...
Mark Mitchell [Wed, 20 May 1998 23:28:21 +0000 (23:28 +0000)]
class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P to look for type declarations.

* class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P
to look for type declarations.
(finish_struct): Deal with templates on the CLASSTYPE_TAGS list.
* cp-tree.h (DECL_DECLARES_TYPE_P): New macro.
(finish_member_class_template): Declare.
* decl.c (pushtag): Put member class templates on the
CLASSTYPE_TAGS list, just as for ordinary member classes.
(pushdecl_class_level): Use DECL_DECLARES_TYPE_P.
(lookup_tag): Look for IDENTIFIER_CLASS_VALUEs, just as with
IDENTIFIER_NAMESPACE_VALUEs.
* parse.y (component_decl): Move code to ...
* semantics.c (finish_member_class_template): New function.
Don't put member class templates on the list of components for a
class.
* pt.c (classtype_mangled_name): Don't try DECL_CONTEXT on types.
In fact, don't use DECL_CONTEXT at all here.

From-SVN: r19918

26 years agowarn_summary, [...]: New scripts from Kaveh Ghazi and Alexandre Oliva respectively.
Jeffrey A Law [Wed, 20 May 1998 22:44:58 +0000 (22:44 +0000)]
warn_summary, [...]: New scripts from Kaveh Ghazi and Alexandre Oliva respectively.

        * warn_summary, test_summary: New scripts from
        Kaveh Ghazi and Alexandre Oliva respectively.

From-SVN: r19917

26 years ago* gcc.dg/980502-1.c: Fix return type.
Manfred Hollstein [Wed, 20 May 1998 21:48:45 +0000 (21:48 +0000)]
* gcc.dg/980502-1.c: Fix return type.

From-SVN: r19916

26 years agogcse.c (current_function_calls_longjmp): Declare.
Jeffrey A Law [Wed, 20 May 1998 21:30:13 +0000 (21:30 +0000)]
gcse.c (current_function_calls_longjmp): Declare.

        * gcse.c (current_function_calls_longjmp): Declare.
For sco5.

From-SVN: r19915

26 years agodecl.c (record_unknown_type): New function.
Martin v. Löwis [Wed, 20 May 1998 19:08:59 +0000 (15:08 -0400)]
decl.c (record_unknown_type): New function.

* decl.c (record_unknown_type): New function.
(init_decl_processing): Call it for the unknown and global type
nodes.

From-SVN: r19912

26 years ago* dwarf2out.c (base_type_die): Use int_size_in_bytes.
Jason Merrill [Wed, 20 May 1998 18:51:13 +0000 (18:51 +0000)]
* dwarf2out.c (base_type_die): Use int_size_in_bytes.

From-SVN: r19911

26 years agodecl2.c (find_representative_member): New function.
Mark Mitchell [Wed, 20 May 1998 11:03:18 +0000 (11:03 +0000)]
decl2.c (find_representative_member): New function.

* decl2.c (find_representative_member): New function.
(finish_anon_union): Use it.

From-SVN: r19910

26 years ago{980502-1.c, [...]: New tests.
Jeff Law [Wed, 20 May 1998 10:30:42 +0000 (04:30 -0600)]
{980502-1.c, [...]: New tests.

        * gcc.dg/{980502-1.c, clobbers.c}: New tests.
        * gcc.c-torture/compile/{980504-1.c, 980506-1.c}: Likewise.
        * gcc.c-torture/compile/{980506-2.c, 980611-1.c}: Likewise.
        * gcc.c-torture/execute/{980505-1.c, 980505-2.c, 980506-1.c}: Likewise.
        * gcc.c-torture/execute/{980506-2.c, 980506-3.c}: Likewise.
Missing ChangeLog entry.

From-SVN: r19909

26 years agonew test
Mark Mitchell [Wed, 20 May 1998 10:04:35 +0000 (10:04 +0000)]
new test

From-SVN: r19908

26 years agocp-tree.h (MAIN_NAME_P): New macro.
Mark Mitchell [Wed, 20 May 1998 10:04:25 +0000 (10:04 +0000)]
cp-tree.h (MAIN_NAME_P): New macro.

* cp-tree.h (MAIN_NAME_P): New macro.
(DECL_MAIN_P): Likwise.
* decl.c (pushdecl): Avoid crashing on redefinitions of `main'.
(grokfndecl): Use the new macros.
(grokdeclarator): Likewise.
(start_function): Likewise.
(store_parm_decls): Likewise.
(finsh_function): Likewise.
* friend.c (do_friend): Likewise.
* typeck.c (build_function_call_real): Likewise.
(build_unary_op): Likewise.

From-SVN: r19907

26 years ago980520-1.f: New test.
Dave Love [Wed, 20 May 1998 09:34:26 +0000 (09:34 +0000)]
980520-1.f: New test.

1998-05-20  Dave Love  <d.love@dl.ac.uk>
* g77.f-torture/execute/980520-1.f: New test.

From-SVN: r19906

26 years agoNew test.
Dave Love [Wed, 20 May 1998 09:28:28 +0000 (09:28 +0000)]
New test.

From-SVN: r19905

26 years agodecl2.c (start_objects, [...]): Split out from...
Jason Merrill [Wed, 20 May 1998 02:46:16 +0000 (02:46 +0000)]
decl2.c (start_objects, [...]): Split out from...

* decl2.c (start_objects, finish_objects, do_dtors,
do_ctors): Split out from...
(finish_file): ...here.

From-SVN: r19904

26 years agoremove CYGNUS LOCAL
Jason Merrill [Wed, 20 May 1998 01:57:33 +0000 (21:57 -0400)]
remove CYGNUS LOCAL

From-SVN: r19903

26 years agoVarious minor updates.
Jeff Law [Wed, 20 May 1998 00:36:31 +0000 (18:36 -0600)]
Various minor updates.

From-SVN: r19902

26 years ago* Global CSE and constant/copy propagation.
Doug Evans [Wed, 20 May 1998 00:24:32 +0000 (00:24 +0000)]
* Global CSE and constant/copy propagation.

        * Makefile.in (OBJS): Add gcse.o
        (STAGESTUFF): Add *.gcse.
        (gcse.o): Add dependencies.
        (mostlyclean): Remove *.gcse and */*.gcse.
        * gcse.c: New file.
        * loop.c (loop_optimize): Move call to init_alias_analysis.
        * recog.c (validate_replace_src): New function.
        * toplev.c (gcse_dump): New global variable.
        (flag_gcse, gcse_time): Likewise.
        (compile_file): Initialize gcse_time and clean out the gcse dump
        file if necessary.
        (rest_of_compilation): Call gcse_main as requested.  Dump RTL
        after gcse if requested.
        (main): Enable gcse for -O2 and above.  Handle -dG.  Enable gcse
        dumps for -da.
        * gcc.texi: Add gcse related internal documentation.
        * invoke.texi: Note new command line options for gcse.
        * tm.texi: Document AVOID_CCMODE_COPIES.
        * mips.h (AVOID_CCMODE_COPIES): Define.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19901

26 years agoVarious updates.
Jeff Law [Wed, 20 May 1998 00:01:58 +0000 (18:01 -0600)]
Various updates.

From-SVN: r19900

26 years agoMakefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists.
Jeffrey A Law [Tue, 19 May 1998 21:45:41 +0000 (21:45 +0000)]
Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists.

        * Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR)
        exists.
        (stmp-fixproto): Simlarly for running fixproto.
        * cross-make (SYSTEM_HEADER_DIR): Now $(tooldir)/sys-include.

From-SVN: r19899

26 years agoMakefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists.
Jeffrey A Law [Tue, 19 May 1998 21:41:03 +0000 (21:41 +0000)]
Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR) exists.

        * Makefile.in (deduced.h): Only run scan-types if $(SYSTEM_HEADER_DIR)
        exists.
        * cross-make (SYSTEM_HEADER_DIR): Now $(tooldir)/sys-include.
Bring over from Cygnus sources.

From-SVN: r19898

26 years agotree.c (is_overloaded_fn): Don't abort on placeholders from push_class_decls.
Jason Merrill [Tue, 19 May 1998 20:38:04 +0000 (20:38 +0000)]
tree.c (is_overloaded_fn): Don't abort on placeholders from push_class_decls.

* tree.c (is_overloaded_fn): Don't abort on placeholders from
push_class_decls.

From-SVN: r19888

26 years agoFix Irix6 Mesa compile failure reported by Andy Tai.
Jim Wilson [Tue, 19 May 1998 19:23:09 +0000 (19:23 +0000)]
Fix Irix6 Mesa compile failure reported by Andy Tai.

* config/mips/mips.c (double_memory_operand): Accept any MEM during
reload when TARGET_64BIT.

From-SVN: r19887

26 years agoFinish incomplete change started by Kenner.
Jim Wilson [Tue, 19 May 1998 18:24:07 +0000 (18:24 +0000)]
Finish incomplete change started by Kenner.

* configure.in (*-*-linux-gnu*): Delete NO_STAB_H from xm_defines.
(powerpcle-*-cygwin32): Delete xm_defines.
* final.c, mips-tfile.c, xcoffout.c, config/mips/mips.c: Use
HAVE_STAB_H instead of NO_STAB_H.
* config/xm-linux.h (NO_STAB_H): Delete.
(HAVE_STAB_H): Undefine.
* config/i386/xm-go32.h (NO_STAB_H): Delete.

From-SVN: r19886

26 years agoclass.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
Brendan Kehoe [Tue, 19 May 1998 18:16:49 +0000 (18:16 +0000)]
class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.

* class.c (is_empty_class): Return 0 if TYPE is an error_mark_node.
* error.c (dump_expr): Handle an ARROW_EXPR.

From-SVN: r19885

26 years agoAdd test
Mark Mitchell [Tue, 19 May 1998 15:43:24 +0000 (15:43 +0000)]
Add test

From-SVN: r19884

26 years agoFix SCO5 namespace/dwarf interaction bug.
Jim Wilson [Tue, 19 May 1998 15:31:53 +0000 (15:31 +0000)]
Fix SCO5 namespace/dwarf interaction bug.

* dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Ignore
LANG_TYPE trees with DECL_SOURCE_LINE of 0.

From-SVN: r19883

26 years agodecl.c (saveable_obstack): Declare.
Mark Mitchell [Tue, 19 May 1998 15:15:22 +0000 (15:15 +0000)]
decl.c (saveable_obstack): Declare.

* decl.c (saveable_obstack): Declare.
(pushdecl): Copy TYPE_DECLs to the same obstack as the type they
declare, if necessary.

From-SVN: r19882

26 years ago* arm/netbsd.h: Ensure DWARF2_UNWIND_INFO is undefined.
Todd Vierling [Tue, 19 May 1998 15:13:23 +0000 (15:13 +0000)]
* arm/netbsd.h: Ensure DWARF2_UNWIND_INFO is undefined.

From-SVN: r19881

26 years agocall.c (compare_qual): Remove.
Mark Mitchell [Tue, 19 May 1998 14:51:38 +0000 (14:51 +0000)]
call.c (compare_qual): Remove.

* call.c (compare_qual): Remove.
(is_subseq): Tweak.
(is_properly_derived_from): New function.
(maybe_handle_ref_bind): Likewise.
(maybe_handle_implicit_object): Likewise.
(compare_ics): Modify substantially to bring into conformance with
the standard.
* cp-tree.h (TYPE_PTRMEMFUNC_OBJECT_TYPE): New macro.
(comp_cv_qualification): Declare.
(comp_cv_qual_signature): Likewise.
* typeck.c (comp_cv_qualification): Likewise.
(comp_cv_qual_signature): Likewise.

From-SVN: r19880

26 years agosignal_.c, [...]: Tweaks to eliminate unnecessary differences vs.
Craig Burley [Tue, 19 May 1998 11:02:16 +0000 (11:02 +0000)]
signal_.c, [...]: Tweaks to eliminate unnecessary differences vs.

Sat May  2 16:44:46 1998  Craig Burley  <burley@gnu.org>
* libF77/signal_.c, libI77/dfe.c, libI77/due.c,
libI77/wsfe.c: Tweaks to eliminate unnecessary
differences vs. netlib libf2c.

From-SVN: r19879

26 years agoTweaks to eliminate unnecessary differences vs.
Craig Burley [Tue, 19 May 1998 11:01:52 +0000 (11:01 +0000)]
Tweaks to eliminate unnecessary differences vs.

Tweaks to eliminate unnecessary
differences vs. netlib libf2c.

From-SVN: r19878

26 years agoUpdate to Netlib version of 1998-04-20
Craig Burley [Tue, 19 May 1998 10:52:03 +0000 (06:52 -0400)]
Update to Netlib version of 1998-04-20

From-SVN: r19877

26 years agoJCB: update email in header.
Dave Love [Tue, 19 May 1998 10:50:55 +0000 (10:50 +0000)]
JCB: update email in header.

From-SVN: r19876

26 years agoUpdate to Netlib version of 1998-04-20
Dave Love [Tue, 19 May 1998 10:45:44 +0000 (10:45 +0000)]
Update to Netlib version of 1998-04-20

From-SVN: r19875

26 years agoJCB updates.
Dave Love [Tue, 19 May 1998 10:29:42 +0000 (10:29 +0000)]
JCB updates.

From-SVN: r19874

26 years agoversion.h: Get rid of the overly large headers here too, as done in version.c.
Craig Burley [Tue, 19 May 1998 10:26:25 +0000 (10:26 +0000)]
version.h: Get rid of the overly large headers here too, as done in version.c.

Fri Apr 17 17:18:04 1998  Craig Burley  <burley@gnu.org>
* version.h: Get rid of the overly large headers
here too, as done in version.c.

From-SVN: r19873

26 years agoGet rid of the overly large headers
Craig Burley [Tue, 19 May 1998 10:25:05 +0000 (10:25 +0000)]
Get rid of the overly large headers
here too, as done in version.c.

From-SVN: r19872

26 years agoon Mar 23 21:20:35 1998 Craig Burley <burley@gnu.org>
Craig Burley [Tue, 19 May 1998 10:23:53 +0000 (10:23 +0000)]
on Mar 23 21:20:35 1998 Craig Burley <burley@gnu.org>

on Mar 23 21:20:35 1998  Craig Burley  <burley@gnu.org>
* version.c: Reduce to a one-line file, like
gcc's version.c, since there's really no content
there.

From-SVN: r19871

26 years agoReduce to a one-line file, like
Craig Burley [Tue, 19 May 1998 10:21:47 +0000 (10:21 +0000)]
Reduce to a one-line file, like
gcc's version.c, since there's really no content
there.

From-SVN: r19870

26 years agoreload1.c (reload_reg_free_for_value_p): New function.
J"orn Rennecke [Tue, 19 May 1998 09:23:21 +0000 (09:23 +0000)]
reload1.c (reload_reg_free_for_value_p): New function.

* reload1.c (reload_reg_free_for_value_p): New function.
(allocate_reload_reg, choose_reload_regs): Use it.

From-SVN: r19869

26 years agoFix logic on when to generate a new handler label
Andrew MacLeod [Tue, 19 May 1998 09:05:27 +0000 (09:05 +0000)]
Fix logic on when to generate a new handler label

From-SVN: r19868

26 years agoWarning Fixes:
Kaveh R. Ghazi [Tue, 19 May 1998 08:42:48 +0000 (08:42 +0000)]
Warning Fixes:

        * Makefile.in (print-rtl.o): Depend on bitmap.h.
        (dbxout.o): Depend on toplev.h.
        ($(SCHED_PREFIX)sched.o): Likewise.
        ($(out_object_file)): Likewise for system.h and toplev.h.
        (cppmain.o): Depend on gansidecl.h.
        (cpplib.o): Likewise.
        (cpperror.o): Likewise.
        (cppexp.o): Likewise.
        (cpphash.o): Likewise.
        (cppalloc.o): Likewise.
        (fix-header.o): Depend on cpplib.h and cpphash.h.
        (scan-decls.o): Depend on gansidecl.h.
        * basic-block.h (free_regset_vector): Add prototype.
        * cccp.c (check_precompiled): Mark parameter `fname' with
        ATTRIBUTE_UNUSED.
        (do_assert): Likewise for `op' and `keyword'.
        (do_unassert): Likewise.
        (do_line): Likewise for `keyword'.
        (do_error): Likewise for `op' and `keyword'.
        (do_warning): Likewise.
        (do_ident): Likewise for `keyword'.
        (do_pragma): Likewise for `limit', `op' and `keyword'.
        (do_sccs): Likewise.
        (do_if): Likewise for `keyword'.
        (do_elif): Likewise.
        (do_else): Likewise.
        (do_endif): Likewise.
        * collect2.c (getenv): Remove redundant prototype.
        (collect_exit, collect_execute, dump_file): Likewise.
        (dump_list): Wrap prototype and definition in COLLECT_EXPORT_LIST.
        (dump_prefix_list): Hide prototype and definition.
        * sparc.c: Include toplev.h.
        (intreg_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED.
        (symbolic_memory_operand): Likewise.
        (sp64_medium_pic_operand): Likewise.
        (data_segment_operand): Likewise.
        (text_segment_operand): Likewise.
        (splittable_symbolic_memory_operand): Likewise.
        (splittable_immediate_memory_operand): Likewise.
        (eq_or_neq): Likewise.
        (normal_comp_operator): Likewise.
        (noov_compare_op): Likewise.
        (v9_regcmp_op): Likewise.
        (v8plus_regcmp_op): Likewise.
        (extend_op): Likewise.
        (cc_arithop): Likewise.
        (cc_arithopn): Likewise.
        (small_int): Likewise.
        (uns_small_int): Likewise.
        (clobbered_register): Likewise.
        (legitimize_pic_address): Likewise.
        (delay_operand): Likewise.
        (sparc_builtin_saveregs): Remove unused variable `stdarg'.
        * sparc.h (order_regs_for_local_alloc, eligible_for_return_delay,
        sparc_issue_rate, v8plus_regcmp_p): Add prototypes.
        * sparc.md (cmpdi_v8plus): Add abort for default case in switch.
        * cppalloc.c: Include gansidecl.h.
        * cpperror.c: Include stdarg.h/varargs.h and gansidecl.h.
        (cpp_file_line_for_message): Mark parameter `pfile' with
        ATTRIBUTE_UNUSED.
        (v_cpp_message): New function.
        (cpp_message): Use it.  Also convert to variable arguments.
        (cpp_fatal): Likewise.
        (cpp_pfatal_with_name): Constify parameter `name'.
        * cppexp.c: Move gansidecl.h before cpplib.h.
        * cpphash.c: Likewise.
        * cpphash.h (hashf, delete_macro): Add prototypes.
        * cpplib.c: Include stdarg.h/varargs.h and move gansidecl.h before
        cpplib.h.  Don't include errno.h.
        (update_path): Add arguments to prototype.
        (cpp_fatal, cpp_file_line_for_message, cpp_message, delete_macro,
        cpp_print_containing_files): Remove redundant prototypes.
        (cpp_hash_cleanup, add_import, append_include_chain,
        make_assertion, path_include, initialize_builtins,
        initialize_char_syntax, finclude, validate_else, comp_def_part,
        lookup_import, redundant_include_p, is_system_include,
        read_name_map, read_filename_string, open_include_file,
        check_macro_name, compare_defs, compare_token_lists,
        eval_if_expression, change_newlines): Add prototype arguments.
        (hashf): Remove redundant prototype.
        (read_token_list, free_token_list, safe_read, xcalloc, savestring,
        conditional_skip, skip_if_group): Add prototype arguments.
        (fdopen): Remove redundant prototype.
        (do_define, do_line, do_include, do_undef, do_error, do_pragma,
        do_ident, do_if, do_xifdef, do_else, do_elif, do_endif, do_sccs,
        do_once, do_assert, do_unassert, do_warning): Add prototype arguments.
        (struct directive): Add prototype arguments to function pointer
        member `func'.
        (handle_directive): Add missing arguments to call to `do_line'.
        (do_include): Mark parameters `unused1' and `unused2' with
        ATTRIBUTE_UNUSED.
        (do_line): Likewise for `keyword' and new parameters `unused1' and
        `unused2'.
        (do_error): Likewise for `keyword'.
        (do_warning): Likewise.  Also add missing argument `pfile' in call
        to cpp_pedwarn.
        (do_once): Mark parameter `keyword', `unused1' and `unused2' with
        ATTRIBUTE_UNUSED.
        (do_ident): Likewise for `keyword', `buf' and `limit'.
        (do_pragma): Likewise.  Also add missing arguments in call to do_once.
        (do_sccs): Mark parameter `keyword', `buf' and `limit' with
        ATTRIBUTE_UNUSED.
        (do_if): Likewise for `keyword'.
        (do_elif): Likewise.
        (eval_if_expression): Likewise for `buf' and `length'.
        (do_xifdef): Likewise for `unused1' and `unused2'.
        (do_else): Likewise for `keyword', `buf' and `limit'.
        (do_endif): Likewise.
        (parse_name): Add missing argument `pfile' in call to cpp_pedwarn.
        (cpp_handle_options): Remove superfluous NULL argument in call to
        cpp_fatal.
        (cpp_handle_options): Likewise.
        (do_assert): Mark parameter `keyword', `buf' and `limit' with
        ATTRIBUTE_UNUSED.
        (do_unassert): Likewise.
        (cpp_print_file_and_line): Add missing argument `pfile' in call to
        cpp_file_line_for_message.
        (v_cpp_error): New function.
        (cpp_error): Use it. Also accept variable arguments.
        (v_cpp_warning): New function.
        (cpp_warning): Use it. Also accept variable arguments.
        (cpp_pedwarn): Accept variable arguments.
        (v_cpp_error_with_line): New function
        (cpp_error_with_line): Use it.  Accept variable arguments.
        (v_cpp_warning_with_line): New function.
        (cpp_warning_with_line): Use it.  Accept variable arguments.  Hide
        definition.
        (cpp_pedwarn_with_line): Accept variable arguments.
        (cpp_pedwarn_with_file_and_line): Likewise.
        (cpp_error_from_errno): Constify parameter `name'.  Add missing
        argument `pfile' in call to cpp_file_line_for_message.
        (cpp_perror_with_name): Constify parameter `name'.
        * cpplib.h: Define PARAMS() in terms of PROTO().
        (fatal): Remove redundant prototype.
        (cpp_error, cpp_warning, cpp_pedwarn, cpp_error_with_line,
        cpp_pedwarn_with_line, cpp_pedwarn_with_file_and_line,
        cpp_error_from_errno, cpp_perror_with_name, cpp_pfatal_with_name,
        cpp_fatal, cpp_message, cpp_pfatal_with_name,
        cpp_file_line_for_message, cpp_print_containing_files): Add
        arguments to prototypes.
        (scan_decls, cpp_finish): Add prototypes.
        * cppmain.c: Include gansidecl.h.
        (main): Remove unused variable `i'.
        * dbxout.c: Include toplev.h.
        * demangle.h (do_tlink, collect_execute, collect_exit,
        collect_wait, dump_file, file_exists): Add prototype.
        * dwarf2out.c (dwarf_type_encoding_name, decl_start_label): Hide
        prototype and definition.
        (gen_unspecified_parameters_die): Don't assign results of call to
        function new_die() to unused variable `parm_die'.
        (dwarf2out_line): Mark parameter `filename' with ATTRIBUTE_UNUSED.
        (dwarf2out_define): Likewise for `lineno' and `buffer'.
        * dwarfout.c (output_unsigned_leb128, output_signed_leb128): Hide
        prototype and definition.
        (output_die): Add prototype arguments to function pointer arg.
        (output_unspecified_parameters_die): Mark parameter `arg' with
        ATTRIBUTE_UNUSED.
        * except.c (output_exception_table_entry): Remove unused variable
        `eh_entry'.
        * except.h (expand_fixup_region_start, expand_fixup_region_end):
        Add prototypes.
        * expr.c (do_jump_by_parts_equality_rtx): Remove prototype.
        * expr.h (do_jump_by_parts_equality_rtx): Add prototype.
        * fix-header.c: Include stdarg.h/varargs.h, move gansidecl.h
        before cpplib.h, include cpphash.h, remove redundant prototype of
        cpp_fatal, don't define `const', add a prototype for `fatal'.
        (cpp_file_line_for_message): Add missing arguments `pfile'.
        (v_cpp_message): New function.
        (cpp_message): Use it.
        (v_fatal): New function.
        (fatal, cpp_fatal): Use it.
        (cpp_pfatal_with_name): Constify parameter `name'.
        * flow.c (free_regset_vector): Remove redundant prototype.
        * function.c (round_down): Wrap prototype and definition with
        macro ARGS_GROW_DOWNWARD.
        (record_insns): Wrap prototype and definition with
        defined (HAVE_prologue) || defined (HAVE_epilogue).
        * gansidecl.h (ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5): New macros.
        * gen-protos.c: Include gansidecl.h.
        (hashf): Don't make it static, constify parameter `name'.
        * genattrtab.c (check_attr_test): Change XEXP() to XSTR() to match
        specifier %s in calls to function `fatal'.
        * haifa-sched.c: Include toplev.h.
        (find_rgns): Remove unused variable `j'.
        * integrate.c (note_modified_parmregs): Mark parameter `x' with
        ATTRIBUTE_UNUSED.
        (mark_stores): Likewise.
        * jump.c (mark_modified_reg): Likewise.
        * output.h (insn_current_reference_address): Add prototype.
        (eh_frame_section): Likewise.
        * print-rtl.c: Include bitmap.h.
        * reload1.c (reload): Wrap variables `note' and `next' in macro
        PRESERVE_DEATH_INFO_REGNO_P.
        (forget_old_reloads_1): Mark parameter `ignored' with
        ATTRIBUTE_UNUSED.
        (choose_reload_regs): Remove unused variable `in'.
        (reload_cse_invalidate_mem): Mark parameter `ignore' with
        ATTRIBUTE_UNUSED.
        (reload_cse_check_clobber): Likewise.
        * rtl.h (expand_null_return, reg_classes_intersect_p): Add prototype.
        (mark_elimination): Fix typo in prototype.
        * scan-decls.c: Include gansidecl.h.
        * tree.h (using_eh_for_cleanups, supports_one_only): Add prototype.

From-SVN: r19867

26 years agoWarning fixes:
Kaveh R. Ghazi [Tue, 19 May 1998 07:19:17 +0000 (07:19 +0000)]
Warning fixes:

        * Makefile.in (parse.o): Depend on toplev.h.
        * class.c (typecode_p): Remove prototype and definition.
        * cp-tree.h (currently_open_class, is_empty_class, member_p):
        Add prototype.
        * decl.c (push_overloaded_decl_top_level): Remove prototype and
        definition.
        * errfn.c (cp_error): Cast function pointer `error' to (errorfn *)
        in call to `cp_thing'.
        (cp_warning): Likewise for function pointer `warning'.
        * except.c (do_function_call): Remove prototype and definition.
        (call_eh_info): Wrap variable `t1' in macro NEW_EH_MODEL.
        * method.c (is_java_type): Add prototype and make it static.
        * parse.y: Include toplev.h.
        * pt.c (type_unification): Remove unused variable `arg'.
        (instantiate_decl): likewise for `save_ti'.
        * tree.c (propagate_binfo_offsets): Likewise for `base_binfos'.

From-SVN: r19866

26 years agoInitial revision
Jeff Law [Tue, 19 May 1998 07:09:55 +0000 (01:09 -0600)]
Initial revision

From-SVN: r19862

26 years agotweak
Jason Merrill [Tue, 19 May 1998 02:53:39 +0000 (22:53 -0400)]
tweak

From-SVN: r19860

26 years agoinit.c (build_member_call): Handle template_ids.
Jason Merrill [Tue, 19 May 1998 02:50:52 +0000 (02:50 +0000)]
init.c (build_member_call): Handle template_ids.

* init.c (build_member_call): Handle template_ids.
* parse.y (primary): Add global_scope template_id.

From-SVN: r19859

26 years agodecl2.c (get_sentry): Use end_temporary_allocation.
Jason Merrill [Mon, 18 May 1998 23:23:05 +0000 (23:23 +0000)]
decl2.c (get_sentry): Use end_temporary_allocation.

* decl2.c (get_sentry): Use end_temporary_allocation.
Don't declare permanent_obstack.

From-SVN: r19858

26 years agofunction.c (identify_blocks): Fix thinko when setting the block number for NOTE_INSN_...
Jeffrey A Law [Mon, 18 May 1998 21:39:43 +0000 (21:39 +0000)]
function.c (identify_blocks): Fix thinko when setting the block number for NOTE_INSN_BLOCK_END.

        * function.c (identify_blocks): Fix thinko when setting the
        block number for NOTE_INSN_BLOCK_END.

From-SVN: r19857

26 years agoApplied fixes from PR 15949 and 15047
Nick Clifton [Mon, 18 May 1998 16:37:30 +0000 (16:37 +0000)]
Applied fixes from PR 15949 and 15047

From-SVN: r19856

26 years agoUndid previous delta to dbxout.c
Nick Clifton [Mon, 18 May 1998 15:34:05 +0000 (15:34 +0000)]
Undid previous delta to dbxout.c
Added comment explaining why.

From-SVN: r19855

26 years agoadd error loc for original default arg
Brendan Kehoe [Mon, 18 May 1998 14:51:47 +0000 (10:51 -0400)]
add error loc for original default arg

From-SVN: r19854

26 years agotree.h (TYPE_SIZE_UNIT): New.
Richard Henderson [Mon, 18 May 1998 13:21:14 +0000 (06:21 -0700)]
tree.h (TYPE_SIZE_UNIT): New.

* tree.h (TYPE_SIZE_UNIT): New.
(struct tree_type): Add size_unit member.
* stor-layout.c (layout_type): Initialize it.
* expr.c (get_inner_reference) [ARRAY_REF]: Use it.
* tree.c (size_in_bytes, int_size_in_bytes): Likewise.

From-SVN: r19853

26 years agoparse.y (.finish_new_placement): New non-terminal.
Mark Mitchell [Mon, 18 May 1998 12:28:30 +0000 (12:28 +0000)]
parse.y (.finish_new_placement): New non-terminal.

* parse.y (.finish_new_placement): New non-terminal.
(unary_expr, new_type_id): Use it.
* parse.c: Regenerated.

From-SVN: r19852

26 years agopt.c (redeclare_class_template): Say where the original definition of the template...
Brendan Kehoe [Mon, 18 May 1998 12:21:29 +0000 (12:21 +0000)]
pt.c (redeclare_class_template): Say where the original definition of the template-parameter's default argument...

* pt.c (redeclare_class_template): Say where the original definition
of the template-parameter's default argument appeared.

From-SVN: r19851

26 years agostor-layout.c (layout_record): Fix off-by-one error when checking length of the TYPE_...
Richard Earnshaw [Mon, 18 May 1998 12:08:10 +0000 (12:08 +0000)]
stor-layout.c (layout_record): Fix off-by-one error when checking length of the TYPE_BINFO vector.

* stor-layout.c (layout_record): Fix off-by-one error when checking
length of the TYPE_BINFO vector.

From-SVN: r19850

26 years agoMake-lang.in (G77STAGESTUFF): Add g77.o, g77spec.o, and g77version.o.
Craig Burley [Mon, 18 May 1998 11:23:15 +0000 (11:23 +0000)]
Make-lang.in (G77STAGESTUFF): Add g77.o, g77spec.o, and g77version.o.

1998-05-18  Craig Burley  <burley@gnu.org>
* Make-lang.in (G77STAGESTUFF): Add g77.o, g77spec.o,
and g77version.o.
(f77.clean): Add removal of g77.c, g77.o, g77spec.o,
and g77version.o.
(f77.distclean): Delete removal of g77.c.

From-SVN: r19849

26 years ago(G77STAGESTUFF): Add g77.o, g77spec.o,
Craig Burley [Mon, 18 May 1998 11:18:41 +0000 (11:18 +0000)]
(G77STAGESTUFF): Add g77.o, g77spec.o,

and g77version.o.
(f77.clean): Add removal of g77.c, g77.o, g77spec.o,
and g77version.o.
(f77.distclean): Delete removal of g77.c.

From-SVN: r19848

26 years agoLayout change.
Dave Love [Mon, 18 May 1998 11:17:41 +0000 (11:17 +0000)]
Layout change.

From-SVN: r19847

26 years agoFix entries (JCB).
Dave Love [Mon, 18 May 1998 11:10:31 +0000 (11:10 +0000)]
Fix entries (JCB).

From-SVN: r19846

26 years agoUse TREE_ARG to compute the type of a function parameter passed in memory.
Nick Clifton [Mon, 18 May 1998 11:02:18 +0000 (11:02 +0000)]
Use TREE_ARG to compute the type of a function parameter passed in memory.

From-SVN: r19845

26 years agocom.c (ffecom_convert_narrow_, [...]): Be even more persnickety in checking for inter...
Craig Burley [Mon, 18 May 1998 10:53:27 +0000 (10:53 +0000)]
com.c (ffecom_convert_narrow_, [...]): Be even more persnickety in checking for internal bugs.

1998-05-18  Craig Burley  <burley@gnu.org>
* com.c (ffecom_convert_narrow_, ffecom_convert_widen_):
Be even more persnickety in checking for internal bugs.
Also, if precision isn't changing, just return the expr.
(ffecom_expr_): Add ltkt variable for clarity.
* expr.c Use ffestrOther in place of ffeexprDotdot_.
(ffeexpr_token_number_): Call
ffeexpr_make_float_const_ to make an integer.
(ffeexpr_make_float_const_): Handle making an integer.
* intrin.c (ffeintrin_init_0): Distinguish between
crashes on bad arg base and kind types.
* Makefile.in (f/expr.c): Now depends on f/stamp-str.
* str-ot.fin: Add more keywords for expr.c.
* intdoc.c (dumpimp): Trivial fix.
* stb.c (ffestb_R100110_): Fix an assertion.

From-SVN: r19844

26 years ago(ffestb_R100110_): Fix an assertion.
Craig Burley [Mon, 18 May 1998 10:49:39 +0000 (10:49 +0000)]
(ffestb_R100110_): Fix an assertion.

From-SVN: r19843

26 years agoLayout change.
Dave Love [Mon, 18 May 1998 10:47:05 +0000 (10:47 +0000)]
Layout change.

From-SVN: r19842

26 years ago(dumpimp): Trivial fix.
Craig Burley [Mon, 18 May 1998 10:37:18 +0000 (10:37 +0000)]
(dumpimp): Trivial fix.

From-SVN: r19841

26 years agoAdd more keywords for expr.c.
Craig Burley [Mon, 18 May 1998 10:31:39 +0000 (10:31 +0000)]
Add more keywords for expr.c.

From-SVN: r19840

26 years ago(f/expr.c): Now depends on f/stamp-str.
Craig Burley [Mon, 18 May 1998 10:31:00 +0000 (10:31 +0000)]
(f/expr.c): Now depends on f/stamp-str.

From-SVN: r19839

26 years ago(ffeintrin_init_0): Distinguish between
Craig Burley [Mon, 18 May 1998 10:29:07 +0000 (10:29 +0000)]
(ffeintrin_init_0): Distinguish between
crashes on bad arg base and kind types.

From-SVN: r19838

26 years ago(ffeexpr_token_number_): Call ffeexpr_make_float_const_ to make an integer.
Craig Burley [Mon, 18 May 1998 10:28:21 +0000 (10:28 +0000)]
(ffeexpr_token_number_): Call ffeexpr_make_float_const_ to make an integer.

(ffeexpr_token_number_): Call
ffeexpr_make_float_const_ to make an integer.
(ffeexpr_make_float_const_): Handle making an integer.

From-SVN: r19837

26 years ago(ffecom_convert_narrow_, ffecom_convert_widen_):
Craig Burley [Mon, 18 May 1998 10:26:16 +0000 (10:26 +0000)]
(ffecom_convert_narrow_, ffecom_convert_widen_):

Be even more persnickety in checking for internal bugs.
Also, if precision isn't changing, just return the expr.
(ffecom_expr_): Add ltkt variable for clarity.

From-SVN: r19836

26 years agodwarfout.h, [...]: New files.
Robert Lipe [Mon, 18 May 1998 07:11:42 +0000 (07:11 +0000)]
dwarfout.h, [...]: New files.

        * dwarfout.h, dwarf2out.h, dbxout.h, sdbout.h:  New files.
        Prototypes for externally used functions in respective C files.
        * dwarfout.c, dbxout.c, dwarf2out.c, sdbout.c, toplev,c,
        final.c: Include above files.
        * Makefile.in (toplev.o): Add dependency for above four headers.
        (final.o): Likewise.
        (dwarfout.o, dbxout.o, dwarf2out.o, sdbout.o): Depend on four
        respective header files.

From-SVN: r19835

26 years agoupdate
Jason Merrill [Mon, 18 May 1998 04:51:07 +0000 (00:51 -0400)]
update

From-SVN: r19834

26 years ago* call.c (build_over_call): Tweak empty class handling.
Jason Merrill [Mon, 18 May 1998 04:28:54 +0000 (04:28 +0000)]
* call.c (build_over_call): Tweak empty class handling.

From-SVN: r19833

26 years ago* decl.c (make_typename_type): Use currently_open_class.
Jason Merrill [Mon, 18 May 1998 03:16:09 +0000 (03:16 +0000)]
* decl.c (make_typename_type): Use currently_open_class.

From-SVN: r19832

26 years ago* class.c (instantiate_type): Don't abort on TREE_NONLOCAL_FLAG.
Jason Merrill [Mon, 18 May 1998 03:03:44 +0000 (23:03 -0400)]
* class.c (instantiate_type): Don't abort on TREE_NONLOCAL_FLAG.

From-SVN: r19831

26 years agoupdate
Jason Merrill [Mon, 18 May 1998 01:53:57 +0000 (21:53 -0400)]
update

From-SVN: r19830

26 years ago* class.c (finish_struct_1): Use OVL_CURRENT in error message.
Martin v. Löwis [Mon, 18 May 1998 01:52:15 +0000 (21:52 -0400)]
* class.c (finish_struct_1): Use OVL_CURRENT in error message.

From-SVN: r19829

26 years agoMakefile.in (TARGET_TOOLPREFIX): No longer define.
Jeffrey A Law [Mon, 18 May 1998 01:24:26 +0000 (01:24 +0000)]
Makefile.in (TARGET_TOOLPREFIX): No longer define.

        * Makefile.in (TARGET_TOOLPREFIX): No longer define.
        (AR_FOR_TARGET, RANLIB_FOR_TARGET): Define to use versions in
        the build tree if they exist.
        (AR, AR_FLAGS, OLDAR, OLDAR_FLAGS, RANLIB, RANLIB_TEST): Update
        appropriately.
        (objdir): Let configure substitute value.
        (FLOAT_H): Let configure select a pre-built version from the
        config subdir.
        * build-make (INSTALL_TARGET, ALL): Disable, no longer needed.
        * configure.in: Substitute for objdir.
* cp/Makefile.in (program_transform_name, objdir): Define.

From-SVN: r19828

26 years agoMakefile.in (build_canonical, [...]): Let configure substitute values for these varia...
Jeffrey A Law [Mon, 18 May 1998 00:48:07 +0000 (00:48 +0000)]
Makefile.in (build_canonical, [...]): Let configure substitute values for these variables.

        * Makefile.in (build_canonical, host_canonical): Let configure
        substitute values for these variables.
        * configure.in: Substitute for build_canonical, host_canonical
        and target_subdir in generated Makefile.

From-SVN: r19827

26 years agooutput.h (find_basic_blocks): Declare.
Jeffrey A Law [Mon, 18 May 1998 00:29:11 +0000 (00:29 +0000)]
output.h (find_basic_blocks): Declare.

        * output.h (find_basic_blocks): Declare.
        (free_basic_block_vars, set_block_num, life_analysis): Likewise.

From-SVN: r19826

26 years agoMakefile.in (BISON): Use bison from the build tree if it exists.
Jeffrey A Law [Mon, 18 May 1998 00:23:16 +0000 (00:23 +0000)]
Makefile.in (BISON): Use bison from the build tree if it exists.

        * Makefile.in (BISON): Use bison from the build tree if it exists.
        (FLEX): Similarly.

From-SVN: r19825

26 years agogcc.c (SWITCH_CURTAILS_COMPILATION): Definition.
Nick Clifton [Sun, 17 May 1998 23:08:40 +0000 (23:08 +0000)]
gcc.c (SWITCH_CURTAILS_COMPILATION): Definition.

        * gcc.c (SWITCH_CURTAILS_COMPILATION): Definition.
        (DEFAULT_SWITCH_CURTAILS_COMPILATION): True for options -S and -c.
        (process_command): If HAVE_EXECUTABLE_SUFFIX is defined then scan
        command line arguments to see if an executable is not being
        created, and if so - do not append the suffix.
        * tm.texi (SWITCH_CURTAILS_COMPILATION): Add description of new
        driver macro.

From-SVN: r19824

26 years agoi386.h (ALIGN_DFmode): Delete.
John Wehle [Sun, 17 May 1998 23:00:05 +0000 (23:00 +0000)]
i386.h (ALIGN_DFmode): Delete.

        * i386.h (ALIGN_DFmode): Delete.
        (CONSTANT_ALIGNMENT): Define.
        * varasm.c (force_const_mem): Use it.

From-SVN: r19823

26 years agoFix -ffast-math typo in alpha_emit_conditional_branch.
Richard Henderson [Sun, 17 May 1998 19:32:45 +0000 (12:32 -0700)]
Fix -ffast-math typo in alpha_emit_conditional_branch.

From-SVN: r19822

26 years agoSomehow I missed commiting the Changelog along
Richard Henderson [Sun, 17 May 1998 19:29:34 +0000 (12:29 -0700)]
Somehow I missed commiting the Changelog along
with the Alpha/NetBSD patch.

From-SVN: r19821

26 years agotypeck.c (type_unknown_p): Return true for TREE_LIST also.
Jason Merrill [Sun, 17 May 1998 14:54:24 +0000 (10:54 -0400)]
typeck.c (type_unknown_p): Return true for TREE_LIST also.

* typeck.c (type_unknown_p): Return true for TREE_LIST also.
* call.c (build_method_call): Use TYPE_MAIN_VARIANT on typedefs.
* call.c (build_scoped_method_call): Likewise.

From-SVN: r19820

26 years agoinit.c (build_new_1): Call suspend_momentary around the creation of values that must...
Mark Mitchell [Sun, 17 May 1998 13:58:28 +0000 (13:58 +0000)]
init.c (build_new_1): Call suspend_momentary around the creation of values that must be saved for...

* init.c (build_new_1): Call suspend_momentary around the creation
of values that must be saved for exception handling.
* parse.y (.build_new_placement): New non-terminal.
(unary_expr, new_placement): Use it.
* parse.c: Regenerated.

From-SVN: r19819

26 years agoRevert April 21 alias.c change from jfc.
Jim Wilson [Sun, 17 May 1998 13:47:28 +0000 (13:47 +0000)]
Revert April 21 alias.c change from jfc.

* alias.c (mode_alias_check): Delete.
(true_dependence, anti_dependence, output_dependence): Revert April 21
change.

From-SVN: r19818

26 years agorevert last change
Jason Merrill [Sun, 17 May 1998 13:39:11 +0000 (09:39 -0400)]
revert last change

From-SVN: r19817

26 years agodecl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare old and new types.
Jason Merrill [Sun, 17 May 1998 13:26:02 +0000 (13:26 +0000)]
decl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare old and new types.

* decl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare
old and new types.

From-SVN: r19816

26 years agopt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the canonical type.
Jason Merrill [Sun, 17 May 1998 12:48:32 +0000 (12:48 +0000)]
pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the canonical type.

* pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the
canonical type.

From-SVN: r19815

26 years ago* call.c (build_over_call): Don't use IS_SIGNATURE on a namespace.
Jason Merrill [Sun, 17 May 1998 12:33:29 +0000 (12:33 +0000)]
* call.c (build_over_call): Don't use IS_SIGNATURE on a namespace.

From-SVN: r19814

26 years agoFix two nits in formating.
Kaveh Ghazi [Sun, 17 May 1998 05:51:42 +0000 (05:51 +0000)]
Fix two nits in formating.

From-SVN: r19813

26 years agoFix a think-o on my part (ghazi@caip.rutgers.edu), patch from cato@df.lth.se.
Krister Walfridsson [Sun, 17 May 1998 05:48:37 +0000 (07:48 +0200)]
Fix a think-o on my part (ghazi@caip.rutgers.edu), patch from cato@df.lth.se.

        toplev.c (output_lang_identify): Enable prototype and definition.

From-SVN: r19812

26 years agoBump for snapshot
Jeffrey A Law [Sun, 17 May 1998 01:12:30 +0000 (19:12 -0600)]
Bump for snapshot

From-SVN: r19810

26 years agoosf.h (HAVE_STAMP_H): Define.
Richard Henderson [Sat, 16 May 1998 23:24:20 +0000 (16:24 -0700)]
osf.h (HAVE_STAMP_H): Define.

        * alpha/osf.h (HAVE_STAMP_H): Define.
        * alpha.c: Use it.
        * alpha/netbsd.h, alpha/netbsd-elf.h: New files.
        * configure.in (alpha*-*-netbsd*): New.
        Based on patches from Paul H. Anderson <pha@pdq.com>.
        * configure.in (alpha*-*-linux-*): Kill xm_defines.
        (alpha*-*-linux-gnulibc1*) [fixincludes]: Define.
        * alpha/xm-linux.h: Remove file.

From-SVN: r19809

26 years agodbxout.c (dbxout_parms): If mode of type of parameter living in memory doesn't match...
Doug Evans [Sat, 16 May 1998 18:41:43 +0000 (18:41 +0000)]
dbxout.c (dbxout_parms): If mode of type of parameter living in memory doesn't match mode of DECL_RTL...

* dbxout.c (dbxout_parms): If mode of type of parameter living
in memory doesn't match mode of DECL_RTL, make big endian correction.

From-SVN: r19808

26 years agoconfig.table: Add line to set enable_shared in the Makefile as needed.
Jeffrey A Law [Sat, 16 May 1998 13:02:37 +0000 (13:02 +0000)]
config.table: Add line to set enable_shared in the Makefile as needed.

        * config.table: Add line to set enable_shared in the Makefile
        as needed.

From-SVN: r19805