Re: order of -D and -U is significant

2009-08-03 Thread Paolo Bonzini
On 08/03/2009 03:52 PM, Unruh, Erwin wrote: 2) Is this a bug? I think it's a bug in the specification. User-specified CFLAGS are always passed last in the Makefiles (at least for Automake, but it is a good practice in general) so that the user can override options like -D, -U, -O, -g, -f, -m

Re: How to set the alignment

2009-08-03 Thread Mohamed Shafi
2009/8/3 Jim Wilson : > On 08/03/2009 02:14 AM, Mohamed Shafi wrote: >> >> short - 2 bytes >> i am not able to implement the alignment for short. >> The following is are the macros that i used for this >> #define PARM_BOUNDARY 8 >> #define STACK_BOUNDARY 64 > > You haven't explained what the actual

Re: [lambda] Segmentation fault in simple lambda program

2009-08-03 Thread John Freeman
I haven't been following GCC, so I need to thank Jason for forwarding this issue to me. I just read through the messages on the list, and had some more comments: +/* relayout again -- to allow for implicit + * parameters to have been added to the capture if it was a + * 'default ca

Re: [lambda] Segmentation fault in simple lambda program

2009-08-03 Thread John Freeman
Jason Merrill wrote: Experimenting with a working version and seeing it's issues will be useful to me. To others to maybe. With concepts gone from C++0x and being reworked for C++15(?) maybe support for polymorphic lambdas could be reintroduced? -- though I'm sure its much too late for that an

Re: [lambda] Segmentation fault in simple lambda program

2009-08-03 Thread Jason Merrill
On 08/03/2009 09:36 PM, Adam Butcher wrote: Thanks. I haven't any copyright assignments on file -- this is my first dabbling with gcc and I've been doing it mostly to experiment with C++ lambda support and non-standard extensions such as polymorphic lambda support. OK. We'll need an assignm

Tree aliasing

