]> gcc.gnu.org Git - gcc.git/log
gcc.git
26 years agoclass.c (grow_method): Remove check for redeclaration.
Jason Merrill [Sat, 6 Sep 1997 08:10:07 +0000 (04:10 -0400)]
class.c (grow_method): Remove check for redeclaration.

* class.c (grow_method): Remove check for redeclaration.

Fri Sep  5 01:37:17 1997  Mark Mitchell  <mmitchell@usa.net>

* cp-tree.h (INNERMOST_TEMPLATE_PARMS): New macro.
(DECL_INNERMOST_TEMPLATE_PARMS): Likewise.
(PRIMARY_TEMPLATE_P): Use it.
* call.c (build_overload_call_real): Use it.
* class.c (instantiate_type): Likewise.
* decl.c (decls_match): Likewise.
* method.c (build_overload_identifier): Likewise.
* pt.c (push_template_decl): Likewise.
(classtype_mangled_name): Likewise.
(lookup_template_class): Likewise.

* cp-tree.h (DECL_NTPARMS): Change name from DECL_NT_PARMS to
DECL_NTPARMS to conform to usage elsewhere.
* call.c (add_template_candidate): Likewise.
* class.c (instantiate_type): Likewise.
* pt.c (instantiate_template): Likewise.
(get_bindings): Likewise.

* class.c (grow_method): Use DECL_FUNCTION_TEMPLATE_P instead of
is_member_template.

* pt.c (unify): Undo changes to allow multiple levels of template
parameters.
(type_unification): Likewise.
(fn_type_unification): Likewise.
(get_class_bindings): Likewise.
* cp-tree.h (Likewise).

* decl.c (replace_defarg): Check that the type of the default
parameter does not invlove a template type before complaining
about the initialization.

* error.c (dump_expr): Deal with template constant parameters in
member templates correctly.

* pt.c (is_member_template): Deal with class specializations
correctly.
(tsubst): Handle "partial instantiation" of member templates
correctly.

Wed Sep  3 12:30:24 1997  Mark Mitchell  <mmitchell@usa.net>

* pt.c (type_unification): Change calling squence to allow for
multiple levels of template parameters.
(tsubst_expr): Likewise.
(tsubst): Likewise.
(tsubst_copy): Likewise.
(instantiate_template): Likewise.
(unify): Likewise.
* call.c (build_overload_call_real): Use it.
(add_builtin_candidate): Use it.
(build_new_method_call): Use it.
* class.c (instantiate_type): Use it.
* decl.c (grokdeclarator): Use it.
* decl2.c (finish_file): Use it.
* method.c (build_overload_identifier): Use it.

* call.c (add_template_candidate):  Add additional parameter for
the function return type.  Call fn_type_unification istead of
type_unification.
(build_user_type_conversion_1): Handle member templates.
(build_new_function_call): Likewise.
(build_new_op): Likewise.
(build_new_method_call): Likewise.

* class.c (grow_method): Don't give an error message indicating
  that two member templates with the same name are ambiguous.
(finish_struct): Treat member template functions just like member
  functions.

* cp-tree.h (check_member_template): Add declaration.
(begin_member_template_processing): Likewise.
(end_member_template_processing): Likewise.
(fn_type_unification): Likewise.
(is_member_template): Likewise.
(tsubst): Change prototype.
(tsubst_expr): Likewise.
(tsubst_copy): Likewise.
(instantiate_template): Likewise.
(get_bindings): Likewise.

* decl.c (decls_match): Handle multiple levels of template
parameters.
(pushdecl): Handle template type params just like other type
declarations.
(push_class_level_binding): Return immediately if the
class_binding_level is NULL.
(grokfndecl): If check_classfn() returns a member_template, use
the result of the template, not the template itself.

* decl2.c (check_member_template): New function.  Check to see
that the entity declared to be a member template can be one.
(check_classfn): Allow redeclaration of member template functions
with different types; the new functions can be specializations or
explicit instantiations.

* error.c (dump_decl): Handle multiple levels of template
parameters.
(dump_function_decl): Update to handle function templates.

* lex.c (do_pending_inlines): Set up template parameter context
for member templates.
(process_next_inline): Likewise.

* method. (build_overload_identifier): Adjust for multiple levels
of template parameters.

* parse.y (fn.def2): Add member templates.
(component_decl_1): Likewise.

* pt.c (begin_member_template_processing): New function.
(end_member_template_processing): Likewise.
(is_member_template): Likewise.
(fn_type_unification): Likewise.
(current_template_parms): Return a vector of all the template
parms, not just the innermost level of parms.
(push_template_decl): Deal with the possibility of member
templates.
(lookup_template_class): Likewise.
(uses_template_parms): Likewise.
(tsubst): Modify processing to TEMPLATE_TYPE_PARM and
TEMPLATE_CONST_PARM to deal with multiple levels of template
arguments.   Add processing of TEMPLATE_DECL to produce new
TEMPLATE_DECLs from old ones.
(do_decl_instantiation): Handle member templates.

* search.c (lookup_fnfields_1): Handle member template conversion
operators.

* tree.c (cp_tree_equal): Check the levels, as well as the
indices, of TEMPLATE_CONST_PARMs.

* typeck.c (comptypes): Check the levels, as well as the indices,
fo TEMPLATE_TYPE_PARMs.
(build_x_function_call): Treat member templates like member
functions.

Member templates.

From-SVN: r15130

26 years agoInsert libio rewrite and its various changes from devo.
Brendan Kehoe [Sat, 6 Sep 1997 07:44:38 +0000 (03:44 -0400)]
Insert libio rewrite and its various changes from devo.

