Skip to content

[SPEC2006]### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:2051: ### Handle_arg_diff_ty: Parameter number is wrong, expected 0 got 2 #34

Description

@zqb-all

spec2k6 456.hmmer build fail.
one of the errors can be reproduce by the following code:

static  int		(*qcmp)();		/* the comparison routine */

void specqsort(compar)
	int	(*compar)();
{
	qcmp = compar;
	(*qcmp)(1, 2);
}

cmd:

xcalcc -c a.c

error:

2023-10-28 10:57:41,190 - xcalcc - ERROR - !!! Log: (null) :Translating specqsort(0)

!!! DevWarn: specqsort :Stmt2llvm: ingore PRAGMA stmt now

### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:2051:
### Handle_arg_diff_ty: Parameter number is wrong, expected 0 got 2.
### For a.O in specqsort (xcalcc:583)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions