Re: _Bool and trap representations

2016-06-08 Thread Richard Biener
On Wed, Jun 8, 2016 at 8:36 AM, Alexander Cherepanov wrote: > Hi! > > If a variable of type _Bool contains something different from 0 and 1 its > use amounts to UB in gcc and clang. There is a couple of examples in [1] > ([2] is also interesting). > > [1] https://github.com/TrustInSoft/tis-interpr

Re: _Bool and trap representations

2016-06-08 Thread Alexander Cherepanov
On 2016-06-08 10:29, Richard Biener wrote: On Wed, Jun 8, 2016 at 8:36 AM, Alexander Cherepanov wrote: [skip] But my question is about the following example: -- #include int main() { _Bool b; *(char *)&b = 123; pri

Re: _Bool and trap representations

2016-06-08 Thread Richard Biener
On Wed, Jun 8, 2016 at 10:04 AM, Alexander Cherepanov wrote: > On 2016-06-08 10:29, Richard Biener wrote: >> >> On Wed, Jun 8, 2016 at 8:36 AM, Alexander Cherepanov >> wrote: > > [skip] >>> >>> But my question is about the following example: >>> >>> ---

GNU Hacker Meeting 2016

2016-06-08 Thread Christian Grothoff
Hi all, The GNU Hackers Meeting 2016 will take place in France in August 18-20. See https://www.gnu.org/ghm/upcoming.html for details. The conference needs speakers on a variety of topics, and we would be thrilled to have someone speak about anything related to gcc. So please let me know if you

Re: _Bool and trap representations

2016-06-08 Thread Martin Sebor
On 06/08/2016 12:36 AM, Alexander Cherepanov wrote: Hi! If a variable of type _Bool contains something different from 0 and 1 its use amounts to UB in gcc and clang. There is a couple of examples in [1] ([2] is also interesting). [1] https://github.com/TrustInSoft/tis-interpreter/issues/39 [2]

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-08 Thread Prathamesh Kulkarni
On 6 June 2016 at 15:49, Richard Biener wrote: > On Mon, Jun 6, 2016 at 11:27 AM, Prasad Ghangal > wrote: >> Hi, >> >> This patch parses simple assignment statement >> >> int a; >> void __GIMPLE foo() >> { >> a = 1; >> } >> >> but it does not produce gimple dump. In debugging I found that >> cf

gcc-4.9-20160608 is now available

2016-06-08 Thread gccadmin
Snapshot gcc-4.9-20160608 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.9-20160608/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.9 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches