This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add support for placing variables in shared memory
- From: Nathan Sidwell <nathan at acm dot org>
- To: Alexander Monakov <amonakov at ispras dot ru>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Apr 2016 10:00:16 -0400
- Subject: Re: [PATCH] add support for placing variables in shared memory
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LNX dot 2 dot 20 dot 1604201957570 dot 14803 at monopod dot intra dot ispras dot ru>
On 04/20/16 12:58, Alexander Monakov wrote:
Allow using __attribute__((shared)) to place static variables in '.shared'
memory space.
What is the rationale for a new attribute, rather than leveraging the existing
section(".shared") machinery?
+ else if (current_function_decl && !TREE_STATIC (decl))
+ {
+ error ("%qE attribute only applies to non-stack variables", name);
'non-stack'? don't you mean 'static' or 'static storage'?
Needs a test case.
nathan