From f34dea03005c1cddd28e8bca73dffb4b05c1aff7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 16 Jan 2013 17:19:32 +0100 Subject: [PATCH] re PR driver/55884 (FAIL: libgomp.fortran/omp_parse3.f90 -O0 (test for excess errors)) gcc/fortran/ 2013-01-16 Jakub Jelinek Tobias Burnus PR driver/55884 * lang.opt (fintrinsic-modules-path): Don't accept Joined. (fintrinsic-modules-path=): New. * options.c (gfc_handle_option, gfc_get_option_string, gfc_get_option_string): Handle the latter. libgomp/ 2013-01-16 Jakub Jelinek Tobias Burnus PR driver/55884 * testsuite/libgomp.fortran/fortran.exp: Use -fintrinsic-modules-path= instead of -fintrinsic-modules-path. Co-Authored-By: Tobias Burnus From-SVN: r195242 --- gcc/fortran/ChangeLog | 9 +++++++++ gcc/fortran/lang.opt | 6 +++++- gcc/fortran/options.c | 3 +++ libgomp/ChangeLog | 8 ++++++++ libgomp/testsuite/libgomp.fortran/fortran.exp | 2 +- 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index c7f2001f85a..fc39b414959 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,12 @@ +2013-01-16 Jakub Jelinek + Tobias Burnus + + PR driver/55884 + * lang.opt (fintrinsic-modules-path): Don't accept Joined. + (fintrinsic-modules-path=): New. + * options.c (gfc_handle_option, gfc_get_option_string, + gfc_get_option_string): Handle the latter. + 2013-01-16 Jakub Jelinek PR fortran/52865 diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index 4e95220054b..fbe8a1b2fb9 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -422,7 +422,11 @@ Fortran RejectNegative Interpret any INTEGER(4) as an INTEGER(8) fintrinsic-modules-path -Fortran RejectNegative Joined Separate +Fortran RejectNegative Separate +Specify where to find the compiled intrinsic modules + +fintrinsic-modules-path= +Fortran RejectNegative Joined Specify where to find the compiled intrinsic modules ffixed-line-length-none diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index b1317babae0..a0146346554 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -843,6 +843,7 @@ gfc_handle_option (size_t scode, const char *arg, int value, break; case OPT_fintrinsic_modules_path: + case OPT_fintrinsic_modules_path_: gfc_add_intrinsic_modules_path (arg); break; @@ -1146,6 +1147,7 @@ gfc_get_option_string (void) case OPT_quiet: case OPT_version: case OPT_fintrinsic_modules_path: + case OPT_fintrinsic_modules_path_: /* Ignore these. */ break; default: @@ -1171,6 +1173,7 @@ gfc_get_option_string (void) case OPT_quiet: case OPT_version: case OPT_fintrinsic_modules_path: + case OPT_fintrinsic_modules_path_: /* Ignore these. */ continue; diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 4c61fdb501d..3bc553ace81 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2013-01-16 Jakub Jelinek + Tobias Burnus + + PR driver/55884 + * testsuite/libgomp.fortran/fortran.exp: Use + -fintrinsic-modules-path= instead of + -fintrinsic-modules-path. + 2013-01-14 Richard Sandiford Update copyright years. diff --git a/libgomp/testsuite/libgomp.fortran/fortran.exp b/libgomp/testsuite/libgomp.fortran/fortran.exp index 68440d18c81..40ac8409762 100644 --- a/libgomp/testsuite/libgomp.fortran/fortran.exp +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp @@ -14,7 +14,7 @@ set quadmath_library_path "../libquadmath/.libs" dg-init if { $blddir != "" } { - lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path ${blddir}" + lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path=${blddir}" # Look for a static libgfortran first. if [file exists "${blddir}/${lang_library_path}/libgfortran.a"] { set lang_test_file "${lang_library_path}/libgfortran.a"