diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2015-11-23 15:17:55 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@gcc.gnu.org> | 2015-11-23 15:17:55 +0000 |
commit | 78cc43a2ab49c6ce1c730503cff73ea2e3a597bc (patch) | |
tree | 8929503f25c065546320cf5416d88ff10dd919b7 /libgcc | |
parent | e322d6e350ed9061e4bf3ebb0f67bc88ebb3ae9b (diff) | |
download | gcc-78cc43a2ab49c6ce1c730503cff73ea2e3a597bc.zip gcc-78cc43a2ab49c6ce1c730503cff73ea2e3a597bc.tar.gz gcc-78cc43a2ab49c6ce1c730503cff73ea2e3a597bc.tar.bz2 |
[ARM] PR target/68059 libgcc should not use __write for printing fatal error
libgcc/
PR target/68059
* config/arm/linux-atomic-64bit.c (__write): Rename to...
(write): ...this and fix the return type.
From-SVN: r230762
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 6 | ||||
-rw-r--r-- | libgcc/config/arm/linux-atomic-64bit.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d20375d..6653fedc 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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. diff --git a/libgcc/config/arm/linux-atomic-64bit.c b/libgcc/config/arm/linux-atomic-64bit.c index cdf713c..894450e 100644 --- a/libgcc/config/arm/linux-atomic-64bit.c +++ b/libgcc/config/arm/linux-atomic-64bit.c @@ -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 (); } }; |