https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43374
Gerhard Steinmetz changed:
What|Removed |Added
CC|
--- Comment #3 from roman at binarylife dot net 2010-03-18 14:52 ---
This looks related.
$ cat test.c
_Decimal64 func() {
return 9e384dd + 9e384dd;
}
$ gcc -c test.c
test.c: In function 'func':
test.c:2:3: internal compiler error: in decimal_to_decnumber, at dfp.c:115
...
--
--- Comment #4 from janis at gcc dot gnu dot org 2010-03-18 17:27 ---
The tests also fail on powerpc64-linux, although the first one gets the same
error with and without optimization.
elm3c105% cat 43374-1.c
int func(_Decimal32 v) {
return __builtin_isinf(v);
}
elm3c105%
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-03-15 11:06 ---
Somewhere I added generic C frontend argument checking for builtins...
c-common.c:check_builtin_function_arguments. Which checks for REAL_TYPE
arguments to isinf. Janis, is isinf not supposed to be used for
--- Comment #2 from joseph at codesourcery dot com 2010-03-15 11:18 ---
Subject: Re: ICE with __builtin_isinf() and _Decimal argument
The most recent draft of TR 24732 I have (I don't have the final published
TR) says that all the type-generic classification and comparison macros