Make-lang.in (fortran-warn): Set to $(STRICT_WARN) -Wno-error.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 12 Mar 2005 02:06:20 +0000 (02:06 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 12 Mar 2005 02:06:20 +0000 (02:06 +0000)
* Make-lang.in (fortran-warn): Set to $(STRICT_WARN) -Wno-error.
* decl.c, trans.c: Don't use C++ style comments.
* gfortran.h (sym_flavor, procedure_type, sym_intent, gfc_access,
ifsrc): Give names to enums and use ENUM_BITFIELD.
(gfc_access): Remove trailing comma.

From-SVN: r96323

gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/trans.c

index c22cd7bf77e7b1d5a8028f1883aa1c09d3b08340..63b9cd1ccbf155c01b0b7cdbd78c75cf24201777 100644 (file)
@@ -1,3 +1,11 @@
+2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (fortran-warn): Set to $(STRICT_WARN) -Wno-error.
+       * decl.c, trans.c: Don't use C++ style comments.
+       * gfortran.h (sym_flavor, procedure_type, sym_intent, gfc_access,
+       ifsrc): Give names to enums and use ENUM_BITFIELD.
+       (gfc_access): Remove trailing comma.
+
 2005-03-05  Steven G. Kargl  <kargls@comcast.net>
 
        PR 19936
index bdd8494c0d813da32ab274a99dd7d7773ef4df1c..9bb34faba51a8e37aebfe559f4bf6ca52e69f3c2 100644 (file)
@@ -48,14 +48,8 @@ GFORTRAN_CROSS_NAME := $(shell echo gfortran|sed '$(program_transform_cross_name
 
 #^L
 
-# This is in addition to the warning flags defined by default.
-# You can use it to enable/disable warnings globally or for specific
-# files, e.g.
-# fortran-warn = -Wno-strict-prototypes
-# fortran/arith.o-warn = -Wno-error
-#
-# We don't need these cheats, everything builds fine with all warnings
-# enabled and -Werror.
+# Use strict warnings for this front end.
+fortran-warn = $(STRICT_WARN) -Wno-error
 
 # These are the groups of object files we have.  The F95_PARSER_OBJS are
 # all the front end files, the F95_OBJS are the files for the translation
index b3114cac2c1c188e04912bbedda7bd9d2f6dba04..45978c04ddf0918a14b1d3c907b7f8608140a5a5 100644 (file)
@@ -186,7 +186,7 @@ var_element (gfc_data_variable * new)
       return MATCH_ERROR;
     }
 
-#if 0 // TODO: Find out where to move this message
+#if 0 /* TODO: Find out where to move this message */
   if (sym->attr.in_common)
     /* See if sym is in the blank common block.  */
     for (t = &sym->ns->blank_common; t; t = t->common_next)
index 58efec944fb615b86a5c555ef69999b9b3614ddf..8be1eb6f25276e7a7604c9d67bef40c99b29eb49 100644 (file)
@@ -218,7 +218,7 @@ interface_type;
 
 /* Symbol flavors: these are all mutually exclusive.
    10 elements = 4 bits.  */
-typedef enum
+typedef enum sym_flavor
 {
   FL_UNKNOWN = 0, FL_PROGRAM, FL_BLOCK_DATA, FL_MODULE, FL_VARIABLE,
   FL_PARAMETER, FL_LABEL, FL_PROCEDURE, FL_DERIVED, FL_NAMELIST
@@ -226,27 +226,27 @@ typedef enum
 sym_flavor;
 
 /* Procedure types.  7 elements = 3 bits.  */
-typedef enum
+typedef enum procedure_type
 { PROC_UNKNOWN, PROC_MODULE, PROC_INTERNAL, PROC_DUMMY,
   PROC_INTRINSIC, PROC_ST_FUNCTION, PROC_EXTERNAL
 }
 procedure_type;
 
 /* Intent types.  */
-typedef enum
+typedef enum sym_intent
 { INTENT_UNKNOWN = 0, INTENT_IN, INTENT_OUT, INTENT_INOUT
 }
 sym_intent;
 
 /* Access types.  */
-typedef enum
-{ ACCESS_UNKNOWN = 0, ACCESS_PUBLIC, ACCESS_PRIVATE
+typedef enum gfc_access
+{ ACCESS_UNKNOWN = 0, ACCESS_PUBLIC, ACCESS_PRIVATE
 }
 gfc_access;
 
 /* Flags to keep track of where an interface came from.
    4 elements = 2 bits.  */
-typedef enum
+typedef enum ifsrc
 { IFSRC_UNKNOWN = 0, IFSRC_DECL, IFSRC_IFBODY, IFSRC_USAGE
 }
 ifsrc;
@@ -431,12 +431,12 @@ typedef struct
   unsigned referenced:1;
 
   /* Mutually exclusive multibit attributes.  */
-  gfc_access access:2;
-  sym_intent intent:2;
-  sym_flavor flavor:4;
-  ifsrc if_source:2;
+  ENUM_BITFIELD (gfc_access) access:2;
+  ENUM_BITFIELD (sym_intent) intent:2;
+  ENUM_BITFIELD (sym_flavor) flavor:4;
+  ENUM_BITFIELD (ifsrc) if_source:2;
 
-  procedure_type proc:3;
+  ENUM_BITFIELD (procedure_type) proc:3;
 
 }
 symbol_attribute;
index 147a98f432d1f4b22f9a0108565fc1cf43fe40d0..8c9d342c5c2b34b14004c241f31359c99b281a41 100644 (file)
@@ -437,7 +437,7 @@ gfc_get_backend_locus (locus * loc)
 {
   loc->lb = gfc_getmem (sizeof (gfc_linebuf));    
 #ifdef USE_MAPPED_LOCATION
-  loc->lb->location = input_location; // FIXME adjust??
+  loc->lb->location = input_location; /* FIXME adjust?? */
 #else
   loc->lb->linenum = input_line - 1;
 #endif