Enable .fill forward labels
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 6 Oct 2017 11:12:32 +0000 (13:12 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 9 Oct 2017 07:28:02 +0000 (09:28 +0200)
gas/ChangeLog:

2017-10-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* read.c (s_fill): Invoke expression instead of
get_known_segmented_expression.
* testsuite/gas/all/fill-1.s: New testcase.
* testsuite/gas/all/gas.exp: Run fill-1 testcase

gas/read.c
gas/testsuite/gas/all/fill-1.s [new file with mode: 0644]
gas/testsuite/gas/all/gas.exp

index 0b0b05803c07f516ac986f97d83cc871c0fc4676..1643c5cdcf15d7a7c0c03af32c89e29567ecbf82 100644 (file)
@@ -2202,7 +2202,7 @@ s_fill (int ignore ATTRIBUTE_UNUSED)
   md_cons_align (1);
 #endif
 
-  get_known_segmented_expression (&rep_exp);
+  expression (&rep_exp);
   if (*input_line_pointer == ',')
     {
       input_line_pointer++;
diff --git a/gas/testsuite/gas/all/fill-1.s b/gas/testsuite/gas/all/fill-1.s
new file mode 100644 (file)
index 0000000..92d495a
--- /dev/null
@@ -0,0 +1,5 @@
+       .text
+       .fill (2f-1f), 1, 0x90
+1:
+        nop
+2:
index 365cabc0a46f065019eb5f5cfc8a37e0e6497066..93e31dab4acad2019a2fc587f4204ee3938ed445 100644 (file)
@@ -486,3 +486,5 @@ run_dump_test "org-3"
 run_dump_test "org-4"
 run_dump_test "org-5"
 run_dump_test "org-6"
+
+gas_test "fill-1.s" "" "" "test .fill forward label references"