Commit f5f92f6d by Richard Guenther Committed by Richard Biener

re PR lto/41921 (Cross language don't work with typedef unnamed structs)

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
parent 0c1b8fe9
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
......
/* { 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);
}
typedef struct {} CvImage;
CvImage* Cv_ImageNew(void) { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment