[ARM] PR target/68059 libgcc should not use __write for printing fatal error
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 23 Nov 2015 15:17:55 +0000 (15:17 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Mon, 23 Nov 2015 15:17:55 +0000 (15:17 +0000)
libgcc/
PR target/68059
* config/arm/linux-atomic-64bit.c (__write): Rename to...
(write): ...this and fix the return type.

From-SVN: r230762

libgcc/ChangeLog
libgcc/config/arm/linux-atomic-64bit.c

index d20375dadf4dd41f4ccebcf8c7156613dbfbf3a9..6653fedcd06f2157d974fb72813471f816cc93ab 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-23  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR target/68059
+       * config/arm/linux-atomic-64bit.c (__write): Rename to...
+       (write): ...this and fix the return type.
+
 2015-11-19  DJ Delorie  <dj@redhat.com>
 
        * config/msp430/lib2hw_mul.S: Fix alignment.
index cdf713c6fbd5249478f78acb83e053b00b96e9f2..894450e621369efd74c2d135ecdaeac32c19ae19 100644 (file)
@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    kernels; we check for that in an init section and bail out rather
    unceremoneously.  */
 
-extern unsigned int __write (int fd, const void *buf, unsigned int count);
+extern int write (int fd, const void *buf, unsigned int count);
 extern void abort (void);
 
 /* Kernel helper for compare-and-exchange.  */
@@ -56,7 +56,7 @@ static void __check_for_sync8_kernelhelper (void)
         for the user - I'm not sure I can rely on much else being
         available at this point, so do the same as generic-morestack.c
         write () and abort ().  */
-      __write (2 /* stderr.  */, err, sizeof (err));
+      write (2 /* stderr.  */, err, sizeof (err));
       abort ();
     }
 };