-Winvalid-pch semantics

2008-01-30 Thread Rodolfo Lima
Hi, I'd like to know if the current behaviour of -Winvalid-pch is the intended one, mainly because gcc prints the message saying that the pch is invalid even if later it finds a valid one. Suppose that one project builds the pch for several build types (debug, release...) in the same directory. In

Bultins functions execl... for mingw

2008-01-30 Thread Kai Tietz
Hi, I noticed, that the builtin functions for mingw (at least for 64-bit Windows) are not correct in return type. See msdn http://msdn2.microsoft.com/en-us/library/xwy0k9bb.aspx. The return type for those targets (i?86-pc-mingw32 and x86_64-pc-mingw32) is a intptr_t, but a 'int' for other targe

Re: Bultins functions execl... for mingw

2008-01-30 Thread Jakub Jelinek
On Wed, Jan 30, 2008 at 02:29:15PM +0100, Richard Guenther wrote: > c) Supressing this builtin on mingw64 > > ... should be the correct thing. You could just call disable_builtin_function ("execl") and similarly for other exec* family functions from i386/mingw-c.c Jakub

Re: Bultins functions execl... for mingw

2008-01-30 Thread Kai Tietz
Jakub Jelinek wrote on 30.01.2008 14:59:34: > On Wed, Jan 30, 2008 at 02:29:15PM +0100, Richard Guenther wrote: > > c) Supressing this builtin on mingw64 > > > > ... should be the correct thing. > > You could just call disable_builtin_function ("execl") and similarly > for other exec* family fun

Re: Bultins functions execl... for mingw

2008-01-30 Thread Richard Guenther
On Jan 30, 2008 2:20 PM, Kai Tietz <[EMAIL PROTECTED]> wrote: > Hi, > > I noticed, that the builtin functions for mingw (at least for 64-bit > Windows) are not correct in return type. See msdn > http://msdn2.microsoft.com/en-us/library/xwy0k9bb.aspx. > The return type for those targets (i?86-pc-min

GIMPLE nodes to ASM by using builtins

