From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9754 invoked by alias); 21 Mar 2008 20:15:31 -0000 Received: (qmail 9394 invoked by uid 48); 21 Mar 2008 20:14:41 -0000 Date: Fri, 21 Mar 2008 20:15:00 -0000 Subject: [Bug c/35661] New: __attribute__((cold)) generates wrong code X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zuxy dot meng at gmail dot com" 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-03/txt/msg01766.txt.bz2 On MinGW32, GCC 4.3.0 marks the .text.unlikely section as "w"(writable) instead of "x"(executable), which makes the assembler to pad the section with zeros instead of NOPs. Runtime behavior is almost always incorrect and in many cases an application will crash. -- Summary: __attribute__((cold)) generates wrong code Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zuxy dot meng at gmail dot com GCC build triplet: i686-pc-mingw32 GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35661