From patchwork Sun Jun 6 20:35:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 1488346 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Ksy06x1d; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FypDk6Vt7z9sPf for ; Mon, 7 Jun 2021 06:36:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0A503848421 for ; Sun, 6 Jun 2021 20:36:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0A503848421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1623011761; bh=MhcNxXybdYm/oyJGGGsaDO+rypo66jF7RoihBmGW8pY=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Ksy06x1dUvDfxKtENktFJM+onnaMJO/XA5OAkKYMkf0TDQQqAntNQMQ35EVT8S8ml YyfYebaSuI6bZyQSfc6KFRXjDJ8Z8F5/mif1MgaNoJWQQ7cgnI0Vjqf0zfMFwEuF+f cno5lsVyd8YDj+s/U0TR3r+NmOFTmHDMIHvI8nu8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by sourceware.org (Postfix) with ESMTPS id A94B13851C24 for ; Sun, 6 Jun 2021 20:35:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A94B13851C24 Received: by mail-lj1-x229.google.com with SMTP id c11so19162812ljd.6 for ; Sun, 06 Jun 2021 13:35:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MhcNxXybdYm/oyJGGGsaDO+rypo66jF7RoihBmGW8pY=; b=ERGVxPQiq/n64Fw13Wi+t3C01eao1xh+WvtGpUL4CDOHLnlvItfo76rio3Gm5A2ZHe JM5jSGoOqnn0uB9ZzYE0BXwhbSn4CN04LYjAkygUZJRvRfZMCnzg1gVUGQm5U6IrHJ+G UHYmc0qhIS8Rk3Q4cILxLWd3aM1WkwU+/Dfe3JZUFRvG3ObXbmwkv6gkRFMZfpURKgek +LTBpoqqoYVNgUt5FOS3dvyrAioU6PSJFvYdafNTmmkqRWYIWQOXvJKV+bv3iC/QF1hk M9b6EnztU7CHQgjg0KOB8xH4NZDLE57fnM8FfgUsYGNapQpOMZU3SfQu1JNZftEN8yA1 S2xQ== X-Gm-Message-State: AOAM531z4Qv8EBBXATlPB8cfBFTVtmkM81IIVq8dUBoWbnxMKnDDmdp/ Er+4x1QZJYND6IS7S4r+ee0E93WjToh70ULgWdeV+RDYvTs= X-Google-Smtp-Source: ABdhPJx8Flq8AzUWO5SaFQjCezwfKCq7HeiYeQ6/pxkc8gVXnnHnnR+qOM4fzkoHkCWRY8DGqPyR+KkMvWbARHvNaW0= X-Received: by 2002:a05:651c:1310:: with SMTP id u16mr12397452lja.210.1623011716971; Sun, 06 Jun 2021 13:35:16 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 6 Jun 2021 13:35:06 -0700 Message-ID: Subject: [PATCH,AIX] Use assemble_name to output BSS section name. To: GCC Patches X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Edelsohn via Gcc-patches From: David Edelsohn Reply-To: David Edelsohn Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" aix: Use assemble_name to output BSS section name. The code to emit BSS CSECT needs to support user assembler name. * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common): Use assemble_name to output BSS section name. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 835af7708f9..b01bb5c8191 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -21654,10 +21654,16 @@ rs6000_xcoff_asm_output_aligned_decl_common (FILE *stream, /* Globalize TLS BSS. */ if (TREE_PUBLIC (decl) && DECL_THREAD_LOCAL_P (decl)) - fprintf (stream, "\t.globl %s\n", name); + { + fputs (GLOBAL_ASM_OP, stream); + assemble_name (stream, name); + fputc ('\n', stream); + } /* Switch to section and skip space. */ - fprintf (stream, "\t.csect %s,%u\n", name, align2); + fputs ("\t.csect ", stream); + assemble_name (stream, name); + fprintf (stream, ",%u\n", align2); ASM_DECLARE_OBJECT_NAME (stream, name, decl); ASM_OUTPUT_SKIP (stream, size ? size : 1); return;