From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26455 invoked by alias); 13 Oct 2004 14:51:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26441 invoked by uid 48); 13 Oct 2004 14:51:36 -0000 Date: Wed, 13 Oct 2004 14:51:00 -0000 Message-ID: <20041013145136.26440.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041013124723.17972.mostrows@watson.ibm.com> References: <20041013124723.17972.mostrows@watson.ibm.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/17972] const/pure functions result in bad asm X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01763.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-13 14:51 ------- What do you think is wrong, attach the difference. Also const/pure functions can changed so that they are only called once. And since they are pure (or is it const) is known not to access memory, the barrier: __asm__ __volatile__("": : :"memory"); does not make a difference. -- What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |rtl-optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17972