+2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/34970
+ * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
+
2008-01-25 Joseph Myers <joseph@codesourcery.com>
PR other/31955
/* Operating system specific defines to be used when targeting GCC for
hosting on Windows32, using a Unix style C library and tools.
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- 2004, 2005, 2007
+ 2004, 2005, 2007, 2008
Free Software Foundation, Inc.
This file is part of GCC.
ASM_OUTPUT_LABEL ((STREAM), (NAME)); \
} while (0)
+/* Output a reference to a label. Fastcall function symbols
+ keep their '@' prefix, while other symbols are prefixed
+ with USER_LABEL_PREFIX. */
+#undef ASM_OUTPUT_LABELREF
+#define ASM_OUTPUT_LABELREF(STREAM, NAME) \
+do { \
+ if ((NAME)[0] != FASTCALL_PREFIX) \
+ fputs (USER_LABEL_PREFIX, (STREAM)); \
+ fputs ((NAME), (STREAM)); \
+} while (0)
+
\f
/* Emit code to check the stack when allocating more than 4000
bytes in one go. */
/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* } } */
+/* { dg-options "-std=gnu89" } */
void
__attribute__ ((fastcall))
void
__attribute__ ((fastcall))
f4(int x, int y, int z) { }
+
+/* Scan for global label with correct prefix and suffix. */
+/* { dg-final { scan-assembler "\.globl\[ \t\]@f4@12" } } */