[test-suite] r254124 - Fix implicit function declaration errors

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 19:11:37 PST 2015


Author: matze
Date: Wed Nov 25 21:11:36 2015
New Revision: 254124

URL: http://llvm.org/viewvc/llvm-project?rev=254124&view=rev
Log:
Fix implicit function declaration errors

This is a followup to r231944. Last time I missed the regression tests
and a bunch of missing string.h and stdlib.h includes as apparently
older iOS libc had them inlucded indirectly with stdio.h.

Modified:
    test-suite/trunk/MultiSource/Applications/sgefa/driver.c
    test-suite/trunk/MultiSource/Benchmarks/BitBench/drop3/drop3.c
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uudecode/uudecode.c
    test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
    test-suite/trunk/MultiSource/Benchmarks/Fhourstones/c4.c
    test-suite/trunk/MultiSource/Benchmarks/Fhourstones/play.c
    test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/errorp.c
    test-suite/trunk/MultiSource/Benchmarks/McCat/08-main/object.c
    test-suite/trunk/MultiSource/Benchmarks/McCat/18-imp/textloc.c
    test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c
    test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-adpcm/rawdaudio.c
    test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/code.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/agrep.h
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/bitap.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/compat.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/mgrep.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/sgrep.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/op_tab.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/pass1.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/files.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/getargs.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/lex.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/main.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/output.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/reader.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/compiler/global.h
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/football/common.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/endgame.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/getmove.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/simulator/sim_debug.c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/t..c
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/tb.c
    test-suite/trunk/MultiSource/Benchmarks/Ptrdist/yacr2/maze.c
    test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c
    test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/utils.c
    test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/openFiles.c
    test-suite/trunk/MultiSource/Benchmarks/mediabench/g721/g721encode/g72x.c
    test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/code.c
    test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/spatscal.c
    test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
    test-suite/trunk/SingleSource/Benchmarks/Misc/himenobmtxpa.c
    test-suite/trunk/SingleSource/Regression/C/2003-05-14-initialize-string.c
    test-suite/trunk/SingleSource/Regression/C/2003-05-21-BitfieldHandling.c
    test-suite/trunk/SingleSource/Regression/C/2005-05-06-LongLongSignedShift.c
    test-suite/trunk/SingleSource/Regression/C/matrixTranspose.c
    test-suite/trunk/SingleSource/Regression/C/sumarray2d.c
    test-suite/trunk/SingleSource/Regression/C/testtrace.c
    test-suite/trunk/SingleSource/UnitTests/2002-05-02-ArgumentTest.c
    test-suite/trunk/SingleSource/UnitTests/2002-10-13-BadLoad.c
    test-suite/trunk/SingleSource/UnitTests/2003-05-31-LongShifts.c
    test-suite/trunk/SingleSource/UnitTests/2004-02-02-NegativeZero.c
    test-suite/trunk/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c
    test-suite/trunk/SingleSource/UnitTests/2005-07-15-Bitfield-ABI.c
    test-suite/trunk/SingleSource/UnitTests/StructModifyTest.c

Modified: test-suite/trunk/MultiSource/Applications/sgefa/driver.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/sgefa/driver.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/sgefa/driver.c (original)
+++ test-suite/trunk/MultiSource/Applications/sgefa/driver.c Wed Nov 25 21:11:36 2015
@@ -19,6 +19,7 @@
 int matgen();
 int matvec();
 int get_space();
