Re: Generate annotations for a binary translator

2011-06-12 Thread 陳韋任
> > At the end of the link belows, > > > > http://gcc.gnu.org/onlinedocs/gccint/Maintaining-the-CFG.html#Maintaining-the-CFG > > > > It says, > > > > "Note that at present, the representation of control flow in the tree > > representation is discarded before expanding to RTL. Long term the C

Re: Is VIEW_CONVERT_EXPR an lvalue? (was Re: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10)))

2011-06-12 Thread Mike Stump
On Jun 12, 2011, at 4:03 AM, Richard Guenther wrote: > Btw, see tree.def which says > > /* Represents viewing something of one type as being of a second type. > This corresponds to an "Unchecked Conversion" in Ada and roughly to > the idiom *(type2 *)&X in C. The only operand is the value to

Re: Is VIEW_CONVERT_EXPR an lvalue? (was Re: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10)))

2011-06-12 Thread Jason Merrill
On 06/12/2011 06:59 AM, Richard Guenther wrote: The please provide a specification on what a VIEW_CONVERT_EXPR does to type-based alias analysis. If the alias set of the VIEW_CONVERT_EXPR type the same as the set for the operand, ignore it; if it's a subset, handle it like a COMPONENT_REF; ot

gcc-4.3-20110612 is now available

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

GCC mainline is broken on x86

2011-06-12 Thread H.J. Lu
Hi, Revision 174952: http://gcc.gnu.org/ml/gcc-cvs/2011-06/msg00441.html totally breaks C++ on x86: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49378 http://gcc.gnu.org/ml/gcc-regression/2011-06/msg00159.html One symptom is we are using uninitialized registers, which leads to writing random me

Re: Is VIEW_CONVERT_EXPR an lvalue? (was Re: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10)))

2011-06-12 Thread Richard Guenther
On Sun, Jun 12, 2011 at 12:59 PM, Richard Guenther wrote: > On Sat, Jun 11, 2011 at 10:01 PM, Jason Merrill wrote: >> On 06/10/2011 10:20 AM, Richard Guenther wrote: >>> >>> no, a VIEW_CONVERT_EXPR is generally not an lvalue (fold for example >>> would turn the above to (volatile int) a[1]). >> >

Re: GCC 4.6.1 Status

2011-06-12 Thread Richard Guenther
On Sat, Jun 11, 2011 at 10:19 PM, Erik Vaughn wrote: >> GCC 4.6.1 is planned for roughly late May, unless any reason arises to> >> release >>it earlier. >> The next report for 4.6.1 will be sent by Richard. > > Is there a reason that the release has been delayed? Lack of time? Queuing up some m

Re: Is VIEW_CONVERT_EXPR an lvalue? (was Re: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10)))

2011-06-12 Thread Richard Guenther
On Sat, Jun 11, 2011 at 10:01 PM, Jason Merrill wrote: > On 06/10/2011 10:20 AM, Richard Guenther wrote: >> >> no, a VIEW_CONVERT_EXPR is generally not an lvalue (fold for example >> would turn the above to (volatile int) a[1]). > > The gimplifier seems to consider it an lvalue: gimplify_expr uses