This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stick addressable constants into the constant pool
- From: "Craig Powers" <enigma at hal-pc dot org>
- To: <gcc-patches at gcc dot gnu dot org>,<fortran at gcc dot gnu dot org>
- Date: Sat, 31 Jul 2004 00:42:16 -0500
- Subject: Re: stick addressable constants into the constant pool
- References: <20040730230653.GA27003@redhat.com>
Richard Henderson wrote:
>
> This did show up two testsuite bugs, which wrote to arguments that
> were given as constants. Which now gives a SEGV, since Linux puts
> the constant pool in read-only memory. I guess we'll have to see
> how much trouble this give us with dusty decks...
Based on my experience trying to track down a bug that occurred when
code I was working on accidentally redefined 0 via modifying a constant
argument (in DVF 5, I understand that later versions of CVF put
constants in read-only memory), I agree with Dale that a runtime failure
is an improvement.