Re: gcc-4.6.0-0.11.fc15.x86_64 breaks strcmp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 07, 2011 at 05:09:17PM +0100, Jim Meyering wrote:
> I suspect that there was a problem with .11, perhaps one of these:
> 
>     * Fri Mar 04 2011 Jakub Jelinek <jakub@xxxxxxxxxx> 4.6.0-0.12
>     - update from trunk
>       - PRs c++/46159, c++/46282, c++/47200, c++/47774, c++/47851, c++/47950,
>             c++/47974, c/47963, libstdc++/47913, middle-end/47283,
>             rtl-optimization/47925, target/47935, tree-optimization/47890
>     - rebuilt against ppl 0.11.2, reenable cloog-ppl Requires
> 
> because I can't reproduce that with the latest in rawhide,
> gcc-4.6.0-0.12.fc15.x86_64:

You forgot to #include <string.h>

>     $ cat k.c                                                                  :
>     #define STREQ(a,b) (strcmp((a),(b)) == 0)
> 
>     int
>     do_rm_rf (const char *path)
>     {
>       int r;
>       char *buf, *err;
> 
>       if (STREQ (path, "/"))
>         {
>           reply_with_error ("cannot remove root directory");
>           return -1;
>         }
>     }
>     $ gcc -O3 -c k.c -Werror=strict-overflow                                   :

I can reproduce it and have filed http://gcc.gnu.org/PR48022 for it.

	Jakub
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux