GNU assembler

GNU assembler

Post by Matt McIntos » Wed, 16 Oct 1996 04:00:00

Please help, I have been over this thing so many time and not sure
where else to look...

here is the problem...

Linux 2.0.21 Upgraded from 1.2.8 Slakware...

cd /usr/src/linux
make depend
gcc -I/usr/src/linuxelf-2.0.21/include -O2 -fomit-frame-pointer -o
scripts/mkdep scripts/mkdep.c
as: unrecognized option '-Qy'
make: *** [scripts/mkdep] error 1

Now i know that if i say :

gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs
gcc version 2.7.2

---- AND ----

as --version
GNU assembler version (i486-linux)

So what have i done wrong? Did i miss a library to upgrade?

here is where I got the upgrade from:

Please if you can e-mail reply but if you can't or don't i will
be back to check....



1. GNU assembler to Solaris assembler

I would like to covert one inline assembly function included in SPARC
Linux to Solaris assembler syntax. The function is written in GNU
assembler syntax.
Two syntax errors are reported due to pseudo operators when I compile
using gcc on Solaris.

inline void spin_lock(unsigned char *lock)
  __asm__ __volatile__("
1:  ldstub  [%0], %%g2
  orcc  %%g2, 0x0, %%g0
  bne,a 2f
   ldub [%0], %%g2
  .text 2                         <==
2:  orcc  %%g2, 0x0, %%g0
  bne,a 2b
   ldub [%0], %%g2
  b,a 1b
        .previous                       <==
" :
  : "r" (lock)
  : "g2", "memory", "cc");

/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 18: error: quoted-string operand required
/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 23: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/cc030Gpt.s", line 23: error: statement syntax

How can I convert the function to Solaris assembler syntax? In
particular I cannot find '.previous' pseudo operator in GNU assembler
info manual.
I have confirmed that gcc + GNU assembler can compile this function on

    <--------->    Computational Science Laboratory
                   The Institute of Physics and Chemistry(RIKEN)
    >---------<    Susukita Ryutaro

2. atapi zip100

3. answer of ifconfig's result.

4. HELP - need basic info on GNU assembler

5. Locking files

6. GNU assembler

7. External Serial Modem on a 16450 UART

8. GNU assembler release now folded into "binary utilities" package

9. GNU Assembler


11. Gnu-Assembler documentation?

12. help with as , the GNU assembler !