This is the mail archive of the gcc-bugs@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]

[Bug c/14516] [3.4/3.5 regression] -fleading-underscore does not work correctly for file static variables


------- Additional Comments From geoffk at gcc dot gnu dot org  2004-05-29 01:44 -------
This appears to be a new manifestation of the old bug that

int foo()
{
  static int k asm ("k");
  return k;
}

when compiled with -fleading-underscore calls the variable '_k' (but not if you use any assembler name 
*other than* 'k').

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|geoffk at gcc dot gnu dot   |
                   |org                         |
         AssignedTo|unassigned at gcc dot gnu   |geoffk at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14516


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