PR gas/14315
* gas/elf/common1.d: New file.
* gas/elf/common1.l: Likewise.
* gas/elf/common1.s: Likewise.
* gas/elf/common2.d: Likewise.
* gas/elf/common2.l: Likewise.
* gas/elf/common2.s: Likewise.
* gas/elf/elf.exp: Run common1 and common2.
+2012-06-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/14315
+ * gas/elf/common1.d: New file.
+ * gas/elf/common1.l: Likewise.
+ * gas/elf/common1.s: Likewise.
+ * gas/elf/common2.d: Likewise.
+ * gas/elf/common2.l: Likewise.
+ * gas/elf/common2.s: Likewise.
+
+ * gas/elf/elf.exp: Run common1 and common2.
+
2012-06-29 Alan Modra <amodra@gmail.com>
* gas/lns/lns.exp (lns-common-1): Add crx to alt target list.
2012-06-29 Alan Modra <amodra@gmail.com>
* gas/lns/lns.exp (lns-common-1): Add crx to alt target list.
--- /dev/null
+#name: weak and common directives
+#error-output: common1.l
--- /dev/null
+[^:]*: Assembler messages:
+[^:]*: Error: symbol `foobar' can not be both weak and common
--- /dev/null
+ .weak foobar
+ .comm foobar,30
--- /dev/null
+#name: common and weak directives
+#error-output: common2.l
--- /dev/null
+[^:]*: Assembler messages:
+[^:]*: Error: symbol `foobar' can not be both weak and common
--- /dev/null
+ .comm foobar,30
+ .weak foobar
+ run_dump_test "common1"
+ run_dump_test "common2"
+
load_lib gas-dg.exp
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
load_lib gas-dg.exp
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""