Bug 8461 - Patch to remove nested function
Summary: Patch to remove nested function
Status: NEW
Alias: None
Product: uClibc
Classification: Unclassified
Component: Threads (show other bugs)
Version: unspecified
Hardware: PC All
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 12:37 UTC by Michael Tautschnig
Modified: 2015-11-15 12:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch (1.53 KB, patch)
2015-11-15 12:39 UTC, Michael Tautschnig
Details

Note You need to log in before you can comment on or make changes to this bug.
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