Re: TLS run-time requirements on x86, etc.

2017-06-10 Thread Joel Sherrill
On 1/12/2017 11:25 AM, Jakub Jelinek wrote: On Thu, Jan 12, 2017 at 11:22:58AM -0600, Joel Sherrill wrote: I am looking at the RTEMS x86 TLS support. When -fPIC is specified, gcc generates calls to ___tls_get_addr(). But when it is not specified, there are no external calls. To make sure we ar

Re: Potential Bug in GCC5?

2017-06-10 Thread Gerald Pfeifer
Hi Yubin, On Sun, 11 Jun 2017, Yubin Ruan wrote: > I don't know whether this bug has been reported(I have check GCC > Bugzillia though) or has been resolved: > > This program: > > #include > int main() > { > char a = 'a'; > printf("Size of char : %d\n",sizeof(a)); >

Potential Bug in GCC5?

2017-06-10 Thread Yubin Ruan
Hi, I don't know whether this bug has been reported(I have check GCC Bugzillia though) or has been resolved: This program: #include int main() { char a = 'a'; printf("Size of char : %d\n",sizeof(a)); printf("Size of char : %d\n",sizeof('a')); return 0; }