Re: Uninitialized integers and warnings

2013-09-05 Thread David Brown
On 04/09/13 16:06, Ian Lance Taylor wrote: > On Wed, Sep 4, 2013 at 6:40 AM, Kirill Tkhai wrote: >> >> the following example compiles without warnings: >> >> $ cat a.c >> int func (int p) >> { >> int x; >> if (p != 0) >> x = 1; >> return x; >> } >> >> $ gcc

Reusing OpenMP front end infrastructure for OpenACC -- how?

2013-09-05 Thread Thomas Schwinge
Hi! Implementing OpenACC support in GCC's frontends, there are things that I trivially have to reimplement, that are already present for OpenMP. For example, the infrastructure for parsing clauses (as attached to OpenACC and OpenMP directives), and their representation in the GCC internal data st

Re: Reusing OpenMP front end infrastructure for OpenACC -- how?

2013-09-05 Thread Jakub Jelinek
On Thu, Sep 05, 2013 at 04:51:14PM +0200, Thomas Schwinge wrote: > Implementing OpenACC support in GCC's frontends, there are things that I > trivially have to reimplement, that are already present for OpenMP. For > example, the infrastructure for parsing clauses (as attached to OpenACC > and Open

Re: Uninitialized integers and warnings

2013-09-05 Thread Ian Lance Taylor
On Wed, Sep 4, 2013 at 10:34 PM, Umesh Kalappa wrote: When p == 0 the program has undefined behaviour, > Ian,What makes you to say this is undefined ?,Please can you elaborate more > on this and again tried with below sample > > > int func (int p) > { > int x; > if (p != 1)

gcc-4.8-20130905 is now available

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