gcc-4.7-20130202 is now available

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

How To Add a Sequence Point?

2013-02-02 Thread Jeffrey Walton
Hi All, How do I add a sequence point in my C/C++ code? Googling brings up a lot of 'volatile' hits, but I believe that's an abuse of GCC's interpretation of volatile since I'm not working with memory mapped hardware or registers. Jeff

Re: Array of pointers to global data

2013-02-02 Thread Matt Davis
I just wanted to post an update, mainly that I have solved my problem :-) A bit more on this follows below... On Sat, Feb 2, 2013 at 12:01 PM, Matt Davis wrote: > Thanks Ian, Richard. > I have some modified code which seems to be along the same lines as > what you all suggested. However, I am s

Re: How To Add a Sequence Point?

2013-02-02 Thread Andrew Pinski
On Sat, Feb 2, 2013 at 4:59 PM, Jeffrey Walton wrote: > Hi All, > > How do I add a sequence point in my C/C++ code? A semi-colon (end of the statement), a comma (but not as an argument separator though) are both sequence points. Thanks, Andrew Pinski > > Googling brings up a lot of 'volatile' h

Re: How To Add a Sequence Point?

2013-02-02 Thread Jeffrey Walton
Thanks Andrew. So, it looks like I don't understand sequence points. Please forgive my ignorance. What does C/C++ and GCC offer to ensure writes are complete before reads are performed on a value in a multi-threaded program? Jeff On Sat, Feb 2, 2013 at 8:07 PM, Andrew Pinski wrote: > On Sat, F

Re: How To Add a Sequence Point?

2013-02-02 Thread Andrew Pinski
On Sat, Feb 2, 2013 at 5:10 PM, Jeffrey Walton wrote: > Thanks Andrew. > > So, it looks like I don't understand sequence points. Please forgive > my ignorance. > > What does C/C++ and GCC offer to ensure writes are complete before > reads are performed on a value in a multi-threaded program? GCC

Re: A pass that worked in gcc-4.6.2 fails in gcc-4.7.2

2013-02-02 Thread Sudakshina Das
Hello, Now I am trying to convert the same pass into a dynamic plugin. Since I was having trouble doing so, I tried adding a simple dynamic plugin which would just dump the cfg using gimple_dump_cfg. But even in this simple plugin I faced the same problem, as explained below. When I build my plug