[Bug target/23828] local calling convention not used when using --combine
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 15 20:12:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 20:12 -------
Confirmed, reduced testcase:
file1.c:
int g(void);
int main(void)
{
return g();
}
----
file2.c:
static int f(int a, int b, int c) __attribute__((noinline));
static int f(int a, int b, int c)
{
return a+b+c;
}
int g(void)
{
return f(1,2,3);
}
----
This was discussed on IRC on my suggesstion in comment #8 does not work well but replacing
DECL_CONTEX with decl_function_context should work.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Component|middle-end |target
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-15 20:12:27
date| |
Summary|local calling convention not|local calling convention not
|used when using -fwhole- |used when using --combine
|program --combine |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23828
More information about the Gcc-bugs
mailing list