[email protected]
[Top] [All Lists]

toolchain/43303: __builtin_huge_val() generates illegal code on vax

Subject: toolchain/43303: __builtin_huge_val() generates illegal code on vax
From:
Date: Thu, 13 May 2010 19:00:01 +0000 UTC
>Number:         43303
>Category:       toolchain
>Synopsis:       __builtin_huge_val() generates illegal code on vax
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 13 19:00:00 +0000 2010
>Originator:     Martin Husemann
>Release:        NetBSD 5.99.29
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD dead-to-the-world.duskware.de 5.99.29 NetBSD 5.99.29 (DEAD) #31: 
Wed May 12 19:07:50 CEST 2010 
[email protected]:/usr/src/sys/arch/vax/compile/DEAD vax
Architecture: vax
Machine: vax
>Description:

This simple test program:

#include <stdio.h>
#include <math.h>

int main(int argc, char **argv)
{
        double hv = HUGE_VAL;

        printf("double: %f\n", hv);
        return 0;
}

causes a SIGILL when run, the asm code that fails is:

        movd $0d+Inf,-12(%fp)


>How-To-Repeat:
s/a

>Fix:
fix gcc's idea of __builtin_huge_val() for vax

<Prev in Thread] Current Thread [Next in Thread>