[Bug 1051156] Re: GNU CC compiler
Edward Donovan
launchpad at numble.net
Sat Sep 15 05:36:30 UTC 2012
It looks like you're running Precise, so this is probably the GCC
package you're running.
** Package changed: gcc-defaults (Ubuntu) => gcc-4.6 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1051156
Title:
GNU CC compiler
Status in “gcc-4.6” package in Ubuntu:
New
Bug description:
There was a problem in GCC when I added some inline assembly.
as: BFD (GNU Binutils for Ubuntu) 2.22 assertion fail ../../bfd/elf.c:6715
as: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at ../../bfd/elfcode.h line 229 in bfd_elf32_swap_symbol_out
as: Please report this bug.
..................................................
inline assembly:
__asm__(
"movl $(%ebx+4), %eax;" /* getting the operand in %eax */
"movl $0, %ebx;" /* ebx is the counter iand initializing it */
"_start:"
"cmpl $0, %eax;"
"jz _final ;" /* if the comparison is 0 then jump to _final label */
"movl %eax, %ecx;"
"andl $1, %ecx;"
"cmpl $0, %ecx;"
"jz _skipadd;"
"addl $1, %ebx;" /* if the last bit is set increment the counter */
"_skipadd:"
"shrl $1, %eax;" /* dividing the number by 2 */
"jmp _start;"
"_final:" /* final location */
/* now we have to restore the registers */
"movl %eax, %ebx;" /* storing the result in %eax */
"ret;"
);
.........................................................................
System information
naveen at naveen-ubuntu:/$ uname -a
Linux naveen-ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1051156/+subscriptions
More information about the foundations-bugs
mailing list