This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: What assertions to use in libcpp?


On 16 June 2006 09:38, Laurynas Biveinis wrote:

> Hi,
> 
> I'm somewhat stuck with debugging GCC+Boehm's GC bootstrap failure. At
> one point cpplib starts producing cpp_string objects with len = 0.
> They crash cpp_interpret_string. I'd like to add some assertions to
> the code to catch zero-length cpp_strings as early as possible, but I
> don't see any assertions in libcpp - neither assert nor gcc_assert.
> What could I use there?


  Define a macro, call it libcpp_assert, then it doesn't matter if you equate
it to assert or gcc_assert; you're working on a branch, you can worry about
how to properly define it when you merge back to mainline and in the meantime
you can make it work however you like to be getting on with.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]