Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Alan Modra <amodra@gmail.com>, Jeff Law <jeffreyalaw@gmail.com>
Cc: gcc-patches@gcc.gnu.org, Nick Clifton <nickc@redhat.com>,
	gdb-patches@sourceware.org, Binutils <binutils@sourceware.org>
Subject: Re: RFC: Changing AC_PROG_CC to AC_PROG_CC_C99 in top level configure
Date: Mon, 3 May 2021 10:47:15 -0400	[thread overview]
Message-ID: <e9af4380-4c97-798e-f151-174e098e0065@polymtl.ca> (raw)
In-Reply-To: <20210503062825.GG22624@bubble.grove.modra.org>

> Yes, I prefer the configure fix too.  If we state we require C99 in
> binutils then we ought to be able to use C99..
> 
> Nick, does the configure.ac change also need to go in all subdirs, to
> support people running make in say ld/ rather than running make in the
> top build dir?

For GDB, it's not supported to run gdb/configure directly, you need to
use the top-level configure.  Is it supported from some of the other
projects in the repo?

I just tried with ld, it doesn't work since it depends on bfd also being
built.  I tried with just bfd, it doesn't work (with the default
configure options at least) because it requires zlib being built.

So if all projects need to go through the top-level configure script
anyway, and C99 is a baseline for all projects, then having the check
only in the top-level makes sense to me.  Projects that have more
specific requirements can have their own checks.  For example, sim/
requires C11 now.  Unless the C99 check at top-level somehow does not
play well with the C11 check in sim/?  Like if that would cause CC to be
set to "gcc -std=gnu99 -std=gnu11" or something like that.

Simon

  reply	other threads:[~2021-05-03 14:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 11:32 Nick Clifton via Gdb-patches
2021-04-26 19:32 ` Joseph Myers
2021-04-26 20:05   ` Mike Frysinger via Gdb-patches
2021-04-26 21:31   ` Christian Biesinger via Gdb-patches
2021-04-27 10:49   ` Nick Clifton via Gdb-patches
2021-04-27 16:58     ` Joseph Myers
2021-04-30 18:36 ` Simon Marchi via Gdb-patches
2021-04-30 21:48   ` Jeff Law via Gdb-patches
2021-05-03  6:28     ` Alan Modra via Gdb-patches
2021-05-03 14:47       ` Simon Marchi via Gdb-patches [this message]
2021-05-03 16:26         ` Tom Tromey
2021-05-03 21:51         ` Alan Modra via Gdb-patches
2021-05-03 23:30           ` Simon Marchi via Gdb-patches
2021-05-04 12:42   ` Nick Clifton via Gdb-patches
2021-05-04 15:16     ` Simon Marchi via Gdb-patches

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=e9af4380-4c97-798e-f151-174e098e0065@polymtl.ca \
    --to=gdb-patches@sourceware.org \
    --cc=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.com \
    --cc=nickc@redhat.com \
    --cc=simon.marchi@polymtl.ca \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox