From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42790 invoked by alias); 26 May 2017 17:36:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 41626 invoked by uid 89); 26 May 2017 17:36:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1131 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-wm0-f66.google.com Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 26 May 2017 17:36:30 +0000 Received: by mail-wm0-f66.google.com with SMTP id b84so5163885wmh.0; Fri, 26 May 2017 10:36:33 -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:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wIKY0+En1J1fxgx1mJvrZ+WPgFfvaxdwwk7d0jbetSQ=; b=gIO59GlOW5asmuKKppMNB/drWEqiJfeQ3TOY9330mVhzSKDT7GX3yMvcirJaPcrBm5 O1T3kv0aKXe0ms1KyK15KNyWDNQJu7puK65UC+VYAYUOPqFxOSbnH1/KZQrwJ7OmbUr4 UJM98FpIkSBAZRm+aBAHJaTwCI/pm8j4Enp6PWDDUSrpZeDkAMIduQafmsOa3NS8Alx2 0IFRyjNGbslDXY3E35eDBST7USdsJ/5sNKUiaILjqRl6xXUeid5TJd/2YpMJ4eu6h3ww /u1hgfzLh3puHQtp3HWpDDJnIxvH81XPQa6tvNQa/twSYulrzYmt6wJFMLCXUlV1Wf/4 GOaw== X-Gm-Message-State: AODbwcCaRo73W79SZudRVuD8Tjn2VI1OsuNfQGWxtuzWEpYuGs3IpR7J /2MIWUqpSGHtlEpDsldM1BZbnZiiGw== X-Received: by 10.28.91.80 with SMTP id p77mr2759867wmb.84.1495820192288; Fri, 26 May 2017 10:36:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.159.139 with HTTP; Fri, 26 May 2017 10:36:31 -0700 (PDT) In-Reply-To: <1495487553-19078-2-git-send-email-jcmvbkbc@gmail.com> References: <1495487553-19078-1-git-send-email-jcmvbkbc@gmail.com> <1495487553-19078-2-git-send-email-jcmvbkbc@gmail.com> From: "augustine.sterling@gmail.com" Date: Fri, 26 May 2017 17:36:00 -0000 Message-ID: Subject: Re: [RFC 1/5] xtensa: don't expect XCHAL_* macros to be constant To: Max Filippov Cc: binutils@sourceware.org, gdb-patches@sourceware.org, David Weatherford , Maxim Grigoriev , Woody LaRue Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-05/txt/msg00570.txt.bz2 On Mon, May 22, 2017 at 2:12 PM, Max Filippov wrote: > Get rid of the assumption that XCHAL_* macros are preprocessor > constants: don't use them in preprocessor conditionals or in static > variable initializers. > > 2017-05-22 Max Filippov > bfd/ > * elf32-xtensa.c (elf_xtensa_be_plt_entry, > elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays, > keep both windowed and call0 ABI PLT definitions. > (elf_xtensa_create_plt_entry): Use selected ABI to choose upper > elf_xtensa_*_plt_entry endex. > (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size. > > gas/ > * config/tc-xtensa.c (density_supported, xtensa_fetch_width, > absolute_literals_supported): Leave definitions uninitialized. > (directive_state): Leave entries for directive_density and > directive_absolute_literals initialized to false. > (xg_init_global_config, xtensa_init): New functions. > * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0. > (HOST_SPECIAL_INIT): New definition. > (xtensa_init): New declaration. This is ok.