|
From: | Bob Friesenhahn |
Subject: | Re: Arithmetic Shift |
Date: | Fri, 10 Dec 2010 21:39:17 -0600 (CST) |
User-agent: | Alpine 2.01 (GSO 1266 2009-07-14) |
On Fri, 10 Dec 2010, Andrew W. Nosenko wrote:
Excuse me? Why do you think that preprocessor should match the behavior of compiler???
Excuse me? Why do you think that the behavior of the compiler should be consistent? :-)
Why, why system's /usr/bin/cpp that come from GCC should match to Clang's behavior? Or ICC's behavior? Remember: Accordingly to your logic, if it doesn't match, then it is invalid. Why? And if ICC and Clang interpret -1 >> 1 differently, then it renders GCC's CPP constantly invalid?
Since you mention Clang (LLVM-based) then it is worth pointing out that final code generation may be delayed and so it is possible that the CPU type finally selected may not match the CPU type on which the original tests were executed. Part of the behavior depends on the CPU.
Bob -- Bob Friesenhahn address@hidden, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
[Prev in Thread] | Current Thread | [Next in Thread] |