2008-01-30 Thread Thomas A.M. Bernard
Hello I generate a GIMPLE form extended with new nodes coming from language extensions. I would like to generate assembly code directly from those nodes. I was thinking of using the GCC builtins system. But I cannot find the entry point (hook and file) within the files to do so. (GCC 4.1 vers

Re: GIMPLE nodes to ASM by using builtins

2008-01-30 Thread Ian Lance Taylor
"Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: > I generate a GIMPLE form extended with new nodes coming from language > extensions. I would like to generate assembly code directly from those > nodes. I was thinking of using the GCC builtins system. But I cannot > find the entry point (hook and

Re: GIMPLE nodes to ASM by using builtins

2008-01-30 Thread Thomas A.M. Bernard
When you mean scheduling of the instruction, does it mean that the register allocation for ASM is not that advanced than it is for a builtin ? For instance the use of register classes, for the instruction. I basically would like to translate a gimple node which holds information about a featur

Re: GIMPLE nodes to ASM by using builtins

2008-01-30 Thread Ian Lance Taylor
"Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: > When you mean scheduling of the instruction, does it mean that the > register allocation for ASM is not that advanced than it is for a > builtin ? For instance the use of register classes, for the > instruction. Register allocation for an asm us

Confirm Your E-mail Address

2008-01-30 Thread ncsu . edu
Dear User, We wrote to you on 25th January 2008 advising that you change the password on your account in order to prevent any unauthorised account access following the network intrusion we previously communicated. Whilst we have found the vulnerability that caused this issue, and have instigated

Re: MIPS failure in gcc.c-torture/execute/20040709-2.c...

2008-01-30 Thread Richard Sandiford
David Daney <[EMAIL PROTECTED]> writes: > From Fri Jan 25 06:57:52 UTC 2008 (revision 131816) > > Configured thusly: > > ../trunk/configure --with-arch=r5000 --disable-java-awt --without-x > --enable-__cxa_atexit --disable-jvmpi --disable-libgomp --disable-static > --enable-languages=c,c++,java

MIPS failure in gcc.c-torture/execute/20040709-2.c...

2008-01-30 Thread David Daney
From Fri Jan 25 06:57:52 UTC 2008 (revision 131816) Configured thusly: ../trunk/configure --with-arch=r5000 --disable-java-awt --without-x --enable-__cxa_atexit --disable-jvmpi --disable-libgomp --disable-static --enable-languages=c,c++,java --disable-fixed-point --enable-checking=release --w

Re: MIPS failure in gcc.c-torture/execute/20040709-2.c...

2008-01-30 Thread David Daney
Richard Sandiford wrote: David Daney <[EMAIL PROTECTED]> writes: From Fri Jan 25 06:57:52 UTC 2008 (revision 131816) Configured thusly: ../trunk/configure --with-arch=r5000 --disable-java-awt --without-x --enable-__cxa_atexit --disable-jvmpi --disable-libgomp --disable-static --enable-la

Contributing to cross-compiling

2008-01-30 Thread Rodrigo Dominguez
Hi, I am PhD student in Computer Engineering. I would like to contribute to GCC and at the same time learn more about cross-compilers. I have taken a couple of compiler classes and I can program in C. However, I am not familiar with the GCC internals. Do you have any suggestions on a project relat

Re: Contributing to cross-compiling

2008-01-30 Thread Ian Lance Taylor
"Rodrigo Dominguez" <[EMAIL PROTECTED]> writes: > I am PhD student in Computer Engineering. I would like to contribute to GCC > and at the same time learn more about cross-compilers. I have taken a couple > of compiler classes and I can program in C. However, I am not familiar with > the GCC inter

Proper way to make a one-off multi-file testcase?

2008-01-30 Thread Joern Rennecke
We've encountered a bad code generation problem because of the way that resource.c:mark_set_resources is ignorant of COND_EXEC patterns, which ultimately results in a delay slot instruction clobbering a register for the fall-through pass because find_dead_or_set_registers flags registers set in a C

Re: Proper way to make a one-off multi-file testcase?

2008-01-30 Thread Eric Botcazou
> It has callers and callees which should not be inlined in order to > reproduce the bug. __attribute__((noinline))? -- Eric Botcazou

Re: Proper way to make a one-off multi-file testcase?

2008-01-30 Thread Jakub Jelinek
On Wed, Jan 30, 2008 at 09:18:14PM +, Joern Rennecke wrote: > However, AFAIK having multiple source files is at odds with a simple test. If noinline attribute doesn't help, then you can use /* { dg-additional-sources "..." } */ (just grep for dg-additional-sources in testsuite/gcc.dg/*.c to se

Re: Proper way to make a one-off multi-file testcase?

2008-01-30 Thread Joern Rennecke
On Wed, Jan 30, 2008 at 10:51:25PM +0100, Jakub Jelinek wrote: > On Wed, Jan 30, 2008 at 09:18:14PM +, Joern Rennecke wrote: > > However, AFAIK having multiple source files is at odds with a simple test. > > If noinline attribute doesn't help, then you can use It doesn't. I see the symbols w

gcc-4.2-20080130 is now available

2008-01-30 Thread gccadmin
Snapshot gcc-4.2-20080130 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20080130/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.2 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

[m32c] type precedence rules and pointer signs

2008-01-30 Thread DJ Delorie
I'm debugging an EH failure on m32c-elf (-mcpu=m32c). The test case is this: extern int U(); void *ra; main() { foo((ra + U()) - 1); } In the context of the bug, sizeof(void *) is 32 (well, PSImode = 24 bit) and sizeof(int) == 16. U() returns zero in this example. So, the call is this:

RE: Contributing to cross-compiling

2008-01-30 Thread Rodrigo Dominguez
Thanks for your suggestions. It seems like the best place to start for someone new to GCC would be the beginners projects off from the GCC Projects webpage (http://gcc.gnu.org/projects/beginner.html). I think I will start from there and then try to move to the cross-compiling area. Thanks again f

Re: Proper way to make a one-off multi-file testcase?

2008-01-30 Thread Ian Lance Taylor
Joern Rennecke <[EMAIL PROTECTED]> writes: > On Wed, Jan 30, 2008 at 10:51:25PM +0100, Jakub Jelinek wrote: > > On Wed, Jan 30, 2008 at 09:18:14PM +, Joern Rennecke wrote: > > > However, AFAIK having multiple source files is at odds with a simple test. > > > > If noinline attribute doesn't he

Make insn-recog.c use a byte-coded DFA

2008-01-30 Thread Rodrigo Dominguez
Hi, I am a new contributor to GCC. I am interested in the following project from the beginners webpage: "Make insn-recog.c use a byte-coded DFA" I would like to know what's the status of this item? Is this still an open project? Doing a quick search on the mailing list archives I was only able t

RE: Contributing to cross-compiling

2008-01-30 Thread Ben Elliston
> It seems like the best place to start for someone new to GCC would be the > beginners projects off from the GCC Projects webpage > (http://gcc.gnu.org/projects/beginner.html). I think I will start from there > and then try to move to the cross-compiling area. Once you get into GCC in enough deta

Re: Contributing to cross-compiling

2008-01-30 Thread Manuel López-Ibáñez
On 31/01/2008, Ben Elliston <[EMAIL PROTECTED]> wrote: > Once you get into GCC in enough detail, you'll come to appreciate that > cross-compiling is not particularly special. It's just the compiler > running on a different system type to the code being generated. There > is certainly a bit of int

Re: Contributing to cross-compiling

2008-01-30 Thread David Daney
Manuel López-Ibáñez wrote: On 31/01/2008, Ben Elliston <[EMAIL PROTECTED]> wrote: Once you get into GCC in enough detail, you'll come to appreciate that cross-compiling is not particularly special. It's just the compiler running on a different system type to the code being generated. There is

Re: Contributing to cross-compiling

2008-01-30 Thread NightStrike
On 1/30/08, Rodrigo Dominguez <[EMAIL PROTECTED]> wrote: > Hi, > > I am PhD student in Computer Engineering. I would like to contribute to GCC > and at the same time learn more about cross-compilers. I have taken a couple > of compiler classes and I can program in C. However, I am not familiar with

Re: [m32c] type precedence rules and pointer signs

2008-01-30 Thread Ross Ridge
DJ Delorie writes: >extern int U(); >void *ra; ... > foo((ra + U()) - 1) ... >1. What are the language rules controlling this expression, and do they >have any say about signed vs unsigned wrt the int->pointer promotion? There is no integer to pointer promotion. You're adding an integer to a poi

[gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call

2008-01-30 Thread Dongsheng Song
See: http://www.linuxonly.nl/docs/2/0_Page_1.html It's very clear, you should use a type cast: result = concat ("(", cond1, ") && (", cond2, ")", (char *)NULL); instead of: result = concat ("(", cond1, ") && (", cond2, ")", NULL); Dongsheng 2008/1/29, Kaveh R. GHAZI <[EMAIL PROTECTED]

Re: [gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call

2008-01-30 Thread Andrew Pinski
On Jan 30, 2008 7:38 PM, Dongsheng Song <[EMAIL PROTECTED]> wrote: > See: http://www.linuxonly.nl/docs/2/0_Page_1.html It says: This is because NULL is not of the right type: it is defined as integer 0 instead of a pointer with the value 0. Except that is wrong from what the C99 standard says abo

Results for 4.3.0 20080125 (experimental) (GCC) testsuite on i386-unknown-openbsd4.2

2008-01-30 Thread Dongsheng Song
LAST_UPDATED: Obtained from SVN: trunk revision 131847 Native configuration is i386-unknown-openbsd4.2 === g++ tests === Running target unix FAIL: g++.dg/cpp/_Pragma1.C (test for excess errors) FAIL: g++.dg/cpp0x/vt-34103.C (internal compiler error) FAIL: g++.dg/cpp0x/vt-34103.C

Re: [gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call

2008-01-30 Thread Dongsheng Song
But the current xgcc in gcc 4.3 building issue the warning yet. 2008/1/31, Andrew Pinski <[EMAIL PROTECTED]>: > On Jan 30, 2008 7:38 PM, Dongsheng Song <[EMAIL PROTECTED]> wrote: > > See: http://www.linuxonly.nl/docs/2/0_Page_1.html > > > It says: > This is because NULL is not of the right type:

How to get fndecl on C++ CALL_EXPR?

2008-01-30 Thread H.J. Lu
I am trying to get fndecl on a C++ CALL_EXPR with get_callee_fndecl. But get_callee_fndecl returns NULL. What is the proper way to get fndecl on a C++ CALL_EXPR in the middle end? Thanks. H.J.

Re: Results for 4.3.0 20080125 (experimental) (GCC) testsuite on i386-unknown-openbsd4.2

2008-01-30 Thread Dongsheng Song
Sorry for my mail conf. Building & test as: $ mkdir obj && cd obj $ bash ../gcc-4.3-20080125/configure --prefix=/usr/local/gcc-4.3.x \ --enable-languages=c,c++,fortran \ --with-gmp=/usr/local --with-mpfr=/usr/local $ gmake CFLAGS='-O2 -pipe' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-i

Re: [gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call

2008-01-30 Thread Andrew Pinski
On Jan 30, 2008 7:55 PM, Dongsheng Song <[EMAIL PROTECTED]> wrote: > But the current xgcc in gcc 4.3 building issue the warning yet. Yes because the header defines NULL incorrectly. Which was the whole issue in the first place. -- Pinski

Re: How to get fndecl on C++ CALL_EXPR?

2008-01-30 Thread Andrew Pinski
On Jan 30, 2008 7:59 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: > I am trying to get fndecl on a C++ CALL_EXPR with get_callee_fndecl. > But get_callee_fndecl returns NULL. What is the proper way to > get fndecl on a C++ CALL_EXPR in the middle end? If it is returning NULL, then there is no function d

Re: How to get fndecl on C++ CALL_EXPR?

2008-01-30 Thread Brendon Costa
Andrew Pinski wrote: On Jan 30, 2008 7:59 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: I am trying to get fndecl on a C++ CALL_EXPR with get_callee_fndecl. But get_callee_fndecl returns NULL. What is the proper way to get fndecl on a C++ CALL_EXPR in the middle end? If it is returning NULL, then the

Re: How to get fndecl on C++ CALL_EXPR?

2008-01-30 Thread H.J. Lu
On Wed, Jan 30, 2008 at 08:04:52PM -0800, Andrew Pinski wrote: > On Jan 30, 2008 7:59 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: > > I am trying to get fndecl on a C++ CALL_EXPR with get_callee_fndecl. > > But get_callee_fndecl returns NULL. What is the proper way to > > get fndecl on a C++ CALL_EXPR i

Re: MIPS failure in gcc.c-torture/execute/20040709-2.c...

2008-01-30 Thread David Daney
Richard Sandiford wrote: > David Daney <[EMAIL PROTECTED]> writes: > >> From Fri Jan 25 06:57:52 UTC 2008 (revision 131816) >> >> Configured thusly: >> >> ../trunk/configure --with-arch=r5000 --disable-java-awt --without-x >> --enable-__cxa_atexit --disable-jvmpi --disable-libgomp --disable-st