Re: __seg_gs specifier in g++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



oops, forgot the cc.

On 26 March 2017 at 05:39, J.W. Jagersma <jwjagersma@xxxxxxxxx> wrote:
> Hi, thanks for your response.
> Yes, I was using -std=gnu++17. I should have mentioned that. Same
> result, both on 6.3 and 6.1.
> However I just found that it does compile when it's a .c file, but not
> as a .cpp file. Is __seg_gs only implemented in C for some reason?
>
> On 26 March 2017 at 00:10, 陳韋任 <chenwj.cs97g@xxxxxxxxxxxxxx> wrote:
>> 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@xxxxxxxxx>:
>>>
>>> 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
>>




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux