From 7edf3a2b436934a4d12c0118b38a69963eb4d1ba Mon Sep 17 00:00:00 2001 From: geoffk Date: Sun, 27 Jul 2003 01:48:11 +0000 Subject: * varasm.c (output_constant_def_contents): Use ASM_DECLARE_CONSTANT_NAME if defined. * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME. * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized objects get at least one byte to prevent assembler problems. (ASM_DECLARE_CONSTANT_NAME): New. Index: testsuite/ChangeLog * gcc.c-torture/compile/zero-strct-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69842 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/zero-strct-2.c | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/zero-strct-2.c (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f0e153cdf5..c06df55a540 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-07-26 Geoffrey Keating + + * gcc.c-torture/compile/zero-strct-2.c: New test. + 2003-07-25 Geoffrey Keating * gcc.dg/intermod-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/zero-strct-2.c b/gcc/testsuite/gcc.c-torture/compile/zero-strct-2.c new file mode 100644 index 00000000000..0f97f7d12b2 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/zero-strct-2.c @@ -0,0 +1,2 @@ +struct { } foo = { }; +void * bar(void) { return &foo; } -- cgit v1.2.1