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: Incomplete TREE_CONSTANT-propagation in build() ?



On 4 Nov, 2003, at 12.23, Gabriel Dos Reis wrote:


Ziemowit Laski <zlaski@apple.com> writes:

| P.S.  For the morbidly curious, I'm working on Motorola-style AltiVec
| support in the 3.4 tree, and I really need compound expressions like
| '(1, 2, 3, 4)' to be marked TREE_CONSTANT. :-)

Why don't you use VECTOR_CST?

I am, but before they become VECTOR_CSTs, they are COMPOUND_EXPRs (due to the parenthesized Motorola notation).

A compound expression is NEVER a constant expression EVEN if its operands are all constant expressions.

Why not?


--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477


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