From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Richard Henderson <rth@redhat.com>,
Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Fix __REDIRECT_NTH [BZ #377] (take 2)
Date: Fri, 10 Sep 2004 17:44:00 -0000 [thread overview]
Message-ID: <20040910174427.GY30497@sunsite.ms.mff.cuni.cz> (raw)
In-Reply-To: <20040910172112.GX30497@sunsite.ms.mff.cuni.cz>
On Fri, Sep 10, 2004 at 07:21:12PM +0200, Jakub Jelinek wrote:
> Hi!
>
> This seems to work for me in both C++ and C.
Argh, testing error, it breaks C.
2004-09-10 Jakub Jelinek <jakub@redhat.com>
* misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
__asm__ for C++. [BZ #377]
--- libc/misc/sys/cdefs.h.jj 2004-09-10 19:10:03.000000000 +0200
+++ libc/misc/sys/cdefs.h 2004-09-10 19:42:06.806340737 +0200
@@ -159,8 +159,13 @@
#if defined __GNUC__ && __GNUC__ >= 2
# define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))
-# define __REDIRECT_NTH(name, proto, alias) \
+# ifdef __cplusplus
+# define __REDIRECT_NTH(name, proto, alias) \
+ name proto __THROW __asm__ (__ASMNAME (#alias))
+# else
+# define __REDIRECT_NTH(name, proto, alias) \
name proto __asm__ (__ASMNAME (#alias)) __THROW
+# endif
# define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
# define __ASMNAME2(prefix, cname) __STRING (prefix) cname
Jakub
next prev parent reply other threads:[~2004-09-10 17:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 17:21 [PATCH] Fix __REDIRECT_NTH [BZ #377] Jakub Jelinek
2004-09-10 17:44 ` Jakub Jelinek [this message]
2004-09-10 21:06 ` [PATCH] Fix __REDIRECT_NTH [BZ #377] (take 2) Richard Henderson
2004-09-10 21:16 ` Ulrich Drepper
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=20040910174427.GY30497@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
--cc=rth@redhat.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).