summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/c++
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-11-03 06:52:42 +0000
committerphk <phk@FreeBSD.org>1994-11-03 06:52:42 +0000
commitbbd23b334df6ee37516cf9398aff07483aeadb58 (patch)
tree50f1f9fa63ff73191f024d12c1c848e9cdcf55f8 /gnu/usr.bin/cc/c++
parent2ef8552dd502af4e382f6c6346c4d35a0608e7b1 (diff)
downloadFreeBSD-src-bbd23b334df6ee37516cf9398aff07483aeadb58.zip
FreeBSD-src-bbd23b334df6ee37516cf9398aff07483aeadb58.tar.gz
----------------------------------
GCC-2.6.1 COMES TO FREEBSD-current ---------------------------------- Everybody needs to 'make world'. Oakland, Nov 2nd 1994. In a surprise move this sunny afternoon, the release- engineer for the slightly delayed FreeBSD-2.0, Poul-Henning Kamp (28), decided to pull in the new version 2.6.1 of the GNU C-compiler. The new version of the compiler was release today at noon, and hardly 9 hours later it was committed into the FreeBSD-current source-repository. "It's is simply because we have had too much trouble with the version 2.6.0 of the compiler" Poul-Henning told the FreeBSD-Gazette, "we took a gamble when we decided to use that as our compiler for the 2.0 release, but it seems to pay of in the end now" he concludes. The move has not been discussed on the "core" list at all, and will come as a surprise for most Poul-Hennings peers. "I have only discussed it with Jordan [J. K. Hubbard, the FreeBSD's resident humourist], and we agreed that we needed to do it, so ... I did it!". After a breath he added with a grin: "My email will probably get an all time 'disk-full' now!". This will bring quite a flag-day to the FreeBSD developers, the patch-file is almost 1.4 Megabyte, and they will have to run "make world" to get entirely -current again. "Too bad, but we just had to do this." Was the only comment from Poul-Henning to these problems. When asked how this move would impact the 2.0 release-date, Poul-Hennings face grew dark, he mumbled some very Danish words while he moved his fingers in strange geometrical patterns. Immediately something ecclipsed the Sun, a minor tremor shook the buildings, and the temperature fell significantly. We decided not to pursure the question. ----------- JOB-SECTION ----------- Are you a dedicated GCC-hacker ? We BADLY need somebody to look at the 'freebsd' OS in gcc, sanitize it and carry the patches back to the GNU people. In particular, we need to get out of the "i386-only" spot we are in now. I have the stuff to take a gnu-dist into bmake-form, and will do that part. Please apply to phk@freebsd.org No Novice Need Apply.
Diffstat (limited to 'gnu/usr.bin/cc/c++')
-rw-r--r--gnu/usr.bin/cc/c++/g++.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/gnu/usr.bin/cc/c++/g++.c b/gnu/usr.bin/cc/c++/g++.c
index fcd1029..2875524 100644
--- a/gnu/usr.bin/cc/c++/g++.c
+++ b/gnu/usr.bin/cc/c++/g++.c
@@ -40,6 +40,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <sys/types.h>
#include <sys/file.h> /* May get R_OK, etc. on some systems. */
+#include <errno.h>
/* Defined to the name of the compiler; if using a cross compiler, the
Makefile should compile this file with the proper name
@@ -78,8 +79,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#endif
-extern int errno, sys_nerr;
-#if defined(bsd4_4) || defined(__NetBSD__)
+#ifndef errno
+extern int errno;
+#endif
+
+extern int sys_nerr;
+#if defined(bsd4_4) || defined(__NetBSD__) || defined(__FreeBSD__)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
@@ -390,7 +395,7 @@ main (argc, argv)
#endif
args = (int *) malloc (argc * sizeof (int));
- bzero (args, argc * sizeof (int));
+ bzero ((char *) args, argc * sizeof (int));
for (i = 1; i < argc; i++)
{
@@ -431,7 +436,7 @@ main (argc, argv)
&& (char *)strchr ("bBVDUoeTuIYmLiA", argv[i][1]) != NULL)
|| strcmp (argv[i], "-Tdata") == 0))
quote = argv[i];
- else if (((argv[i][2] == '\0'
+ else if (library != NULL && ((argv[i][2] == '\0'
&& (char *) strchr ("cSEM", argv[i][1]) != NULL)
|| strcmp (argv[i], "-MM") == 0))
{
@@ -449,7 +454,10 @@ main (argc, argv)
int len;
if (saw_speclang)
- continue;
+ {
+ saw_speclang = 0;
+ continue;
+ }
/* If the filename ends in .c or .i, put options around it.
But not if a specified -x option is currently active. */
OpenPOWER on IntegriCloud