re PR fortran/42517 (-fcheck=recursion does not work with -fopenmp)
2010-01-05 Tobias Burnus <burnus@net-b.de> PR fortran/42517 * options.c (gfc_post_options): Set -frecursion when -fopenmp is used. From-SVN: r155649
This commit is contained in:
parent
b9497ab5ed
commit
653f6dc599
@ -1,3 +1,9 @@
|
||||
2010-01-05 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/42517
|
||||
* options.c (gfc_post_options): Set -frecursion
|
||||
when -fopenmp is used.
|
||||
|
||||
2010-01-05 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/41872
|
||||
|
@ -353,18 +353,22 @@ gfc_post_options (const char **pfilename)
|
||||
"implied by -fopenmp",
|
||||
gfc_option.flag_max_stack_var_size);
|
||||
|
||||
/* Implied -frecursive; implemented as -fmax-stack-var-size=-1. */
|
||||
if (gfc_option.flag_max_stack_var_size == -2 && gfc_option.flag_openmp)
|
||||
/* Implement -frecursive as -fmax-stack-var-size=-1. */
|
||||
if (gfc_option.flag_recursive)
|
||||
gfc_option.flag_max_stack_var_size = -1;
|
||||
|
||||
/* Implied -frecursive; implemented as -fmax-stack-var-size=-1. */
|
||||
if (gfc_option.flag_max_stack_var_size == -2 && gfc_option.flag_openmp
|
||||
&& gfc_option.flag_automatic)
|
||||
{
|
||||
gfc_option.flag_recursive = 1;
|
||||
gfc_option.flag_max_stack_var_size = -1;
|
||||
}
|
||||
|
||||
/* Set default. */
|
||||
if (gfc_option.flag_max_stack_var_size == -2)
|
||||
gfc_option.flag_max_stack_var_size = 32768;
|
||||
|
||||
/* Implement -frecursive as -fmax-stack-var-size=-1. */
|
||||
if (gfc_option.flag_recursive)
|
||||
gfc_option.flag_max_stack_var_size = -1;
|
||||
|
||||
/* Implement -fno-automatic as -fmax-stack-var-size=0. */
|
||||
if (!gfc_option.flag_automatic)
|
||||
gfc_option.flag_max_stack_var_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user