[Top][All Lists]

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

Re: Failing of test 47: semantics.at:129 on HP-UX 10.20

From: Alexandre Oliva
Subject: Re: Failing of test 47: semantics.at:129 on HP-UX 10.20
Date: 17 Jun 2001 19:20:13 -0300
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor)

On Jun 11, 2001, Akim Demaille <address@hidden> wrote:

> It's very easy to set a guard against such compilers.  But once we
> detected the compiler cannot evaluate such expressions, what do we do?

Would it work with a switch/case statement instead of an array
declaration?  In this case, we could introduce a test to decide
whether to use negative-sized array declarations or duplicate case
labels in such compile tests, and introduce a macro that would expand
to a block statement that performed the test.

If neither negative-sized array nor duplicate case label can be used
to detect errors, we're in trouble, and we'll have to either fallback
to a run-time test (that wouldn't work in case of cross-compilers
anyway, but the most commonly used cross compiler isn't that broken
:-) or bail out reporting that the compiler cannot detect the correct
value for a compile-time test.

Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

reply via email to

[Prev in Thread] Current Thread [Next in Thread]