public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <jsm@polyomino.org.uk>
To: Zack Weinberg <zack@codesourcery.com>
Cc: Phil Edwards <phil@codesourcery.com>,
	law@redhat.com,  Jerry Quinn <jlquinn@optonline.net>,
	gcc-patches@gcc.gnu.org
Subject: Re: [patch]  Minor improvement to typeclass.h
Date: Thu, 10 Jun 2004 21:25:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.58.0406101940350.8424@digraph.polyomino.org.uk> (raw)
In-Reply-To: <87r7snb5ss.fsf@taltos.codesourcery.com>

On Thu, 10 Jun 2004, Zack Weinberg wrote:

> Ah.  tgmath.h.  Yeah, that's good enough reason to keep the extension,
> although here's a place where a dialogue with glibc people could
> probably result in a better implementation.  (Same sort of icky macros
> you find in altivec.h.)

Though I helped with the design of the built-ins used to implement
altivec.h, having seen the resulting altivec.h and the problems associated
with it I don't think it's proved to be a good direction to go in.  (Part
of the blame must be laid at the designers of an Altivec specification
that didn't give its extensions as amendments to ISO C fitting cleanly
within the text and spirit of the document.)  I'd still prefer the sort of
overloaded built-ins described in projects/index.html to implement
<tgmath.h> (in particular, to avoid the explosion of nested macro text
expansions, each parameter should appear once only in the macro text).  
OTOH I don't really care for adding new extensions either, though this
sort of extension (rather than the mess we have) is clearly envisaged by
ISO C.

(The __builtin_classify_type uses were in Ulrich's part of

2000-08-01  Ulrich Drepper  <drepper@redhat.com>
            Joseph S. Myers  <jsm28@cam.ac.uk>

        * math/tgmath.h: Make standard compliant.  Don't ask how.

<http://sources.redhat.com/ml/libc-alpha/2000-08/msg00014.html>; I had
expected Ulrich to have better taste for comprehensibility of code than to
consider such obscure code as
<http://sources.redhat.com/ml/libc-alpha/2000-07/msg00288.html> a serious
candidate for inclusion in glibc rather than proof that something *could*
be done with GCC as is but you wouldn't want to use the necessary code.)

-- 
Joseph S. Myers
jsm@polyomino.org.uk

  reply	other threads:[~2004-06-10 19:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-05 20:57 Jerry Quinn
2004-06-06  3:29 ` Zack Weinberg
2004-06-06  3:51   ` Jerry Quinn
2004-06-09 22:35   ` Jeffrey A Law
2004-06-10 19:52     ` Zack Weinberg
2004-06-10 19:54       ` Phil Edwards
2004-06-10 20:04         ` Zack Weinberg
2004-06-10 21:25           ` Joseph S. Myers [this message]
2004-06-10 21:42             ` Zack Weinberg
2004-06-10 20:31         ` Jeffrey A Law
2004-06-10 20:52           ` Jakub Jelinek
2004-06-10 21:09         ` Andreas Jaeger
2004-06-10 21:26           ` Zack Weinberg

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=Pine.LNX.4.58.0406101940350.8424@digraph.polyomino.org.uk \
    --to=jsm@polyomino.org.uk \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jlquinn@optonline.net \
    --cc=law@redhat.com \
    --cc=phil@codesourcery.com \
    --cc=zack@codesourcery.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).