Re: what is defined, was for or against equality

Thomas Koenig <tkoenig@netcologne.de>
Thu, 13 Jan 2022 11:17:13 -0000 (UTC)

          From comp.compilers

Related articles
[9 earlier articles]
Re: what is defined, was for or against equality gah4@u.washington.edu (gah4) (2022-01-10)
Re: what is defined, was for or against equality david.brown@hesbynett.no (David Brown) (2022-01-11)
Re: what is defined, was for or against equality 480-992-1380@kylheku.com (Kaz Kylheku) (2022-01-11)
Re: what is defined, was for or against equality gah4@u.washington.edu (gah4) (2022-01-11)
Re: what is defined, was for or against equality tkoenig@netcologne.de (Thomas Koenig) (2022-01-12)
Re: what is defined, was for or against equality david.brown@hesbynett.no (David Brown) (2022-01-13)
Re: what is defined, was for or against equality tkoenig@netcologne.de (Thomas Koenig) (2022-01-13)
| List of all articles for this month |

From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.compilers
Date: Thu, 13 Jan 2022 11:17:13 -0000 (UTC)
Organization: news.netcologne.de
References: <17d70d74-1cf1-cc41-6b38-c0b307aeb35a@gkc.org.uk> 22-01-016 22-01-018 22-01-020 22-01-027 22-01-032 22-01-038 22-01-041 22-01-044 22-01-045 22-01-046 22-01-048
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="8599"; mail-complaints-to="abuse@iecc.com"
Keywords: Fortran, debug
Posted-Date: 14 Jan 2022 12:39:30 EST

Thomas Koenig <tkoenig@netcologne.de> schrieb:


> [I have used Fortran systems that initialized otherwise undefined
> data to a value that would trap, to help find use-before-set errors.
> -John]


That usually is still available, but optional. An short example:


$ cat a.f90
program main
    print *,a
end program main
$ gfortran -g -ffpe-trap=invalid -finit-real=snan a.f90
$ ./a.out


Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.


with a backtrace pointing to the offending line.


It does not necessarily work on COMMON blocks, though.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.