Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Ulrich Weigand <uweigand@de.ibm.com>,
	        gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [RFC] Detecting and printing 128-bit long double values for PPC
Date: Mon, 30 Apr 2007 18:03:00 -0000	[thread overview]
Message-ID: <1177942333.15264.34.camel@localhost> (raw)
In-Reply-To: <20070430131616.GB25539@caradoc.them.org>

Doing a test run with patched version of GDB, i tried "sizeof"-ing the
long double variable on both binaries (one built with -mlong-double-128
and the other with -mlong-double-64).

GDB treats them differently, showing an 8-bytes length for the 64-bit
long double binary and 16-bytes for the 128-bit long double binary.

* 64-bit long doubles

Breakpoint 1, main () at long_double.c:39
39        long_pld(i, ld2, vp1);  /* break here, print ld2, then
continue */
(gdb) p sizeof(ld2)
$1 = 8

* 128-bit long doubles

Breakpoint 1, main () at long_double.c:39
39        long_pld(i, ld2, vp1);  /* break here, print ld2, then
continue */
(gdb) p sizeof(ld2)
$1 = 16

Somehow GDB seems to handle them in different ways.

Regards,
Luis


  parent reply	other threads:[~2007-04-30 14:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-28 14:08 Luis Machado
2007-04-28 16:19 ` Daniel Jacobowitz
2007-04-28 16:27   ` Ulrich Weigand
2007-04-28 16:49     ` Daniel Jacobowitz
2007-04-28 23:47       ` Luis Machado
2007-04-30 12:28         ` Ulrich Weigand
2007-04-30 12:41           ` Daniel Jacobowitz
2007-04-30 13:15             ` Luis Machado
2007-04-30 13:19               ` Daniel Jacobowitz
2007-04-30 13:51                 ` Luis Machado
2007-04-30 13:53                   ` Luis Machado
2007-04-30 14:12                   ` Daniel Jacobowitz
2007-05-06 21:36                     ` Ulrich Weigand
2007-05-06 22:17                       ` Daniel Jacobowitz
2007-08-31 18:15                         ` Luis Machado
2007-08-31 18:27                           ` Joseph S. Myers
2007-04-30 18:03                 ` Luis Machado [this message]
2007-04-30 13:08           ` Luis Machado

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=1177942333.15264.34.camel@localhost \
    --to=luisgpm@linux.vnet.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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