This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Fix bootstrap/42812
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pault at gcc dot gnu dot org, richard dot guenther at gmail dot com
- Date: Wed, 20 Jan 2010 02:09:43 -0500
- Subject: RFA: Fix bootstrap/42812
The problematic code was added with the patch for PR40011.
The attached patch changes the bitfield member so that it can
accommodate the -1 value.
Currently bootstrapping/regtesting on i686-pc-linux-gnu.
2010-01-20 Joern Rennecke <amylaar@spamcop.net>
PR bootstrap/42812
* gfortran.h (struct gfc_namespace) <resolved>: Change to signed
bitfield of width 2.
Index: gfortran.h
===================================================================
--- gfortran.h (revision 156055)
+++ gfortran.h (working copy)
@@ -1372,8 +1372,9 @@ typedef struct gfc_namespace
/* Set to 1 if namespace is an interface body with "IMPORT" used. */
unsigned has_import_set:1;
- /* Set to 1 if resolved has been called for this namespace. */
- unsigned resolved:1;
+ /* Set to 1 if resolved has been called for this namespace.
+ Holds -1 during resolution. */
+ signed resolved:2;
/* Set to 1 if code has been generated for this namespace. */
unsigned translated:1;