bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: [bug-gnulib] proposed patch to allocsa, vasnprintf


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: [bug-gnulib] proposed patch to allocsa, vasnprintf for Tandem NSK (OSS)
Date: Wed, 11 Oct 2006 21:53:26 +0200
User-agent: KMail/1.9.1

Paul Eggert wrote:
> If you recompile with -D__CHAR_UNSIGNED__ those messages should go way.

Yes.

> > I'm attaching the non-optimized output. The optimized ('cc -O') output
> > is identical, plus these two errors:
> >
> > #error "Left shift of integers of type long long does not work!!"
> 
> This error is more troublesome.  Can you debug the program to find out
> exactly which values caused the problem?  You can insert printf
> statements to see exactly which shift messed up.  Possibly it is a
> compiler bug

This can be hard: if the bug goes away by inserting printf statements,
you can try to macroexpand the line
    test_integer_sshift(longlong,"long long",longlong_bitsize);
in main4() by hand and then set breakpoints in a debugger.

It's most likely a compiler bug. The question is whether you prefer
to abandon -O or to abandon 'long long'...

Bruno




reply via email to

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