Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit include of hdrfiles #110

Merged
merged 4 commits into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/FreeBench/pifft/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LEVEL = ../../../..

PROG = pifft
CPPFLAGS = -DVERSION='"1.00"' -DCOMPDATE="\"today\"" -DCFLAGS='""' -DHOSTNAME="\"thishost\""
CPPFLAGS = -DVERSION='"1.00"' -DCOMPDATE="\"today\"" -DCFLAGS='""' -DHOSTNAME="\"thishost\""
LDFLAGS = -lm
ifdef LARGE_PROBLEM_SIZE
RUN_OPTIONS = $(PROJ_SRC_DIR)/ref.in
Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/MallocBench/espresso/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
list(APPEND CPPFLAGS -DNOMEMOPT)
list(APPEND CFLAGS -std=gnu89)
list(APPEND CFLAGS -std=gnu89 -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
set(RUN_OPTIONS -t INPUT/largest.espresso)
llvm_multisource(espresso)
llvm_test_data(espresso INPUT/largest.espresso)
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/MallocBench/espresso/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
LEVEL = ../../../..
PROG = espresso
CPPFLAGS += -DNOMEMOPT
CFLAGS += -std=gnu89
CFLAGS += -std=gnu89 -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS
RUN_OPTIONS = -t $(PROJ_SRC_DIR)/INPUT/largest.espresso
include ../../../Makefile.multisrc
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/McCat/05-eks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
list(APPEND LDFLAGS -lm)
list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
llvm_multisource(eks)
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/McCat/05-eks/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
LEVEL = ../../../..
PROG = eks
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS
LDFLAGS = -lm
#RUN_OPTIONS +=
#STDIN_FILENAME = bnchmrk.in1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
list(APPEND CPPFLAGS -DHAVEMPGLIB -DLAMEPARSE -DNDEBUG -D__NO_MATH_INLINES -DLAMESNDFILE)
list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
list(APPEND LDFLAGS -lm)
set(RUN_OPTIONS -S large.wav /dev/null)
llvm_multisource(consumer-lame)
Expand Down
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/MiBench/consumer-lame/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LEVEL = ../../../..

PROG = consumer-lame
CPPFLAGS = -DHAVEMPGLIB -DLAMEPARSE -DNDEBUG -D__NO_MATH_INLINES -O -DLAMESNDFILE
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS
LDFLAGS = -lm
RUN_OPTIONS = -S $(PROJ_SRC_DIR)/large.wav /dev/null

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
list(APPEND CPPFLAGS -DOS_UNIX=1 -DOS_DOS=0 -DOS_MAC=0 -DDB_FIX=0 -DUSE_STAT=1 -DSAFE_DFT=0 -DCOLLATE=1 -DLIB_DIR="lout.lib" -DFONT_DIR="font" -DMAPS_DIR="maps" -DINCL_DIR="include" -DDATA_DIR="data" -DHYPH_DIR="hyph" -DLOCALE_DIR="locale" -DCHAR_IN=1 -DCHAR_OUT=0 -DLOCALE_ON=1 -DASSERT_ON=1 -DDEBUG_ON=0 -DPDF_COMPRESSION=0 -D_FORTIFY_SOURCE=0)
list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)

if(ARCH STREQUAL "Mips")
list(APPEND CPPFLAGS -DCOLLATE=0 -DLOCALE_ON=0)
Expand Down
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/MiBench/consumer-typeset/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PROG = consumer-typeset
# FORTIFY_SOURCE is turned off for this benchmark because the type lies at some
# point in this program and FORIFY implementations rely on the correct type.
CPPFLAGS = -DOS_UNIX=1 -DOS_DOS=0 -DOS_MAC=0 -DDB_FIX=0 -DUSE_STAT=1 -DSAFE_DFT=0 -DCOLLATE=1 -DLIB_DIR=\"lout.lib\" -DFONT_DIR=\"font\" -DMAPS_DIR=\"maps\" -DINCL_DIR=\"include\" -DDATA_DIR=\"data\" -DHYPH_DIR=\"hyph\" -DLOCALE_DIR=\"locale\" -DCHAR_IN=1 -DCHAR_OUT=0 -DLOCALE_ON=1 -DASSERT_ON=1 -DDEBUG_ON=0 -DPDF_COMPRESSION=0 -D_FORTIFY_SOURCE=0
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS

ifeq ($(ARCH),Mips)
CPPFLAGS += -DCOLLATE=0 -DLOCALE_ON=0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
list(APPEND LDFLAGS -lm)
set(RUN_OPTIONS large.udp)
set(HASH_PROGRAM_OUTPUT 1)
Expand Down
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/MiBench/network-patricia/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LEVEL = ../../../..

PROG = network-patricia
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS
LDFLAGS = -lm
RUN_OPTIONS = $(PROJ_SRC_DIR)/large.udp
HASH_PROGRAM_OUTPUT = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
list(APPEND CPPFLAGS -Dconst=)
list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
list(APPEND LDFLAGS -lm)
set(RUN_OPTIONS -a -d americanmed+ < large.txt)
llvm_multisource(office-ispell)
Expand Down
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/MiBench/office-ispell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LEVEL = ../../../..

PROG = office-ispell
CPPFLAGS = -Dconst=
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS
LDFLAGS = -lm
RUN_OPTIONS = -a -d $(PROJ_SRC_DIR)/americanmed+
STDIN_FILENAME = $(PROJ_SRC_DIR)/large.txt
Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/bh/args.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* For copyright information, see olden_v1.0/COPYRIGHT */
#include <stdlib_checked.h>
#include <stdlib.h>

#pragma CHECKED_SCOPE ON

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/bisort/args.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* For copyright information, see olden_v1.0/COPYRIGHT */
#include <stdchecked.h>
#include <stdlib_checked.h>
#include <stdlib.h>

#pragma CHECKED_SCOPE ON

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/bisort/bitonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* UP - 0, DOWN - 1 */
#include "node.h" /* Node Definition */
#include "proc.h" /* Procedure Types/Nums */
#include <stdio_checked.h>
#include <stdio.h>

#pragma CHECKED_SCOPE ON

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/em3d/util.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* For copyright information, see olden_v1.0/COPYRIGHT */

#include <stdlib_checked.h>
#include <stdlib.h>
#include "em3d.h"
#pragma CHECKED_SCOPE ON

Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Olden/health/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*****************************************************************/

#include <stdchecked.h>
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "health.h"

void dealwithargs(int argc, array_ptr<nt_array_ptr<char>> argv : count(argc)) {
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Olden/health/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Health.c : Model of the Columbian Health Care System *
*******************************************************************/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "health.h"
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Olden/health/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
********************************************************************/

#include <stdchecked.h>
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "health.h"
#pragma CHECKED_SCOPE ON

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/mst/hash.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* For copyright information, see olden_v1.0/COPYRIGHT */

#include <stdchecked.h>
#include <stdlib_checked.h>
#include <stdlib.h>
#include "hash.h"
#pragma CHECKED_SCOPE ON

Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Olden/perimeter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <stdchecked.h>
#include "perimeter.h"
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>

#define printf(...) unchecked { printf(__VA_ARGS__); }

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/perimeter/maketree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdchecked.h>
#include "perimeter.h"
#include <stdlib_checked.h>
#include <stdlib.h>

#pragma CHECKED_SCOPE ON

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/power/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* University of California at Berkeley
*/

#include <stdlib_checked.h>
#include <stdlib.h>
#include "power.h"

#pragma CHECKED_SCOPE ON
Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Olden/power/compute.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

#include <stdlib_checked.h>
#include <stdlib.h>
#include "power.h"

#pragma CHECKED_SCOPE ON
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include(CheckFunctionExists)
check_function_exists(re_comp HAVE_RE_COMP)

list(APPEND CFLAGS -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
if(HAVE_RE_COMP)
if(TARGET_OS STREQUAL "SunOS")
list(APPEND LDFLAGS -lsocket -lnsl)
Expand Down
2 changes: 2 additions & 0 deletions MultiSource/Benchmarks/Prolangs-C/archie-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ifdef HAVE_RE_COMP
PROG = archie
endif

CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS

include $(LEVEL)/MultiSource/Makefile.multisrc

ifeq ($(TARGET_OS),SunOS)
Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Prolangs-C/cdecl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
list(APPEND CFLAGS -std=gnu89)
list(APPEND CFLAGS -std=gnu89 -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS)
set(RUN_OPTIONS < testset)
llvm_multisource(cdecl)
llvm_test_data(cdecl testset)
1 change: 1 addition & 0 deletions MultiSource/Benchmarks/Prolangs-C/cdecl/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LEVEL = ../../../..

CFLAGS += -std=gnu89
CFLAGS += -DNO_IMPLICIT_INCLUDE_CHECKED_HDRS

PROG = cdecl
STDIN_FILENAME = $(SourceDir)/testset
Expand Down
6 changes: 3 additions & 3 deletions MultiSource/Benchmarks/Ptrdist/anagram/anagram.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
* prototypes, for those of you who have K&R compilers.
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <string_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/ft/Fheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
*/

#include <assert.h>
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "Fheap.h"
#include "Fstruct.h"

Expand Down
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/Ptrdist/ft/Fsanity.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
*/

#include <stdio_checked.h>
#include <stdio.h>
#include "Fheap.h"
#include "Fstruct.h"

Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/ft/ft.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
*/

#include <limits.h>
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#include <sys/time.h>
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/ft/graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
*/

#include <assert.h>
#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "graph.h"

#pragma CHECKED_SCOPE ON
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/ft/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#include "item.h"
Expand Down
6 changes: 3 additions & 3 deletions MultiSource/Benchmarks/Ptrdist/ks/KS-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* date: Thursday, February 25, 1993
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <string_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include "KS.h"
Expand Down
6 changes: 3 additions & 3 deletions MultiSource/Benchmarks/Ptrdist/ks/KS-2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* date: Thursday, February 25, 1993
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <string_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include "KS.h"
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/yacr2/assign.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "types.h"
#include "assign.h"
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/yacr2/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "types.h"
#include "channel.h"

Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/yacr2/hcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "types.h"
#include "hcg.h"
Expand Down
4 changes: 2 additions & 2 deletions MultiSource/Benchmarks/Ptrdist/yacr2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "option.h"
#include "channel.h"
Expand Down
6 changes: 3 additions & 3 deletions MultiSource/Benchmarks/Ptrdist/yacr2/maze.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <string_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include "channel.h"
Expand Down
6 changes: 3 additions & 3 deletions MultiSource/Benchmarks/Ptrdist/yacr2/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

#include <string_checked.h>
#include <string.h>

#define OPTION_CODE

Expand All @@ -16,8 +16,8 @@
*
*/

#include <stdio_checked.h>
#include <stdlib_checked.h>
#include <stdio.h>
#include <stdlib.h>
#include "channel.h"

#pragma CHECKED_SCOPE ON
Expand Down
Loading