On Wed, Sep 9, 2009 at 9:10 PM, John David Anglin<dave@xxxxxxxxxxxxxxxxxx> wrote: >> On Wed, Sep 9, 2009 at 11:16 AM, John David >> Anglin<dave@xxxxxxxxxxxxxxxxxx> wrote: >> >> The workaround is to cast both long. I tested this and it works. I'll >> >> submit this to debian as the fix. >> > >> > This is simplest fix. >> >> Yes, it would appear that strace/gdb (applications that ptrace >> addresses from another process) are most likely applications to suffer >> from this problem, and it may be easier to work around the problem >> there instead of in the compiler. > > Actually, it probably would not be too hard to disable canonicalization > with a compiler option. No, it's not neccessary. This way I simply have to audit the incorrect comparisons of a inferior's function pointer to a constant. If I were to disable canonicalization I'd have to audit the entire compilation unit to prove I haven't broken any valid function pointer comparisons. Cheers, Carlos. -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html