From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: deuling@de.ibm.com (Markus Deuling)
Cc: gdb-patches@sourceware.org (GDB Patches)
Subject: Re: [rfc] [2/2] Remove macros TARGET_{FLOAT,DOUBLE,LONG_DOUBLE}_{BIT|FORMAT}
Date: Tue, 12 Jun 2007 14:17:00 -0000 [thread overview]
Message-ID: <200706121417.l5CEHTaU025942@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <46692E72.7090004@de.ibm.com> from "Markus Deuling" at Jun 08, 2007 12:24:50 PM
Markus Deuling wrote:
> this patch removes following macros from gdbarch.sh:
>
> * TARGET_FLOAT_BIT
> * TARGET_FLOAT_FORMAT
> * TARGET_DOUBLE_BIT
> * TARGET_DOUBLE_FORMAT
> * TARGET_LONG_DOUBLE_BIT
> * TARGET_LONG_DOUBLE_FORMAT
/* NOTE: The new architecture variable is named ``current_gdbarch''
- so that macros such as TARGET_DOUBLE_BIT, when expanded, refer to
+ so that macros such as gdbarch_double_bit, when expanded, refer to
the current local architecture and not the previous global
architecture. This ensures that the new architectures initial
values are not influenced by the previous architecture. Once
Well, replacing the macro by a gdbarch function invalidates the whole point
the comment is making ;-) You should either use another macro (that still
is a macro) as example, or -once there are no macros left- remove that
comment.
+ builtin_type_float = build_flt (gdbarch_float_bit (current_gdbarch), "float",
+ gdbarch_float_format (current_gdbarch));
+ builtin_type_double = build_flt (gdbarch_double_bit (current_gdbarch),
+ "double",
+ gdbarch_double_format (current_gdbarch));
+ builtin_type_long_double = build_flt (gdbarch_long_double_bit
+ (current_gdbarch),
+ "long double",
+ gdbarch_long_double_format
+ (current_gdbarch));
It might be nicer to move the built_flt to its own line
builtin_type_long_double
= build_fld (gdbarch_long_double_bit (current_gdbarch),
...
Otherwise this is OK, thanks!
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2007-06-12 14:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 10:26 Markus Deuling
2007-06-12 14:17 ` Ulrich Weigand [this message]
2007-06-12 14:47 ` Markus Deuling
2007-06-12 15:39 ` Ulrich Weigand
2007-06-12 16:15 ` Markus Deuling
2007-06-12 16:37 ` Ulrich Weigand
2007-06-12 16:39 ` Markus Deuling
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=200706121417.l5CEHTaU025942@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.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