This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28306] const / pure call with ignored argument emitted.
- 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: 13 Jan 2008 18:22:35 -0000
- Subject: [Bug c/28306] const / pure call with ignored argument emitted.
- References: <bug-28306-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-01-13 18:22 -------
This works for 'const' functions because they stick on the function type as
well.
The attributes are only on the DECL and do not get merged and transfered to the
resulting function type of the COND_EXPR.
So this again asks for streamlining attributes on types vs. decls.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28306