This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __seg_gs specifier in g++
- From: 陳韋任 <chenwj dot cs97g at g2 dot nctu dot edu dot tw>
- To: "J.W. Jagersma" <jwjagersma at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 26 Mar 2017 07:13:39 +0800
- Subject: Re: __seg_gs specifier in g++
- Authentication-results: sourceware.org; auth=none
- References: <CAPLG5jbp8Tzs=M-fuhTb9ckQ1To=CQXrF=rg8CUE5Fwx6rv3ew@mail.gmail.com>
The named address space is GNU extension [1], have you ever tried
using command line option like "-std=gnu++11"?
[1] https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html
HTH,
chewj
2017-03-26 6:03 GMT+08:00 J.W. Jagersma <jwjagersma@gmail.com>:
> I'm trying to use the __seg_gs address space specifier in g++, but it
> keeps telling me "__seg_gs does not name a type". Even the following
> short snippet fails to compile:
>
> int main()
> {
> #ifdef __SEG_GS
> __seg_gs int* i;
> #endif
> }
>
> Am I doing something wrong here? Any help would be appreciated.
--
Wei-Ren Chen (陳韋任)
Homepage: http://people.cs.nctu.edu.tw/~chenwj