This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Can't get ASSERT() to work in ld script.
- To: Alan Modra <alan at linuxcare dot com dot au>
- Subject: Re: Can't get ASSERT() to work in ld script.
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 14 Feb 2001 16:45:53 -0800
- Cc: Grant Edwards <grante at visi dot com>, binutils at sources dot redhat dot com
- References: <Pine.LNX.4.21.0102151050040.18433-100000@front.linuxcare.com.au>
Alan Modra <alan@linuxcare.com.au> writes:
> I'm not so sure this makes sense really. Ian's example is rather
> contrived, and you probably don't want to assign the result of an ASSERT
> to anything. Should ASSERT_K move to ifile_p1?
Perhaps it should be in both. I want to be able to write something
like
symbol = expression ? 1 : assert ( 0, oh no );
I'm sure Steve had something in mind when I wrote it, but I don't know
what it was.
Ian