]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.hp/compiler.cc
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / compiler.cc
CommitLineData
8e260d52
DT
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_MINOR__ >= 6
17set supports_template_debugging 1
18#else
19set supports_template_debugging 0
20#endif
21
22#if defined(__cplusplus)
23set supports_template_debugging 1
24#else
25set supports_template_debugging 0
26#endif
27
28#if defined (__GNUC__)
29set gcc_compiled __GNUC__
30#else
31set gcc_compiled 0
32#endif
33
34return 0