This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gas testsuites and cpp usage


Hello,

I have a little problem that I would like some pointers on how to solve, please. The problem is simple: In the gas testsuite I have written a testsuite which tests all instructions for the tic4x target. Each instruction belongs to a specific class (that allows a specific set of arguments). To simplify the instruction testsuite, I have written a (c) header file which defines generic tests for each of these classes. The main opcode assemble test file, is using this header to effectively create a exhaustive test-file from these class-definitions. (The file uses the postfix .S). For the gas testsuite to run properly, this .S file has to be converted to a .s file using cpp prior to the ordinary gas assemble test.

As I see it there are two ways to commence this:

1) Run 'cpp' (manually) from the test script when testing. I cant assume that the command 'cpp' is available, right? How can I discover how to call cpp? (By e.g. using the configuration process results or similar.) Using "gcc -E"? Other suggestions, please?

2) Manually run cpp and store the derived file (.s) into the CVS, similar to the regenerate mechanisms of Makefile.in from Makefile.am.

It would be very helpful if you have other suggestions. I know how to fix the problem (for me), but I'm very uncertain if this solution is the binutils-way...


Regards,
Svein


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]