https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58625
Tijl Coosemans changed:
What|Removed |Added
CC||tijl at coosemans dot org
--- Comment
Assignee: unassigned at gcc dot gnu.org
Reporter: tijl at coosemans dot org
gcc49 (FreeBSD Ports Collection) 4.9.3 20150218 (prerelease)
% cat test.c
_Atomic int i;
int j = _Generic( i+1, int: 1, default: 0 );
% gcc49 -c test.c
tmp.c:2:1: internal compiler error: Segmentation
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58275
--- Comment #3 from Tijl Coosemans ---
Eh, of course.
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: tijl at coosemans dot org
It appears that whenever the expression in __builtin_constant_p( expression )
can be eliminated __builtin_constant_p returns true even if expression is not a
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708
--- Comment #3 from Tijl Coosemans 2012-03-27
11:33:41 UTC ---
(In reply to comment #2)
> Hm. We delay evaluating __builtin_constant_p to make it possible for inlining
> to lead to simplifications that result in a constant. We could of course
>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708
--- Comment #1 from Tijl Coosemans 2012-03-25
20:09:34 UTC ---
(In reply to comment #0)
> Consider the following code:
>
>
> #include
>
> int bar(void) __attribute__((__const__));
>
> int main( int argc, char **argv ) {
>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708
Bug #: 52708
Summary: suboptimal code with __builtin_constant_p
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority