This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Andre Vehreschild <vehre at gmx dot de>
- Cc: Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Feb 2016 12:42:49 +0200
- Subject: Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Authentication-results: sourceware.org; auth=none
- References: <56B3CAA1 dot 8090807 at netcologne dot de> <20160205113322 dot 42c5357c at vepi2> <56B65596 dot 3080800 at netcologne dot de> <CAO9iq9EUkwnahh0AqUp09Rbe6Q7LJ68dy99seozvwzGsm2KVvA at mail dot gmail dot com> <56BD9193 dot 4020904 at netcologne dot de> <20160212111632 dot 5b4e188d at vepi2>
On Fri, Feb 12, 2016 at 12:16 PM, Andre Vehreschild <vehre@gmx.de> wrote:
> Hi all,
>
> it wasn't my intention to start such a big discussion for such a small
> thing. Please stop this academic battle and get back to the issue at
> hand:
>
> Thomas is examining a symbol, that
>
> - has come through the scanner, i.e., it adheres to the rules of
> gfortran, especially it is known to be smaller than GFC_MAX_SYMBOL_LEN
>
> - is still a valid symbol. When gfortran's internal
> composition/modification of symbols breaks this rule, we are done
> earlier already.
>
> - its length is not changed in his routine.
>
> I was only trying to prevent an alloc/free for this small use case,
> which should fit on the stack quite easily. The proposed alloca() call
> has according to the documentation of libc some availability issues on
> certain platforms, too. Therefore why not going with the fixed size
> stack array and adding a check for possible overflow to it and be done?
Yes, I agree. That sounds like the best approach in this case.
--
Janne Blomqvist
- References:
- [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type
- Re: [patch, Fortran] Fix PR 60526, variable name has already been declared as a type