[PATCH, ARM, v2] PR target/68059 libgcc should not use __write for printing fatal error

Szabolcs Nagy szabolcs.nagy@arm.com
Fri Nov 6 13:33:00 GMT 2015


libgcc/config/arm/linux-atomic-64bit.c uses __write to print an error
message if the 64bit cmpxchg method is not available in the kernel.

__write is not part of the public libc abi, so use write instead.
(user code may define write in iso c conforming mode and then the
error message may not be visible before the crash.)

The return type in the declaration of write is fixed too.

OK for trunk and backporting?

libgcc/ChangeLog:

2015-11-06  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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm_write.diff
Type: text/x-patch
Size: 975 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151106/d01af202/attachment.bin>


More information about the Gcc-patches mailing list