Skip to content

K&R C compilation failure #1455

@llvmbot

Description

@llvmbot
Bugzilla Link 1083
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version 1.9
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

$:~/tmp$ llvm-gcc -emit-llvm -c svc.c -o svc.o
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

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] insteadllvm-toolsAll llvm tools that do not have corresponding tag

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions