From 74c840ed6884db32ae57aa670dad89fece4e6678 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Wed, 11 Aug 2010 10:59:04 +0200 Subject: [PATCH] Set default language to C cloog_options_malloc did not set this value at all, which lead to undefined behaviour if a tool did not set the language explicitly. Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- source/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/options.c b/source/options.c index 6d1cb52..d862bd8 100644 --- a/source/options.c +++ b/source/options.c @@ -308,6 +308,7 @@ CloogOptions *cloog_options_malloc(CloogState *state) options->compilable = 0 ; /* No compilable code. */ options->callable = 0 ; /* No callable code. */ options->quiet = 0; /* Do print informational messages. */ + options->language = LANGUAGE_C; /* The default output language is C. */ /* UNDOCUMENTED OPTIONS FOR THE AUTHOR ONLY */ options->leaks = 0 ; /* I don't want to print allocation statistics.*/ options->backtrack = 0; /* Perform backtrack in Quillere's algorithm.*/ -- 2.11.4.GIT