This is the mail archive of the gcc-patches@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: [tree-ssa] -fno-merge-constants vs. string literals


rth wrote:

> > The side-effect I'm interested in is related to -fmudflap, where
> > I'd like to force -fno-merge-constants for similar reasons.
> 
> Why?  Seems like you'd want the constants to still be merged
> regardless of bounds checking.

I believe keeping source-level string literals apart will improve the
error-checking potential of the mudflap runtime.  Consider for example
erroneous negative indexes on a merged string.  Actually, this
suggests that -fmudflap would benefit from some extra padding in the
varasm.c rendering of data/bss/constant objects.


- FChE


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