From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: mark@codesourcery.com (Mark Mitchell) Cc: jbuck@synopsys.com, gcc@gcc.gnu.org, rms@gnu.org Subject: Re: type based aliasing again Date: Thu, 30 Sep 1999 18:02:00 -0000 Message-ID: <199909090340.UAA24340@atrus.synopsys.com> References: <19990908202957F.mitchell@codesourcery.com> X-SW-Source: 1999-09n/msg00328.html Message-ID: <19990930180200.TbIvTW14RF5VtRpiCyDKSncKcWLL6jusv55xYSQATWY@z> Mark Mitchell writes: > There will be cases where A will pessimize code that does not have > undefined behavior. So, in fact, C is impossible, and A penalizes > conforming code. Thus, B is the only remaining sensible option. Your conclusion does not follow from the premise, unless you add extra assumptions, like "It is not sensible to ever pessimize any conforming program the least little bit, no matter how rare such programs might be." Could you give an example of such a case? It seems that it could only occur if 1. There is an illegal access, but 2. It can never be reached, but 3. We can't tell that it will never be reached. If 1 is not true, the issue doesn't arise; if 2 is not true, the program has undefined behavior; if 3 is not true, we've killed the affected code in any case. Do we really care if there is a marginal slowdown of code that satisfies all three conditions?