This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/28306] const / pure call with ignored argument emitted.



------- Comment #1 from amylaar at gcc dot gnu dot org  2006-07-07 16:54 -------
Created an attachment (id=11850)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11850&action=view)
test case

The available source code for the functions allows the compiler to
see that the called functions are const.
This should be sufficient for the compiler to figure out the call is not
needed.
Likewise, the pure attributes should also be sufficient to figure this out.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28306


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]