putting constants into per-function sections

2009-02-20 Thread Jaka Močnik
hello! I need to put symbol refs into memory, and in the same section as the code using them (a constant offset of that location from the code referencing it is required at assembly time). the first part is catered to by force_const_mem()ing the symbol ref as part of address legitimization. this

Re: possible buffer overflow in calls.c?

2009-02-11 Thread Jaka Močnik
Dne 11.02.2009 (sre) ob 16:31 +0100 je Paolo Bonzini zapisal(a): > > Assuming you have a copyright assignment, just send a patch to > > gcc-patches with the explanation. This is code which will never be used > > for any popular target. > > The patch is probably small enough that it does not requi

Re: possible buffer overflow in calls.c?

2009-02-11 Thread Jaka Močnik
Dne 10.02.2009 (tor) ob 17:14 -0800 je Ian Lance Taylor zapisal(a): > I don't quite see it. highest_outgoing_args_in_use is at least as large > as args_size.constant, and that counts the locate.size for each > argument. So it should always include the extra padding. > > That said, it would not b

possible buffer overflow in calls.c?

2009-02-10 Thread Jaka Močnik
hello! as this is my first time adding some noise to this list, let me briefly introduce myself: Jaka; member of a team porting gcc to the NEC SX architecture ( http://code.google.com/p/sx-gcc/ ). really close now to a working C compiler, only a few testcases still failing. however, I have a pro