This is the mail archive of the gcc-bugs@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]

[Bug rtl-optimization/24414] Old-style asms don't clobber memory



------- Comment #5 from law at redhat dot com  2005-10-17 21:55 -------
Subject: Re:  Old-style asms don't clobber
        memory

On Mon, 2005-10-17 at 21:43 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #4 from pinskia at gcc dot gnu dot org  2005-10-17 21:43 -------
> The flow code was added by Jeff Law back in 1999:
> http://gcc.gnu.org/ml/gcc-patches/1999-03/msg00763.html
> 
> Jeff, was there a reason why you mentioned old-style asm as special even though
> GCC never handled or documented there were special before that date?
An old-style asm must be assumed to read, write, clobber, well, just
about anything.  Documented or not, that's the only thing that makes
sense.

WHy?  Think about it for a little while, an old-style asm provides us
with zero information on what values it uses, what values it sets and
what values it clobbers.



jeff


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24414


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