+2011-08-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR middle-end/47727
+ * gcc.dg/pr47727.c: New.
+
+ PR target/47372
+ * gcc.dg/pr47372-1.c: New.
+ * gcc.dg/pr47372-2.c: Likewise.
+
2011-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47449
* gcc.dg/tls/pr47715-2.c: Likewise.
* gcc.dg/tls/pr47715-3.c: Likewise.
* gcc.dg/tls/pr47715-4.c: Likewise.
+ * gcc.dg/tls/pr47715-5.c: Likewise.
2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
+/* { dg-options "-O2 -fPIC -g" } */
+
+typedef struct FILE FILE;
+int _fwalk(int (*)(FILE *));
+int __sflush(FILE *);
+int
+fflush(FILE *fp)
+{
+ return (_fwalk(__sflush));
+}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
+/* { dg-options "-O2 -fPIC -g" } */
+
+typedef unsigned short ush;
+typedef ush Pos;
+extern ush prev[];
+void fill_window( unsigned more, unsigned m)
+{
+ unsigned n;
+ for (n = 0; n < (unsigned)(1<<15); n++) {
+ (prev+0x8000)[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
+ }
+ for (n = 0; n < 0x8000; n++) {
+ prev[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
+ }
+}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+typedef void (*func_ptr) (void);
+static func_ptr __CTOR_END__[1] = { (func_ptr) 0 };
+static void __attribute__((used))
+__do_global_ctors_aux (void)
+{
+ func_ptr *p;
+ for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
+ (*p) ();
+}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-require-effective-target tls } */
+
+extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
+;
+int *
+__errno_location (void)
+{
+ return &__libc_errno;
+}