[MPlayer-dev-eng] [PATCH] Disable additional optimization if compiler doesn't support __attribute__((used))
Guillaume POIRIER
poirierg at gmail.com
Sun Jun 10 11:13:43 CEST 2007
Hi,
On 6/10/07, Zuxy Meng <zuxy.meng at gmail.com> wrote:
>
> Just curious, why use attribute_used and the MANGLE macro instead of
> mentioning such variables to a constraint? For gcc 2.95 compatibility?
BTW, I always wondered what MANGLE was supposed to do. What you just
wrote makes me think that MANGLE is a way to access, within an ASM
block, variables that aren't in the IN/OUT/Clobber list of the ASM
block.
Considering that GCC 2.95 allows only a limited amount of IN/OUT, I
can understand why such a "hack" (it's a hack, right?) has been used.
Now, it's a bit of a bummer that keeping GCC-2.95 compatibility means
no ICC compatibility. Native ICC support would be great for speed
comparison, and ensure that we don't depend on too many GNUism, which
Rich hates so much.
Guillaume
--
Subversion has been the most pointless project ever started
-- Linus Torvalds
More information about the MPlayer-dev-eng
mailing list