+void exit();
 
 main()
 {

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/drop3/drop3.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/drop3/drop3.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/drop3/drop3.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/drop3/drop3.c Wed Nov 25 21:11:36 2015
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uudecode/uudecode.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uudecode/uudecode.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uudecode/uudecode.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uudecode/uudecode.c Wed Nov 25 21:11:36 2015
@@ -54,6 +54,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>

Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c Wed Nov 25 21:11:36 2015
@@ -55,6 +55,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>

Modified: test-suite/trunk/MultiSource/Benchmarks/Fhourstones/c4.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Fhourstones/c4.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Fhourstones/c4.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Fhourstones/c4.c Wed Nov 25 21:11:36 2015
@@ -21,6 +21,7 @@
 // same rights and restrictions.
 */
 
+#include <stdlib.h>
 #include "types.h"
 #include "c4.h"
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Fhourstones/play.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Fhourstones/play.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Fhourstones/play.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Fhourstones/play.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "types.h"
 #define TRUE 	1
 

Modified: test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/errorp.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/errorp.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/errorp.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/errorp.c Wed Nov 25 21:11:36 2015
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include "precision.h"
 
 /*

Modified: test-suite/trunk/MultiSource/Benchmarks/McCat/08-main/object.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/McCat/08-main/object.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/McCat/08-main/object.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/McCat/08-main/object.c Wed Nov 25 21:11:36 2015
@@ -17,6 +17,7 @@
 /* Author:  Peter Riishoej Brinkler (riishigh at daimi.aau.dk)                  */
 /*****************************************************************************/
 
+#include <string.h>
 #include "header.h"
 
 ObjPtr 

Modified: test-suite/trunk/MultiSource/Benchmarks/McCat/18-imp/textloc.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/McCat/18-imp/textloc.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/McCat/18-imp/textloc.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/McCat/18-imp/textloc.c Wed Nov 25 21:11:36 2015
@@ -25,6 +25,7 @@ AUTHOR     : Fady Habra, 8715030, fady at c
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "pgm.h"
 #include "textloc.h"
 #ifdef DEBUG

Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c Wed Nov 25 21:11:36 2015
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
 #include "fourier.h"
 

Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-adpcm/rawdaudio.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-adpcm/rawdaudio.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-adpcm/rawdaudio.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-adpcm/rawdaudio.c Wed Nov 25 21:11:36 2015
@@ -2,6 +2,7 @@
 
 #include "adpcm.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 struct adpcm_state state;

Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/code.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/code.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/code.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/telecomm-gsm/code.c Wed Nov 25 21:11:36 2015
@@ -8,9 +8,11 @@
 
 #include	"config.h"
 
-
 #ifdef	HAS_STDLIB_H
-#include	<stdlib.h>
+# include	<stdlib.h>
+# ifdef  HAS_STRING_H
+# include <string.h>
+# endif
 #else
 #	include "proto.h"
 	extern char	* memcpy P((char *, char *, int));

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/agrep.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/agrep.h?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/agrep.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/agrep.h Wed Nov 25 21:11:36 2015
@@ -1,4 +1,6 @@
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 #include <math.h>
 #include <ctype.h>
 #include "re.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/bitap.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/bitap.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/bitap.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/bitap.c Wed Nov 25 21:11:36 2015
@@ -10,6 +10,7 @@
 /* else go to re1()                                                     */
 /* input parameters: old_D_pat: delimiter pattern.                      */
 /* fd, input file descriptor, M: size of pattern, D: # of errors.       */
+#include <stdlib.h>
 #include <unistd.h>
 #include "agrep.h"
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/compat.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/compat.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/compat.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/compat.c Wed Nov 25 21:11:36 2015
@@ -1,5 +1,6 @@
 /* test the conflicts between options */
 #include <stdio.h>
+#include <stdlib.h>
 
 extern int FILENAMEONLY, APPROX, PAT_FILE, COUNT, INVERSE, BESTMATCH;
 extern FILEOUT;

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/mgrep.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/mgrep.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/mgrep.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/mgrep.c Wed Nov 25 21:11:36 2015
@@ -2,6 +2,7 @@
 /* multipattern matcher */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <ctype.h>
 #define MAXPAT  256
@@ -38,8 +39,6 @@ unsigned char pat_spool[MAXPATFILE+2*max
 unsigned char *patt[max_num];
 unsigned char pat_len[max_num];
 
-extern char *strncpy(char *, const char *, size_t);
-
 void countline(unsigned char *text, int len)
 {
 int i;

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/sgrep.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/sgrep.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/sgrep.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/agrep/sgrep.c Wed Nov 25 21:11:36 2015
@@ -1,6 +1,7 @@
 /* Copyright (c) 1991 Sun Wu and Udi Manber.  All Rights Reserved. */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <ctype.h>
 #define MAXSYM  256

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/op_tab.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/op_tab.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/op_tab.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/op_tab.c Wed Nov 25 21:11:36 2015
@@ -4,6 +4,7 @@
 /* ============================== op_tab =================================== */
 /* Defines and allows for loop up in the OPERATOR TABLE                      */
 #include <stdio.h>
+#include <string.h>
 #include "pseudo.h"
 
 /* ---------------- Possible formats for instructions.                       */

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/pass1.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/pass1.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/pass1.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/assembler/pass1.c Wed Nov 25 21:11:36 2015
@@ -5,6 +5,7 @@
 /* Drives pass1 of the assembler, but lets other routines do the real work   */
 
 #include <stdio.h>
+#include <string.h>
 #include "assem.h"
 #include "scan_line.h"
 #include "sym_tab.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/files.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/files.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/files.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/files.c Wed Nov 25 21:11:36 2015
@@ -30,6 +30,7 @@ notice and this notice must be preserved
 */
 
 #include <stdio.h>
+#include <string.h>
 #include <unistd.h>
 #include "files.h"
 #include "new.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/getargs.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/getargs.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/getargs.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/getargs.c Wed Nov 25 21:11:36 2015
@@ -19,6 +19,7 @@ notice and this notice must be preserved
  what you give them.   Help stamp out software-hoarding!  */
 
 #include <stdio.h>
+#include <string.h>
 #include "files.h"
 
 int verboseflag;

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/lex.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/lex.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/lex.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/lex.c Wed Nov 25 21:11:36 2015
@@ -26,6 +26,7 @@ notice and this notice must be preserved
    symval is set to a pointer to the entry found.  */
 
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 #include "files.h"
 #include "symtab.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/main.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/main.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/main.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/main.c Wed Nov 25 21:11:36 2015
@@ -19,6 +19,7 @@ notice and this notice must be preserved
  what you give them.   Help stamp out software-hoarding!  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "machine.h"	/* JF for MAXSHORT */
 
 extern	int lineno;

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/output.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/output.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/output.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/output.c Wed Nov 25 21:11:36 2015
@@ -97,6 +97,7 @@ YYNTBASE = ntokens.
 */
 
 #include <stdio.h>
+#include <string.h>
 #include "machine.h"
 #include "new.h"
 #include "files.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/reader.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/reader.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/reader.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/bison/reader.c Wed Nov 25 21:11:36 2015
@@ -26,6 +26,7 @@ notice and this notice must be preserved
 The entry point is reader().  */
 
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 #include "files.h"
 #include "new.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/compiler/global.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/compiler/global.h?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/compiler/global.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/compiler/global.h Wed Nov 25 21:11:36 2015
@@ -2,6 +2,7 @@
 /****** global.h ********************************************************/
 
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 /*
 extern char *strcpy();

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput.c Wed Nov 25 21:11:36 2015
@@ -2,6 +2,7 @@
 
 #include "scanner.h"                /* Useful Macro Definitions */
 #include <stdio.h>
+#include <stdlib.h>
 
 /* File I/O Variables and Functions in file stringIO.c */
 extern char CH;            /* current input character */

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/football/common.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/football/common.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/football/common.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/football/common.c Wed Nov 25 21:11:36 2015
@@ -2,6 +2,7 @@
 /* Permission to use this code is granted as long as the copyright */
 /* notice remains in place. */
 #include <stdio.h>
+#include <stdlib.h>
 #include "definitions.h"
 #include "stats.h"
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/endgame.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/endgame.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/endgame.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/endgame.c Wed Nov 25 21:11:36 2015
@@ -34,6 +34,7 @@ e-mail address: manli at cs.uh.edu
 */
 
 #include <stdio.h>
+#include <string.h>
 
 #define EMPTY 0
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/getmove.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/getmove.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/getmove.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/getmove.c Wed Nov 25 21:11:36 2015
@@ -34,6 +34,8 @@ e-mail address: manli at cs.uh.edu
 */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #define EMPTY 0
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/simulator/sim_debug.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/simulator/sim_debug.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/simulator/sim_debug.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/simulator/sim_debug.c Wed Nov 25 21:11:36 2015
@@ -11,6 +11,7 @@
 /*              interupt.c instruct2.c -g -lm                                */
 
 #include <stdio.h>
+#include <string.h>
 #include "constants.h"
 #include "boolean.h"
 #include "memory.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/t..c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/t..c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/t..c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/t..c Wed Nov 25 21:11:36 2015
@@ -3,6 +3,8 @@
 /* t..c : external declarations */
 
 # include "stdio.h"
+# include "stdlib.h"
+# include "string.h"
 # include "ctype.h"
 
 #ifdef MY_MACROS

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/tb.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/tb.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/tb.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/unix-tbl/tb.c Wed Nov 25 21:11:36 2015
@@ -44,7 +44,6 @@ return(1);
 }
 
 int spcount = 0;
-extern char * calloc();
 # define MAXVEC 20
 char *spvecs[MAXVEC];
 

Modified: test-suite/trunk/MultiSource/Benchmarks/Ptrdist/yacr2/maze.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Ptrdist/yacr2/maze.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Ptrdist/yacr2/maze.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Ptrdist/yacr2/maze.c Wed Nov 25 21:11:36 2015
@@ -1,6 +1,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <strings.h>
 #include <assert.h>
 
 #include "channel.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c Wed Nov 25 21:11:36 2015
@@ -16,6 +16,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include "packet_lengths.h"
 #include "headers.h"
 #include "packet.h"

Modified: test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/utils.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/utils.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/utils.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/utils.c Wed Nov 25 21:11:36 2015
@@ -15,6 +15,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef __GNUC__
 void _fatal(char *file, char *func, int line, char *fmt, ...)

Modified: test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/openFiles.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/openFiles.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/openFiles.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/openFiles.c Wed Nov 25 21:11:36 2015
@@ -46,6 +46,7 @@
 
 #include <assert.h>         /* for assert()                        */
 #include <stdio.h>          /* for FILE definitions and fopen()    */
+#include <string.h>
 #include "dataManagement.h" /* for primitive type definitions      */
 #include "errorMessage.h"   /* for errorMessage() definition       */
 #include "openFiles.h"      /* for openFiles return codes          */

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/g721/g721encode/g72x.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/g721/g721encode/g72x.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/g721/g721encode/g72x.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/g721/g721encode/g72x.c Wed Nov 25 21:11:36 2015
@@ -32,6 +32,8 @@
 
 #include "g72x.h"
 
+extern int abs();
+
 static short power2[15] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80,
 			0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000};
 

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/code.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/code.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/code.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/gsm/toast/code.c Wed Nov 25 21:11:36 2015
@@ -11,6 +11,7 @@
 
 #ifdef	HAS_STDLIB_H
 #include	<stdlib.h>
+#include        <string.h>
 #else
 #	include "proto.h"
 	extern char	* memcpy P((char *, char *, int));

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/spatscal.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/spatscal.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/spatscal.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/spatscal.c Wed Nov 25 21:11:36 2015
@@ -1,5 +1,7 @@
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include "config.h"
 #include "global.h"
 

Modified: test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c Wed Nov 25 21:11:36 2015
@@ -29,6 +29,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
 

Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/himenobmtxpa.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/himenobmtxpa.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/himenobmtxpa.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/himenobmtxpa.c Wed Nov 25 21:11:36 2015
@@ -38,6 +38,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/time.h>
 
 #define MR(mt,n,r,c,d)  mt->m[(n) * mt->mrows * mt->mcols * mt->mdeps + (r) * mt->mcols* mt->mdeps + (c) * mt->mdeps + (d)]

Modified: test-suite/trunk/SingleSource/Regression/C/2003-05-14-initialize-string.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/2003-05-14-initialize-string.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/2003-05-14-initialize-string.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/2003-05-14-initialize-string.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+extern int printf(const char *str, ...);
 
 int main() {
   char title[] = "foo and stuff\n";

Modified: test-suite/trunk/SingleSource/Regression/C/2003-05-21-BitfieldHandling.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/2003-05-21-BitfieldHandling.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/2003-05-21-BitfieldHandling.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/2003-05-21-BitfieldHandling.c Wed Nov 25 21:11:36 2015
@@ -53,6 +53,8 @@ struct test {
   long long x : 4;
 } M;   int Msize = sizeof(M);  // Size = 8
 
+extern int printf(const char *str, ...);
+
 int main() {
   printf("N: %d %d %d %d\n", N.code, N.mode, N.x, N.y);
   printf("F1: %d\n", F1.x);

Modified: test-suite/trunk/SingleSource/Regression/C/2005-05-06-LongLongSignedShift.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/2005-05-06-LongLongSignedShift.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/2005-05-06-LongLongSignedShift.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/2005-05-06-LongLongSignedShift.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,5 @@
+extern int printf(const char *str, ...);
+
 int main(int argc, char **argv) {
   printf("%lld\n", (argc-100LL) >> 38);
 

Modified: test-suite/trunk/SingleSource/Regression/C/matrixTranspose.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/matrixTranspose.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/matrixTranspose.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/matrixTranspose.c Wed Nov 25 21:11:36 2015
@@ -21,6 +21,8 @@ void complex_transpose(fftw_real *rA, ff
      }
 }
 
+extern int printf(const char *str, ...);
+
 fftw_real A[2048];
 int main(int argc, char **argv)
 {

Modified: test-suite/trunk/SingleSource/Regression/C/sumarray2d.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/sumarray2d.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/sumarray2d.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/sumarray2d.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <stdlib.h>
 
 int SumArray(int Array[][100], unsigned int NumI, unsigned int NumJ) {

Modified: test-suite/trunk/SingleSource/Regression/C/testtrace.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/testtrace.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/testtrace.c (original)
+++ test-suite/trunk/SingleSource/Regression/C/testtrace.c Wed Nov 25 21:11:36 2015
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <string.h>
 
 /*
  * Test routines for testing the tracing code.

Modified: test-suite/trunk/SingleSource/UnitTests/2002-05-02-ArgumentTest.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2002-05-02-ArgumentTest.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2002-05-02-ArgumentTest.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2002-05-02-ArgumentTest.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+extern int printf(const char *str, ...);
 
 void testfunc(short s, float X, char C, long long LL, int I, double D) {
 	printf("%d, %f, %d, %lld, %d, %f\n", s, X, C, LL, I, D);

Modified: test-suite/trunk/SingleSource/UnitTests/2002-10-13-BadLoad.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2002-10-13-BadLoad.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2002-10-13-BadLoad.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2002-10-13-BadLoad.c Wed Nov 25 21:11:36 2015
@@ -4,6 +4,8 @@ unsigned test() {
 	return (unsigned)window_size;
 }
 
+extern int printf(const char *str, ...);
+
 int main() {
 	printf("%d\n", test());
 	return 0;

Modified: test-suite/trunk/SingleSource/UnitTests/2003-05-31-LongShifts.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2003-05-31-LongShifts.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2003-05-31-LongShifts.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2003-05-31-LongShifts.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+extern int printf(const char *str, ...);
 
 void Test(long long Val, int Amt) {
   printf("0x%llx op %d:\n", Val, Amt);

Modified: test-suite/trunk/SingleSource/UnitTests/2004-02-02-NegativeZero.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2004-02-02-NegativeZero.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2004-02-02-NegativeZero.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2004-02-02-NegativeZero.c Wed Nov 25 21:11:36 2015
@@ -1,3 +1,4 @@
+extern int printf(const char *str, ...);
 void test(double X) {
   printf("%f %f\n", -0.0 - X, -X);
 }

Modified: test-suite/trunk/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c Wed Nov 25 21:11:36 2015
@@ -1,5 +1,6 @@
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 struct S { _Bool X, Y; char str[100]; };
 

Modified: test-suite/trunk/SingleSource/UnitTests/2005-07-15-Bitfield-ABI.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2005-07-15-Bitfield-ABI.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2005-07-15-Bitfield-ABI.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2005-07-15-Bitfield-ABI.c Wed Nov 25 21:11:36 2015
@@ -10,6 +10,8 @@ void test(struct X *P, int A) {
    P->A = A;
 }
 
+extern int printf(const char *str, ...);
+
 int main() {
   union {
     int Y;

Modified: test-suite/trunk/SingleSource/UnitTests/StructModifyTest.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/StructModifyTest.c?rev=254124&r1=254123&r2=254124&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/StructModifyTest.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/StructModifyTest.c Wed Nov 25 21:11:36 2015
@@ -9,6 +9,7 @@ typedef struct {
   S1Ty A, B;
 } S2Ty;
 
+extern int printf(const char *str, ...);
 void printS1(S1Ty *V) {
   printf("%d, %f, %f, %lld\n", V->w, V->x, V->y, V->z);
 }




More information about the llvm-commits mailing list