]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.hp/compiler.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / compiler.c
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/* This needs to be kept in sync with whatis.c and gdb.exp(get_compiler_info).
17 If this ends up being hairy, we could use a common header file. */
18
19#if defined (__STDC__) || defined (_AIX)
20set signed_keyword_not_used 0
21#else
22set signed_keyword_not_used 1
23#endif
24
25#if defined (__GNUC__)
26set gcc_compiled __GNUC__
27#else
28set gcc_compiled 0
29#endif
30
31return 0