This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44330] __builtin_clz is behaving differently with different optimization levels
- From: "eteran at alum dot rit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2010 07:07:42 -0000
- Subject: [Bug c++/44330] __builtin_clz is behaving differently with different optimization levels
- References: <bug-44330-11877@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from eteran at alum dot rit dot edu 2010-05-30 07:07 -------
I just noticed that the documentation for __builtin_clz and __builtin_ffsl say
the result is undefined if x is 0. Therefore, this bug is invalid, sorry for
the false bug report.
--
eteran at alum dot rit dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44330