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: Fix for recent execute/20010123-1.c regression on ppc-eabi


kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:

|>     and in fact execute/20010123-1.c
|>     gives a case where it isn't: in
|> 
|>       struct s *t = & (struct s) { 3, "hey there" };
|> 
|> Hmm.  Two points:
|> 
|> (1) Is that even valid?  Isn't the thing that we're taking the address of
|> allowed to be in readonly memory since it's a constan?

Compound literals are lvalues.  They are not constants, but unnamed
objects.

Andreas.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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