NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/52660: gcc on sparc crashes when optimizing
>Number: 52660
>Category: toolchain
>Synopsis: gcc on sparc crashes when optimizing
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 26 18:35:00 +0000 2017
>Originator: Michael
>Release: at least since 7.99.*
>Organization:
TNF
>Environment:
NetBSD poteen 8.99.4 (POTEEN.MP) #0: Wed Oct 25 13:00:03 EDT 2017
ml@paddy:/home/build/obj_sparc/sys/arch/sparc/compile/POTEEN.MP sparc
>Description:
gcc does this with any kind of optimization enabled:
gcc -O hello.c -o hello
main.c: In function 'main':
main.c:7:1: internal compiler error: Floating point exception
}
^
no stack trace because unwind library not available
Please submit a full bug report,
with processed source if appropriate
I have not seen this on anything other than sparc, not even sparc64, this is a userland built from yesterday's sources. The compiler works with optimization disabled.
gcc version 5.4.0 (nb1 20160606)
The source used:
#include <stdio.h>
int main()
{
printf("hello world!\n");
return 0;
}
>How-To-Repeat:
try to compile anything with -On with n > 0
>Fix:
Home |
Main Index |
Thread Index |
Old Index