Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > by-pkgid > f13f137693327172bf7ba9b443ff3a61 > files > 365

gcc-gfortran-4.6.1-2.x86_64.rpm

<html lang="en">
<head>
<title>_gfortran_set_options - The GNU Fortran Compiler</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="The GNU Fortran Compiler">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Non_002dFortran-Main-Program.html#Non_002dFortran-Main-Program" title="Non-Fortran Main Program">
<link rel="prev" href="_005fgfortran_005fset_005fargs.html#g_t_005fgfortran_005fset_005fargs" title="_gfortran_set_args">
<link rel="next" href="_005fgfortran_005fset_005fconvert.html#g_t_005fgfortran_005fset_005fconvert" title="_gfortran_set_convert">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Funding Free Software'', the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
``GNU Free Documentation License''.

(a) The FSF's Front-Cover Text is:

     A GNU Manual

(b) The FSF's Back-Cover Text is:

     You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="_gfortran_set_options"></a>
<a name="g_t_005fgfortran_005fset_005foptions"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="_005fgfortran_005fset_005fconvert.html#g_t_005fgfortran_005fset_005fconvert">_gfortran_set_convert</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="_005fgfortran_005fset_005fargs.html#g_t_005fgfortran_005fset_005fargs">_gfortran_set_args</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Non_002dFortran-Main-Program.html#Non_002dFortran-Main-Program">Non-Fortran Main Program</a>
<hr>
</div>

<h4 class="subsection">7.3.2 <code>_gfortran_set_options</code> &mdash; Set library option flags</h4>

<p><a name="index-g_t_005fgfortran_005fset_005foptions-335"></a><a name="index-libgfortran-initialization_002c-set_005foptions-336"></a>
     <dl>
<dt><em>Description</em>:<dd><code>_gfortran_set_options</code> sets several flags related to the Fortran
standard to be used, whether backtracing or core dumps should be enabled
and whether range checks should be performed.  The syntax allows for
upward compatibility since the number of passed flags is specified; for
non-passed flags, the default value is used.  See also
see <a href="Code-Gen-Options.html#Code-Gen-Options">Code Gen Options</a>.  Please note that not all flags are actually
used.

     <br><dt><em>Syntax</em>:<dd><code>void _gfortran_set_options (int num, int options[])</code>

     <br><dt><em>Arguments</em>:<dd>
     <p><table summary=""><tr align="left"><td valign="top" width="15%"><var>num</var> </td><td valign="top" width="70%">number of options passed
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>argv</var> </td><td valign="top" width="70%">The list of flag values
     <br></td></tr></table>

     <br><dt><em>option flag list</em>:<dd>
     <p><table summary=""><tr align="left"><td valign="top" width="15%"><var>option</var>[0] </td><td valign="top" width="70%">Allowed standard; can give run-time errors
if e.g. an input-output edit descriptor is invalid in a given standard. 
Possible values are (bitwise or-ed) <code>GFC_STD_F77</code> (1),
<code>GFC_STD_F95_OBS</code> (2), <code>GFC_STD_F95_DEL</code> (4), <code>GFC_STD_F95</code>
(8), <code>GFC_STD_F2003</code> (16), <code>GFC_STD_GNU</code> (32),
<code>GFC_STD_LEGACY</code> (64), <code>GFC_STD_F2008</code> (128), and
<code>GFC_STD_F2008_OBS</code> (256).  Default: <code>GFC_STD_F95_OBS
| GFC_STD_F95_DEL | GFC_STD_F95 | GFC_STD_F2003 | GFC_STD_F2008
| GFC_STD_F2008_OBS | GFC_STD_F77 | GFC_STD_GNU | GFC_STD_LEGACY</code>. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[1] </td><td valign="top" width="70%">Standard-warning flag; prints a warning to
standard error.  Default: <code>GFC_STD_F95_DEL | GFC_STD_LEGACY</code>. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[2] </td><td valign="top" width="70%">If non zero, enable pedantic checking. 
Default: off. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[3] </td><td valign="top" width="70%">If non zero, enable core dumps on run-time
errors.  Default: off. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[4] </td><td valign="top" width="70%">If non zero, enable backtracing on run-time
errors.  Default: off. 
Note: Installs a signal handler and requires command-line
initialization using <code>_gfortran_set_args</code>. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[5] </td><td valign="top" width="70%">If non zero, supports signed zeros. 
Default: enabled. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[6] </td><td valign="top" width="70%">Enables run-time checking.  Possible values
are (bitwise or-ed): GFC_RTCHECK_BOUNDS (1), GFC_RTCHECK_ARRAY_TEMPS (2),
GFC_RTCHECK_RECURSION (4), GFC_RTCHECK_DO (16), GFC_RTCHECK_POINTER (32). 
Default: disabled. 
<br></td></tr><tr align="left"><td valign="top" width="15%"><var>option</var>[7] </td><td valign="top" width="70%">If non zero, range checking is enabled. 
Default: enabled.  See -frange-check (see <a href="Code-Gen-Options.html#Code-Gen-Options">Code Gen Options</a>).
     <br></td></tr></table>

     <br><dt><em>Example</em>:<dd>
     <pre class="smallexample">            /* Use gfortran 4.5 default options.  */
            static int options[] = {68, 255, 0, 0, 0, 1, 0, 1};
            _gfortran_set_options (8, &amp;options);
</pre>
     </dl>

   </body></html>