-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
K&R C compilation failure #1455
Comments
assigned to @lattner |
aKor has just pointed me to To clear any possible confusion, here's my current code:
|
Supplied source code includes some platform-dependent code (because it isn't However, it fails here too (on Linux/X86) but with another assertion: cc1: /home/asl/proj/llvm/src/lib/VMCore/Instructions.cpp:1568: static Will supply preprocessed & reduced source soon |
delta-reduced testcase |
just to confirm that Anton's reduced testcase produces the same msg. Domagoj |
Verified, the reduced testcase crashes with TOT, investigating. |
Further reduced testcase: int svc_register (void (*dispatch) (int)); int svc_register (dispatch) |
Fixed. Testcase here: test/Regression/CFrontend/2007-01-06-KNR-Proto.c Patch sent to llvm-commits, but the mailing lists are apparently blocked, so no URL provided. -Chris |
Extended Description
cc1: ../../dst-directory/gcc/llvm-convert.cpp:216:
void::FunctionPrologArgumentConversion::HandleScalarArgument(const
llvm::Type*): Assertion `ArgVal->getType()->isIntegral() && LLVMTy->isIntegral()
&& "Lowerings don't match?"' failed.
svc.c: In function ‘svc_register’:
svc.c:11: internal compiler error: Aborted
Please submit a full bug report,
Source: [svc.c from dietlib v0.30]
#include <rpc/rpc.h>
static SVCXPRT **xports;
bool_t svc_register(xprt, prog, vers, dispatch, protocol)
SVCXPRT *xprt;
unsigned long prog;
unsigned long vers;
void (*dispatch) ();
rpcprot_t protocol;
{
return (TRUE);
}
Can be reproduced with:
llvm-gcc [-emit-llvm] -c svc.c -o svc.o
Domagoj
The text was updated successfully, but these errors were encountered: