Bug 8461

Summary: Patch to remove nested function
Product: uClibc Reporter: Michael Tautschnig <mt>
Component: ThreadsAssignee: unassigned
Status: NEW ---    
Severity: minor CC: uclibc-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Host: Target:
Build:
Attachments: Patch

Description Michael Tautschnig 2015-11-15 12:37:58 UTC
Hello,

For an unknown reason __reclaim_stacks uses a nested function, which is a feature even deprecated in GCC and unsupported in other compilers. 

This was introduced in a032a6587011cbdac8c2f7e11f15dc4e592bbb55. glibc has meanwhile expanded this inline:

https://sourceware.org/git/?p=glibc.git;a=commit;f=nptl/allocatestack.c;h=fc75bf464d128f6a722d6cca7012c996f1f73425

The attached patch moves the function into file scope.

Best,
Michael
Comment 1 Michael Tautschnig 2015-11-15 12:39:58 UTC
Created attachment 6226 [details]
Patch