comparison config.bat @ 58584:dda469376708

Protect & with "" since & is special for cmd.exe; filter through Sed to remove the quotes. ----------------------------------------------------------------------
author Eli Zaretskii <eliz@gnu.org>
date Sat, 27 Nov 2004 18:22:45 +0000
parents 9451633a27b0
children c53a9463c31a f2ebccfa87d4
comparison
equal deleted inserted replaced
58583:9a25f0f7fd26 58584:dda469376708
159 sed -f ../msdos/sed2v2.inp <config.tmp >config.h2 159 sed -f ../msdos/sed2v2.inp <config.tmp >config.h2
160 :src42 160 :src42
161 Rem See if DECL_ALIGN can be supported with this GCC 161 Rem See if DECL_ALIGN can be supported with this GCC
162 rm -f junk.c junk.o junk junk.exe 162 rm -f junk.c junk.o junk junk.exe
163 echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c 163 echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c
164 rem Two percent signs because it is a special character for COMMAND.COM 164 rem Two percent signs because it is a special character for COMMAND.COM/CMD
165 echo int main(void) { return (unsigned long)&foo %% 8; } >>junk.c 165 rem Filter thru Sed because "&" is special for CMD.EXE
166 echo int main(void) { return (unsigned long)"&"foo %% 8; } | sed "s/.&./\&/" >>junk.c
166 gcc -o junk junk.c 167 gcc -o junk junk.c
167 if not exist junk.exe coff2exe junk 168 if not exist junk.exe coff2exe junk
168 junk 169 junk
169 If Not ErrorLevel 1 Goto alignOk 170 If Not ErrorLevel 1 Goto alignOk
170 Echo WARNING: Your GCC does not support 8-byte aligned variables. 171 Echo WARNING: Your GCC does not support 8-byte aligned variables.