Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

__SUNPRO_CC trouble

$
0
0
Hi everybody,

I have some trouble understanding why sc_interface.h in systemc 2.3 contains:

private:
	static sc_event m_never_notified;
#if __SUNPRO_CC == 0x520
	// Workaround for a bug in the Sun WorkShop 6 update 2 compiler.
	// An empty virtual base class can cause the optimizer to
	// generate wrong code.
	char dummy;
#endif
};

and nobody ran into this issue? Should __SUNPRO_CC be defined by default by the compiler on any platform?

with the right set of flags I get with gcc:

systemc-2.3.0/include/sysc/communication/sc_interface.h:72: error: "__SUNPRO_CC" is not defined


Is it an already reported bug?

To me the right code would be


private:
	static sc_event m_never_notified;
#if defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x520)
	// Workaround for a bug in the Sun WorkShop 6 update 2 compiler.
	// An empty virtual base class can cause the optimizer to
	// generate wrong code.
	char dummy;
#endif
};

Best regards,
Alexandre

Viewing all articles
Browse latest Browse all 595

Latest Images

Trending Articles



Latest Images