gcc.git
27 years ago* configure.in (nm): Make a link to "nm" in the build tree too.
Jeffrey A Law [Wed, 17 Jun 1998 08:13:23 +0000 (08:13 +0000)]
* configure.in (nm): Make a link to "nm" in the build tree too.

From-SVN: r20535

27 years agomn10300.md (andsi3): Fix typo.
Jeff Law [Wed, 17 Jun 1998 07:42:35 +0000 (01:42 -0600)]
mn10300.md (andsi3): Fix typo.


        * mn10300.md (andsi3): Fix typo.

From-SVN: r20534

27 years agomn10300.md (andsi3): Fix typo.
Jeff Law [Wed, 17 Jun 1998 07:42:33 +0000 (01:42 -0600)]
mn10300.md (andsi3): Fix typo.


        * mn10300.md (andsi3): Fix typo.

From-SVN: r20533

27 years agomethod.c (hack_identifier): Complain about getting a namespace or class template.
Jason Merrill [Wed, 17 Jun 1998 02:07:29 +0000 (02:07 +0000)]
method.c (hack_identifier): Complain about getting a namespace or class template.

* method.c (hack_identifier): Complain about getting a namespace
or class template.
* typeck.c (decay_conversion): Remove check for namespaces.
* typeck2.c (incomplete_type_error): Likewise.
* parse.y (template_arg): Add PTYPENAME expansion.

From-SVN: r20532

27 years agoDaily bump.
Jeff Law [Wed, 17 Jun 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20531

27 years ago* reload1.c (reload_cse_regs): Call bzero instead of looping.
Richard Henderson [Tue, 16 Jun 1998 23:00:29 +0000 (16:00 -0700)]
* reload1.c (reload_cse_regs): Call bzero instead of looping.

From-SVN: r20530

27 years agoFix bug reported by tege. section names wrong if USER_LABEL_PREFIX non-null.
Jim Wilson [Tue, 16 Jun 1998 18:33:00 +0000 (18:33 +0000)]
Fix bug reported by tege.  section names wrong if USER_LABEL_PREFIX non-null.

* dwarf2out.c (stripattributes): Prepend '*' to the section name.

From-SVN: r20529

27 years agoalpha.c (alpha_expand_prologue, [...]): New fns.
Richard Henderson [Tue, 16 Jun 1998 17:08:48 +0000 (10:08 -0700)]
alpha.c (alpha_expand_prologue, [...]): New fns.

        * alpha.c (alpha_expand_prologue, alpha_expand_epilogue): New fns.
        (output_prologue, output_epilogue): Merge VMS and OSF versions;
        Remove anything related to the actual code generation.
        (output_end_prologue): New function.
        (alpha_sa_mask, alpha_sa_size): Merge VMS and OSF versions.
        (alpha_does_function_need_gp): Return false for VMS.
        (alpha_function_needs_gp): Make static.
        (add_long_const): Delete.
        (summarize_insn): Don't assume a SUBREG is of a REG.
        Prototype all static functions.  Rename VMS-specific global
        variables vms_*.
        * alpha.h (TARGET_CAN_FAULT_IN_PROLOGUE): Default to 0.
        (FUNCTION_BOUNDARY): Align to cache line.
        (LOOP_ALIGN, ALIGN_LABEL_AFTER_BARRIER): Align to octaword.
        (FUNCTION_END_PROLOGUE): New macro.
        * alpha.md (attribute length): New.  Mark all insns.
        (return_internal, prologue_stack_probe_loop) New patterns.
        (prologue, init_fp, epilogue): New patterns.
        Disable peepholes.
        * linux.h (TARGET_CAN_FAULT_IN_PROLOGUE): Define.

From-SVN: r20528

27 years agotoplev.c (lang_options): Add -trigraphs option for cpplib.
Dave Brolley [Tue, 16 Jun 1998 15:48:14 +0000 (15:48 +0000)]
toplev.c (lang_options): Add -trigraphs option for cpplib.

Tue Jun 16 17:36:35 1998  Dave Brolley  <brolley@cygnus.com>
* toplev.c (lang_options): Add -trigraphs option for cpplib.

From-SVN: r20527

27 years agoreload1.c (reload_reg_free_before_p): RELOAD_FOR_OUTADDR_ADDRESS is earlier than...
J"orn Rennecke [Tue, 16 Jun 1998 15:35:50 +0000 (15:35 +0000)]
reload1.c (reload_reg_free_before_p): RELOAD_FOR_OUTADDR_ADDRESS is earlier than RELOAD_FOR_OUTPUT_ADDRESS...

* reload1.c (reload_reg_free_before_p): RELOAD_FOR_OUTADDR_ADDRESS
is earlier than RELOAD_FOR_OUTPUT_ADDRESS; RELOAD_FOR_INPADDR_ADDRESS
is earlier than RELOAD_FOR_INPUT_ADDRESS.

From-SVN: r20526

27 years agoFix v850 build failure.
Jim Wilson [Tue, 16 Jun 1998 13:17:14 +0000 (13:17 +0000)]
Fix v850 build failure.

* libgcc1-test.c (memcpy): Define.

From-SVN: r20525

27 years agodecl.c (grokvardecl): Don't build external assembler names for TYPENAMEs in other...
Andrew MacLeod [Tue, 16 Jun 1998 12:36:14 +0000 (12:36 +0000)]
decl.c (grokvardecl): Don't build external assembler names for TYPENAMEs in other namespaces as there...

1998-06-16  Andrew MacLeod  <amacleod@cygnus.com>
* decl.c (grokvardecl): Don't build external assembler names for
TYPENAMEs in other namespaces as there is no declarator.
* error.c (cp_file_of, cp_line_of): Don't extract file or line number
info from DECL_CONTEXT if it is NULL.

From-SVN: r20524

27 years agoPrint constants for function_units_used and *_blockage_range more human friendly
Michael Meissner [Tue, 16 Jun 1998 10:48:57 +0000 (10:48 +0000)]
Print constants for function_units_used and *_blockage_range more human friendly

From-SVN: r20523

27 years agorevert
Jason Merrill [Tue, 16 Jun 1998 03:18:08 +0000 (23:18 -0400)]
revert

From-SVN: r20522

27 years agomethod.c (hack_identifier): Don't let a class template out.
Jason Merrill [Tue, 16 Jun 1998 02:51:01 +0000 (02:51 +0000)]
method.c (hack_identifier): Don't let a class template out.

* method.c (hack_identifier): Don't let a class template out.
* call.c (check_dtor_name): Split out.
(build_scoped_method_call): Use it.
(build_method_call): Use it.
* init.c (build_offset_ref): Use it.
* typeck.c (build_static_cast): Fix handling of pointers to members.
* decl.c (finish_function): Just return nothing from a constructor.
* typeck.c (c_expand_return): Complain about returning a void
expression from a destructor.

From-SVN: r20521

27 years agoCutover to system.h:
Craig Burley [Tue, 16 Jun 1998 02:23:44 +0000 (22:23 -0400)]
Cutover to system.h:

Mon Jun 15 22:21:57 1998  Craig Burley  <burley@gnu.org>
Cutover to system.h:
* Make-lang.in:
* Makefile.in:
* ansify.c:
* bad.c:
* bld.c:
* com.c:
* com.h:
* expr.c:
* fini.c:
* g77spec.c:
* implic.c:
* intdoc.c:
* intrin.c:
* lex.c:
* lex.h:
* parse.c:
* proj.c:
* proj.h:
* src.c:
* src.h:
* stb.c:
* ste.c:
* target.c:
* top.c:
* system.j: New file.
Use toplev.h where appropriate:
* Make-lang.in:
* Makefile.in:
* bad.c:
* bld.c:
* com.c:
* lex.c:
* ste.c:
* top.c:
* toplev.j: New file.
Conditionalize all dumping/reporting routines so they don't
get built for gcc/egcs:
* bld.c:
* bld.h:
* com.c:
* equiv.c:
* equiv.h:
* sta.c:
* stt.c:
* stt.h:
* symbol.c:
* symbol.h:
Use hconfig.h instead of config.h where appropriate:
* Makefile.in (proj-h.o): Compile with -DUSE_HCONFIG.
* fini.c: Define USE_HCONFIG before including proj.h.
* Makefile.in (deps-kinda): Redirect stderr to stdout,
to eliminate diagnostics vis-a-vis g77spec.c.
* Makefile.in: Regenerate dependencies via deps-kinda.
* lex.c (ffelex_file_fixed, ffelex_file_free): Eliminate
apparently spurious warnings about uninitialized variables
`c', `column', and so on.

From-SVN: r20520

27 years agoDaily bump.
Jeff Law [Tue, 16 Jun 1998 00:45:03 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20517

27 years agoupdate
Jason Merrill [Mon, 15 Jun 1998 23:51:13 +0000 (19:51 -0400)]
update

From-SVN: r20516

27 years agoReorder tests in last change for speed
Michael Meissner [Mon, 15 Jun 1998 16:32:00 +0000 (16:32 +0000)]
Reorder tests in last change for speed

From-SVN: r20513

27 years agoDo not do src->dest copy if register would not be allocated a normal register
Michael Meissner [Mon, 15 Jun 1998 14:28:02 +0000 (14:28 +0000)]
Do not do src->dest copy if register would not be allocated a normal register

Co-Authored-By: Jim Wilson <wilson@cygnus.com>
From-SVN: r20512

27 years agoFix merging error with formerly cygnus local change.
Jim Wilson [Mon, 15 Jun 1998 13:22:59 +0000 (13:22 +0000)]
Fix merging error with formerly cygnus local change.

* c-decl.c (shadow_tag_warned): Use specs not declspecs in for loop.

From-SVN: r20511

27 years agoUndo June 11th change
Michael Meissner [Mon, 15 Jun 1998 12:33:51 +0000 (12:33 +0000)]
Undo June 11th change

From-SVN: r20510

27 years agoUpdate versions to 0.5.23.
Dave Love [Mon, 15 Jun 1998 07:57:08 +0000 (07:57 +0000)]
Update versions to 0.5.23.

From-SVN: r20509

27 years agog77spec.c (lang_specific_driver): Print out egcs version info first...
Craig Burley [Mon, 15 Jun 1998 07:54:39 +0000 (03:54 -0400)]
g77spec.c (lang_specific_driver): Print out egcs version info first...

Sat Jun 13 03:13:18 1998  Craig Burley  <burley@gnu.org>
* g77spec.c (lang_specific_driver): Print out egcs
version info first, to be compatible with what some
test facilities expect.

From-SVN: r20508

27 years agoMakefile.in (install): Don't install if $(libsubdir) is empty...
Craig Burley [Mon, 15 Jun 1998 07:52:05 +0000 (03:52 -0400)]
Makefile.in (install): Don't install if $(libsubdir) is empty...

Sat Jun 13 03:46:40 1998  Craig Burley  <burley@gnu.org>
* Makefile.in (install): Don't install if $(libsubdir)
is empty; issue a diagnostic saying top-level Makefile
must pass it in instead, and exit.
* Makefile.in (g2c.h): Rename from f2c.h.
* Makefile.in, libF77/Makefile.in, libI77/Makefile.in,
libU77/Makefile.in: Rewrite config and var assignment
sections to be even more minimal than before, and to
more clearly documented what macros are expected to be
set and to what sorts of values.  Eliminate CROSS and
related stuff, since there's no such things as CROSS
in egcs.  Rename GCC_FOR_TARGET to CC throughout.
* Makefile.in (stamp-libi77, stamp-libf77, stamp-libu77):
Eliminate CROSS.
* configure.in: Eliminate CROSS.
Rename libf2c.a and f2c.h to libg2c.a and g2c.h,
normalize and simplify g77/libg2c build process:
* Makefile.in: Remove all stuff pertaining to
installation, cleaning, and so on.  Parent Makefile
does all that now.  Pass F2C_H_DIR,
G2C_H_DIR, and GCC_H_DIR, the pathnames for the
directories containing f2c.h, g2c.h, and other
#include files, to subdirectory Makefiles.
(stamp-libf77, stamp-libi77, stamp-libu77):
Don't specify `-f Makefile' anymore, it's not needed
now that subdirectory makefile's from netlib are
renamed to makefile.netlib in g77 source (and to
makefile.ori by configuration process, in case they're
still around somehow).
(stamp-libe77): Don't make libE77 dir unless it doesn't
exist, if it does just delete all objects in it.
Compile using $(GCC_FOR_TARGET), not $(CC).
(rebuilt): Remove this and all subordinate targets,
as parent Makefile now handles all that.
(*clean): Remove.
* configure.in (Pad_UDread, ALWAYS_FLUSH, WANT_LEAD_0):
Remove these and commentary to new f2c.h file.
AC_OUTPUT g2c.h instead of f2c.h.  Remove old commentary
regarding concatenation.
* g2c.h.in: Rename from f2c.h.in, add appropriate
commentary.
* f2c.h: New file, a wrapper for g2c.h that does
libg2c-specific stuff.
* libF77/Makefile.in, libI77/Makefile.in, libU77/Makefile.in:
Change $(ALL_CFLAGS) to use F2C_H_DIR, G2C_H_DIR, and GCC_H_DIR
macros.  Remove F2C_H macro, replace use with explicit
dependencies on f2c.h and g2c.h.
(*clean): Remove.

From-SVN: r20507

27 years agoRestore circa-0.5.22 capabilities of `g77' driver:
Craig Burley [Mon, 15 Jun 1998 07:37:33 +0000 (03:37 -0400)]
Restore circa-0.5.22 capabilities of `g77' driver:

Thu May 28 21:32:18 1998  Craig Burley  <burley@gnu.org>
Restore circa-0.5.22 capabilities of `g77' driver:
* Make-lang.in (g77spec.o): Depend on f/version.h.
(g77version.o): New rule to compile g77 version info.
(g77$(exeext)): Depend on and link in g77version.o.
* g77spec.c: Rewrite to be more like 0.5.22 version
of g77.c, making filtering of command line smarter
so mixed Fortran and C (etc.) can be compiled, verbose
version info can be obtained, etc.
* lang-specs.h (f77-version): New "language" to support
"g77 -v" command under new gcc 2.8 regime.
* lex.c (ffelex_file_fixed): If -fnull-version, just
substitute a "source file" that prints out version info.
* top.c, top.h: Support -fnull-version.
* lang-specs.h: Use "%O" instead of OO macro to specify
object extension.  Remove old stringizing cruft.
* Make-lang.in (g77.c, g77spec.o, g77.o, g77$(exeext),
g77-cross$(exeext), f771,
$(srcdir)/f/g77.info, $(srcdir)/f/g77.dvi,
$(srcdir)/f/intdoc.texi,
f77.install-common, f77.install-info, f77.install-man,
f77.uninstall, $(G77STAGESTUFF), f77.stage1, f77.stage2,
f77.stage3, f77.stage4, f77.distdir): Don't do anything
unless user specified "f77" or "F77" in $LANGUAGES either
during configuration or explicitly.  For convenience of
various tests and to work around lack of the assignment
"LANGUAGES=$(BOOT_LANGUAGES)" in the "make stage1" command
of "make bootstrap" in gcc, use a touch file named "lang-f77"
to communicate whether this is the case.
* Make-lang.in (F77_FLAGS_TO_PASS): Delete this macro,
replace with minimal expansion of its former self in
each of the two instances where it was used.
* Makefile.in (HOST_CC): Delete this definition.
* com.c (index, rindex): Delete these declarations.
* proj.h: (isascii): Delete this.
* Make-lang.in (f77.install-common): Warn if `f77-install-ok'
flag-file exists, since it no longer triggers any activity.
Rename libf2c.a and f2c.h to libg2c.a and g2c.h,
normalize and simplify g77/libg2c build process:
* Make-lang.in: Remove all support for overwriting
/usr/bin/f77 etc., or whatever the actual names are
via $(prefix) and $(local_prefix).  (g++ overwrites
/usr/bin/c++, but then it's often the only C++ compiler
on the system; f77 often exists on systems that are
installing g77.)
(f77.realclean): Remove obsolete target.
(g77.c, g77$(exeext)): Minor changes to look more like g++'s
stuff.
(f771): Now built with srcdir=gcc/f, not srcdir=gcc, to be
more like g++ and such.
(f/Makefile): Removed, as g++ doesn't need this rule.
(f77.install-common): No longer install f77, etc.
(f77.install-man): No longer install f77.1.
(f77.uninstall): No longer uninstall f77, f77.1, etc.
(f77.stage1, f77.stage2, f77.stage3, f77.stage4): Do work
only if "f77" appears in $(LANGUAGES).
(Note: gcc's Makefile.in's bootstrap target should set
LANGUAGES=$(BOOT_LANGUAGES) when making the stage1 target.)
* Makefile.in: Update vis-a-vis gcc/cp/Makefile.in.
(none): Remove.
(g77-only): Relocate.
(all.indirect, f771, *.o): Now assumes current directory
is this dir (gcc/f), not the parent directory.
(TAGS): Remove "echo 'parse.y,0'  >> TAGS ;" line.
* config-lang.in: Delete commented-out code.
Fix stagestuff definition.  Add more stuff to
diff_excludes definition.  Don't create any directories.
Set outputs to f/Makefile, to get variable substition
to happen (what does that really do, anyway?!).
* g77spec.c: Rename libf2c to libg2c.
* com.h: Remove all of the gcc back-end decls,
since egcs should have all of them correct.
* com.c: Include "proj.h" before anything else,
as that's how things are supposed to work.
* ste.c: Ditto.
* bad.c: Include "flags.j" here, since some diagnostics
check flag_pedantic_errors.
* Makefile.in (f/*.o): Rebuild dependencies via
deps-kinda.
* output.j: New source file.
* Make-lang.in (F77_SRCS): Update accordingly.
* Makefile.in (OUTPUT_H): Ditto.
(deps-kinda): Ditto.
* com.c: Include "output.j" here.
* lex.c: Ditto.

From-SVN: r20506

27 years agors6000.c (output_prolog): Change locations and directions of saving and restoring...
Vladimir Makarov [Mon, 15 Jun 1998 07:25:09 +0000 (07:25 +0000)]
rs6000.c (output_prolog): Change locations and directions of saving and restoring arguments of main on...

* config/rs6000/rs6000.c (output_prolog): Change locations and
directions of saving and restoring arguments of main on the stack.

From-SVN: r20505

27 years agoBump for snapshot
Jeffrey A Law [Mon, 15 Jun 1998 07:16:32 +0000 (01:16 -0600)]
Bump for snapshot

From-SVN: r20503

27 years agoDaily bump.
Jeff Law [Mon, 15 Jun 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20502

27 years agoDaily bump.
Jeff Law [Sun, 14 Jun 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20501

27 years agoclass.c (alter_access): Accept a BINFO explaining how to get from the entity whose...
Mark Mitchell [Sat, 13 Jun 1998 23:48:07 +0000 (23:48 +0000)]
class.c (alter_access): Accept a BINFO explaining how to get from the entity whose accessed is being...

* class.c (alter_access): Accept a BINFO explaining how to get
from the entity whose accessed is being altered to the type doing
the altering.
(handle_using_decl): New function containing code split out from ...
(finish_struct_1): Here.

From-SVN: r20500

27 years agocp-tree.h (complete_type_or_else): Declare.
Mark Mitchell [Sat, 13 Jun 1998 23:45:18 +0000 (23:45 +0000)]
cp-tree.h (complete_type_or_else): Declare.

* cp-tree.h (complete_type_or_else): Declare.
* init.c (build_new_1, build_delete): Use it.
* typeck.c (require_complete_type): Use complete_type, rather than
expanding it inline.
(complete_type_or_else): New function.
(build_component_ref): Use it.
(pointer_int_sum): Make sure the type pointed to is complete.
(pointer_diff): Likewise.

From-SVN: r20499

27 years agopt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for types.
Mark Mitchell [Sat, 13 Jun 1998 23:35:46 +0000 (23:35 +0000)]
pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for types.

* pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for
types.

From-SVN: r20498

27 years agosearch.c (get_matching_virtual): Note that member templates cannot override virtual...
Mark Mitchell [Sat, 13 Jun 1998 23:34:56 +0000 (23:34 +0000)]
search.c (get_matching_virtual): Note that member templates cannot override virtual functions.

* search.c (get_matching_virtual): Note that member templates
cannot override virtual functions.

From-SVN: r20497

27 years agoInitial revision
Jeff Law [Sat, 13 Jun 1998 19:52:15 +0000 (13:52 -0600)]
Initial revision

From-SVN: r20494

27 years agoKill wrong ev6 comment.
Richard Henderson [Sat, 13 Jun 1998 15:36:35 +0000 (08:36 -0700)]
Kill wrong ev6 comment.

From-SVN: r20466

27 years agonetbsd.h (DEFAULT_PCC_STRUCT_RETURN): Undefine before redefining it.
Krister Walfridsson [Sat, 13 Jun 1998 13:09:41 +0000 (15:09 +0200)]
netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Undefine before redefining it.

        * config/sparc/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Undefine before
        redefining it.

From-SVN: r20454

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

From-SVN: r20451

27 years ago(ENDFILE_SPEC): Add -lgloss.
Doug Evans [Fri, 12 Jun 1998 22:54:50 +0000 (22:54 +0000)]
(ENDFILE_SPEC): Add -lgloss.

From-SVN: r20450

27 years ago* m32r/m32r.h (STARTFILE_SPEC): Delete crtsysc.o.
Doug Evans [Fri, 12 Jun 1998 18:10:23 +0000 (18:10 +0000)]
* m32r/m32r.h (STARTFILE_SPEC): Delete crtsysc.o.

From-SVN: r20445

27 years agopt.c (check_explicit_specialization): If DECLARATOR turned into an error_mark_node...
Brendan Kehoe [Fri, 12 Jun 1998 12:56:22 +0000 (12:56 +0000)]
pt.c (check_explicit_specialization): If DECLARATOR turned into an error_mark_node from lookup_template_function...

* pt.c (check_explicit_specialization): If DECLARATOR turned into
an error_mark_node from lookup_template_function, return the same.
(determine_specialization): Also make sure TEMPLATE_ID isn't an
error_mark_node, before we try to read its operands.
* decl.c (grokdeclarator): If we got an error_mark_node from
check_explicit_specialization, just return it right back.

From-SVN: r20444

27 years agoMips warning fixes:
Kaveh R. Ghazi [Fri, 12 Jun 1998 12:06:29 +0000 (12:06 +0000)]
Mips warning fixes:

        * mips.c (small_int): Mark parameter `mode' with ATTRIBUTE_UNUSED.
        (large_int): Likewise.
        (pc_or_label_operand): Likewise.
        (call_insn_operand): Likewise.
        (consttable_operand): Likewise.
        (m16_uimm3_b): Likewise.
        (m16_simm4_1): Likewise.
        (m16_nsimm4_1): Likewise.
        (m16_simm5_1): Likewise.
        (m16_nsimm5_1): Likewise.
        (m16_uimm5_4): Likewise.
        (m16_nuimm5_4): Likewise.
        (m16_simm8_1): Likewise.
        (m16_nsimm8_1): Likewise.
        (m16_uimm8_1): Likewise.
        (m16_nuimm8_1): Likewise.
        (m16_uimm8_m1_1): Likewise.
        (m16_uimm8_4): Likewise.
        (m16_nuimm8_4): Likewise.
        (m16_simm8_8): Likewise.
        (m16_nsimm8_8): Likewise.
        (m16_usym8_4): Likewise.
        (m16_usym5_4): Likewise.
        (mips_move_1word): Change type of variable `i' from int to size_t.
        (mips_move_2words): Likewise.
        (output_block_move): Mark parameter `libname' with ATTRIBUTE_UNUSED.
        (function_arg_advance): Use HOST_PTR_PRINTF to print an address.
        (function_arg): Likewise.
        (function_arg_partial_nregs): Mark parameter `named' with
        ATTRIBUTE_UNUSED.
        (override_options): Use ISDIGIT instead of isdigit.
        (mips_output_external): Mark parameter `file' with ATTRIBUTE_UNUSED.
        (final_prescan_insn): Likewise for parameters `opvec' and `noperands'.
        (save_restore_insns): Cast HOST_WIDE_INT arguments passed to
        function `fatal' to long before printing.  Use
        HOST_WIDE_INT_PRINT_DEC in fprintf.  Both changes done several
        times in this function.
        (function_prologue): Mark parameter `size' with ATTRIBUTE_UNUSED.
        (function_epilogue): Likewise for parameters `file' and `size'.
        Print an int with "%d" not "%ld".
        (mips_select_rtx_section): Mark parameter `x' with ATTRIBUTE_UNUSED.
        (mips_function_value): Likewise for parameter `func'.
        (function_arg_pass_by_reference): Likewise for parameters `cum'
        and `named'.
        (extend_operator): Likewise for parameter `mode'
        (highpart_shift_operator): Likewise.
        * mips.md (mul_acc_si): Remove unused variable `macc'.

From-SVN: r20443

27 years agoclass.c (instantiate_type): Don't treat template-ids that don't specify any template...
Mark Mitchell [Fri, 12 Jun 1998 09:47:04 +0000 (09:47 +0000)]
class.c (instantiate_type): Don't treat template-ids that don't specify any template arguments as...

* class.c (instantiate_type): Don't treat template-ids that don't
specify any template arguments as equivalent to ordinary
identifiers.  Use OFFSET_REF instead of SCOPE_REF to refer to
pointer-to-members for member templates.  Tidy slightly.
* cp-tree.def (TEMPLATE_ID_EXPR): Revise documentation.
* init.c (build_offset_ref): Handle template-ids like ordinary
identifiers, for the most part, but store a TEMPLATE_ID_EXPR in the
offset part of the OFFSET_REF.
* typeck.c (build_unary_op): Change check for unknown types to
look for OFFSET_REFs, not SCOPE_REFs.

From-SVN: r20442

27 years agofold-const.c (fold): Revert last change.
Richard Henderson [Fri, 12 Jun 1998 09:34:00 +0000 (02:34 -0700)]
fold-const.c (fold): Revert last change.

        * fold-const.c (fold): Revert last change.  It breaks constant
        expressions somehow.

From-SVN: r20441

27 years agoexpr.c (do_jump, [...]): When comparing complex prevent operands from being evaluated...
Andreas Schwab [Fri, 12 Jun 1998 01:26:05 +0000 (01:26 +0000)]
expr.c (do_jump, [...]): When comparing complex prevent operands from being evaluated twice.

* expr.c (do_jump, case EQ_EXPR, NE_EXPR): When comparing complex
prevent operands from being evaluated twice.

From-SVN: r20440

27 years agoDaily bump.
Jeff Law [Fri, 12 Jun 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20439

27 years ago* gcc.c-torture/execute/980612-1.c: New test.
Jeffrey A Law [Fri, 12 Jun 1998 00:11:18 +0000 (00:11 +0000)]
* gcc.c-torture/execute/980612-1.c: New test.

From-SVN: r20438

27 years agotoplev.c (lang_options): Add -remap as a preprocessor option.
Sergey Okhapkin [Thu, 11 Jun 1998 23:53:50 +0000 (17:53 -0600)]
toplev.c (lang_options): Add -remap as a preprocessor option.

8
        * toplev.c (lang_options): Add -remap as a preprocessor option.

From-SVN: r20437

27 years agotoplev.c (lang_options): Add -remap as a preprocessor option.
Sergey Okhapkin [Thu, 11 Jun 1998 23:53:47 +0000 (17:53 -0600)]
toplev.c (lang_options): Add -remap as a preprocessor option.


        * toplev.c (lang_options): Add -remap as a preprocessor option.

From-SVN: r20436

27 years agopt.c (is_member_template_class): New function.
Mark Mitchell [Thu, 11 Jun 1998 23:53:24 +0000 (23:53 +0000)]
pt.c (is_member_template_class): New function.

* pt.c (is_member_template_class): New function.
(push_template_decl_real): Use it.

From-SVN: r20435

27 years agoi386.md (cmpsi_1, [...]): Remove code which set CC_REVERSED since reload should ensur...
John Wehle [Thu, 11 Jun 1998 23:33:35 +0000 (23:33 +0000)]
i386.md (cmpsi_1, [...]): Remove code which set CC_REVERSED since reload should ensure that the operands...

        * i386.md (cmpsi_1, cmphi_1, cmpqi_1): Remove code
        which set CC_REVERSED since reload should ensure that
        the operands are already the correct type.

From-SVN: r20434

27 years agofriend.c (do_friend): Add support for nested classes using member functions of the...
Benjamin Kosnik [Thu, 11 Jun 1998 20:11:55 +0000 (20:11 +0000)]
friend.c (do_friend): Add support for nested classes using member functions of the enclosing class as...

8
* friend.c (do_friend): Add support for nested classes using
  member functions of the enclosing class as friends.
egcs bug

From-SVN: r20433

27 years agofriend.c (do_friend): Add support for nested classes using member functions of the...
Benjamin Kosnik [Thu, 11 Jun 1998 20:11:54 +0000 (20:11 +0000)]
friend.c (do_friend): Add support for nested classes using member functions of the enclosing class as...


* friend.c (do_friend): Add support for nested classes using
  member functions of the enclosing class as friends.
egcs bug

From-SVN: r20432

27 years agoFix m68k build failure.
Jim Wilson [Thu, 11 Jun 1998 17:15:02 +0000 (17:15 +0000)]
Fix m68k build failure.

* except.c (expand_builtin_eh_stub): Call emit_move_insn rather than
calling gen_rtx_SET.

From-SVN: r20431

27 years agox-aix43 (AR): Delete.
David Edelsohn [Thu, 11 Jun 1998 15:48:50 +0000 (15:48 +0000)]
x-aix43 (AR): Delete.

* config/rs6000/x-aix43 (AR): Delete.
(AR_FOR_TARGET_FLAGS): Add -X32_64 here.

From-SVN: r20430

27 years ago* config/i386/aix386ng.h (CPP_SPEC): Remove extraneous quote.
David W. Schuler [Thu, 11 Jun 1998 15:22:41 +0000 (15:22 +0000)]
* config/i386/aix386ng.h (CPP_SPEC): Remove extraneous quote.

From-SVN: r20429

27 years agoFix mips build error.
Jim Wilson [Thu, 11 Jun 1998 12:54:24 +0000 (12:54 +0000)]
Fix mips build error.

* mips.c (override_options): Replace word_mode with explicit
TARGET_64BIT check.

From-SVN: r20428

27 years agoFor regmove if we could not improve code by changing the source to the destination...
Michael Meissner [Thu, 11 Jun 1998 11:51:52 +0000 (11:51 +0000)]
For regmove if we could not improve code by changing the source to the destination, copy the source to the destination directly

From-SVN: r20427

27 years agotoplev.c (lang_options): Add missing options (nostdinc, idirafter).
Dave Brolley [Thu, 11 Jun 1998 07:51:52 +0000 (07:51 +0000)]
toplev.c (lang_options): Add missing options (nostdinc, idirafter).

Thu Jun 11 10:30:09 1998  Dave Brolley  <brolley@cygnus.com>
* toplev.c (lang_options): Add missing options (nostdinc, idirafter).

From-SVN: r20426

27 years agoDaily bump.
Jeff Law [Thu, 11 Jun 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20425

27 years agocall.c (convert_default_arg): Make global, not static.
Mark Mitchell [Thu, 11 Jun 1998 00:07:24 +0000 (00:07 +0000)]
call.c (convert_default_arg): Make global, not static.

* call.c (convert_default_arg): Make global, not static.
(convert_arg_for_ellipsis): Split out from ...
(build_over_call): Here.
* cp-tree.h (convert_default_arg); Declare.
(convert_arg_to_ellipsis): Likewise.
(do_member_init): Remove.
* init.c (do_member_init): Remove; this code is dead.
(expand_member_init): Remove much of this code; it is dead.
* typeck.c (convert_arguments): Use convert_default_arg and
convert_arg_for_ellipsis, rather than duplicating here.
* call.c (convert_like): Don't fail silently if
build_user_type_conversion fails.  Always return error_mark_node
for failure.

From-SVN: r20424

27 years agortl.h (rtx_def): Improve documentation.
Mark Mitchell [Wed, 10 Jun 1998 23:39:46 +0000 (23:39 +0000)]
rtl.h (rtx_def): Improve documentation.

* rtl.h (rtx_def): Improve documentation.
(MEM_IN_STRUCT_P): Likewise.

From-SVN: r20423

27 years ago* c-decl.c (grokdeclarator): Remove unused variable "last".
Graham Stott [Wed, 10 Jun 1998 22:36:37 +0000 (16:36 -0600)]
* c-decl.c (grokdeclarator): Remove unused variable "last".

From-SVN: r20422

27 years ago* c-decl.c (start_decl): Correct test for -Wmain.
Graham Stott [Wed, 10 Jun 1998 22:29:04 +0000 (16:29 -0600)]
* c-decl.c (start_decl): Correct test for -Wmain.

From-SVN: r20421

27 years ago* search.c (covariant_return_p): Complain about ambiguous base.
Jason Merrill [Wed, 10 Jun 1998 21:12:16 +0000 (21:12 +0000)]
* search.c (covariant_return_p): Complain about ambiguous base.

From-SVN: r20420

27 years ago* typeck.c (build_component_ref): Diagnose ref to nested type.
Jason Merrill [Wed, 10 Jun 1998 21:03:58 +0000 (21:03 +0000)]
* typeck.c (build_component_ref): Diagnose ref to nested type.

From-SVN: r20419

27 years agoFix build failure when pointers smaller than integers.
Jim Wilson [Wed, 10 Jun 1998 14:55:48 +0000 (14:55 +0000)]
Fix build failure when pointers smaller than integers.

* expr.c (expand_builtin_setjmp): Store const1_rtx in target.
(expand_builtin_longjmp): Abort if value isn't const1_rtx.
Delete code storing value in static_chain_rtx.
(expand_builtin, case BUILT_IN_LONGJMP): Pass NULL_RTX for target
to second expand_expr call.

From-SVN: r20418

27 years ago* mips/mips.c: Remove -mabi=o32 and -mabi=n64.
Mark Mitchell [Wed, 10 Jun 1998 13:17:56 +0000 (13:17 +0000)]
* mips/mips.c: Remove -mabi=o32 and -mabi=n64.

From-SVN: r20417

27 years agoUse cpplib for cccp.
Dave Brolley [Wed, 10 Jun 1998 12:58:43 +0000 (12:58 +0000)]
Use cpplib for cccp.

Wed Jun 10 13:41:23 1998  Dave Brolley  <brolley@cygnus.com>
* cppmain.c (fatal): New function.
* configure.in (cpp_main): New configuration variable.
* configure: Regenerated.
* Makefile.in (CCCP): Use a configuration variable to select base for cccp.
(cppmain$(exeext)): Add @extra_cpp_objs@.

From-SVN: r20416

27 years agodecl.c (grokparms): Check that INIT isn't an error_mark_node before giving error...
Brendan Kehoe [Wed, 10 Jun 1998 12:34:37 +0000 (12:34 +0000)]
decl.c (grokparms): Check that INIT isn't an error_mark_node before giving error about invalid type...

        * decl.c (grokparms): Check that INIT isn't an error_mark_node
        before giving error about invalid type for default arg.

From-SVN: r20415

27 years agoChangeLog
Vladimir Makarov [Wed, 10 Jun 1998 10:57:06 +0000 (10:57 +0000)]
ChangeLog

From-SVN: r20414

27 years ago* call.c (build_method_call): Fix thinko.
Jason Merrill [Wed, 10 Jun 1998 10:50:44 +0000 (10:50 +0000)]
* call.c (build_method_call): Fix thinko.

From-SVN: r20413

27 years ago* decl.c (init_decl_processing): Fix typo.
Jeffrey A Law [Wed, 10 Jun 1998 10:44:38 +0000 (10:44 +0000)]
* decl.c (init_decl_processing): Fix typo.

From-SVN: r20412

27 years agocall.c (build_scoped_method_call): Fix thinko.
Jason Merrill [Wed, 10 Jun 1998 10:43:41 +0000 (10:43 +0000)]
call.c (build_scoped_method_call): Fix thinko.

* call.c (build_scoped_method_call): Fix thinko.
(build_method_call): Likewise.

From-SVN: r20411

27 years agoNew interface for lang_decode_option Wed Jun 10 13:07:02 1998 Dave Brolley <brolley...
Dave Brolley [Wed, 10 Jun 1998 10:22:54 +0000 (06:22 -0400)]
New interface for lang_decode_option Wed Jun 10 13:07:02 1998 Dave Brolley <brolley@cygnus.com>

New interface for lang_decode_option
Wed Jun 10 13:07:02 1998  Dave Brolley  <brolley@cygnus.com>
* objc/objc-act.c: Add cpplib declarations.
(lang_decode_option): Initialize cpplib if necessary.
(lang_decode_option): New argc/argv interface.

From-SVN: r20410

27 years agoNew interface for lang_decode_option.
Dave Brolley [Wed, 10 Jun 1998 10:18:45 +0000 (10:18 +0000)]
New interface for lang_decode_option.

Wed Jun 10 13:17:32 1998  Dave Brolley  <brolley@cygnus.com>
* top.h (ffe_decode_option): New argc/argv interface.
* top.c (ffe_decode_option): New argc/argv interface.
* parse.c (yyparse): New argc/argv interface for ffe_decode_option.
* com.c (lang_decode_option): New argc/argv interface.

From-SVN: r20409

27 years agoIntegrate cpplib into the C++ front end.
Dave Brolley [Wed, 10 Jun 1998 10:16:45 +0000 (10:16 +0000)]
Integrate cpplib into the C++ front end.

1998-06-10  Dave Brolley  <brolley@cygnus.com>
* decl2.c (lang_decode_option): New argc/argv interface.
* cp-tree.h (lang_decode_option): New argc/argv interface.
* lang-specs.h (default_compilers): Only call cpp if -E, -M or -MM is
specified for cpplib-enabled compilers.
* lex.c (lang_init): Don't check_newline for cpplib.
(init_parse): Don't initialize cpplib here.

From-SVN: r20408

27 years agoIntegrate cpplib into the C and C++ front ends.
Dave Brolley [Wed, 10 Jun 1998 10:12:36 +0000 (10:12 +0000)]
Integrate cpplib into the C and C++ front ends.

Wed Jun 10 13:07:02 1998  Dave Brolley  <brolley@cygnus.com>
* objc/objc-act.c: Add cpplib declarations.
(lang_decode_option): Initialize cpplib if necessary.
(lang_decode_option): New argc/argv interface.
* tree.h (lang_decode_option): New argc/argv interface.
* toplev.c (lang_options): Add cpp options.
(main): New interface for lang_decode_option.
* gcc.c (default_compilers): Don't call cpp for a cpplib-enabled C compiler
unless -E, -M or -MM is specified.
* cpplib.h (cpp_handle_option): New function.
* cpplib.c (cpp_handle_option): New function.
(cpp_handle_options): Now calls cpp_handle_option.
* c-tree.h (c_decode_option): New argc/argv interface.
* c-lex.c (init_parse): cpplib now initialized in c_decode_option.
* c-lang.c (lang_decode_option): New argc/argv interface.
* c-decl.c: Add cpplib declarations.
(c_decode_option): New argc/argv interface.
(c_decode_option): Call cpp_handle_option.
(c_decode_option): Now returns number of strings processed.

From-SVN: r20407

27 years agotypeck.c (build_component_ref): Make sure FIELD has a lang_specific piece before...
Brendan Kehoe [Wed, 10 Jun 1998 10:01:13 +0000 (10:01 +0000)]
typeck.c (build_component_ref): Make sure FIELD has a lang_specific piece before checking DECL_MUTABLE_P.

* typeck.c (build_component_ref): Make sure FIELD has a lang_specific
piece before checking DECL_MUTABLE_P.

From-SVN: r20406

27 years agoeb129, eb130. New tests from Klaus-Georg Adams.
Robert Lipe [Wed, 10 Jun 1998 09:52:40 +0000 (09:52 +0000)]
eb129, eb130.   New tests from  Klaus-Georg Adams.

From-SVN: r20405

27 years agounroll.c (verify_addresses): Use validate_replace_rtx to undo the changes.
Richard Earnshaw [Wed, 10 Jun 1998 09:49:30 +0000 (09:49 +0000)]
unroll.c (verify_addresses): Use validate_replace_rtx to undo the changes.

* unroll.c (verify_addresses): Use validate_replace_rtx to undo the
changes.  Abort if the undo fails.

From-SVN: r20404

27 years agomips.c (gpr_mode): New variable.
Jeffrey A Law [Wed, 10 Jun 1998 09:15:39 +0000 (09:15 +0000)]
mips.c (gpr_mode): New variable.

        * mips.c (gpr_mode): New variable.
        (override_options): Initialize gpr_mode.
        (compute_frame_size): Use "gpr_mode" instead of "word_mode" to
        determine size and offset of general purpose registers save slots.
        (save_restore_insns, mips_expand_prologue): Similarly.

From-SVN: r20403

27 years agoreload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG for each alternative.
John Carr [Wed, 10 Jun 1998 06:00:50 +0000 (06:00 +0000)]
reload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG for each alternative.

Wed Jun 10 08:56:27 1998  John Carr  <jfc@mit.edu>
* reload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG
for each alternative.  Do not replace a CONST_INT with a REG unless
the reg is cheaper.

From-SVN: r20402

27 years agotree.c (debug_binfo): Make printf format match arguments.
John Carr [Wed, 10 Jun 1998 05:54:23 +0000 (05:54 +0000)]
tree.c (debug_binfo): Make printf format match arguments.

1998-06-10  John Carr  <jfc@mit.edu>
* tree.c (debug_binfo): Make printf format match arguments.
* error.c (OB_PUTI): Make printf format match arguments.

From-SVN: r20401

27 years agoupdate
Jason Merrill [Wed, 10 Jun 1998 03:14:02 +0000 (23:14 -0400)]
update

From-SVN: r20400

27 years agoinit.c (resolve_offset_ref): Handle default-initialization.
Jason Merrill [Wed, 10 Jun 1998 03:13:19 +0000 (23:13 -0400)]
init.c (resolve_offset_ref): Handle default-initialization.

* init.c (resolve_offset_ref): Handle default-initialization.
* except.c (build_throw): Handle throwing NULL.
* typeck.c (build_x_function_call): Use resolve_offset_ref.
* search.c (compute_access): Only strip an anonymous union
for a FIELD_DECL.
* call.c (add_builtin_candidates): Tweak.
* cvt.c (build_expr_type_conversion): Restore code for conversion
from class types.
* decl2.c (delete_sanity): Use it.  Clean up.
* typeck.c (comp_ptr_ttypes_real): Fix cv-qual comparisons.
        * typeck.c (c_expand_return): Don't warn about void expressions on
        return statements in functions returning void.

From-SVN: r20399

27 years agoreload.c (find_reloads_toplev): Use gen_lowpart common to convert between constant...
Jeffrey A Law [Wed, 10 Jun 1998 01:14:54 +0000 (01:14 +0000)]
reload.c (find_reloads_toplev): Use gen_lowpart common to convert between constant representations when...

        * reload.c (find_reloads_toplev): Use gen_lowpart common to convert
        between constant representations when we have (SUBREG (REG)) with
        REG equivalent to a constant.

From-SVN: r20398

27 years agoDaily bump.
Jeff Law [Wed, 10 Jun 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r20397

27 years ago* h8300.c (get_shift_alg): Add special cases for shifts of 8 and 24.
Juha Sarlin [Wed, 10 Jun 1998 00:41:51 +0000 (02:41 +0200)]
* h8300.c (get_shift_alg): Add special cases for shifts of 8 and 24.

From-SVN: r20396

27 years agoi386.c (notice_update_cc): Clear cc_status.value2 in the case of UNSPEC 5 (bsf).
John Wehle [Wed, 10 Jun 1998 00:39:23 +0000 (00:39 +0000)]
i386.c (notice_update_cc): Clear cc_status.value2 in the case of UNSPEC 5 (bsf).

* i386.c (notice_update_cc): Clear cc_status.value2 in the
case of UNSPEC 5 (bsf).

From-SVN: r20395

27 years agonew
Jason Merrill [Tue, 9 Jun 1998 23:45:30 +0000 (19:45 -0400)]
new

From-SVN: r20394

27 years agopt.c (fn_type_unification): Revise documentation.
Mark Mitchell [Tue, 9 Jun 1998 23:39:34 +0000 (23:39 +0000)]
pt.c (fn_type_unification): Revise documentation.

* pt.c (fn_type_unification): Revise documentation.  Tidy.
(type_unification): Likewise.

From-SVN: r20393

27 years agofold-const.c (fold): Even with otherwise constant trees...
Richard Henderson [Tue, 9 Jun 1998 22:05:49 +0000 (15:05 -0700)]
fold-const.c (fold): Even with otherwise constant trees...

        * fold-const.c (fold): Even with otherwise constant trees, look for
        opportunities to combine integer constants.

From-SVN: r20392

27 years agoi386.md (movsfcc, [...]): The floating point conditional move instructions don't...
John Wehle [Tue, 9 Jun 1998 21:42:21 +0000 (15:42 -0600)]
i386.md (movsfcc, [...]): The floating point conditional move instructions don't support signed integer...

        * i386.md (movsfcc, movdfcc, movxfcc): The floating point
        conditional move instructions don't support signed integer
        comparisons.

From-SVN: r20391

27 years agoFix interrupt return epilogue.
Nick Clifton [Tue, 9 Jun 1998 14:33:45 +0000 (14:33 +0000)]
Fix interrupt return epilogue.

From-SVN: r20385

27 years agoMinor tweaks.
Andrew MacLeod [Tue, 9 Jun 1998 13:28:26 +0000 (13:28 +0000)]
Minor tweaks.

* except.c (expand_start_catch): Rename to start_catch_handler.
(expand_end_catch): Delete function.
(expand_end_all_catch): Remove catch status that expand_end_catch
use to do.
* except.h (expand_start_catch): Rename prototype.
(expand_end_catch): Delete prototype.
* semantics.c (finish_try_block): Rename expand_start_catch, and delete
expand_end_catch.
* parse.y (function_try_block): Rename expand_start_catch, and delete
expand_end_catch.
* except.c (expand_end_eh_spec): Rename expand_start_catch, and delete
expand_end_catch.

From-SVN: r20379

27 years ago* invoke.texi: Add documentation for -mips4 and -mabi=*.
Mark Mitchell [Tue, 9 Jun 1998 12:57:16 +0000 (12:57 +0000)]
* invoke.texi: Add documentation for -mips4 and -mabi=*.

From-SVN: r20377

27 years agovms.h (EXTRA_SECTIONS): Add in_ctors and in_dtors.
Klaus Kaempf [Tue, 9 Jun 1998 12:12:13 +0000 (12:12 +0000)]
vms.h (EXTRA_SECTIONS): Add in_ctors and in_dtors.

        * alpha/vms.h (EXTRA_SECTIONS): Add in_ctors and in_dtors.
        (EXTRA_SECTION_FUNCTIONS): Add ctors_section and dtors_section.
        (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Define.

From-SVN: r20376

27 years agosearch.c (lookup_member): New fn.
Jason Merrill [Tue, 9 Jun 1998 12:10:57 +0000 (12:10 +0000)]
search.c (lookup_member): New fn.

* search.c (lookup_member): New fn.
* class.c (finish_struct_1): Use it.
* decl.c (lookup_name_real): Use it.

From-SVN: r20375

27 years agohaifa-sched.c (update_flow_info): Use UNITS_PER_WORD...
John Carr [Tue, 9 Jun 1998 12:10:02 +0000 (12:10 +0000)]
haifa-sched.c (update_flow_info): Use UNITS_PER_WORD...

        * haifa-sched.c (update_flow_info): Use UNITS_PER_WORD, not MOVE_MAX,
        as the threshold to permit splitting memory operations.

From-SVN: r20374