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]

Re: PA casesi questions


> Are you handling the scenario where the variable is volatile?

I only track ranges associated with pseudo registers.  Can a
pseudo register be volatile?  How's that indicated in the RTL?

> Obviously value range propagation can't be used on volatile variables.

Yes and no.  The min. and max. values can always be determined from
the mode used when accessing the variable.

> In you example if a is volatile you know nothing about the value of a
> when control reaches the switch. 

If "a" is QImode then you know the possible bits patterns are from 0x00
through 0xff.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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