Always pass -D_GNU_SOURCE to cc1plus
[oota-llvm.git] / tools / llvmc / cpp.in
1 # Stacker Configuration File For llvmc
2
3 ##########################################################
4 # Language definitions
5 ##########################################################
6   lang.name=C++
7   lang.opt1=-O1
8   lang.opt2=-O2
9   lang.opt3=-O3
10   lang.opt4=-O3
11   lang.opt5=-O3
12   lang.libs=@LLVMGCCDIR@/lib @LLVMGCCDIR@/bytecode-libs \
13     @LLVMGCCDIR@/lib/gcc/@LLVMGCCARCH@
14
15 ##########################################################
16 # Pre-processor definitions
17 ##########################################################
18
19   # Stacker doesn't have a preprocessor but the following
20   # allows the -E option to be supported
21   preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
22   preprocessor.required=false
23
24 ##########################################################
25 # Translator definitions
26 ##########################################################
27
28   # To compile stacker source, we just run the stacker
29   # compiler with a default stack size of 2048 entries.
30   translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \
31     %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
32     -D_GNU_SOURCE
33
34   # stkrc doesn't preprocess but we set this to true so
35   # that we don't run the cp command by default.
36   translator.preprocesses=true
37
38   # The translator is required to run.
39   translator.required=true
40
41   # stkrc doesn't handle the -On options
42   translator.output=assembly
43
44 ##########################################################
45 # Optimizer definitions
46 ##########################################################
47   
48   # For optimization, we use the LLVM "opt" program
49   optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
50
51   optimizer.required = true
52
53   # opt doesn't translate
54   optimizer.translates = false
55
56   # opt doesn't preprocess
57   optimizer.preprocesses=false
58
59   # opt produces bytecode
60   optimizer.output = bytecode
61
62 ##########################################################
63 # Assembler definitions
64 ##########################################################
65   assembler.command=llc %in% -o %out% %target% %time% %stats%