Re: [Msys2-users] gcc6 problem when source uses the restrict keyword

2016-10-29 Thread ralph engels
atleast codelite does not compile with -std=gnu89, seems to be because 
wxwidgets from msys2 relies on gnu++11 so im getting a heap of errors if 
i do that. Probably better to avoid using such keywords in the sources 
all together.


Den 29-10-2016 kl. 14:55 skrev lhmouse:
> gcc6 enables -std=c11 by default and `restrict` is a key word there.
> Such behavior can be disabled by requesting `-std=gnu89` explicitly.
>
> --
> Best regards,
> lh_mouse
> 2016-10-29
>
> -
> 发件人:ralph engels <ralpheng...@gmail.com>
> 发送日期:2016-10-29 20:27
> 收件人:David Grayson
> 抄送:Msys2
> 主题:Re: [Msys2-users] gcc6 problem when source uses the restrict keyword
>
> It applies to quite a few packages, problem seems to be that previous
> gcc did not support the restrict keyword,
>
> so it newer errored out when compiling a source that used the restrict
> keyword in some other context (like the codelite source code, which uses
> restrict in an enumerator).
>
> I got around the bug by renaming restrict to something else ->
> restrictAction.
>
>
> Den 28-10-2016 kl. 22:46 skrev David Grayson:
>> What about using __restrict instead?
>>
>> --David
>>
>> On Fri, Oct 28, 2016 at 7:46 AM, ralph engels <ralpheng...@gmail.com
>> <mailto:ralpheng...@gmail.com>> wrote:
>>
>>  Not sure whats changed ? but after updating to gcc6 the restrict
>>  keyword
>>  can no longer be used and throws an error.
>>
>>  Supplying -std=c99 to flags does not fix it either.
>>
>>
>>  
>> --
>>  The Command Line: Reinvented for Modern Developers
>>  Did the resurgence of CLI tooling catch you by surprise?
>>  Reconnect with the command line and become more productive.
>>  Learn the new .NET and ASP.NET <http://ASP.NET> CLI. Get your free
>>  copy!
>>  http://sdm.link/telerik
>>  ___
>>  Msys2-users mailing list
>>  Msys2-users@lists.sourceforge.net
>>  <mailto:Msys2-users@lists.sourceforge.net>
>>  https://lists.sourceforge.net/lists/listinfo/msys2-users
>>  <https://lists.sourceforge.net/lists/listinfo/msys2-users>
>>
>>
>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Msys2-users mailing list
> Msys2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
>
>


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users


Re: [Msys2-users] gcc6 problem when source uses the restrict keyword

2016-10-29 Thread lhmouse
gcc6 enables -std=c11 by default and `restrict` is a key word there.
Such behavior can be disabled by requesting `-std=gnu89` explicitly.

--   
Best regards,
lh_mouse
2016-10-29

-
发件人:ralph engels <ralpheng...@gmail.com>
发送日期:2016-10-29 20:27
收件人:David Grayson
抄送:Msys2
主题:Re: [Msys2-users] gcc6 problem when source uses the restrict keyword

It applies to quite a few packages, problem seems to be that previous 
gcc did not support the restrict keyword,

so it newer errored out when compiling a source that used the restrict 
keyword in some other context (like the codelite source code, which uses 
restrict in an enumerator).

I got around the bug by renaming restrict to something else -> 
restrictAction.


Den 28-10-2016 kl. 22:46 skrev David Grayson:
> What about using __restrict instead?
>
> --David
>
> On Fri, Oct 28, 2016 at 7:46 AM, ralph engels <ralpheng...@gmail.com 
> <mailto:ralpheng...@gmail.com>> wrote:
>
> Not sure whats changed ? but after updating to gcc6 the restrict
> keyword
> can no longer be used and throws an error.
>
> Supplying -std=c99 to flags does not fix it either.
>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET <http://ASP.NET> CLI. Get your free
> copy!
> http://sdm.link/telerik
> ___
> Msys2-users mailing list
> Msys2-users@lists.sourceforge.net
> <mailto:Msys2-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/msys2-users
> <https://lists.sourceforge.net/lists/listinfo/msys2-users>
>
>


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users




--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users


Re: [Msys2-users] gcc6 problem when source uses the restrict keyword

2016-10-29 Thread ralph engels
It applies to quite a few packages, problem seems to be that previous 
gcc did not support the restrict keyword,


so it newer errored out when compiling a source that used the restrict 
keyword in some other context (like the codelite source code, which uses 
restrict in an enumerator).


I got around the bug by renaming restrict to something else -> 
restrictAction.



Den 28-10-2016 kl. 22:46 skrev David Grayson:

What about using __restrict instead?

--David

On Fri, Oct 28, 2016 at 7:46 AM, ralph engels > wrote:


Not sure whats changed ? but after updating to gcc6 the restrict
keyword
can no longer be used and throws an error.

Supplying -std=c99 to flags does not fix it either.



--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET  CLI. Get your free
copy!
http://sdm.link/telerik
___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/msys2-users





--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users


Re: [Msys2-users] gcc6 problem when source uses the restrict keyword

2016-10-28 Thread David Grayson
What about using __restrict instead?

--David

On Fri, Oct 28, 2016 at 7:46 AM, ralph engels  wrote:

> Not sure whats changed ? but after updating to gcc6 the restrict keyword
> can no longer be used and throws an error.
>
> Supplying -std=c99 to flags does not fix it either.
>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Msys2-users mailing list
> Msys2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users


[Msys2-users] gcc6 problem when source uses the restrict keyword

2016-10-28 Thread ralph engels
Not sure whats changed ? but after updating to gcc6 the restrict keyword 
can no longer be used and throws an error.

Supplying -std=c99 to flags does not fix it either.


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users