OSDN Git Service

* lang.opt: Remove non-working -qkind= option.
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2006 06:41:55 +0000 (06:41 +0000)
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2006 06:41:55 +0000 (06:41 +0000)
* gfortran.h (gfc_option_t): Remove q_kind member.
* options.c (gfc_init_options): Remove q_kind initialization.
(gfc_handle_option): Remove -qkind= option handling.
* primary.c: (match_real_constant): Remove 'Q' exponent.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118614 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/primary.c

index 42c07fe..44224a2 100644 (file)
@@ -1,3 +1,11 @@
+2006-11-08  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       * lang.opt: Remove non-working -qkind= option.
+       * gfortran.h (gfc_option_t): Remove q_kind member.
+       * options.c (gfc_init_options): Remove q_kind initialization.
+       (gfc_handle_option): Remove -qkind= option handling.
+       * primary.c: (match_real_constant): Remove 'Q' exponent.
+
 2006-11-08  Tobias Burnus  <burnus@net-b.de>
 
        * gfortran.texi: Add volatile and internal-file
index 970bda3..76f0d9f 100644 (file)
@@ -1654,8 +1654,6 @@ typedef struct
   int flag_d_lines;
   int flag_openmp;
 
-  int q_kind;
-
   int fpe;
 
   int warn_std;
index cbef46a..1a19da4 100644 (file)
@@ -201,10 +201,6 @@ fpreprocessed
 Fortran
 Treat the input file as preprocessed
 
-qkind=
-Fortran RejectNegative Joined UInteger
--qkind=<n>     Set the kind for a real with the 'q' exponent to 'n'
-
 ffpe-trap=
 Fortran RejectNegative JoinedOrMissing
 -ffpe-trap=[..]        Stop on following floating point exceptions
index f821d3e..d5920e4 100644 (file)
@@ -86,8 +86,6 @@ gfc_init_options (unsigned int argc ATTRIBUTE_UNUSED,
   gfc_option.flag_d_lines = -1;
   gfc_option.flag_openmp = 0;
 
-  gfc_option.q_kind = gfc_default_double_kind;
-
   gfc_option.fpe = 0;
 
   /* Argument pointers cannot point to anything
@@ -549,12 +547,6 @@ gfc_handle_option (size_t scode, const char *arg, int value)
       gfc_option.max_identifier_length = value;
       break;
 
-    case OPT_qkind_:
-      if (gfc_validate_kind (BT_REAL, value, true) < 0)
-       gfc_fatal_error ("Argument to -fqkind isn't a valid real kind");
-      gfc_option.q_kind = value;
-      break;
-
     case OPT_fdefault_integer_8:
       gfc_option.flag_default_integer = value;
       break;
index 9982b61..1b918b3 100644 (file)
@@ -580,16 +580,6 @@ done:
       kind = gfc_default_double_kind;
       break;
 
-    case 'q':
-      if (kind != -2)
-       {
-         gfc_error
-           ("Real number at %C has a 'q' exponent and an explicit kind");
-         goto cleanup;
-       }
-      kind = gfc_option.q_kind;
-      break;
-
     default:
       if (kind == -2)
        kind = gfc_default_real_kind;