[mpich-discuss] [PATCH] Use attribute layout_compatible for pair types

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 9 14:57:14 CST 2013


On Wed, Jan 9, 2013 at 10:00 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Jan 9, 2013 12:56 PM, "Dmitri Gribenko" <gribozavr at gmail.com> wrote:
>> I don't think GCC isn't smart enough to do the same.  Do you compile
>> with optimization?
>
> Dmitri, as discussed in the other thread, it's smart enough, but only when
> optimization is turned on. There's no reason to needlessly make debug builds
> heavier than necessary. This is not a big deal either way.

Oh, now I see -- in debug builds it still emits these.  Thank you for fixing!

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the discuss mailing list