All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_93847
Date: Wed, 26 Feb 2020 22:15:34 +0100	[thread overview]
Message-ID: <20200226221534.22b8d318@windsurf> (raw)
In-Reply-To: <20200220154004.126384-1-giulio.benetti@benettiengineering.com>

On Thu, 20 Feb 2020 16:40:03 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> git package fails to build for the Nios2 architecture with optimization
> enabled with gcc < 9.x:
> http://autobuild.buildroot.net/results/924/92484c49b655e4aa78ca52f124c6d8f605b9d06b/
> 
> It's been reported upstream:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93847
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  toolchain/Config.in | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/toolchain/Config.in b/toolchain/Config.in
> index 973c03254f..b8c2f79a36 100644
> --- a/toolchain/Config.in
> +++ b/toolchain/Config.in
> @@ -159,6 +159,14 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_90620
>  	bool
>  	default y if BR2_microblaze
>  
> +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93847
> +# ICE: compiler error: Segmentation fault on Nios II. This bug
> +# no longer exists in gcc 9.x.
> +config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
> +	bool
> +	default y if BR2_nios2
> +	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9

	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9

felt a bit simpler/easier to read, so I changed it like this and
applied to master. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

      parent reply	other threads:[~2020-02-26 21:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 15:40 [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_93847 Giulio Benetti
2020-02-20 15:40 ` [Buildroot] [PATCH 2/2] package/git: fix build failure due to gcc bug 93847 Giulio Benetti
2020-02-26 21:15   ` Thomas Petazzoni
2020-02-26 22:22   ` Peter Korsgaard
2020-02-27  8:17     ` Thomas Petazzoni
2020-02-27 11:20       ` Giulio Benetti
2020-02-27 21:15     ` Yann E. MORIN
2020-02-27 21:42       ` Peter Korsgaard
2020-02-26 21:15 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200226221534.22b8d318@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.