summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-03 00:08:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-03 00:08:08 +0000
commit939c6872c574bf7f5ce28d845a1624980fe702ca (patch)
tree31e993edcc4c415441a0fd2e19f55913170304e4 /projects
parent7bd78731eb1ec841be1cf9935dc58265755d2c8c (diff)
downloadllvm-939c6872c574bf7f5ce28d845a1624980fe702ca.tar.gz
llvm-939c6872c574bf7f5ce28d845a1624980fe702ca.tar.bz2
llvm-939c6872c574bf7f5ce28d845a1624980fe702ca.tar.xz
Make Stacker Runtime -pedantic clean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r--projects/Stacker/lib/runtime/Makefile3
-rw-r--r--projects/Stacker/lib/runtime/stacker_rt.c19
2 files changed, 10 insertions, 12 deletions
diff --git a/projects/Stacker/lib/runtime/Makefile b/projects/Stacker/lib/runtime/Makefile
index e10b476c6b..d3ebf18fc5 100644
--- a/projects/Stacker/lib/runtime/Makefile
+++ b/projects/Stacker/lib/runtime/Makefile
@@ -12,6 +12,3 @@ DONT_BUILD_RELINKED = 1
MODULE_NAME = stkr_runtime
include $(LEVEL)/Makefile.common
-
-CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
-CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
diff --git a/projects/Stacker/lib/runtime/stacker_rt.c b/projects/Stacker/lib/runtime/stacker_rt.c
index 0ca4cc7a95..d08c570c87 100644
--- a/projects/Stacker/lib/runtime/stacker_rt.c
+++ b/projects/Stacker/lib/runtime/stacker_rt.c
@@ -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 @@ _stacker_dump_stack_()
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 @@ main ( int argc, char** argv )
}
}
- // 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;