From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3817 invoked by alias); 21 Sep 2008 12:25:03 -0000 Received: (qmail 3551 invoked by uid 48); 21 Sep 2008 12:23:43 -0000 Date: Sun, 21 Sep 2008 12:25:00 -0000 Message-ID: <20080921122343.3550.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/37604] Suboptimal code generation for volatile access In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sam at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg02419.txt.bz2 ------- Comment #2 from sam at gcc dot gnu dot org 2008-09-21 12:23 ------- Well, in the second example I give (variable declared in the same compilation unit), the access is optimized. What I don't get is the difference between both cases, while the compiler does have the same information at its disposal. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37604