public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables
@ 2007-05-21 13:28 burnus at gcc dot gnu dot org
2007-05-21 13:30 ` [Bug fortran/32021] " burnus at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-21 13:28 UTC (permalink / raw)
To: gcc-bugs
The following environment variables exist in gfortran (inherited from g95, cf.
http://ftp.g95.org/G95Manual.pdf). They are not documented and don't seem to
work, however they are partially implemented.
GFORTRAN_FPU_PRECISION can probably be removed (cf. -mpc32, -mpc64 and -mpc80)
GFORTRAN_MEM_INIT sounds something which should be handled by the front end (w/
a flag) for speed reasons. (cf. -finit-local-zero, PR20441).
Similar for GFORTRAN_MEM_CHECK.
GFORTRAN_SIG* could be implemented, if someone needs it. (can be done via the
signal vendor intrinsic).
GFORTRAN_FPU_ROUND etc. could be handled by the Fortran 2003 IEEE rounding
modes - or is this environment variable needed?
--- gfortran.texi (Revision 124895)
+++ gfortran.texi (Arbeitskopie)
@@ -604,6 +612,51 @@
when @command{a.out} is the compiled Fortran program that you want to run.
Default is a single space.
+@node GFORTRAN_MEM_INIT
+@section @env{GFORTRAN_MEM_INIT}---Default initialization of allocated memory
+
+This environment variable specifies how allocated memory is initialized.
+Default value is @samp{NONE} for no initialization (faster); other options
+are @samp{NAN} for not-a-number with mantissa @samp{0x40f95} or
+a custom hexadecimal value.
+
+@node GFORTRAN_MEM_CHECK
+@section @env{GFORTRAN_MEM_CHECK}---Default initialization of allocated memory
+
+If the first letter is @samp{y}, @samp{Y} or @samp{1}, memory which is still
+allocated when the program ends is reported; it is not reported if the first
+letter is @samp{n}, @samp{N} or @samp{0}. Default is not to report.
+
+@node GFORTRAN_SIGHUP
+@section @env{GFORTRAN_SIGHUP}---Behavior on SIGHUP
+
+When the @env{GFORTRAN_SIGHUP} variable is set to @samp{IGNORE}, the signal
+SIGHUP is ignored. It it is set to @samp{ABORT}, the program aborts.
+Default is to abort.
+
+@node GFORTRAN_SIGINT
+@section @env{GFORTRAN_SIGINT}---Behavior on SIGINT
+
+When the @env{GFORTRAN_SIGINT} variable is set to @samp{IGNORE}, the signal
+SIGINT is ignored. It it is set to @samp{ABORT}, the program aborts.
+Default is to abort.
+
+@node GFORTRAN_FPU_ROUND
+@section @env{GFORTRAN_FPU_ROUND}---Floating point rounding
+
+The @env{GFORTRAN_FPU_ROUND} variable specifies the floating point
+rounding. Possible values are: to round to the @samp{NEAREST}
+integer, to always round @samp{UP}, to always round @samp{DOWN},
+or to round always towards @samp{ZERO}. Default is to round
+to the nearest integer.
+
+@node GFORTRAN_FPU_PRECISION
+@section @env{GFORTRAN_FPU_PRECISION}---Precision of intermediate results
+
+The @env{GFORTRAN_FPU_PRECISION} variable specifies the precision
+of intermediate results. Possible values are
+@samp{24}, @samp{53} and @samp{64}. Default is @samp{64}.
+
@node GFORTRAN_CONVERT_UNIT
@section @env{GFORTRAN_CONVERT_UNIT}---Set endianness for unformatted I/O
--
Summary: Fix,document,remove GFORTRAN_* environment variables
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
@ 2007-05-21 13:30 ` burnus at gcc dot gnu dot org
2007-05-22 11:25 ` fxcoudert at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-21 13:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2007-05-21 14:29 -------
For GFORTRAN_SIG* one could also add an option to backtrace/dump in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
2007-05-21 13:30 ` [Bug fortran/32021] " burnus at gcc dot gnu dot org
@ 2007-05-22 11:25 ` fxcoudert at gcc dot gnu dot org
2007-10-02 12:07 ` fxcoudert at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-22 11:25 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-22 12:25:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
2007-05-21 13:30 ` [Bug fortran/32021] " burnus at gcc dot gnu dot org
2007-05-22 11:25 ` fxcoudert at gcc dot gnu dot org
@ 2007-10-02 12:07 ` fxcoudert at gcc dot gnu dot org
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-10-02 12:07 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-05-22 12:25:40 |2007-10-02 12:07:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-10-02 12:07 ` fxcoudert at gcc dot gnu dot org
@ 2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
2007-10-18 21:25 ` fxcoudert at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-10-04 15:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-10-04 15:18 -------
Subject: Bug 32021
Author: fxcoudert
Date: Thu Oct 4 15:18:48 2007
New Revision: 129014
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129014
Log:
PR libfortran/32021
* runtime/environ.c (init_mem, show_mem, init_round, show_round,
init_precision, show_precision, init_signal, show_signal): Remove.
(variable_table): Remove GFORTRAN_MEM_INIT, GFORTRAN_MEM_CHECK,
GFORTRAN_SIGHUP, GFORTRAN_SIGINT, GFORTRAN_FPU_ROUND and
GFORTRAN_FPU_PRECISION.
* libgfortran.h (options_t): Remove mem_check, fpu_round,
fpu_precision, sighup, sigint, allocate_init_flag and
allocate_init_value.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/libgfortran.h
trunk/libgfortran/runtime/environ.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
@ 2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
2007-10-18 21:25 ` fxcoudert at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-10-04 15:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-10-04 15:19 -------
Fixed.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/32021] Fix,document,remove GFORTRAN_* environment variables
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
@ 2007-10-18 21:25 ` fxcoudert at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-10-18 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-10-18 21:25 -------
Subject: Bug 32021
Author: fxcoudert
Date: Thu Oct 18 21:25:21 2007
New Revision: 129463
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129463
Log:
PR libfortran/32021
* runtime/backtrace.c (local_strcasestr): Protect by appropriate
macros.
* runtime/main.c (cleanup): Cast argument to free.
* intrinsics/spread_generic.c (spread_internal): Match runtime_error
arguments and format.
* intrinsics/signal.c (alarm_sub_int_i4, alarm_sub_int_i8): Cast
pointers to avoid warnings.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/intrinsics/signal.c
trunk/libgfortran/intrinsics/spread_generic.c
trunk/libgfortran/runtime/backtrace.c
trunk/libgfortran/runtime/main.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32021
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-18 21:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-21 13:28 [Bug fortran/32021] New: Fix,document,remove GFORTRAN_* environment variables burnus at gcc dot gnu dot org
2007-05-21 13:30 ` [Bug fortran/32021] " burnus at gcc dot gnu dot org
2007-05-22 11:25 ` fxcoudert at gcc dot gnu dot org
2007-10-02 12:07 ` fxcoudert at gcc dot gnu dot org
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
2007-10-04 15:19 ` fxcoudert at gcc dot gnu dot org
2007-10-18 21:25 ` fxcoudert at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).