From: Mark Geisert <mark@maxrnd.com>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH] Cygwin: Make gcc-specific code in <sys/cpuset.h> compiler-agnostic
Date: Sun, 9 Jul 2023 00:58:37 -0700 [thread overview]
Message-ID: <c64c0dcb-5e74-deb8-4182-eafeecc0c730@maxrnd.com> (raw)
In-Reply-To: <e2c6b3f7-3493-90a2-e8c4-a8370a4336d2@Shaw.ca>
Hi all,
Brian Inglis wrote:
> On 2023-07-08 15:53, Mark Geisert wrote:
>> Mark Geisert wrote:
>> I got tripped up by misspelling and not being able to link clang{,++} programs
>> on my test system. I checked the .o files with objdump: Clang and clang++ both
>> support __builtin_popcountl, but they emit code for the Hackers Delight
>> algorithm rather than using the single-instruction popcnt. Sorry for the
>> confustion [sic].
>
> That's what I meant - clang 8 "identifies as" gcc 4, and builtin and intrinsic
> function support are almost the same (and fairly close to gcc 11) builtin and
> intrinsic function support.
>
> And as you mentioned, any support for builtins is better than what we can whip up
> off the top of our heads (unless you use HD/2!)
>
> For our purposes, the main differences between clang 8 and current are latest
> language, library, and processor support, but it also supports useful tools like
> the analyzer and formatter, which gcc does not provide.
>
> And it is convenient to be able to run another compiler side by side for
> comparisons without copying files and remoting to another system.
I now understand what you were getting at. We are in agreement. Thanks to your
persistence and everybody elses comments and to my belatedly getting a working
clang/clang++ build environment, there is a much smaller v2 patch incoming.
Thanks and Regards All,
..mark
prev parent reply other threads:[~2023-07-09 7:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-07 7:41 Mark Geisert
2023-07-07 9:44 ` Corinna Vinschen
2023-07-07 10:13 ` Mark Geisert
2023-07-07 10:45 ` Corinna Vinschen
2023-07-07 15:46 ` Jon Turney
2023-07-07 15:49 ` Corinna Vinschen
2023-07-07 18:54 ` Brian Inglis
2023-07-08 19:22 ` Brian Inglis
2023-07-08 20:59 ` Mark Geisert
2023-07-08 21:53 ` Mark Geisert
2023-07-09 4:27 ` Brian Inglis
2023-07-09 7:58 ` Mark Geisert [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=c64c0dcb-5e74-deb8-4182-eafeecc0c730@maxrnd.com \
--to=mark@maxrnd.com \
--cc=cygwin-patches@cygwin.com \
/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).