From-SVN: r15129

26 years agoFix `make distclean' failure.
Jim Wilson [Sat, 6 Sep 1997 00:29:47 +0000 (00:29 +0000)]
Fix `make distclean' failure.

* Makefile.in (distclean): Do MULTICLEAN before deleting Makefile.

From-SVN: r15128

26 years agoFix undefined reference to constructor with -O3 -fprofile-arcs.
Jim Wilson [Fri, 5 Sep 1997 23:59:43 +0000 (23:59 +0000)]
Fix undefined reference to constructor with -O3 -fprofile-arcs.

* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.

From-SVN: r15127

26 years agosparc.md: Add ultrasparc scheduling support.
Christian Kuehnke [Fri, 5 Sep 1997 23:17:19 +0000 (23:17 +0000)]
sparc.md: Add ultrasparc scheduling support.

* sparc/sparc.md: Add ultrasparc scheduling support.
* sparc/sparc.h (RTX_COSTS): For MULT give v9 a cost of 25 insns.

From-SVN: r15126

26 years ago* configure.in (*-*-rtems*): Do not build libgloss for rtems.
Joel Sherrill [Fri, 5 Sep 1997 23:15:09 +0000 (23:15 +0000)]
* configure.in (*-*-rtems*): Do not build libgloss for rtems.

From-SVN: r15125

26 years agolibio.exp (test_libio): Use libstdc++_{include,link}_flags instead of g++_{include...
Jeffrey A Law [Fri, 5 Sep 1997 21:37:51 +0000 (21:37 +0000)]
libio.exp (test_libio): Use libstdc++_{include,link}_flags instead of g++_{include,link}_flags.

        * lib/libio.exp  (test_libio): Use libstdc++_{include,link}_flags
        instead of g++_{include,link}_flags.

From-SVN: r15123

26 years agosdbout.c (plain_type_1, [...]): Verify that TYPE_DOMAIN has integer TYPE_{MAX,MIN...
Jim Wilson [Fri, 5 Sep 1997 20:06:11 +0000 (20:06 +0000)]
sdbout.c (plain_type_1, [...]): Verify that TYPE_DOMAIN has integer TYPE_{MAX,MIN}_VALUE before using them.

        * sdbout.c (plain_type_1, case ARRAY_TYPE): Verify that TYPE_DOMAIN
        has integer TYPE_{MAX,MIN}_VALUE before using them.
Bring over from the FSF.

From-SVN: r15117

26 years agointegrate.c (save_for_inline_copying): Use 0, not NULL_PTR, as initial value for...
Philippe De Muyter [Fri, 5 Sep 1997 20:03:37 +0000 (22:03 +0200)]
integrate.c (save_for_inline_copying): Use 0, not NULL_PTR, as initial value for real_label_map.

        * integrate.c (save_for_inline_copying): Use 0, not NULL_PTR,
        as initial value for real_label_map.
        (copy_for_inline): Likewise.
Brought over from the FSF.

From-SVN: r15116

26 years ago* sched.c (update_flow_info) When looking if to set found_split_dest
J"orn Rennecke [Fri, 5 Sep 1997 19:36:35 +0000 (19:36 +0000)]
* sched.c (update_flow_info) When looking if to set found_split_dest
        or found_orig_dest, look at all parts of a PARALLEL.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r15115

26 years ago* config.sub: Handle v850-elf.
Jeffrey A Law [Fri, 5 Sep 1997 18:25:50 +0000 (18:25 +0000)]
* config.sub: Handle v850-elf.

From-SVN: r15114

26 years agov850: New directory for v850 port.
Jeffrey A Law [Fri, 5 Sep 1997 17:43:51 +0000 (17:43 +0000)]
v850: New directory for v850 port.

        * v850: New directory for v850 port.
        * v850/lib1funcs.asm: New file.
        * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
        * ginclude/va-v850.h: New file.
        * varargs.h, stdarg.h: Include va-mn10200.h.
        * configure.in (mn10200-*-*): New target.
        * Makefile.in (USER_H): Add va-mn10200.h.

From-SVN: r15104

26 years agov850: New directory for v850 port.
Jeff Law [Fri, 5 Sep 1997 17:41:24 +0000 (11:41 -0600)]
v850: New directory for v850 port.

Fri Sep  5 10:08:44 1997  Jeffrey A Law  (law@cygnus.com)

        * v850: New directory for v850 port.
        * v850/lib1funcs.asm: New file.
        * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
        * ginclude/va-v850.h: New file.
        * varargs.h, stdarg.h: Include va-mn10200.h.
        * configure.in (mn10200-*-*): New target.
        * Makefile.in (USER_H): Add va-mn10200.h.

From-SVN: r15103

26 years agom68k.h (MACHINE_STATE_SAVE, [...]): Add __HPUX_ASM__ versions.
Jim Wilson [Fri, 5 Sep 1997 15:36:39 +0000 (15:36 +0000)]
m68k.h (MACHINE_STATE_SAVE, [...]): Add __HPUX_ASM__ versions.

        * m68k/m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Add
        __HPUX_ASM__ versions.
Fixes build problems for m68k-hp-hpux*

From-SVN: r15102

26 years agoAdd new pointer.
Jeff Law [Fri, 5 Sep 1997 15:18:14 +0000 (09:18 -0600)]
Add new pointer.

From-SVN: r15101

26 years ago* install.sh: Delete duplicate install script.
Jeffrey A Law [Fri, 5 Sep 1997 15:06:54 +0000 (15:06 +0000)]
* install.sh: Delete duplicate install script.

From-SVN: r15100

26 years ago* install-sh: Delete duplicate install script.
Jeffrey A Law [Fri, 5 Sep 1997 15:05:56 +0000 (15:05 +0000)]
* install-sh: Delete duplicate install script.

From-SVN: r15099

26 years ago* cbrt.c: Tweak to work on more targets.
Richard Henderson [Fri, 5 Sep 1997 06:19:00 +0000 (23:19 -0700)]
* cbrt.c: Tweak to work on more targets.

From-SVN: r15098

26 years agoMakefile.in (clean): Don't remove config.cache.
Jeffrey A Law [Fri, 5 Sep 1997 06:16:30 +0000 (06:16 +0000)]
Makefile.in (clean): Don't remove config.cache.

        * Makefile.in (clean): Don't remove config.cache.
        (distclean): Do it here instead.

From-SVN: r15097

26 years agoreg-stack.c (subst_stack_regs): Pop the stack register for a computed goto which...
Stan Cox [Fri, 5 Sep 1997 05:14:46 +0000 (05:14 +0000)]
reg-stack.c (subst_stack_regs): Pop the stack register for a computed goto which sets the same stack register.

        * reg-stack.c (subst_stack_regs): Pop the stack register for a
        computed goto which sets the same stack register.

        * reg-stack.c (compare_for_stack_reg): Swap only if the source and
        destination are both on the regstack.
        (subst_stack_regs_pat): Put the destination at the top of the regstack.
Bring over regstack bugfixes from the FSF.

From-SVN: r15096

26 years agoFix mips-sgi-irix5.2 eh25 g++ testsuite failure.
Jim Wilson [Fri, 5 Sep 1997 02:36:53 +0000 (02:36 +0000)]
Fix mips-sgi-irix5.2 eh25 g++ testsuite failure.

* mips.md (nonlocal_goto_receiver): Define.

From-SVN: r15091

26 years agoFix another -fprofile-arcs bug from Joseph Myers <jsm28@cam.ac.uk>.
Jim Wilson [Fri, 5 Sep 1997 02:17:56 +0000 (02:17 +0000)]
Fix another -fprofile-arcs bug from Joseph Myers <jsm28@cam.ac.uk>.

* profile.c (output_arc_profiler): Check next_insert_after for non
NULL before deferencing it.

From-SVN: r15090

26 years ago* i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
Jim Wilson [Thu, 4 Sep 1997 23:54:04 +0000 (23:54 +0000)]
* i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.

From-SVN: r15088

26 years agotweak
Jason Merrill [Thu, 4 Sep 1997 23:10:35 +0000 (19:10 -0400)]
tweak

From-SVN: r15086

26 years agoTest commit.
Jeff Law [Thu, 4 Sep 1997 22:20:21 +0000 (16:20 -0600)]
Test commit.

From-SVN: r15085

26 years ago* i386.h (CPP_CPU_DEFAULT): Avoid using #elif.
Jeffrey A Law [Thu, 4 Sep 1997 20:50:19 +0000 (20:50 +0000)]
* i386.h (CPP_CPU_DEFAULT): Avoid using #elif.

From-SVN: r15083

26 years agoFor phases starting with flow, print basic block information when doing dumps
Michael Meissner [Thu, 4 Sep 1997 19:15:50 +0000 (19:15 +0000)]
For phases starting with flow, print basic block information when doing dumps

From-SVN: r15082

26 years agoFix minor bug reported by Jan Hubicka.
Jim Wilson [Thu, 4 Sep 1997 19:06:02 +0000 (19:06 +0000)]
Fix minor bug reported by Jan Hubicka.

* toplev.c (main): Change #elif to #else/#ifdef

From-SVN: r15081

26 years agoFix minor bugs found by riscos build attempt.
Jim Wilson [Thu, 4 Sep 1997 18:54:16 +0000 (18:54 +0000)]
Fix minor bugs found by riscos build attempt.

* tlink.c: Include ctype.h.
* ginclude/va-mips.h: Add _VA_MIPS_H_ENUM ifdef/define/endif.

From-SVN: r15080

26 years agoChangeLog entry for last bitmap change.
Michael Meissner [Thu, 4 Sep 1997 17:17:09 +0000 (11:17 -0600)]
ChangeLog entry for last bitmap change.

From-SVN: r15079

26 years agoAdd free declaration
Michael Meissner [Thu, 4 Sep 1997 17:06:34 +0000 (17:06 +0000)]
Add free declaration

From-SVN: r15078

26 years ago* i960/i960.h: Added default for SUBTARGET_SWITCHES macro.
Joel Sherrill [Thu, 4 Sep 1997 15:59:54 +0000 (15:59 +0000)]
* i960/i960.h: Added default for SUBTARGET_SWITCHES macro.

From-SVN: r15077

26 years agoprofile.c (output_arc_profiler): Verify next_insert_after is an INSN before and after...
Jim Wilson [Thu, 4 Sep 1997 15:54:24 +0000 (15:54 +0000)]
profile.c (output_arc_profiler): Verify next_insert_after is an INSN before and after skipping a stack pop.

        * profile.c (output_arc_profiler): Verify next_insert_after is an
        INSN before and after skipping a stack pop.

From-SVN: r15076

26 years ago* .cvsignore (*-install): Remove.
Fred Fish [Thu, 4 Sep 1997 15:49:02 +0000 (15:49 +0000)]
* .cvsignore (*-install): Remove.

From-SVN: r15075

26 years agofinal.c (shorten_branches): Don't count the lengths of deleted instructions.
J"orn Rennecke [Thu, 4 Sep 1997 15:47:40 +0000 (15:47 +0000)]
final.c (shorten_branches): Don't count the lengths of deleted instructions.

        * final.c (shorten_branches): Don't count the lengths of deleted
        instructions.

From-SVN: r15074

26 years ago* version.c: Bump for snapshot.
Jeffrey A Law [Thu, 4 Sep 1997 15:41:38 +0000 (15:41 +0000)]
* version.c: Bump for snapshot.

From-SVN: r15072

26 years agoAdd EXECUTE_IF_AND_IN_{BITMAP,REG_SET}, and bitmap_print
Michael Meissner [Thu, 4 Sep 1997 15:12:20 +0000 (15:12 +0000)]
Add EXECUTE_IF_AND_IN_{BITMAP,REG_SET}, and bitmap_print

From-SVN: r15071

26 years agoFix srcdir==objdir build failure with multilibbed libiberty.
Jim Wilson [Wed, 3 Sep 1997 22:53:56 +0000 (22:53 +0000)]
Fix srcdir==objdir build failure with multilibbed libiberty.

* Makefile.in (stamp-needed, stamp-config): Add MULTISRCTOP to
pathname for move-if-change.

From-SVN: r15067

26 years agotypeck.c (c_expand_return): Always convert_for_initialization before checking for...
Jason Merrill [Wed, 3 Sep 1997 20:01:18 +0000 (20:01 +0000)]
typeck.c (c_expand_return): Always convert_for_initialization before checking for returning a pointer to local.

* typeck.c (c_expand_return): Always convert_for_initialization
  before checking for returning a pointer to local.

From-SVN: r15064

26 years agoFix H.J. Lu's alpha-linux aliasing bug.
Jim Wilson [Wed, 3 Sep 1997 19:28:49 +0000 (19:28 +0000)]
Fix H.J. Lu's alpha-linux aliasing bug.

* alias.c (true_dependence): Address with AND can alias scalars.
(anti_dependence, output_dependence): Likewise.

From-SVN: r15063

26 years agopt.c (type_unification): If strict and the function parm doesn't use template parms...
Jason Merrill [Wed, 3 Sep 1997 18:41:11 +0000 (14:41 -0400)]
pt.c (type_unification): If strict and the function parm doesn't use template parms, just compare types.

* pt.c (type_unification): If strict and the function parm doesn't
use template parms, just compare types.

From-SVN: r15062

26 years agoFix minor alias typo found while working on H.J. Lu's alpha-linux alias bug.
Jim Wilson [Wed, 3 Sep 1997 17:42:21 +0000 (17:42 +0000)]
Fix minor alias typo found while working on H.J. Lu's alpha-linux alias bug.

* alias.c (true_dependence): Test x for BLKmode, in addition to mem.

From-SVN: r15061

26 years agomethod.c (build_overloaded_value): Replace direct call to the floating point emulator...
Klaus Espenlaub [Wed, 3 Sep 1997 15:54:14 +0000 (15:54 +0000)]
method.c (build_overloaded_value): Replace direct call to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.

        * method.c (build_overloaded_value): Replace direct call
        to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.

From-SVN: r15059

26 years agogo32-rtems.h, [...] (subtarget_switches): Removed SUBTARGET_SWITCHES definitions.
Joel Sherrill [Wed, 3 Sep 1997 15:42:45 +0000 (15:42 +0000)]
go32-rtems.h, [...] (subtarget_switches): Removed SUBTARGET_SWITCHES definitions.

        * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h, m68k/rtems.h,
          mips/rtems64.h, pa/rtems.h, rs6000/rtems.h, sh/rtems.h,
          sparc/rtems.h (subtarget_switches): Removed SUBTARGET_SWITCHES
          definitions.  Use -qrtems instead of -mrtems.

From-SVN: r15058

26 years ago* lib/libstdc++.exp: Remove libg++_link_flags.
Jeffrey A Law [Wed, 3 Sep 1997 15:38:21 +0000 (15:38 +0000)]
* lib/libstdc++.exp: Remove libg++_link_flags.

From-SVN: r15057

26 years agoxm-sco5.h (sys_siglist): Define.
Robert Lipe [Wed, 3 Sep 1997 15:04:27 +0000 (15:04 +0000)]
xm-sco5.h (sys_siglist): Define.

        * xm-sco5.h (sys_siglist): Define.
        (SYS_SIGLIST_DECLARED): Likewise.
From Robert Lipe.

From-SVN: r15056

26 years agotypeck.c (convert_arguments): Don't arbitrarily choose the first of a set of overload...
Jason Merrill [Wed, 3 Sep 1997 08:26:52 +0000 (08:26 +0000)]
typeck.c (convert_arguments): Don't arbitrarily choose the first of a set of overloaded functions.

        * typeck.c (convert_arguments): Don't arbitrarily choose the first
        of a set of overloaded functions.

        * lex.c (real_yylex): Don't elide __FUNCTION__.

From-SVN: r15055

26 years agoexpr.c (convert_move): Handle truncation from TQFmode to QFmode.
Jeffrey A Law [Wed, 3 Sep 1997 05:33:06 +0000 (05:33 +0000)]
expr.c (convert_move): Handle truncation from TQFmode to QFmode.

        * expr.c (convert_move): Handle truncation from TQFmode to QFmode.
From Christian Iseli.

From-SVN: r15054

26 years agoTweak.
Jeff Law [Wed, 3 Sep 1997 05:02:58 +0000 (23:02 -0600)]
Tweak.

From-SVN: r15053

26 years agoxm-svr4.h (SYS_SIGLIST_DECLARED): Define.
Jeffrey A Law [Wed, 3 Sep 1997 04:39:26 +0000 (04:39 +0000)]
xm-svr4.h (SYS_SIGLIST_DECLARED): Define.

        * xm-svr4.h (SYS_SIGLIST_DECLARED): Define.
        * xm-news.h (SYS_SIGLIST_DECLARED): Likewise.
        * gcc.texi: Note that if you define sys_siglist that you should
        also define SYS_SIGLIST_DECLARED.
autoconf doesn't handle finding sys_siglist under different names.

From-SVN: r15052

26 years agoMakefile.in (install, [...]): Make these phony targets.
Jeff Law [Wed, 3 Sep 1997 04:25:26 +0000 (22:25 -0600)]
Makefile.in (install, [...]): Make these phony targets.

        * Makefile.in (install, install-info, installdirs, uninstall): Make
        these phony targets.
So we don't overwrite a newer version of texinfo that might already be
installed on the system.

        * makeinfo/makeinfo.c: Maybe include <stdlib.h> for malloc et al.
        * util/install-info.c: Include <string*.h>.
        (my_strerror): Use strerror if available.
Avoids alpha bug and redecl of sys_errlist problems.

From-SVN: r15051

26 years agoexcept.c (eh_outer_context): Expand masking operation using expand_binop.
Torbjorn Granlund [Wed, 3 Sep 1997 02:08:35 +0000 (04:08 +0200)]
except.c (eh_outer_context): Expand masking operation using expand_binop.

        * except.c (eh_outer_context): Expand masking operation using
        expand_binop.
From tege.

From-SVN: r15046

26 years agoFix alpha-linux -mieee bug reported by H.J. Lu.
Jim Wilson [Wed, 3 Sep 1997 01:27:01 +0000 (01:27 +0000)]
Fix alpha-linux -mieee bug reported by H.J. Lu.

* alpha.md (floatdisf2-1): New pattern.

From-SVN: r15045

26 years agomn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions are relative to the next...
Jeffrey A Law [Wed, 3 Sep 1997 00:46:39 +0000 (00:46 +0000)]
mn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions are relative to the next instruction...

        * mn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions
        are relative to the next instruction, not the current instruction.

From-SVN: r15043

26 years ago* lib/gcc-dg.exp (gcc-dg-test): Fix typos setting compile_type.
Doug Evans [Tue, 2 Sep 1997 23:37:40 +0000 (23:37 +0000)]
* lib/gcc-dg.exp (gcc-dg-test): Fix typos setting compile_type.

From-SVN: r15042

26 years agoFix i386 code generation error reported by Mumit Khan.
Jim Wilson [Tue, 2 Sep 1997 21:40:31 +0000 (21:40 +0000)]
Fix i386 code generation error reported by Mumit Khan.

* local-alloc.c (contains_replace_regs): New function.
(update_equiv_regs): When adding a REG_EQUIV note for a set of a MEM,
verify that there is no existing REG_EQUIV note, and add a call to
contains_place_regs.

From-SVN: r15041

26 years agomethod.c (build_overload_value): Add in_template parm.
Jason Merrill [Tue, 2 Sep 1997 21:33:28 +0000 (21:33 +0000)]
method.c (build_overload_value): Add in_template parm.

* method.c (build_overload_value): Add in_template parm.
(build_overload_int): Likewise.
(build_overload_identifier): Pass it.

* decl.c (duplicate_decls): Don't bash a previous template
  definition with a redeclaration.

From-SVN: r15040

26 years agopt.c (unify): float doesn't match double.
Jason Merrill [Tue, 2 Sep 1997 20:27:13 +0000 (16:27 -0400)]
pt.c (unify): float doesn't match double.

* pt.c (unify): float doesn't match double.

* pt.c (do_type_instantiation): Handle getting a _TYPE or a
  TYPE_DECL.  Handle getting non-template types.
* parse.y (explicit_instantiation): Use typespec instead of
aggr template_type.

Tue Sep  2 10:27:08 1997  Richard Henderson  <rth@cygnus.com>

* typeck.c (build_ptrmemfunc1): Clean up ptr->int cast warnings.

From-SVN: r15037

26 years agoPatch from H.J. Lu for alpha-linux port.
H.J. Lu [Tue, 2 Sep 1997 19:53:50 +0000 (19:53 +0000)]
Patch from H.J. Lu for alpha-linux port.

* config/alpha/elf.h (CPP_PREDEFINES): Add -D__PIC__ -D__pic__.
(STARTFILE_SPEC): Always use crtbegin.o%s
(ENDFILE_SPEC): Always use crtend.o%s.

From-SVN: r15036

26 years agoFix alpha-linux core dump reported by H.J. Lu.
Jim Wilson [Tue, 2 Sep 1997 19:37:05 +0000 (19:37 +0000)]
Fix alpha-linux core dump reported by H.J. Lu.

* alpha/alpha.h (PREFERRED_RELOAD_CLASS): Return NO_REGS if NO_REGS
is passed in.
* emit-rtl.c (gen_lowpart_common): Add code to convert CONST_INT to
SFmode for 64 bit hosts.

From-SVN: r15035

26 years agofixincludes: Permits spaces between # and define.
Paul N. Hilfinger [Tue, 2 Sep 1997 18:38:30 +0000 (18:38 +0000)]
fixincludes: Permits spaces between # and define.

        * fixincludes: Permits spaces between # and define.  Discard C++
        comments in sys/pci.h on HP/UX 10.20.

From-SVN: r15034

26 years agopa.c (restore_unscaled_index_insn_codes): New function.
Jeffrey A Law [Tue, 2 Sep 1997 05:33:19 +0000 (05:33 +0000)]
pa.c (restore_unscaled_index_insn_codes): New function.

        * pa.c (restore_unscaled_index_insn_codes): New function.
        (record_unscaled_index_insn_codes): Likewise.
        (output_function_prologue): Call restore_unscaled_index_insn_codes.
        (output_function_epilogue): Free memory for unscaled_index_insn_codes.
        (pa_reorg): Call record_unscaled_index_insn_codes.

From-SVN: r15028

26 years agoversion.c: Bump for snapshot.
Jeffrey A Law [Tue, 2 Sep 1997 04:12:45 +0000 (04:12 +0000)]
version.c: Bump for snapshot.

        * version.c: Bump for snapshot.
Preparing for next snapshot.

        * haifa-sched.c (move_insn): Handle notes correctly for insns
        with SCHED_GROUP_P set.
Should fix some x86 failures with haifa enabled.

From-SVN: r15027

26 years agoPatch from H.J. Lu for minor alpha-linux problem.
H.J. Lu [Tue, 2 Sep 1997 00:00:55 +0000 (00:00 +0000)]
Patch from H.J. Lu for minor alpha-linux problem.

* alpha/xm-linux.h (USE_BFD): Undef before define.

From-SVN: r15026

26 years agoFix sunos4/rs6000/powerpc/etc build problems with multilibbed libraries.
Jim Wilson [Mon, 1 Sep 1997 23:55:29 +0000 (23:55 +0000)]
Fix sunos4/rs6000/powerpc/etc build problems with multilibbed libraries.

* configure.in (target_subdir): Set to libraries if enable_multilib.

From-SVN: r15025

26 years agoFix irix6 execute/921117-1.c c-torture failure.
Jim Wilson [Mon, 1 Sep 1997 23:43:03 +0000 (23:43 +0000)]
Fix irix6 execute/921117-1.c c-torture failure.

* cse.c (cse_insn): Don't record BLKmode values.

From-SVN: r15024

26 years agocall.c (build_new_op): Strip leading REF_BIND from first operand to builtin operator.
Jason Merrill [Mon, 1 Sep 1997 21:01:30 +0000 (21:01 +0000)]
call.c (build_new_op): Strip leading REF_BIND from first operand to builtin operator.

* call.c (build_new_op): Strip leading REF_BIND from first operand
to builtin operator.

* decl2.c (mark_vtable_entries): Mark abort_fndecl as used when we
use its RTL.

From-SVN: r15023

26 years ago* call.c (null_ptr_cst_p): Remove support for (void*)0.
Jason Merrill [Mon, 1 Sep 1997 20:07:22 +0000 (20:07 +0000)]
* call.c (null_ptr_cst_p): Remove support for (void*)0.

From-SVN: r15022

26 years ago* i960.h (LINK_SPEC): Handle "-mjX" and "-mrp" switches.
Stephen Williams [Mon, 1 Sep 1997 17:27:19 +0000 (17:27 +0000)]
* i960.h (LINK_SPEC): Handle "-mjX" and "-mrp" switches.

From-SVN: r15013

26 years agocccp.c (sys_errlist): Remove special 4.4bsd declaration.
Jeffrey A Law [Mon, 1 Sep 1997 17:02:53 +0000 (17:02 +0000)]
cccp.c (sys_errlist): Remove special 4.4bsd declaration.

        * cccp.c (sys_errlist): Remove special 4.4bsd declaration.
        * collect2.c (sys_errlist): Likewise.
        * cpplib.c (sys_errlist): Likewise.
        * gcc.c (sys_errlist): Likewise.
        * protoize (sys_errlist): Likewise.
        * configure.in: Check for strerror.
        * xm-freebsd.h (HAVE_STRERROR): Remove definition.
        * xm-gnu.h (HAVE_STRERROR): Likewise.
        * xm-linux.h (HAVE_STRERROR): Likewise.
        * xm-netbsd.h (HAVE_STRERROR): Likewise.
        * xm-bsd386.h (HAVE_STRERROR): Likewise.
        * xm-cygwin32.h (HAVE_STRERROR): Likewise.
        * xm-dos.h (HAVE_STRERROR): Likewise.
        * xm-mingw32.h (HAVE_STRERROR): Likewise.
        * xm-pa.h (HAVE_STRERROR): Likewise.
        * xm-papro.h (HAVE_STRERROR): Likewise.
        * xm-sysv4.h (HAVE_STRERROR): Likewise.
        * configure, config.in: Rebuilt.
Remove the need to define HAVE_STRERROR for each host port.

From-SVN: r15011

26 years agoMakefile.in: Add several missing "else true" clauses.
Jeffrey A Law [Mon, 1 Sep 1997 16:08:40 +0000 (16:08 +0000)]
Makefile.in: Add several missing "else true" clauses.

        * Makefile.in: Add several missing "else true" clauses.
Cater to broken "make" programs.

From-SVN: r15010

26 years agocollect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.
Jeffrey A Law [Mon, 1 Sep 1997 14:57:29 +0000 (14:57 +0000)]
collect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.

        * collect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.
        * mips-tfile.c: Likewise.
        * gcc.texi: DONT_DECLARE_SYS_SIGLIST: Remove docs.
        * xm-linux.h (DONT_DECLARE_SYS_SIGLIST): Delete definition.
        * xm-freebsd.h, xm-bsd386.h, xm-sysv4.h, xm-sol2.h: Likewise.
        * configure.in: Check for sys_siglist declaration.
        * configure, config.in: Rebuilt.

Fix conflicting sys_siglist decls once and for all.

From-SVN: r15007

26 years agogo32-rtems.h, [...] (subtarget_switches): Added -mrtems as a switch.
Joel Sherrill [Mon, 1 Sep 1997 14:14:30 +0000 (14:14 +0000)]
go32-rtems.h, [...] (subtarget_switches): Added -mrtems as a switch.

        * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h,
        m68k/rtems.h, mips/rtems64.h, pa/rtems.h, rs6000/rtems.h,
        sparc/rtems.h (subtarget_switches): Added -mrtems as a switch.
        * i960/i960.h: Added SUBTARGET_SWITCHES macro.
        * rs6000/sysv4.h (extra_subtarget_switches): Added new
        macro EXTRA_SUBTARGET_SWITCHES.
        * configure.in (sh*-*-rtems*): New target.
        * sh/rtems.h: New file.
        * sh/sh.h: Added SUBTARGET_SWITCHES macro.
        * configure: Rebuilt.

From-SVN: r15006

26 years agoFix alpha loop unrolling abort.
Jim Wilson [Sun, 31 Aug 1997 05:57:40 +0000 (05:57 +0000)]
Fix alpha loop unrolling abort.

* unroll.c (calculate_giv_inc): Handle increment with code PLUS.

From-SVN: r15004

26 years agoFix Freedbsd build problem with patch from more recent texinfo sources.
Karl Berry [Sun, 31 Aug 1997 01:48:33 +0000 (01:48 +0000)]
Fix Freedbsd build problem with patch from more recent texinfo sources.

* info/terminal.c (terminal_prep_terminal): Only use OCRNL and
ONLCR if they are defined.  Reported by many people.

From-SVN: r15003

26 years agoPay DF fused add ops pay attention to -mno-fused-add
David Edelsohn [Sat, 30 Aug 1997 14:55:17 +0000 (14:55 +0000)]
Pay DF fused add ops pay attention to -mno-fused-add

From-SVN: r15002

26 years agoFix i386-pc-solaris2.5.1 _sys_siglistp redeclaration error.
Jim Wilson [Sat, 30 Aug 1997 02:21:34 +0000 (19:21 -0700)]
Fix i386-pc-solaris2.5.1 _sys_siglistp redeclaration error.

* i386/xm-sysv4.h (DONT_DECLARE_SYS_SIGLIST): Define.

From-SVN: r15001

26 years agopa.md (reload_peepholes): Make sure operand is a REG before examining REGNO.
Jeffrey A Law [Fri, 29 Aug 1997 22:14:07 +0000 (22:14 +0000)]
pa.md (reload_peepholes): Make sure operand is a REG before examining REGNO.

        * pa.md (reload_peepholes): Make sure operand is a REG before
        examining REGNO.  Allow general registers too.
Fixes sporatic c-torture failure.

Remove last change to fold-const.c and c-decl.c

From-SVN: r15000

26 years agoFix C++ template instantiation back end core dump.
Jim Wilson [Fri, 29 Aug 1997 18:52:51 +0000 (18:52 +0000)]
Fix C++ template instantiation back end core dump.

* varasm.c (mark_constants): Don't look inside CONST_DOUBLEs.

From-SVN: r14999

26 years ago* execute/921007-1.c: Make strcmp static.
Jeffrey A Law [Fri, 29 Aug 1997 18:47:40 +0000 (18:47 +0000)]
* execute/921007-1.c: Make strcmp static.

From-SVN: r14998

26 years agodwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc to reallocate abbrev_die_...
Philipp Thomas [Fri, 29 Aug 1997 15:33:54 +0000 (15:33 +0000)]
dwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc to reallocate abbrev_die_table.

        * dwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc
        to reallocate abbrev_die_table.

From-SVN: r14997

26 years agom68k.md (iorsi_zexthi_ashl16): Disable.
Jim Wilson [Fri, 29 Aug 1997 15:19:58 +0000 (15:19 +0000)]
m68k.md (iorsi_zexthi_ashl16): Disable.

        * m68k/m68k.md (iorsi_zexthi_ashl16): Disable.
Fixes m68k codegen problem.

From-SVN: r14996

26 years ago* Makefile.in (config.status): Depend on version.c
Andreas Schwab [Fri, 29 Aug 1997 15:10:18 +0000 (15:10 +0000)]
* Makefile.in (config.status): Depend on version.c

From-SVN: r14995

26 years agoexpr.h (insn_gen_function): Reenable prototype.
Andreas Schwab [Fri, 29 Aug 1997 15:02:03 +0000 (15:02 +0000)]
expr.h (insn_gen_function): Reenable prototype.

* expr.h (insn_gen_function): Reenable prototype.

* expr.c (move_by_pieces_1, clear_by_pieces_1): Fix prototype of
first parameter.

From-SVN: r14994

26 years agoFix typo.
Jeff Law [Fri, 29 Aug 1997 07:03:53 +0000 (01:03 -0600)]
Fix typo.

From-SVN: r14993

26 years agoFix x86 libio -O2 miscompilation problem.
Jim Wilson [Thu, 28 Aug 1997 20:04:19 +0000 (20:04 +0000)]
Fix x86 libio -O2 miscompilation problem.

* i386.c (ix86_expand_epilogue): Emit blockage instruction when pic.

From-SVN: r14992

26 years agoversion.c: Bump for latest snapshot.
Jeffrey A Law [Thu, 28 Aug 1997 13:08:54 +0000 (13:08 +0000)]
version.c: Bump for latest snapshot.

        * version.c: Bump for latest snapshot.

        * bc-optab.c: Conditionally include stdlib.h.
        (free): Provide a declaration if NEED_DECLARATION_FREE.
        * tree.c (free): Provide a declaration if NEED_DECLARATION_FREE.
        * rtl.h (free): Remove declaration.
        * tree.h (free): Remvoe declaration.

        * configure: Rebuilt.

From-SVN: r14989

26 years agoFilename change in latest g77 update.
Jeff Law [Thu, 28 Aug 1997 12:59:07 +0000 (06:59 -0600)]
Filename change in latest g77 update.

From-SVN: r14988

26 years agoflags.h (flag_move_all_movables): Declare.
Jeffrey A Law [Thu, 28 Aug 1997 03:35:22 +0000 (03:35 +0000)]
flags.h (flag_move_all_movables): Declare.

        * flags.h (flag_move_all_movables): Declare.
        (flag_reduce_all_givs): Likewise.
        * loop.c (move_movables): Handle flag_move_all_movables.
        (strength_reduce): Handle flag_reduce_all_givs.
        * toplev.c (flag_move_all_movables): Define.
        (flag_reduce_all_givs): Likewise.
        (f_options): Add -fmove-all-movables and -freduce-all-givs.
        * invoke.texi: Document new options, including alias stuff that
        wasn't included last time.
Two of the "Tooning" options :-)

From-SVN: r14987

26 years agoNew file in g77 front end.
Jeff Law [Thu, 28 Aug 1997 03:21:33 +0000 (21:21 -0600)]
New file in g77 front end.

From-SVN: r14986

26 years agoUpdate to Aug 26 g77 front end and runtime.
Jeff Law [Thu, 28 Aug 1997 03:21:05 +0000 (21:21 -0600)]
Update to Aug 26 g77 front end and runtime.

From-SVN: r14985

26 years agot-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
Bob Manson [Thu, 28 Aug 1997 00:18:03 +0000 (00:18 +0000)]
t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.

        * t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
        * t-mn10200: Ditto.
        * t-vxsparc: Ditto.
        * t-vxworks68: Ditto.
        * t-vxworks960: Ditto.
        * t-vx29k: Ditto.

From-SVN: r14984

26 years agoPatch from Richard Henderson to fix alpha-linux alloca redefinition problems.
Richard Henderson [Wed, 27 Aug 1997 23:50:04 +0000 (16:50 -0700)]
Patch from Richard Henderson to fix alpha-linux alloca redefinition problems.

* alpha/xm-alpha.h (alloca): Define alloca to builtin_alloca for GNUC
if not already defined, and USE_C_ALLOCA not defined.

From-SVN: r14977

26 years agoMake the gcc config.guess exec the toplevel config.guess.
Jim Wilson [Wed, 27 Aug 1997 23:20:52 +0000 (23:20 +0000)]
Make the gcc config.guess exec the toplevel config.guess.

Make the gcc config.guess exec the toplevel config.guess.  Update the toplevel
config.guess from the gcc config.guess.

From-SVN: r14976

26 years agoalpha linux glibc2 patch from H.J. Lu
Jim Wilson [Wed, 27 Aug 1997 23:09:53 +0000 (23:09 +0000)]
alpha linux glibc2 patch from H.J. Lu

alpha linux glibc2 patch from H.J. Lu
* config/alpha/elf.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1
if USE_GNULIBC_1 is not defined.

From-SVN: r14975

26 years agoPatch from Richard Henderson to fix alpha-linux support.
Richard Henderson [Wed, 27 Aug 1997 23:02:19 +0000 (16:02 -0700)]
Patch from Richard Henderson to fix alpha-linux support.

* alpha/elf.h (LINK_SPEC): Conditionalize on USE_GNULIBC_1.
* config.guess: Recognize alpha-linux-gnulibc1.
* configure.in (alpha-*-linux-gnulibc1): New target.
(alpha-*-linux-gnu*): Don't build crtbegin/end.

From-SVN: r14974

26 years agoreorg.c (dbr_schedule): Allow current_function_return_rtx to be something other than...
Jeffrey A Law [Wed, 27 Aug 1997 19:59:51 +0000 (19:59 +0000)]
reorg.c (dbr_schedule): Allow current_function_return_rtx to be something other than a REG.

        * reorg.c (dbr_schedule): Allow current_function_return_rtx
        to be something other than a REG.
        * function.c (expand_function_end): Fix current_function_return_rtx
        if it was a pseudo.
Brought over from the fsf/devo.

From-SVN: r14972

26 years agoFix newlib coldfire build failure.
Jim Wilson [Wed, 27 Aug 1997 18:54:11 +0000 (18:54 +0000)]
Fix newlib coldfire build failure.

* m68k.md (iorsi3_internal): Readd ! TARGET_5200 check lost in
last change.

From-SVN: r14969

26 years agoc-decl.c (grokdeclarator): If array index or size calculations overflow, issue an...
Doug Evans [Wed, 27 Aug 1997 16:58:02 +0000 (16:58 +0000)]
c-decl.c (grokdeclarator): If array index or size calculations overflow, issue an error.

        * c-decl.c (grokdeclarator): If array index or size calculations
        overflow, issue an error.
        * fold-const.c (int_const_binop): New static function.
        (const_binop, size_binop): Call it.
Brought over from the fsf.

From-SVN: r14967

26 years agoloop.c (combine_movables): Earlier insns don't match later ones.
Doug Evans [Wed, 27 Aug 1997 16:43:23 +0000 (16:43 +0000)]
loop.c (combine_movables): Earlier insns don't match later ones.

        * loop.c (combine_movables): Earlier insns don't match later ones.
Brought over from the fsf.

From-SVN: r14966

This page took 0.107545 seconds and 5 git commands to generate.