top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Running individual tests from c-c++-common directory?

0 votes
195 views

I wanted to run individual test from gcc/testsuite/c-c++-common/ directory, but unfortunately there is no *.exp file as it is in other directories. This prevents me from running it as for i386 e.g.: make check RUNTESTFLAGS="i386.exp=avx512*".

I also couldn't find anything related to those tests in documentation. Is there any special approach for that?

posted Sep 13, 2017 by Amit Mishra

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

The tests in the examples appear like nunit-type tests but because they don't return "void" nunit-console will ignore them. Is there some other mechanism that should be used? I am adding big-endian support to the code and am passing nearly all tests but the tests in the examples appear that they'll really drive a lot of work that will allow me to check if I've done everything required.

+1 vote

I am building a shared library which will be distributed to clients in binary form only. I am attempting to make the same binary run on as many Linux variants as possible, and so when I build it I specify the
options -shared and -fPIC. As part of the effort of making the library as independent as possible, I also link both the C and C++ standard libraries statically into the final shared library. I want to do this because I use
C++11 features internally, and I don't want to force the users of my library to have a C++11 compiler handy.

When doing this, do I need to build libstdc++ and libgcc from source with -fPIC as well? Or is it okay to link with the static versions of these libraries that are provided in my Ubuntu 13.04 gcc package?

To clarify, no exceptions are thrown over library boundaries; all exceptions used internally in the library are caught and processed behind the scenes. None of them ever reach the client code, as the client communicates with the library using a plain C interface.

My exact build flags are as follows:

g++ -fvisibility=hidden -fvisibility-inlines-hidden -static-libstdc++ -static-libgcc -s -DNDEBUG -std=c++11 -Wall -shared -fPIC -o libtest.so test.cpp -lpthread -O2

0 votes

I have created one hard disk image file ,which has installed linux kernel on it , and its filesystem also works fine . Now I want to install gcc on it by host's gcc from source .

At earlier time ,I consider to set configure option --prefix to image mounted location on host , like this: --prefix=/mnt/image , but this is found not work at later,due to gcc depend on several files on host .

So I want to get some suggestions from here.

0 votes

I am writing a GCC plugin in which I need to extract the variable name and the assigned value from the statements.

I am able to get the three operands from GIMPLE statements like this

if(is_gimple_assign(stmt)) {
tree lhsop = gimple_assign_lhs(stmt);
tree rhsop1 = gimple_assign_rhs1(stmt);
tree rhsop2 = gimple_assign_rhs2(stmt);
}

I want to get the exact variable name from lhsop and value from rhsop1 (for statements such as
"var = value;", rhsop2 is 0 for such statements.). Some pointers to example code or documentation would be great. I can't find anything similar in

http://gcc.gnu.org/onlinedocs/gccint/Manipulating-GIMPLE-statements.html

...