This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, fortran] PR 53379 Backtrace on error termination
- From: FX <fxcoudert at gmail dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>, Janne Blomqvist <blomqvist dot janne at gmail dot com>, Ian Lance Taylor <ian at airs dot com>
- Date: Tue, 8 Sep 2015 15:49:17 +0200
- Subject: Re: [PATCH, fortran] PR 53379 Backtrace on error termination
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnymArrXV9uWhkLBow6Di8_WaZP_w3fO-kf3cwbg6nWr8=A at mail dot gmail dot com> <5474EA6F-E6C0-4FA0-B299-C0D9558D6ACB at gmail dot com> <CAGWvny==F7BJ3SfiJQzaUcL3E0nvjOSe+LmRSkLYyhBUc_Lcsg at mail dot gmail dot com>
> /home/dje/src/src/libbacktrace/posix.c: In function 'backtrace_open':
> /home/dje/src/src/libbacktrace/posix.c:67:32: error: overflow in
> implicit constant conversion [-Werror=overflow]
> descriptor = open (filename, O_RDONLY | O_BINARY | O_CLOEXEC);
?? I have a hard time understanding how the non-constant filename can give an overflow error. Or maybe the error is wrong, and itâs O_RDONLY | O_BINARY | O_CLOEXEC that have crazy values?
This looks like a valid POSIX construct to me.
FX