-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC gcc.dg/pr118224.c fails for AVR #1007
Comments
As far as I understand, the purpose of that GCC test case is to make sure that the compiler doesn't call So the question is why the compiler is mapping |
My understanding is the opposite - the call is left on purpose. See this comment in GCC bugzilla. Also the commit message describes the intention to avoid dead-code elimination:
From the following quote in PR118224 I understand that
|
Ok, in that case maybe the best is to XFAIL the test case or similar, rather than turning calloc's MULT into a widening one. Also @dl8dtl may have an opinion on it. |
The
gcc.dg/pr118224.c
GCC test case fails for AVR backend with an abort when executing with a simulator.Since the test case calls
calloc
, I'm filing this as a potential issue inavr-libc
.The failing snippet is:
The multiplication of the two
calloc
arguments overflows, andcalloc
returns non-zero value.The text was updated successfully, but these errors were encountered: