From patchwork Tue Mar 5 17:31:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 225110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 771DB2C02AF for ; Wed, 6 Mar 2013 04:31:48 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1363109508; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Date:Message-ID:Subject:From:To:Cc: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=Az8X3rn a3nhnviN1BZymZ3/xkfs=; b=dT09SsvY1EcOGKMh03Bp1xYePTPno2XkjjHu7Qw Wt6I7vBE/7jVMlQ96IdQyZuRR+kEMH5ahgPA4mLruvlqVl8NRC5Y4NwPrKQx/9l7 cyBZfi+L3s+7r7FYxbEt1Hj+x5kLCF661EZuRZU+F5FpmQ6jxq5fMfgB+HcSlo6i W0nM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:X-Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=itivU7QdYEvHky9vtHjSXYiulkklbVaJlgwAccRHgVEhSSsMCFNEChuoobMwt7 pSBlF+vstdkzngNzS7iWbtUaJrV2EikO1SRvuyOabTc58RIQQam5G3YYr3dwg2AT /MEbyGoPWcSEak4iHs35e/O485vul8/5chjc+XUqFuHOQ=; Received: (qmail 21512 invoked by alias); 5 Mar 2013 17:31:35 -0000 Received: (qmail 21494 invoked by uid 22791); 5 Mar 2013 17:31:33 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f169.google.com (HELO mail-ie0-f169.google.com) (209.85.223.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Mar 2013 17:31:24 +0000 Received: by mail-ie0-f169.google.com with SMTP id 13so8141907iea.14 for ; Tue, 05 Mar 2013 09:31:24 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.209.4 with SMTP id mi4mr6786292igc.40.1362504684486; Tue, 05 Mar 2013 09:31:24 -0800 (PST) Received: by 10.64.231.200 with HTTP; Tue, 5 Mar 2013 09:31:24 -0800 (PST) Date: Tue, 5 Mar 2013 18:31:24 +0100 Message-ID: Subject: [patch sdbout]: Fix regression in sdbout.c From: Kai Tietz To: GCC Patches Cc: Richard Henderson X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello, this patch fixes a regression in gcc.dg/debug/tls-1.c testcase for -gcoff. ChangeLog 2013-03-05 Kai Tietz * sdbout.c (sdbout_one_type): Switch to current function's section supporting cold/hot. Tested for x86_64-w64-mingw32. Ok for apply? Index: sdbout.c =================================================================== --- sdbout.c (Revision 196451) +++ sdbout.c (Arbeitskopie) @@ -1017,7 +1017,7 @@ sdbout_one_type (tree type) && DECL_SECTION_NAME (current_function_decl) != NULL_TREE) ; /* Don't change section amid function. */ else - switch_to_section (text_section); + switch_to_section (current_function_section ()); switch (TREE_CODE (type)) {