diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-05-23 18:11:04 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-05-23 18:11:04 +0000 |
commit | 5ff225fc29052e61351a8e74a549ad5d1e4f5518 (patch) | |
tree | 8d96cee5f637f07d622e051d659a07f1f11da2df /gcc/testsuite | |
parent | 0f72964f10dd338c59e1ea8e8eee3a966154540d (diff) | |
download | gcc-5ff225fc29052e61351a8e74a549ad5d1e4f5518.zip gcc-5ff225fc29052e61351a8e74a549ad5d1e4f5518.tar.gz gcc-5ff225fc29052e61351a8e74a549ad5d1e4f5518.tar.bz2 |
varasm.c (make_decl_rtl): Don't allow weak variables to be placed in common.
* varasm.c (make_decl_rtl): Don't allow weak variables to be
placed in common.
* gcc/testsuite/gcc.dg/weak-8.c: New test.
From-SVN: r53798
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/weak-8.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 573f339..fb03406 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-05-23 Mark Mitchell <mark@codesourcery.com> + + * gcc/testsuite/gcc.dg/weak-8.c: New test. + Thu May 23 11:09:26 2002 J"orn Rennecke <joern.rennecke@superh.com> * gcc.dg/weak-2.c: Allow optional leading underscore diff --git a/gcc/testsuite/gcc.dg/weak-8.c b/gcc/testsuite/gcc.dg/weak-8.c new file mode 100644 index 0000000..9cfb517 --- /dev/null +++ b/gcc/testsuite/gcc.dg/weak-8.c @@ -0,0 +1,10 @@ +/* { dg-do assemble } */ + +/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ +/* { dg-do assemble { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ + +__attribute__ ((weak)) int i; + +int f() { + return i; +} |