Subject: toolchain/21899: gcc and gdb disagree on sizeof(long double) on alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/16/2003 09:18:24
>Number:         21899
>Category:       toolchain
>Synopsis:       gcc and gdb disagree on sizeof(long double) on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 16 07:19:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.6R
>Organization:
	
>Environment:
System: NetBSD alien-from-alpha-centauri 1.6R NetBSD 1.6R (ALIEN-FROM-ALPHA-CENTAURI) #2: Sat Apr 19 14:32:52 CEST 2003 martin@alien-from-alpha-centauri:/mnt/src/sys/arch/alpha/compile/ALIEN-FROM-ALPHA-CENTAURI alpha
Architecture: alpha
Machine: alpha
>Description:

gdb and gcc have a very different idea how big a "long double" is on alpha.

>How-To-Repeat:

See script below (/mnt being the NetBSD-current source tree)

[/mnt/regress/lib/libc/convfp] martin@alien-from-alpha-centauri > ./convfp 
no suitable {long} double type found, skipping "unsigned long" test
sizeof(long) = 8, sizeof(double) = 8, sizeof(long double) = 8
PASSED
[/mnt/regress/lib/libc/convfp] martin@alien-from-alpha-centauri > gdb
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha-unknown-netbsd".
(gdb) print sizeof(long)
$1 = 8
(gdb) print sizeof(double)
$2 = 8
(gdb) print sizeof(long double)
$3 = 16
(gdb)

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: