This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR c/7622


Philippe Trebuchet <Philippe.Trebuchet@sophia.inria.fr> writes:

| 2434:
|       for (parent = DECL_CONTEXT (current_function_decl);
| 	   parent != NULL_TREE;
| 	   parent = get_containing_scope (parent))
| 	if (TREE_CODE (parent) == FUNCTION_DECL
| 	    && DECL_INLINE (parent) && DECL_EXTERNAL (parent))
| 	  {
| 	    DECL_INITIAL (decl) = 0;
| 	    goto exit_rest_of_compilation;
| 	  }
| 
| Shouldn't there be here a change of DECL_CONTEXT?

No.  I would suggest you read more about GNU C extensions and how the
compiler is structured.  Reading doc/*.texi may give you invaluable
information.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]