Lines Matching +full:- +full:- +full:native +full:- +full:file
2 # check-each-file
3 # Used to narrow down a miscompilation to one .o file from a list. Please read
4 # the usage procedure, below, for command-line syntax (or run it with --help).
5 # This script depends on the llvm-native-gcc script.
7 if [ x$1 = x--make-linker-script ]
10 linker=./link-$program
11 echo "Building $program with llvm-native-gcc"
12 rm -f $program
13 gmake -e $program CC=llvm-native-gcc CXX=llvm-native-gxx
14 echo "Erasing $program and re-linking it"
15 rm -f $program
16 echo "rm -f $program" > $linker
17 gmake -n $program >> $linker
25 gcc -c __main.c
27 echo "rm -f $program" > $linker
28 gmake -n $program 2>&1 | sed '/gcc/s/$/__main.o/' >> $linker
30 if [ ! -x $program ]
36 if [ ! -x $program ]
53 echo "$myname --make-linker-script PROGRAM"
54 echo "$myname OBJECTS-FILE PROGRAM LINKER CHECKER"
56 echo "OBJECTS-FILE is a text file containing the names of all the .o files"
60 echo "LINKER is the script that builds PROGRAM; try --make-linker-script"
69 if [ x$1 = x--help ]
74 if [ -z "$checkfiles" ]
76 echo "ERROR: Must specify name of file w/ list of objects as 1st arg."
80 if [ ! -f "$checkfiles" ]
85 if [ -z "$program" ]
90 if [ -z "$linker" ]
95 if [ ! -x "$linker" ]
98 echo "You may wish to try: $0 --make-linker-script $program"
101 if [ -z "$checker" ]
106 if [ ! -x "$checker" ]
113 echo "Recompiling everything with llvm-native-gcc"
116 rm -f $f
117 gmake $f CC=llvm-native-gcc CXX=llvm-native-gxx
119 rm -f $program
123 echo "Sorry, I can't help you, $program is OK when compiled with llvm-native-gcc"
128 echo Trying to compile $f with native gcc and rebuild $program
144 echo "Program is OK when these files are recompiled with native gcc: "
147 echo "Program is not OK when these files are recompiled with native gcc: "