public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Adrian Ratiu <adrian.ratiu@collabora.com>
To: Mark Wielaard <mark@klomp.org>
Cc: elfutils-devel@sourceware.org, manojgupta@chromium.org
Subject: Re: [PATCH] configure.ac: drop unnecessary gnu99 extension checks
Date: Thu, 26 Aug 2021 15:00:50 +0300	[thread overview]
Message-ID: <87r1ege7pp.fsf@collabora.com> (raw)
In-Reply-To: <YSQDXelc/6XdVn8T@wildebeest.org>

Hi Mark,

On Mon, 23 Aug 2021, Mark Wielaard <mark@klomp.org> wrote:
> Hi Adrian, 
> 
> On Tue, Aug 10, 2021 at 03:56:51PM +0300, Adrian Ratiu via 
> Elfutils-devel wrote: 
>> So in the interest of enabling Clang builds we remove the only 
>> remaining blocker: the configure checks for nested functions 
>> and variable length arrays which are also unused. 
> 
> Can we just remove the whole configure test? And change the 
> AC_PROG_CC to AC_PROG_CC_C99?

Yes, I think we can do that.
 
> 
> The patch doesn't update the comments about what is being 
> tested, and the only thing being tested now is Mixed 
> Declarations and Code, which is a standard part of C99.

Good catch. I'll update and send a v2.
 
> 
> Have you tried running make check with an alternative compiler? 
> There are a couple of "self tests" which run the code on the 
> just produced binaries and it would be interesting to know 
> whether or not all tests pass.

I did comparative builds within the Gentoo/ChromeOS build 
environments with the GNU/GCC 10.2 and LLVM/Clang 13.0 toolchains.

With GCC:

# TOTAL: 224 PASS:  214 SKIP:  7 XFAIL: 0 FAIL:  3 XPASS: 0 ERROR: 
# 0 

With Clang:

# TOTAL: 224 PASS:  212 SKIP:  7 XFAIL: 0 FAIL:  5 XPASS: 0 ERROR: 
# 0 

The two tests which failed are run-strip-strmerge.sh and 
run-reverse-sections-self.sh because the `.gnu.version` is 
invalid.

Links are below for the gcc [1] vs clang [2] test-suite.logs.

[1] 
https://drive.google.com/file/d/1uQSHarIQwA07fIih0ZHHt8zfim_BWRYP/view?usp=sharing
[2] 
https://drive.google.com/file/d/1q7iGXjutyoLgM4iOm_rFMVxT11dnwpt5/view?usp=sharing

Thanks,
Adrian

>
> Thanks,
>
> Mark

      reply	other threads:[~2021-08-26 12:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10 12:56 Adrian Ratiu
2021-08-23 20:21 ` Mark Wielaard
2021-08-26 12:00   ` Adrian Ratiu [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=87r1ege7pp.fsf@collabora.com \
    --to=adrian.ratiu@collabora.com \
    --cc=elfutils-devel@sourceware.org \
    --cc=manojgupta@chromium.org \
    --cc=mark@klomp.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).