This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH] C frontend: Emit &a as &a[0].


On Thu, 28 Apr 2005, Richard Guenther wrote:

> Excess errors:
> /net/alwazn/home/rguenth/src/gcc/cvs/gcc-4.1/gcc/testsuite/gcc.dg/c99-init-4.c:8:
> error: initializer element is not constant

So, in general you need to ensure that the new forms of trees are 
TREE_CONSTANT and pass initializer_constant_valid_p.  If not 
TREE_CONSTANT, look at where they are built up and find where 
TREE_CONSTANT is lost.  If failing initializer_constant_valid_p, work out 
how to adapt that function to cover the new canonical forms of trees.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]