This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

add missing value to gthread_once return statement for VxWorks


Hello,

Something we noticed through sporadic runtime mishaps on powerpc-vxworks.

__gthread_once returns int and the VxWorks implementation has a dangling lone
"return;" for a subcase.

This patch adds the missing return value, based on what is returned for a
similar state elsewhere. Committing as obvious.

With Kind Regards,

Olivier

2017-06-02  Olivier Hainque  <hainque@adacore.com>

	libgcc/
	* config/vxlib.c (__gthread_once): Add missing value to
	a nested return statement.

Attachment: vxlib-return.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]