Kees Cook wrote: > > ---------- output start ---------- > > const : literal > > not const : const char * > > not const : const char [] > > const : const char * const > > What version of gcc did you use? I don't get the last as const, for > some reason. And as Dan mentions, shouldn't const char[] be detected > as const too?
This worked on gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) with -On (where n != 0), but didn't work on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 . Oops... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/