[PATCH] libtests/complex: Avoid generated files

Joel Sherrill joel.sherrill at OARcorp.com
Mon May 21 15:20:48 UTC 2012

On 05/21/2012 10:07 AM, Sebastian Huber wrote:
> On 05/21/2012 04:53 PM, Joel Sherrill wrote:
>> On 05/21/2012 09:49 AM, Sebastian Huber wrote:
>>> On 05/21/2012 04:48 PM, Joel Sherrill wrote:
>>>> Just to make sure I am interpreting this right, you just
>>>> modified the code to use macros and do the same
>>>> thing at compile time.
>>> Yes, this is my intention.
>> That will likely work on all the C cases.
>> Ada does not have a preprocessor.
>> I am betting you won't build that part of the tree so
>> that won't impact your particular situation. :)
> Which generated Ada file do you have in mind?  I find nothing in
> c/src/ada-tests/sptests/sp19
It isn't obvious but there is only a sptest.adp and not an
sptest.adb in this file. The adp file is preprocessed using
m4 based on this rule in ada-tests/ada.am

     pwd=`pwd` && cd $(srcdir) && $(M4) < $*.adp > $${pwd}/$*.adb

sptest.adb is the "meat" file in other Ada binding tests.

Looking at the .adp.adb rule, it looks like the sptest.adb is output
in the "pwd" which would be the build tree.

If you believe that also, then this case isn't an issue for
having generated files in the source tree.

Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985

More information about the devel mailing list