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: C identifier lookup speedups, 2/2


>>>>> Mark Mitchell writes:

Mark> OK, I see what's going on.  There's really no good way to get the
Mark> previous behavior without a major overhaul of now pushdecl works, which
Mark> is not going to be fun.  

Mark> Zack, the problem is that you added:

Mark> DECL_CONTEXT (x) = current_function_decl;

Mark> to pushdecl.  That means that the goofy extern declaration in scope2.c
Mark> gets DECL_CONTEXT set here, which isn't right, w.r.t. the original
Mark> interpretation of the code.

Mark> I'll change the pedwarn to an error and move the test to noncompile;
Mark> it's not worth it to do hard work to save this bit of brokenness.

	The original code in c-decl.c mentioned that sometime one has to
do this.  Who uses this syntax?  Glibc?  Breakage on AIX probably means
breakage on PPC64 Linux as well.

David


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