]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/lib/compiler.cc
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / gdb / testsuite / lib / compiler.cc
1 /* Often the behavior of any particular test depends upon what compiler was
2 used to compile the test. As each test is compiled, this file is
3 preprocessed by the same compiler used to compile that specific test
4 (different tests might be compiled by different compilers, particularly
5 if compiled at different times), and used to generate a *.ci (compiler
6 info) file for that test.
7
8 I.E., when callfuncs is compiled, a callfuncs.ci file will be generated,
9 which can then be sourced by callfuncs.exp to give callfuncs.exp access
10 to information about the compilation environment.
11
12 TODO: It might be a good idea to add expect code that tests each
13 definition made with 'set" to see if one already exists, and if so
14 warn about conflicts if it is being set to something else. */
15
16 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
17 set supports_template_debugging 1
18 #else
19 set supports_template_debugging 0
20 #endif
21
22 #if defined(__cplusplus)
23 set supports_template_debugging 1
24 #else
25 set supports_template_debugging 0
26 #endif
27
28 #if defined (__GNUC__)
29 set gcc_compiled __GNUC__
30 #else
31 set gcc_compiled 0
32 #endif
33
34 return 0