This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- From: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 5 Nov 2013 17:24:55 +0400
- Subject: Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- Authentication-results: sourceware.org; auth=none
- References: <20131031091116 dot GD54327 at msticlxl57 dot ims dot intel dot com> <Pine dot LNX dot 4 dot 64 dot 1311012204040 dot 31271 at digraph dot polyomino dot org dot uk> <CAMbmDYaVb9Cx_WoVmb78S3Y2hAiX7paC+cp1EQAYz2vnAUj=jQ at mail dot gmail dot com> <20131105130243 dot GL27813 at tucnak dot zalov dot cz> <CAMbmDYbwqr5VtPzbkTN7Lq+bvcseM8pvbhascgYscM=xJoNngA at mail dot gmail dot com> <20131105131745 dot GN27813 at tucnak dot zalov dot cz>
2013/11/5 Jakub Jelinek <jakub@redhat.com>:
> On Tue, Nov 05, 2013 at 05:13:12PM +0400, Ilya Enkovich wrote:
>> It's sad I cannot just initialize bounds in Bounds Tables for .tdata,
>> memcpy would do all the job for me copying them for each new TLS
>
> Why do you think so? glibc will surely use an internal version of
> memcpy rather than the global one, so unless glibc is MPX enabled, it would
> not do the job.
>
>> instance. The other way is to move all bounds initialization for TLS
>> objects into separate constructor. How can I make such constructor?
>
> Just create a constructor for those, similarly how the C++ FE for __thread
> vars with constructors (or OpenMP lowering for #pragma omp threadprivate
> vars with constructors) expands them.
Will look into it. Thanks!
Ilya
>
> Jakub
- References:
- Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support
- Re: [PATCH, MPX, 2/X] Pointers Checker [8/25] Languages support