2009-08-03 Thread Andrew Pinski
I was improving tree aliasing for pointers by adding support a+1 and a not aliasing. But I ran into a bug in the aliasing where: /* If both references are through the same type, they do not alias if the accesses do not overlap. This does extra disambiguation for mixed/pointer accesses

[cxx0x-lambdas] Bootstrap fails

2009-08-03 Thread Pedro LamarĂ£o
Revision 150382 of the cxx0x-lambdas-branch fails to bootstrap with the following error: gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength

[gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-03 Thread Pedro LamarĂ£o
Current trunk (revision 150381) fails to bootstrap with the following configuration: [pedro.lama...@larissa trunk-obj]$ ../trunk/configure --prefix=/opt/gcc-4.5 --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-

Re: extern variable

2009-08-03 Thread Jim Wilson
On Tue, 2009-08-04 at 00:06 +0530, sumanth wrote: > > mycompiler-gcc -g file1.c file2.c > > mycompiler-gdb a.out > >> when i print "a" in file1.c , i am able to see value 10; > >> when i print "a" int file2.c, it prints , no symbol defined. > Instead I can access it with " print _a" This so

Re: In pt.c, find_parameter_packs_r, should TYPE_P(t) assure TYPE_CONTEXT(t)?

2009-08-03 Thread Jason Merrill
On 08/03/2009 08:32 AM, Larry Evans wrote: While trying to track down the cause of: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40092 I encountered what may be an error. In pt.c around line 2493, there's this: if (TYPE_P (t) ) cp_walk_tree (&TYPE_CONTEXT (t), &find_parameter_packs_r, ppd, ppd

Re: MELT tutorial on the wiki

2009-08-03 Thread Basile STARYNKEVITCH
Tom Tromey wrote: Basile> Thanks for the bug report. In fact, melt_generated_dir should be the Basile> same as melt_source_dir Basile> I just committed rev 150330 of MELT branch to fix that. Tom, could you Basile> be patient & kind enough to try again! Many thanks! Thanks, that worked. Now to a

Re: extern variable

2009-08-03 Thread sumanth
Hi Jim, that seems to be a promising solution. If I keep the prefix "_" for a global variable , there is a problem in accessing it in gdb...let me explain you with an example Eg: file1.c int a = 10; int main() { int b =10; int c; c = add( a , b); return 0; } file2.c int add( int x, int y) { r

Re: [lambda] Segmentation fault in simple lambda program

2009-08-03 Thread Jason Merrill
On 07/29/2009 06:27 AM, Adam Butcher wrote: Esben Mose Hansen writes: I am completely new to gcc hacking, just dying to get lambda into gcc 4.5 :) Me too on both counts! Great! Please feel free to ask me any questions you have directly. Do you have copyright assignments on file yet? I

Re: How to set the alignment

2009-08-03 Thread Jim Wilson
On 08/03/2009 02:14 AM, Mohamed Shafi wrote: short - 2 bytes i am not able to implement the alignment for short. The following is are the macros that i used for this #define PARM_BOUNDARY 8 #define STACK_BOUNDARY 64 You haven't explained what the actual problem is. Is there a problem with glo

Re: MELT tutorial on the wiki

2009-08-03 Thread Tom Tromey
Basile> Thanks for the bug report. In fact, melt_generated_dir should be the Basile> same as melt_source_dir Basile> I just committed rev 150330 of MELT branch to fix that. Tom, could you Basile> be patient & kind enough to try again! Many thanks! Thanks, that worked. Now to actually try MELT...

Re: MELT tutorial on the wiki

2009-08-03 Thread Tom Tromey
> "Paolo" == Paolo Bonzini writes: Paolo> MELT looks extremely cool! You may want to use this too, however: Paolo> http://lwn.net/Articles/315686/ Yes, I'm also looking at Coccinelle and TreeHydra. As this is strictly a spare-time project, I am trying to find the approach that requires the

Re: MELT tutorial on the wiki

2009-08-03 Thread Tom Tromey
> "Dave" == Dave Korn writes: Dave> Were you using a --prefix? The PPL checks (by design I think) only Dave> look for PPL in your prefix. Dave> I do not know it; I have merely observed the behaviour. It may Dave> even not be by design for all I know, though I suspect it makes Dave> sense

Re: extern variable

2009-08-03 Thread Jim Wilson
On Mon, 2009-08-03 at 09:44 +0530, sumanth wrote: >How can i make sure my tool chain knows the difference between > global variable r0 and register r0. The simple solution is to either add a prefix to variable names, or to add a prefix to register names. In ELF, the convention is to not

PR33113

2009-08-03 Thread Jack Howarth
Ira and Dorit, Is there any chance that PR33113 will be addressed for gcc 4.5? If I recall correctly, it was one of the last major issues with vectorization in gfortran that wasn't addressed yet. Dorit made the following comment back in Aug 2008... >From: Dorit Nuzman >Date: Tue, 12 Aug 2008 1

order of -D and -U is significant

2009-08-03 Thread Unruh, Erwin
In current gcc the order of options -D and -U is significant. The Single Unix(r) Specification explicitly specifies that the order should not matter for the c89 command. It reads (cited from version 2, which is ten years old): -D name[=value] Define name as if by a C-language #define directive. I

Re: How to install multi gcc package (version 4.1.2 & 3.2.3)?

2009-08-03 Thread Gerald Pfeifer
On Mon, 3 Aug 2009, Nguyen Quang Minh wrote: > I'm a C++ developer on Linux. I want you show me the ways to install > both GCC 4.1.2 and GCC 3.2.3 on my Linux. This question is out of scope for this mailing list which is about the development _of_ GCC, not the development _with_ GCC. I believe yo

In pt.c, find_parameter_packs_r, should TYPE_P(t) assure TYPE_CONTEXT(t)?

2009-08-03 Thread Larry Evans
While trying to track down the cause of: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40092 I encountered what may be an error. In pt.c around line 2493, there's this: if (TYPE_P (t) ) cp_walk_tree (&TYPE_CONTEXT (t), &find_parameter_packs_r, ppd, ppd->visited); However, gdb sho

Re: GCC 4.3.4 release candidate available

2009-08-03 Thread Matthias Klose
On 27.07.2009 18:12, Richard Guenther wrote: A release candidate for the GCC 4.3.4 is now available at ftp://gcc.gnu.org/pub/gcc/snapshots/4.3.4-RC-20090727 I plan to roll out the final release at the beginning of next week if there are no major problems reported. testsuite doesn't show regr

How to install multi gcc package (version 4.1.2 & 3.2.3)?

2009-08-03 Thread Nguyen Quang Minh
Hi you! I'm a C++ developer on Linux. I want you show me the ways to install both GCC 4.1.2 and GCC 3.2.3 on my Linux. Thank you very much!

How to set the alignment

2009-08-03 Thread Mohamed Shafi
Hello all, I am doing a private port in GCC 4.4.0. For my target the following are the alignment requirements: int - 4 bytes short - 2 bytes char - 1 byte pointer - 4 bytes stack pointer - 4 bytes i am not able to implement the alignment for short. The following is are the macros that i used fo