NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



>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 
martin%night-porter.duskware.de@localhost:/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



Home | Main Index | Thread Index | Old Index