[Bug c++/59083] -fisolate-erroneous-paths produces illegal instruction with enabled -fprofile-generate
octoploid at yandex dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 13 09:08:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59083
--- Comment #14 from Markus Trippelsdorf <octoploid at yandex dot com> ---
The 'kernel' case passes a NULL pointer to qsort:
% < test.i
struct relocs {
int *offset;
};
static struct relocs a;
void qsort(void *, int) __attribute__((__nonnull__));
void die(int *p1, ...) {}
void sort_relocs(struct relocs *p1) { qsort(p1->offset, 0); }
int main() {
sort_relocs(&a);
return 0;
}
More information about the Gcc-bugs
mailing list