[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#624854: gcc-4.6: inlining issues when __attribute__((flatten)) is used



Package: gcc-4.6
Version: 4.6.0-6
Severity: important


gcc-4.6 has a regression wrt flattening (__attribute__((flatten))) that
makes it disregard the fact that some functions aren't inlineable.

This causes build failures if you call functions with va_args (this is
PR#48731 upstream).

It also means that in large compilation units with functions properly
marked as "noinline" the attribute noinline is disregarded leading to
completely awful build times (tens of minutes and 4Go of ram and the
build fails with ENOMEM).

The bug is fixed upstream please backport it, it's r172963 in the
gcc-4.6 branch.


as a side note: gcc-4.6 in Debian reports itself as 4.6.1 which is
annoying because it's a 4.6.0 + patches and this issue is fixed in the
4.6 branch that will become 4.6.1 which prevent disabling __flatten__
for gcc 4.6.0 only :/



Reply to: