[llvm-commits] CVS: llvm/tools/llvmc/c.in cpp.in st.in

Misha Brukman brukman at cs.uiuc.edu
Mon May 2 23:13:29 PDT 2005



Changes in directory llvm/tools/llvmc:

c.in updated: 1.3 -> 1.4
cpp.in updated: 1.3 -> 1.4
st.in updated: 1.2 -> 1.3
---
Log message:

Clean up and correct llvmc configurations for C and C++


---
Diffs of the changes:  (+24 -32)

 c.in   |   26 +++++++++++---------------
 cpp.in |   28 ++++++++++++----------------
 st.in  |    2 +-
 3 files changed, 24 insertions(+), 32 deletions(-)


Index: llvm/tools/llvmc/c.in
diff -u llvm/tools/llvmc/c.in:1.3 llvm/tools/llvmc/c.in:1.4
--- llvm/tools/llvmc/c.in:1.3	Tue Dec 14 19:54:37 2004
+++ llvm/tools/llvmc/c.in	Tue May  3 01:13:18 2005
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# C configuration file for llvmc
 
 ##########################################################
 # Language definitions
@@ -16,24 +16,21 @@
 # Pre-processor definitions
 ##########################################################
 
-  # Stacker doesn't have a preprocessor but the following
-  # allows the -E option to be supported
-  preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
-  preprocessor.required=false
+  # We use gcc as our pre-processor
+  preprocessor.command=gcc -E %in% -o %out% %incls% %defs%
+  preprocessor.required=true
 
 ##########################################################
 # Translator definitions
 ##########################################################
 
-  # To compile stacker source, we just run the stacker
-  # compiler with a default stack size of 2048 entries.
+  # To compile C source, just use llvm-gcc's cc1
   translator.command=@LLVMCC1@ -quiet %in% -o %out% \
     %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
     -D_GNU_SOURCE
 
-  # stkrc doesn't preprocess but we set this to true so
-  # that we don't run the cp command by default.
-  translator.preprocesses=true
+  # llvm-gcc does not pre-process
+  translator.preprocesses=false
 
   # The translator is required to run.
   translator.required=true
@@ -45,18 +42,17 @@
 # Optimizer definitions
 ##########################################################
   
-  # For optimization, we use the LLVM "opt" program
+  # Use gccas to clean up the generated code
   optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
-
   optimizer.required = true
 
-  # opt doesn't translate
+  # gccas doesn't translate
   optimizer.translates = false
 
-  # opt doesn't preprocess
+  # gccas doesn't preprocess
   optimizer.preprocesses=false
 
-  # opt produces bytecode
+  # gccas produces bytecode
   optimizer.output = bytecode
 
 ##########################################################


Index: llvm/tools/llvmc/cpp.in
diff -u llvm/tools/llvmc/cpp.in:1.3 llvm/tools/llvmc/cpp.in:1.4
--- llvm/tools/llvmc/cpp.in:1.3	Tue Dec 14 19:54:37 2004
+++ llvm/tools/llvmc/cpp.in	Tue May  3 01:13:18 2005
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# C++ configuration file for llvmc
 
 ##########################################################
 # Language definitions
@@ -16,50 +16,46 @@
 # Pre-processor definitions
 ##########################################################
 
-  # Stacker doesn't have a preprocessor but the following
-  # allows the -E option to be supported
+  # We use g++ as our pre-processor
   preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
-  preprocessor.required=false
+  preprocessor.required=true
 
 ##########################################################
 # Translator definitions
 ##########################################################
 
-  # To compile stacker source, we just run the stacker
-  # compiler with a default stack size of 2048 entries.
+  # To compile C++ source, just use llvm-g++'s cc1
   translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \
     %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
     -D_GNU_SOURCE
 
-  # stkrc doesn't preprocess but we set this to true so
-  # that we don't run the cp command by default.
-  translator.preprocesses=true
+  # llvm-g++ does not pre-process
+  translator.preprocesses=false
 
   # The translator is required to run.
   translator.required=true
 
-  # stkrc doesn't handle the -On options
+  # Output of translator is assembly
   translator.output=assembly
 
 ##########################################################
 # Optimizer definitions
 ##########################################################
   
-  # For optimization, we use the LLVM "opt" program
+  # Use gccas to clean up the generated code
   optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
-
   optimizer.required = true
 
-  # opt doesn't translate
+  # gccas doesn't translate
   optimizer.translates = false
 
-  # opt doesn't preprocess
+  # gccas doesn't preprocess
   optimizer.preprocesses=false
 
-  # opt produces bytecode
+  # gccas produces bytecode
   optimizer.output = bytecode
 
 ##########################################################
 # Assembler definitions
 ##########################################################
-  assembler.command=llc %in% -o %out% %target% %time% %stats%
+  assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats%


Index: llvm/tools/llvmc/st.in
diff -u llvm/tools/llvmc/st.in:1.2 llvm/tools/llvmc/st.in:1.3
--- llvm/tools/llvmc/st.in:1.2	Thu Nov 25 03:36:28 2004
+++ llvm/tools/llvmc/st.in	Tue May  3 01:13:18 2005
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# Stacker configuration file for llvmc
 
 ##########################################################
 # Language definitions






More information about the llvm-commits mailing list