Skip to content

Conversation

@Teemperor
Copy link
Contributor

The casting of the function to improve lookup didn't took
variadic functions into aspect, causing ABI issues when generating
the code for calling this function. This correctly appends the
annotation for a variadic function to the function type.

This fixes the roottest-python-cling-cling test when compiling
with icc.

@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, ubuntu14/native with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@amadio
Copy link
Member

amadio commented Jul 26, 2017

@Teemperor Nice work. I assigned to Pere as he mentioned that he was looking at this before.

@vgvassilev vgvassilev self-assigned this Jul 26, 2017
TEST(TClingCallFunc, FunctionWrapperVariadic)
{
gInterpreter->Declare(R"cpp(
void FunctionWrapperFuncVariadic(int j, ...) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we actually add some work to the function body, run it and check the result? This would give us one extra degree of certainty.

callbuf << arg_type;
}
if (FD->isVariadic())
callbuf << ", ...";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clang-format says you didn't use 3 spaces on the line above. 😃

@phsft-bot
Copy link

Build failed on centos7/gcc49.
See console output.

Errors:

  • [xUnit] [ERROR] - Conversion error remote file operation failed: /var/lib/jenkins/userContent/xunit/CTest at hudson.remoting.Channel@dcf3e99:channel: java.io.IOException: Remote call on channel failed

Warnings:

  • /mnt/build/jenkins/workspace/root-pullrequests-build/root/math/mathcore/test/fit/testLogLExecPolicy.cxx:231:9: warning: unused variable ‘seq’ [-Wunused-variable]

@Teemperor Teemperor force-pushed the FixRootClingOnVariadicArguments branch from a77fb8b to 5860dbc Compare July 27, 2017 05:23
@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, ubuntu14/native with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

The casting of the function to improve lookup didn't took
variadic functions into aspect, causing ABI issues when generating
the code for calling this function. This correctly appends the
annotation for a variadic function to the function type.

This fixes the roottest-python-cling-cling test when compiling
with icc.
@vgvassilev vgvassilev merged commit 23579c5 into root-project:master Jul 27, 2017
@Teemperor Teemperor deleted the FixRootClingOnVariadicArguments branch December 19, 2017 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants