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]

Re: inline-asm/9570: [3.3/3.4 regression] Assember error with -finline-functions with g++-3.3


Synopsis: [3.3/3.4 regression] Assember error with -finline-functions with g++-3.3

State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Sat Mar 15 17:24:13 2003
State-Changed-Why:
    This is not a bug.  Your code assumes that the inline assembly will be emitted after the definition of foo(), but if foo() is inline (as a result of -finline-functions), it is deferred until EOF, so the inline assembly is emitted after the definition of i.  i lives in .bss, so you end up trying to emit executable code into .bss, which doesn't work very well.  You probably want to wrap that code in .pushsection ".text" and .popsection

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9570


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