hollisb at us dot ibm dot com
2005-04-26 19:57:42 UTC
$ cat<<EOF>testcase.S
label1:
.space FOO
label2:
EOF
$ gcc -c testcase.S
asmtest.S: Assembler messages:
asmtest.S:3: Error: .space specifies non-absolute value
That error message is expected. Now try this:
$ cat<<EOF>testcase.S
label1:
.space FOO*4
label2:
EOF
$ gcc -c testcase.S
$ echo $?
0
$ nm testcase.o
U FOO
0000000000000000 t label1
0000000000000000 t label2
I should get the same build error as before. This behavior occurs with * and <<,
but not + (i.e. FOO+4 fails to build, but FOO<<4 succeeds).
I've observed this with:
binutils gcc
x86-64 2.15 3.3.5
ppc64 2.15 3.4.2
--
Summary: .space with non-absolute value
Product: binutils
Version: 2.15
Status: NEW
Severity: minor
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hollisb at us dot ibm dot com
CC: bug-binutils at gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=876
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
label1:
.space FOO
label2:
EOF
$ gcc -c testcase.S
asmtest.S: Assembler messages:
asmtest.S:3: Error: .space specifies non-absolute value
That error message is expected. Now try this:
$ cat<<EOF>testcase.S
label1:
.space FOO*4
label2:
EOF
$ gcc -c testcase.S
$ echo $?
0
$ nm testcase.o
U FOO
0000000000000000 t label1
0000000000000000 t label2
I should get the same build error as before. This behavior occurs with * and <<,
but not + (i.e. FOO+4 fails to build, but FOO<<4 succeeds).
I've observed this with:
binutils gcc
x86-64 2.15 3.3.5
ppc64 2.15 3.4.2
--
Summary: .space with non-absolute value
Product: binutils
Version: 2.15
Status: NEW
Severity: minor
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hollisb at us dot ibm dot com
CC: bug-binutils at gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=876
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.