aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-12-18 22:49:55 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-12-18 21:49:55 +0000
commit64270ab0561fce7eaa80684e0c71ee8184fbcf87 (patch)
treef12c29f73b3cb8794ea74aeb7771e9fe58367147 /gcc/testsuite
parent36f5ada19abb481dff1a9e973f20e4dc77b8b979 (diff)
downloadgcc-64270ab0561fce7eaa80684e0c71ee8184fbcf87.zip
gcc-64270ab0561fce7eaa80684e0c71ee8184fbcf87.tar.gz
gcc-64270ab0561fce7eaa80684e0c71ee8184fbcf87.tar.bz2
re PR middle-end/15486 (-fdata-sections moves common vars to .bss)
PR middle-end/15486 * varasm.c (asm_emit_uninitialised): Return early if a custom section is requested. (assemble_variable): Revert 2002-03-15 patch. From-SVN: r92365
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/fdata-sections-1.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5380e99..ab2a082 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * gcc.dg/fdata-sections-1.c: New test.
+
2004-12-18 Roger Sayle <roger@eyesopen.com>
PR middle-end/18548
diff --git a/gcc/testsuite/gcc.dg/fdata-sections-1.c b/gcc/testsuite/gcc.dg/fdata-sections-1.c
new file mode 100644
index 0000000..d2b2b58
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/fdata-sections-1.c
@@ -0,0 +1,9 @@
+/* PR middle-end/15486 */
+/* Origin: Jonathan Larmour <jifl-bugzilla@jifvik.org> */
+
+/* { dg-do compile { target *-*-linux* } } */
+/* { dg-options "-fdata-sections" } */
+
+int x;
+
+/* { dg-final { scan-assembler "comm" } } */