From patchwork Tue Dec 7 15:51:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Koning X-Patchwork-Id: 74568 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 63FBCB70AA for ; Wed, 8 Dec 2010 02:51:55 +1100 (EST) Received: (qmail 8016 invoked by alias); 7 Dec 2010 15:51:52 -0000 Received: (qmail 8002 invoked by uid 22791); 7 Dec 2010 15:51:51 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60ps301.us.dell.com (HELO ausc60ps301.us.dell.com) (143.166.148.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Dec 2010 15:51:45 +0000 X-Loopcount0: from 10.152.240.141 From: Paul Koning Subject: [PATCH] pdp11: define TARGET_ASM_FUNCTION_SECTION hook Date: Tue, 7 Dec 2010 10:51:42 -0500 Message-Id: To: gcc-patches Mime-Version: 1.0 (Apple Message framework v1082) 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 This patch adds a TARGET_ASM_FUNCTION_SECTION hook to pdp11.c to override the default names (which don't fit this target). Checked by build. Committed. paul ChangeLog: 2010-12-07 Paul Koning * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define. (pdp11_function_section): New function. @@ -2118,4 +2122,13 @@ } } +static section * +pdp11_function_section (tree decl ATTRIBUTE_UNUSED, + enum node_frequency freq ATTRIBUTE_UNUSED, + bool startup ATTRIBUTE_UNUSED, + bool exit ATTRIBUTE_UNUSED) +{ + return NULL; +} + struct gcc_target targetm = TARGET_INITIALIZER; Index: config/pdp11/pdp11.c =================================================================== --- config/pdp11/pdp11.c (revision 167551) +++ config/pdp11/pdp11.c (working copy) @@ -233,6 +233,10 @@ #undef TARGET_CONDITIONAL_REGISTER_USAGE #define TARGET_CONDITIONAL_REGISTER_USAGE pdp11_conditional_register_usage + +#undef TARGET_ASM_FUNCTION_SECTION +#define TARGET_ASM_FUNCTION_SECTION pdp11_function_section + /* Implement TARGET_HANDLE_OPTION. */