This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15484] [tree-ssa] bool and short function arguments promoted to int
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2005 13:55:34 -0000
- Subject: [Bug tree-optimization/15484] [tree-ssa] bool and short function arguments promoted to int
- References: <20040517043308.15484.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-05-16 13:55 -------
Maybe the same problem results in
static inline bool wrap(bool f) { return f; }
bool bar(bool f)
{
return wrap(f);
}
producing
return (int) (bool) (int) (bool) (int) f;
(and more, if you add another wrap())
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15484