This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compilation errors with gcc4.9 and c++1y
- From: madana gopal <madanagopal123 at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 1 Aug 2016 03:02:47 +0530
- Subject: Re: Compilation errors with gcc4.9 and c++1y
- Authentication-results: sourceware.org; auth=none
- References: <CAPuXN=0=M+P4sXU_vALAihJh7wujrbtfGiVRjaEke58Qh47c1w@mail.gmail.com> <CAH6eHdSQ3HJHtMy+XzqwWYwuSV2mKG=06PA9X-4y0VXV9=yRHw@mail.gmail.com>
Thanks for the info. I hope, below is the patch (which is mentioned in
the url you shared) solving this problem:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=229021
Am i right?. If so, do we have any release at which this patch is available?.
Regards,
Madan
On Sun, Jul 31, 2016 at 11:28 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 31 July 2016 at 15:39, madana gopal wrote:
>> Hi,
>>
>> I am compiling below code with c++1y flag with gcc 4.9.
>>
>> #include <stdio.h>
>> register unsigned long sp asm ("sp");
>> int main()
>> {
>> printf("[%d] \n",((unsigned long)(sp) >= 5));
>> return 0;
>> }
>>
>> I got the error as "Expected address of explicit register variable
>> sp". Here, the error is coming from the expression (sp). But it is not
>> coming when i use gcc4.9 without c++1y flag.
>> gcc4.9 is mandatory to be used in my project. Please let me know, what
>> is resolution for this ( any flags) or the reason for this in c++1y.
>
> It might be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064