aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/scanner.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2013-02-14 22:13:26 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2013-02-14 22:13:26 +0000
commit308f961b9b2e0566894673f3b9d51e37a8e33606 (patch)
treeb7448e76189c5ab9dda84e7e0e477eace20755e4 /gcc/fortran/scanner.c
parentbb3accfa6fd67cb6f61d06c3cce1805754d28666 (diff)
downloadgcc-308f961b9b2e0566894673f3b9d51e37a8e33606.zip
gcc-308f961b9b2e0566894673f3b9d51e37a8e33606.tar.gz
gcc-308f961b9b2e0566894673f3b9d51e37a8e33606.tar.bz2
re PR fortran/56224 (gfortran -fopenmp cannot find omp_lib.h)
2013-02-14 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/56224 * gfortran.h (gfc_add_include_path): Add boolean argument for warn. * scanner.c (gfc_add_include_path): Pass along warn argument to add_path_to_list. * options.c (gfc_post_options): Add true warn argument to gfc_add_include_path. (gfc_handle_module_path_options): Likewise. (gfc_handle_option): Also gfc_add_include_path for intrinsic modules, without warning. From-SVN: r196058
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r--gcc/fortran/scanner.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 0467f8a..f714ed0 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -375,9 +375,10 @@ add_path_to_list (gfc_directorylist **list, const char *path,
void
-gfc_add_include_path (const char *path, bool use_for_modules, bool file_dir)
+gfc_add_include_path (const char *path, bool use_for_modules, bool file_dir,
+ bool warn)
{
- add_path_to_list (&include_dirs, path, use_for_modules, file_dir, true);
+ add_path_to_list (&include_dirs, path, use_for_modules, file_dir, warn);
/* For '#include "..."' these directories are automatically searched. */
if (!file_dir)