This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Incrementing volatiles?
- To: bcurrie at tssc dot co dot nz (Bill Currie)
- Subject: Re: Incrementing volatiles?
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Wed, 15 Jul 1998 11:14:06 +0100 (BST)
- Cc: schwab at issan dot informatik dot uni-dortmund dot de, vonbrand at inf dot utfsm dot cl, smurf at noris dot de, egcs at cygnus dot com
> Maybe gcc should have some rtxs for incrementing/decrementing a pseudo
> (both ++/-- and +=/-=, so that even unoptimised code gets the
> `optimised' version). Actualy, rtxs should be defined for *ALL* <op>=
We already have POST_INC, so if we wrap it in something with a mode,
we could express it, e.g.:
(use:QI (post_inc:SI (reg:SI 123)))
However, handling this properly in all the passes would probably be a major
amount of work - maybe more than it's worth.