Commit 653f6dc5 by Tobias Burnus Committed by Tobias Burnus

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
parent b9497ab5
2010-01-05 Tobias Burnus <burnus@net-b.de> 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 PR fortran/41872
* trans-expr.c (gfc_conv_procedure_call): Nullify * trans-expr.c (gfc_conv_procedure_call): Nullify
return value for allocatable-scalar character functions. return value for allocatable-scalar character functions.
......
...@@ -353,18 +353,22 @@ gfc_post_options (const char **pfilename) ...@@ -353,18 +353,22 @@ gfc_post_options (const char **pfilename)
"implied by -fopenmp", "implied by -fopenmp",
gfc_option.flag_max_stack_var_size); gfc_option.flag_max_stack_var_size);
/* Implied -frecursive; implemented as -fmax-stack-var-size=-1. */ /* Implement -frecursive as -fmax-stack-var-size=-1. */
if (gfc_option.flag_max_stack_var_size == -2 && gfc_option.flag_openmp) if (gfc_option.flag_recursive)
gfc_option.flag_max_stack_var_size = -1; 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. */ /* Set default. */
if (gfc_option.flag_max_stack_var_size == -2) if (gfc_option.flag_max_stack_var_size == -2)
gfc_option.flag_max_stack_var_size = 32768; 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. */ /* Implement -fno-automatic as -fmax-stack-var-size=0. */
if (!gfc_option.flag_automatic) if (!gfc_option.flag_automatic)
gfc_option.flag_max_stack_var_size = 0; gfc_option.flag_max_stack_var_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment