2010-06-03 Richard Guenther <rguenther@suse.de>
PR lto/41921
* lib/lto.exp: Always load gcc.exp.
(lto-obj): For C source files invoke gcc_target_compile.
* g++.dg/lto/
20100603-1_0.C: New testcase.
* g++.dg/lto/
20100603-1_1.c: Likewise.
From-SVN: r160226
+2010-06-03 Richard Guenther <rguenther@suse.de>
+
+ PR lto/41921
+ * lib/lto.exp: Always load gcc.exp.
+ (lto-obj): For C source files invoke gcc_target_compile.
+ * g++.dg/lto/20100603-1_0.C: New testcase.
+ * g++.dg/lto/20100603-1_1.c: Likewise.
+
2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/43688
--- /dev/null
+/* { dg-lto-do link } */
+
+extern "C" {
+ typedef struct {} CvImage;
+ extern CvImage* Cv_ImageNew(void);
+}
+void __attribute__((noinline,noclone))
+_Raytrace(CvImage* LImage) { __asm volatile (""); }
+int main(int LArgC, char** LArgV)
+{
+ CvImage* LImage = Cv_ImageNew();
+ _Raytrace(LImage);
+}
+
--- /dev/null
+typedef struct {} CvImage;
+CvImage* Cv_ImageNew(void) { }