Changes in directory llvm/projects/Stacker/lib/runtime:
Makefile updated: 1.5 -> 1.6 stacker_rt.c updated: 1.10 -> 1.11 --- Log message: Make Stacker Runtime -pedantic clean. --- Diffs of the changes: (+10 -12) Makefile | 3 --- stacker_rt.c | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 12 deletions(-) Index: llvm/projects/Stacker/lib/runtime/Makefile diff -u llvm/projects/Stacker/lib/runtime/Makefile:1.5 llvm/projects/Stacker/lib/runtime/Makefile:1.6 --- llvm/projects/Stacker/lib/runtime/Makefile:1.5 Wed May 31 20:55:21 2006 +++ llvm/projects/Stacker/lib/runtime/Makefile Thu Nov 2 18:08:08 2006 @@ -12,6 +12,3 @@ MODULE_NAME = stkr_runtime include $(LEVEL)/Makefile.common - -CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) -CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) Index: llvm/projects/Stacker/lib/runtime/stacker_rt.c diff -u llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.10 llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.11 --- llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.10 Sat Apr 23 16:26:10 2005 +++ llvm/projects/Stacker/lib/runtime/stacker_rt.c Thu Nov 2 18:08:08 2006 @@ -1,4 +1,4 @@ -//===-- stacker_rt.c - Runtime Support For Stacker Compiler -----*- C++ -*-===// +/*===-- stacker_rt.c - Runtime Support For Stacker Compiler -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -15,7 +15,7 @@ // The real reason this is here is to test LLVM's ability to link with // separately compiled software. // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===*/ #include <ctype.h> #include <stdio.h> @@ -40,14 +40,15 @@ int main ( int argc, char** argv ) { - // Avoid modifying argc + /* Avoid modifying argc */ int a = argc; - // Make sure we're starting with the right index + /* Make sure we're starting with the right index */ _index_ = 0; - // Copy the arguments to the stack in reverse order - // so that they get popped in the order presented + /* Copy the arguments to the stack in reverse order + * so that they get popped in the order presented + */ while ( a > 0 ) { if ( isdigit( (int) argv[--a][0] ) ) @@ -60,13 +61,13 @@ } } - // Put the argument count on the stack + /* Put the argument count on the stack */ _stack_[_index_] = argc; - // Invoke the user's main program + /* Invoke the user's main program */ _MAIN_(); - // Return last item on the stack + /* Return last item on the stack */ if ( _index_ >= 0 ) return _stack_[_index_]; return -1; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits