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
The NetBSD Foundation, Inc.
System: NetBSD 5.99.29 NetBSD 5.99.29 (DEAD) #31: 
Wed May 12 19:07:50 CEST 2010 vax
Architecture: vax
Machine: vax

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)


fix gcc's idea of __builtin_huge_val() for vax

Home | Main Index | Thread Index | Old Index