]> gcc.gnu.org Git - gcc.git/commitdiff
[multiple changes]
authorDave Brolley <brolley@gcc.gnu.org>
Mon, 7 Dec 1998 12:42:21 +0000 (07:42 -0500)
committerDave Brolley <brolley@gcc.gnu.org>
Mon, 7 Dec 1998 12:42:21 +0000 (07:42 -0500)
Mon Dec  7 15:38:25 1998  Dave Brolley  <brolley@cygnus.com>
* gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1.
Mon Dec  7 15:38:25 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
        * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB.
        * cppalloc.c: Move function `xcalloc' from cpplib.c to here.
        * cpplib.c: Move function `xcalloc' from here to cppalloc.c.

From-SVN: r24152

gcc/ChangeLog
gcc/c-aux-info.c
gcc/cppalloc.c
gcc/cpplib.c
gcc/gcc.c

index d637a4ed30fae3ebf7565ef76d708eb8ed86e401..84a79ba5cd8569bfab0ce81c4e15a0a59bb39713 100644 (file)
@@ -1,3 +1,13 @@
+Mon Dec  7 15:38:25 1998  Dave Brolley  <brolley@cygnus.com>
+
+       * gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1.
+
+Mon Dec  7 15:38:25 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+        * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB.
+        * cppalloc.c: Move function `xcalloc' from cpplib.c to here.
+        * cpplib.c: Move function `xcalloc' from here to cppalloc.c.
+
 Mon Dec  7 11:30:49 1998  Nick Clifton  <nickc@cygnus.com>
 
        * final.c (output_asm_name): Use tabs to seperate comments from
index e6737c995dc856632d45c85209ecc122031eec07..d86d44539fb528aedeab11277924b8a6d31f324b 100644 (file)
@@ -48,6 +48,10 @@ static char *gen_decl                        PROTO((tree, int, formals_style));
 
    This function is based on the one in libiberty.  */
 
+/* This definition will conflict with the one from prefix.c in
+   libcpp.a when linking cc1 and cc1obj.  So only provide it if we are
+   not using libcpp.a */
+#ifndef USE_CPPLIB
 char *
 concat VPROTO((const char *first, ...))
 {
@@ -99,6 +103,7 @@ concat VPROTO((const char *first, ...))
 
   return (newstr);
 }
+#endif /* ! USE_CPPLIB */
 
 /* Given a string representing an entire type or an entire declaration
    which only lacks the actual "data-type" specifier (at its left end),
index 3cd72ee1fa2ef676d160410df7f9846228a57f86..a852d00cb15d71d862653d3c4fbcd87a20e338eb 100644 (file)
@@ -45,6 +45,16 @@ xmalloc (size)
   return ptr;
 }
 
+PTR
+xcalloc (number, size)
+  size_t number, size;
+{
+  register PTR ptr = (PTR) calloc (number, size);
+  if (ptr == 0)
+    memory_full ();
+  return ptr;
+}
+
 PTR
 xrealloc (old, size)
   PTR old;
index 828bcf9a0a71ee8a3f83ba4da414ba6c5b4a941f..a9bb550bb55e66d0a1c9e8c2d432556a61bdc44c 100644 (file)
@@ -6429,20 +6429,10 @@ free_token_list (tokens)
   }
 }
 
-/* FIXME: savestring() should be renamed strdup() and both should
+/* FIXME: savestring() should be renamed strdup() and should
    be moved into cppalloc.c.  We can't do that right now because
    then we'd get multiple-symbol clashes with toplev.c and several
    other people. */
-PTR
-xcalloc (number, size)
-  size_t number, size;
-{
-  register unsigned total = number * size;
-  register PTR ptr = (PTR) xmalloc (total);
-  bzero (ptr, total);
-  return ptr;
-}
-
 char *
 savestring (input)
      char *input;
index 7b67bd369f69813a21a22dfe377077151c50b296..438304529a7f6afab3af7d47ed6720a3b87224d0 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -581,7 +581,7 @@ static struct compiler default_compilers[] =
   {"@c",
    {
 #if USE_CPPLIB
-     "%{E|M|MM:cpp -lang-c %(ansi:-std=c89} %{std*} %{nostdinc*}\
+     "%{E|M|MM:cpp -lang-c %{ansi:-std=c89} %{std*} %{nostdinc*}\
        %{C} %{v} %{A*} %{I*} %{P} %I\
        %{C:%{!E:%eGNU C does not support -C without using -E}}\
        %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
This page took 0.097688 seconds and 5 git commands to generate.