From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1770 invoked by alias); 16 Apr 2003 20:48:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1759 invoked from network); 16 Apr 2003 20:48:18 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 16 Apr 2003 20:48:18 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3GKmID15044 for ; Wed, 16 Apr 2003 16:48:18 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3GKmIq23300 for ; Wed, 16 Apr 2003 16:48:18 -0400 Received: from localhost.localdomain (vpn50-38.rdu.redhat.com [172.16.50.38]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3GKmHg31376 for ; Wed, 16 Apr 2003 16:48:17 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h3GKmCD27046 for gdb-patches@sources.redhat.com; Wed, 16 Apr 2003 13:48:12 -0700 Date: Wed, 16 Apr 2003 20:48:00 -0000 From: Kevin Buettner Message-Id: <1030416204812.ZM27045@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] rs6000-tdep.c: Change sizeof(long double) for SysV ABI MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00331.txt.bz2 I've just committed the patch below. (I noticed that we had it wrong while reading through the ABI docs.) * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set the size of ``long double'' to 16, instead of 8. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.127 diff -u -p -r1.127 rs6000-tdep.c --- rs6000-tdep.c 11 Apr 2003 18:15:39 -0000 1.127 +++ rs6000-tdep.c 16 Apr 2003 20:38:22 -0000 @@ -2895,7 +2895,10 @@ rs6000_gdbarch_init (struct gdbarch_info set_gdbarch_long_long_bit (gdbarch, 8 * TARGET_CHAR_BIT); set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); - set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); + if (sysv_abi) + set_gdbarch_long_double_bit (gdbarch, 16 * TARGET_CHAR_BIT); + else + set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); set_gdbarch_char_signed (gdbarch, 0); set_gdbarch_fix_call_dummy (gdbarch, rs6000_fix_call_dummy);