This is the mail archive of the gcc-patches@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: [gimple] assignments to volatile


On 06/22/10 16:36, Mark Mitchell wrote:

Nathan, I know that we have RealView available for testing, and I
believe we also have CodeWarrior installed.  Would you like to give
those two a try?

I couldn't get CodeWarrior to play.


RVCT generated code consistent with my proposal. Specifically in:
some_use_of = volatile_object = value;
the volatile object is only written to and not read, regardless of the context of that volatile assignment (be it return expression, conditional expression or serial assignment).


   vobj;
   (void) vobj;

Both of these cause a read of vobj in RVCT (and GCC).


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery


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