[Bug target/8028] [3.3/3.4 Regression] GCC 3.x __builtin_apply() passes wrong arguments
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 11 12:22:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8028
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Priority|P3 |P1
Summary|GCC 3.x __builtin_apply() |[3.3/3.4 Regression] GCC 3.x
|passes wrong arguments |__builtin_apply() passes
| |wrong arguments
Target Milestone|--- |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-11 12:22 -------
Should have been marked as a regression.
Here is a better example:
int foo(int n)
{
return n;
}
int bar(int n)
{
return n+1;
}
int quux(int n)
{
foo(0);
__builtin_return(__builtin_apply((void *)bar, __builtin_apply_args(), 64));
}
int main(int argc, char **argv)
{
if (quux(1)!=2)
abort();
}
More information about the Gcc-bugs
mailing list