summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-03-09 09:21:46 +0000
committerobrien <obrien@FreeBSD.org>2000-03-09 09:21:46 +0000
commit922a45e8c80d9c15acdba0eee3d03681cc7cb8d6 (patch)
tree31f5b0e5dc2259f95abab85fb366f1095a9be227 /contrib
parent19e1413b5dc797995ed95bbd6ca6e3035103d982 (diff)
downloadFreeBSD-src-922a45e8c80d9c15acdba0eee3d03681cc7cb8d6.zip
FreeBSD-src-922a45e8c80d9c15acdba0eee3d03681cc7cb8d6.tar.gz
Bring in bug fixes from the GCC anoncvs server's "gcc-2_95-branch"
branch as of March 7th, 2000.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/ChangeLog44
-rw-r--r--contrib/gcc/c-decl.c1
-rw-r--r--contrib/gcc/cccp.c2
-rw-r--r--contrib/gcc/cp/ChangeLog4
-rw-r--r--contrib/gcc/cp/typeck2.c4
-rw-r--r--contrib/gcc/f/ChangeLog4
-rw-r--r--contrib/gcc/f/g77spec.c4
-rw-r--r--contrib/gcc/gcc.c4
-rw-r--r--contrib/gcc/gcc.texi4
-rw-r--r--contrib/gcc/loop.c2
-rw-r--r--contrib/gcc/reload1.c8
-rw-r--r--contrib/gcc/system.h9
-rw-r--r--contrib/libf2c/ChangeLog5
-rw-r--r--contrib/libf2c/libI77/endfile.c1
-rw-r--r--contrib/libio/ChangeLog7
-rw-r--r--contrib/libio/fstream.h10
-rw-r--r--contrib/libstdc++/ChangeLog23
-rw-r--r--contrib/libstdc++/std/complext.cc2
-rw-r--r--contrib/libstdc++/std/valarray_array.h2
-rw-r--r--contrib/libstdc++/std/valarray_meta.h7
20 files changed, 124 insertions, 23 deletions
diff --git a/contrib/gcc/ChangeLog b/contrib/gcc/ChangeLog
index b6b2b55..8e83eb9a 100644
--- a/contrib/gcc/ChangeLog
+++ b/contrib/gcc/ChangeLog
@@ -1,3 +1,47 @@
+Tue Mar 7 21:41:17 2000 Jeffrey A Law (law@cygnus.com)
+
+ * cccp.c (handle_directive): Initialize backslash_newlines_p.
+
+ Wed Jan 19 20:39:17 2000 Jim Wilson <wilson@cygnus.com>
+ * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
+ * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
+
+ Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
+ * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
+ __CTOR_LIST__ in opposite order, which is the correct order for sorted
+ constructors.
+ (__do_global_dtors): similarly for __DTOR_LIST__.
+
+ 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
+ * reload1.c (choose_reload_regs): When disabling a reload, also
+ set reload_spill_index to -1.
+
+ Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
+ * reload1.c (reload_reg_free_for_value_p): Don't use a register
+ that is in reload_reg_used.
+
+ 2000-01-18 Clinton Popetz <cpopetz@cygnus.com>
+ * loop.c (check_dbra_loop): When checking a loop for
+ reversability, check the source of any stores to ensure they
+ don't depend on an initial value.
+
+ Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
+ * config/v850/v850.c (expand_epilogue): Interrupt functions no
+ longer allocate extra stack for function calls.
+
+Fri Feb 18 13:32:32 2000 Martin von Loewis <loewis@informatik.hu-berlin.de>
+
+ * gcc.texi (Bug Reporting): Refer to bugs.html.
+ (Bug Lists): Likewise.
+ * system.h (GCCBUGURL): New preprocessor define.
+ (abort): Use it.
+ * gcc.c (main): Likewise.
+
+Thu Feb 3 10:53:45 2000 Richard Henderson <rth@cygnus.com>
+
+ Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
+ * c-decl.c (duplicate_decls): Copy DECL_MODE too.
+
Thu Jan 20 10:02:07 2000 Richard Henderson <rth@cygnus.com>
2000-01-03 Anthony Green <green@cygnus.com>
diff --git a/contrib/gcc/c-decl.c b/contrib/gcc/c-decl.c
index a232217..8844988 100644
--- a/contrib/gcc/c-decl.c
+++ b/contrib/gcc/c-decl.c
@@ -1951,6 +1951,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
{
/* Since the type is OLDDECL's, make OLDDECL's size go with. */
DECL_SIZE (newdecl) = DECL_SIZE (olddecl);
+ DECL_MODE (newdecl) = DECL_MODE (olddecl);
if (TREE_CODE (olddecl) != FUNCTION_DECL)
if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl))
DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl);
diff --git a/contrib/gcc/cccp.c b/contrib/gcc/cccp.c
index 473ff45..83f4dff 100644
--- a/contrib/gcc/cccp.c
+++ b/contrib/gcc/cccp.c
@@ -3983,7 +3983,7 @@ handle_directive (ip, op)
case '\'':
case '\"':
{
- int backslash_newlines_p;
+ int backslash_newlines_p = 0;
register U_CHAR *bp1
= skip_quoted_string (xp - 1, bp, ip->lineno,
diff --git a/contrib/gcc/cp/ChangeLog b/contrib/gcc/cp/ChangeLog
index 605bafc..309d8e2 100644
--- a/contrib/gcc/cp/ChangeLog
+++ b/contrib/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
+
+ * typeck2.c (my_friendly_abort): Use GCCBUGURL.
+
1999-11-01 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (maybe_make_one_only): Always make things comdat on
diff --git a/contrib/gcc/cp/typeck2.c b/contrib/gcc/cp/typeck2.c
index 6322157..da98203 100644
--- a/contrib/gcc/cp/typeck2.c
+++ b/contrib/gcc/cp/typeck2.c
@@ -344,7 +344,7 @@ my_friendly_abort (i)
else
ack ("Internal compiler error %d.", i);
ack ("Please submit a full bug report.");
- ack ("See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.");
+ ack ("See %s for instructions.", GCCBUGURL);
}
else
error ("confused by earlier errors, bailing out");
@@ -359,7 +359,7 @@ my_friendly_abort (i)
error ("Internal compiler error %d.", i);
error ("Please submit a full bug report.");
- fatal ("See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.");
+ fatal ("See %s for instructions.", GCCBUGURL);
}
void
diff --git a/contrib/gcc/f/ChangeLog b/contrib/gcc/f/ChangeLog
index 2e81815..bc62110 100644
--- a/contrib/gcc/f/ChangeLog
+++ b/contrib/gcc/f/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 18 13:36:50 2000 Martin von Loewis <loewis@informatik.hu-berlin.de>
+
+ * g77spec.c (lang_specific_driver): Use GCCBUGURL.
+
Sun Oct 24 23:54:10 PDT 1999 Jeff Law (law@cygnus.com)
* gcc-2.95.2 Released.
diff --git a/contrib/gcc/f/g77spec.c b/contrib/gcc/f/g77spec.c
index 50e7738..93a363c 100644
--- a/contrib/gcc/f/g77spec.c
+++ b/contrib/gcc/f/g77spec.c
@@ -1,5 +1,5 @@
/* Specific flags and argument handling of the Fortran front-end.
- Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -428,7 +428,7 @@ For more information on g77 and gcc, type the commands `info -f g77'\n\
and `info -f gcc' to read the Info documentation.\n\
\n\
For bug reporting instructions, please see:\n\
-<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>.\n");
+%s.\n", GCCBUGURL);
exit (0);
break;
#endif
diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c
index ea9f6ac..e570d4b 100644
--- a/contrib/gcc/gcc.c
+++ b/contrib/gcc/gcc.c
@@ -4963,7 +4963,7 @@ main (argc, argv)
if (! verbose_flag)
{
printf ("\nFor bug reporting instructions, please see:\n");
- printf ("<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>.\n");
+ printf ("%s.\n", GCCBUGURL);
exit (0);
}
@@ -5156,7 +5156,7 @@ main (argc, argv)
if (print_help_list)
{
printf ("\nFor bug reporting instructions, please see:\n");
- printf ("<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>\n");
+ printf ("%s\n", GCCBUGURL);
}
exit (error_count > 0 ? (signal_count ? 2 : 1) : 0);
diff --git a/contrib/gcc/gcc.texi b/contrib/gcc/gcc.texi
index d2bbbb5..8c08fa8 100644
--- a/contrib/gcc/gcc.texi
+++ b/contrib/gcc/gcc.texi
@@ -2263,7 +2263,7 @@ convention, in which bug reports for tool ``foo'' are sent
to @samp{bug-foo@@gnu.org}, the address @samp{bug-gcc@@gnu.org}
may also be used; it will forward to the address given above.
-Please read @samp{<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>} for
+Please read @samp{<URL:http://www.gnu.org/software/gcc/bugs.html>} for
bug reporting instructions before you post a bug report.
Often people think of posting bug reports to the newsgroup instead of
@@ -2287,7 +2287,7 @@ Boston, MA 02111-1307, USA
@cindex compiler bugs, reporting
You may find additional and/or more up-to-date instructions at
-@samp{<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>}.
+@samp{<URL:http://www.gnu.org/software/gcc/bugs.html>}.
The fundamental principle of reporting bugs usefully is this:
@strong{report all the facts}. If you are not sure whether to state a
diff --git a/contrib/gcc/loop.c b/contrib/gcc/loop.c
index a5c5052..497ac36 100644
--- a/contrib/gcc/loop.c
+++ b/contrib/gcc/loop.c
@@ -7856,7 +7856,7 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info)
{
if (v->giv_type == DEST_REG
&& reg_mentioned_p (v->dest_reg,
- XEXP (loop_store_mems, 0))
+ PATTERN (first_loop_store_insn))
&& loop_insn_first_p (first_loop_store_insn, v->insn))
reversible_mem_store = 0;
}
diff --git a/contrib/gcc/reload1.c b/contrib/gcc/reload1.c
index 0ec2a92..d9245b0 100644
--- a/contrib/gcc/reload1.c
+++ b/contrib/gcc/reload1.c
@@ -5204,6 +5204,13 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
int i;
int copy = 0;
+ /* ??? reload_reg_used is abused to hold the registers that are not
+ available as spill registers, including hard registers that are
+ earlyclobbered in asms. As a temporary measure, reject anything
+ in reload_reg_used. */
+ if (TEST_HARD_REG_BIT (reload_reg_used, regno))
+ return 0;
+
if (out == const0_rtx)
{
copy = 1;
@@ -6330,6 +6337,7 @@ choose_reload_regs (chain)
clear_reload_reg_in_use (regno, reload_opnum[j],
reload_when_needed[j], reload_mode[j]);
reload_reg_rtx[j] = 0;
+ reload_spill_index[j] = -1;
}
/* Record which pseudos and which spill regs have output reloads. */
diff --git a/contrib/gcc/system.h b/contrib/gcc/system.h
index 7d6082c..1b40e60 100644
--- a/contrib/gcc/system.h
+++ b/contrib/gcc/system.h
@@ -22,6 +22,11 @@ Boston, MA 02111-1307, USA. */
#ifndef __GCC_SYSTEM_H__
#define __GCC_SYSTEM_H__
+/* This is the location of the online document giving information how
+ to report bugs. If you change this string, also check for strings
+ not under control of the preprocessor. */
+#define GCCBUGURL "<URL:http://www.gnu.org/software/gcc/bugs.html>"
+
/* We must include stdarg.h/varargs.h before stdio.h. */
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
@@ -399,8 +404,8 @@ extern void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORE
#else
#define abort() fatal ("Internal compiler error in `%s', at %s:%d\n" \
"Please submit a full bug report.\n" \
- "See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.", \
- __PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__)
+ "See %s for instructions.", \
+ __PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__, GCCBUGURL)
#endif /* recent gcc */
/* trim_filename is in toplev.c. Define a stub macro for files that
diff --git a/contrib/libf2c/ChangeLog b/contrib/libf2c/ChangeLog
index 4e9eccc..c3ca9a9 100644
--- a/contrib/libf2c/ChangeLog
+++ b/contrib/libf2c/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 24 20:28:35 CET 2000 David M. Gay <dmg@bell-labs.com>
+
+ * libI77/endfile.c (t_runc): set state to writing
+ (b->uwrt = 1) when an endfile statement requires copying the file.
+
Sun Oct 24 23:54:10 PDT 1999 Jeff Law (law@cygnus.com)
* gcc-2.95.2 Released.
diff --git a/contrib/libf2c/libI77/endfile.c b/contrib/libf2c/libI77/endfile.c
index 0e4ac03..8e3e8c4 100644
--- a/contrib/libf2c/libI77/endfile.c
+++ b/contrib/libf2c/libI77/endfile.c
@@ -103,6 +103,7 @@ t_runc(alist *a)
rewind(tf);
if (copy(tf, loc, bf))
goto bad1;
+ b->uwrt = 1;
b->urw = 2;
#ifdef NON_UNIX_STDIO
if (b->ufmt) {
diff --git a/contrib/libio/ChangeLog b/contrib/libio/ChangeLog
index 8151dc2..d78e505 100644
--- a/contrib/libio/ChangeLog
+++ b/contrib/libio/ChangeLog
@@ -1,3 +1,10 @@
+2000-01-28 Martin v. Löwis <loewis@informatik.hu-berlin.de>
+
+ * fstream.h (ifstream::ifstream): Add ios::in to mode.
+ (ifstream::open): Likewise.
+ (ofstream::ofstream): Add ios::out to mode.
+ (ofstream::open): Likewise.
+
1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
* filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
diff --git a/contrib/libio/fstream.h b/contrib/libio/fstream.h
index ea98f5c..b5f6598 100644
--- a/contrib/libio/fstream.h
+++ b/contrib/libio/fstream.h
@@ -1,5 +1,5 @@
/* This is part of libio/iostream, providing -*- C++ -*- input/output.
-Copyright (C) 1993 Free Software Foundation
+Copyright (C) 1993, 2000 Free Software Foundation
This file is part of the GNU IO Library. This library is free
software; you can redistribute it and/or modify it under the
@@ -62,9 +62,9 @@ class ifstream : public fstreambase, public istream {
ifstream(int fd) : fstreambase(fd) { }
ifstream(int fd, char *p, int l) : fstreambase(fd, p, l) { } /*Deprecated*/
ifstream(const char *name, int mode=ios::in, int prot=0664)
- : fstreambase(name, mode, prot) { }
+ : fstreambase(name, mode | ios::in, prot) { }
void open(const char *name, int mode=ios::in, int prot=0664)
- { fstreambase::open(name, mode, prot); }
+ { fstreambase::open(name, mode | ios::in, prot); }
};
class ofstream : public fstreambase, public ostream {
@@ -73,9 +73,9 @@ class ofstream : public fstreambase, public ostream {
ofstream(int fd) : fstreambase(fd) { }
ofstream(int fd, char *p, int l) : fstreambase(fd, p, l) { } /*Deprecated*/
ofstream(const char *name, int mode=ios::out, int prot=0664)
- : fstreambase(name, mode, prot) { }
+ : fstreambase(name, mode | ios::out, prot) { }
void open(const char *name, int mode=ios::out, int prot=0664)
- { fstreambase::open(name, mode, prot); }
+ { fstreambase::open(name, mode | ios::out, prot); }
};
class fstream : public fstreambase, public iostream {
diff --git a/contrib/libstdc++/ChangeLog b/contrib/libstdc++/ChangeLog
index fe52ab7..18e557a 100644
--- a/contrib/libstdc++/ChangeLog
+++ b/contrib/libstdc++/ChangeLog
@@ -1,5 +1,26 @@
-1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
+Tue Mar 7 21:37:56 2000 Jeffrey A Law (law@cygnus.com)
+
+ 1999-11-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+ * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): Don't forget
+ to define tanh.
+
+ 1999-11-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+ * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When
+ building meta-expressions don't forget to take the contained
+ closures.
+
+ 1999-10-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+ * std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.
+ 1999-09-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+ * std/complext.cc (pow): Don't expect floating point promotion
+ in presence of template argument deduction. There is no such
+ thing.
+
+2000-02-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+ * std/valarray_array.h (__valarray_copy): Fix typo.
+
+1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
* std/bastring.h (basic_string::basic_string): Rename parameters
to avoid shadow warnings.
* std/bastring.cc (alloc): Likewise.
diff --git a/contrib/libstdc++/std/complext.cc b/contrib/libstdc++/std/complext.cc
index d50bf08..60227f2 100644
--- a/contrib/libstdc++/std/complext.cc
+++ b/contrib/libstdc++/std/complext.cc
@@ -236,7 +236,7 @@ pow (const complex<FLOAT>& xin, int y)
if (y < 0)
{
y = -y;
- x = 1/x;
+ x = FLOAT(1)/x;
}
for (;;)
{
diff --git a/contrib/libstdc++/std/valarray_array.h b/contrib/libstdc++/std/valarray_array.h
index f711e52..a0b5818 100644
--- a/contrib/libstdc++/std/valarray_array.h
+++ b/contrib/libstdc++/std/valarray_array.h
@@ -73,7 +73,7 @@ template<typename _Tp>
inline void
__valarray_copy (const _Tp* __restrict__ __a, size_t __n, size_t __s,
_Tp* __restrict__ __b)
-{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b += *__a; }
+{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b = *__a; }
// copy plain __a[<__n>] in strided __b[<__n : __s>]
template<typename _Tp>
diff --git a/contrib/libstdc++/std/valarray_meta.h b/contrib/libstdc++/std/valarray_meta.h
index f799111..48fb213 100644
--- a/contrib/libstdc++/std/valarray_meta.h
+++ b/contrib/libstdc++/std/valarray_meta.h
@@ -449,7 +449,7 @@ struct _BinClos<_Oper,_ValArray,_Expr,typename _Dom::value_type,_Dom>
typedef _BinBase<_Oper,valarray<_Tp>,_Dom> _Base;
typedef typename _Base::value_type value_type;
- _BinClos (const valarray<_Tp> __e1, const _Dom& __e2)
+ _BinClos (const valarray<_Tp>& __e1, const _Dom& __e2)
: _Base (__e1, __e2) {}
};
@@ -917,7 +917,7 @@ _Name(const _Expr<_Dom,typename _Dom::value_type>& __e) \
{ \
typedef typename _Dom::value_type _Tp; \
typedef _UnFunClos<_Expr,_Dom> _Closure; \
- return _Expr<_Closure,_Tp> (_Closure (__e, (_Tp(*)(_Tp))(&_Name))); \
+ return _Expr<_Closure,_Tp>(_Closure(__e(), (_Tp(*)(_Tp))(&_Name))); \
} \
\
template<typename _Tp> \
@@ -936,7 +936,8 @@ _Name(const valarray<_Tp>& __v) \
_DEFINE_EXPR_UNARY_FUNCTION(sin)
_DEFINE_EXPR_UNARY_FUNCTION(asin)
_DEFINE_EXPR_UNARY_FUNCTION(sinh)
- _DEFINE_EXPR_UNARY_FUNCTION(tan)
+ _DEFINE_EXPR_UNARY_FUNCTION(tan)
+ _DEFINE_EXPR_UNARY_FUNCTION(tanh)
_DEFINE_EXPR_UNARY_FUNCTION(atan)
_DEFINE_EXPR_UNARY_FUNCTION(exp)
_DEFINE_EXPR_UNARY_FUNCTION(log)
OpenPOWER on IntegriCloud