Re: Warning: `z' is used uninitialized in this function

2007-10-17 Thread Manuel López-Ibáñez
On 11/10/2007, Roberto Bagnara <[EMAIL PROTECTED]> wrote: > > Just to make sure before I submit a bug report: when GCC says that > a certain variable _is_ (as opposed to _may be_) used uninitialized > in this function, it means that it has proved that the variable > is indeed used uninitialized, ri

Re: df_insn_refs_record's handling of global_regs[]

2007-10-17 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Tue, 16 Oct 2007 23:04:22 -0700 (PDT) > I will do some regression testing of the following patch against > gcc-4.2.x: > > --- ./gcc/df-scan.c.ORIG 2007-10-16 02:07:46.0 -0700 > +++ ./gcc/df-scan.c 2007-10-16 23:00:32.0 -0700 > @@

va_list and x86_64 possible bug (?)

2007-10-17 Thread Macy Gasp
Hi everybody, I'm experiencing a weird behaviour when using va_list with gcc 4.1.2 on a x86_64 linux distribution. Below is my test program (yes, I know about the possible buffer overflows but please, bear with me, this is just a proof of concept): #include #include int var(const char* fmt, .

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Andrew Pinski
On 10/17/07, Macy Gasp <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm experiencing a weird behaviour when using va_list with gcc 4.1.2 > on a x86_64 linux distribution. > > Below is my test program (yes, I know about the possible buffer > overflows but please, bear with me, this is just a proof

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Andrew Haley
Macy Gasp writes: > Hi everybody, > > I'm experiencing a weird behaviour when using va_list with gcc 4.1.2 > on a x86_64 linux distribution. > > Below is my test program (yes, I know about the possible buffer > overflows but please, bear with me, this is just a proof of concept): > > #i

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Macy Gasp
On 10/17/07, Andrew Haley <[EMAIL PROTECTED]> wrote: > Macy Gasp writes: > > Hi everybody, > > Read the Fine Manual: > > >int vsprintf(char *str, const char *format, va_list ap); > >The functions vprintf(), vfprintf(), vsprintf(), vsnprintf() >are equivalent to the function

Re: Warning: `z' is used uninitialized in this function

2007-10-17 Thread Roberto Bagnara
Manuel López-Ibáñez wrote: On 11/10/2007, Roberto Bagnara <[EMAIL PROTECTED]> wrote: Just to make sure before I submit a bug report: when GCC says that a certain variable _is_ (as opposed to _may be_) used uninitialized in this function, it means that it has proved that the variable is indeed us

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Macy Gasp
On 10/17/07, Macy Gasp <[EMAIL PROTECTED]> wrote: > On 10/17/07, Andrew Haley <[EMAIL PROTECTED]> wrote: > > Macy Gasp writes: > > > Hi everybody, > > > > Read the Fine Manual: > > > > > >int vsprintf(char *str, const char *format, va_list ap); > > > >The functions vprintf(), vfpri

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Macy Gasp
On 10/17/07, Andrew Haley <[EMAIL PROTECTED]> wrote: > Macy Gasp writes: > > On 10/17/07, Macy Gasp <[EMAIL PROTECTED]> wrote: > > > On 10/17/07, Andrew Haley <[EMAIL PROTECTED]> wrote: > > > > Macy Gasp writes: > > > > > Hi everybody, > > > > > > > > Read the Fine Manual: > > > > > > > >

Re: va_list and x86_64 possible bug (?)

2007-10-17 Thread Andreas Schwab
"Macy Gasp" <[EMAIL PROTECTED]> writes: > Any ideas on how I could solve this? There is no way around va_copy. But please ask in [EMAIL PROTECTED], this is off-topic here. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germa

Re: Warning: `z' is used uninitialized in this function

2007-10-17 Thread Manuel López-Ibáñez
On 17/10/2007, Roberto Bagnara <[EMAIL PROTECTED]> wrote: > Manuel López-Ibáñez wrote: > > On 11/10/2007, Roberto Bagnara <[EMAIL PROTECTED]> wrote: > >> Just to make sure before I submit a bug report: when GCC says that > >> a certain variable _is_ (as opposed to _may be_) used uninitialized > >>

Static stack analysis

2007-10-17 Thread Daniel, Michael J
Hi! I'm interested in static stack analysis tools. Either using someone else's or creating. Where would I find existing tools? Where would I find existing contracter software developers? michael

gomp slowness

2007-10-17 Thread skaller
Hi, I have just run and timed a couple of tutorial examples for openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a dual core Athlon amd64, with OMP_NUM_THREADS set to 1 and 2, and occasionally 8 I found that 1 thread outperforms 2 by almost 2:1 on all the examples, and 8 is only fractionall

Re: gomp slowness

2007-10-17 Thread Joe Buck
On Thu, Oct 18, 2007 at 03:00:02AM +1000, skaller wrote: > Hi, I have just run and timed a couple of tutorial examples for > openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a dual core > Athlon amd64, with OMP_NUM_THREADS set to 1 and 2, and occasionally > 8 I found that 1 thread outperfor

Re: gomp slowness

2007-10-17 Thread Biagio Lucini
skaller wrote: Hi, I have just run and timed a couple of tutorial examples for openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a dual core Athlon amd64, with OMP_NUM_THREADS set to 1 and 2, and occasionally 8 I found that 1 thread outperforms 2 by almost 2:1 on all the examples, and 8 i

Ada Interrupt Tasks

2007-10-17 Thread Joel Sherrill
Hi, I have Ada interrupt tasks that are attached to real hardware interrupts working for RTEMS. I based the RTEMS code on the existing code for VxWorks. I tried to minimize my modifications since I could tell that the OS functionality used was very generic. But since the implementation in s-i

gcc-4.2-20071017 is now available

2007-10-17 Thread gccadmin
Snapshot gcc-4.2-20071017 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20071017/ 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

Re: gomp slowness

2007-10-17 Thread skaller
On Wed, 2007-10-17 at 18:14 +0100, Biagio Lucini wrote: > skaller wrote: > It would be interesting to try with another compiler. Do you have access > to another OpenMP-enabled compiler? Unfortunately no, unless MSVC++ in VS2005 has openMP. I have an Intel licence but they're too tied up with co

Re: gomp slowness

2007-10-17 Thread skaller
On Wed, 2007-10-17 at 10:09 -0700, Joe Buck wrote: > On Thu, Oct 18, 2007 at 03:00:02AM +1000, skaller wrote: > > Hi, I have just run and timed a couple of tutorial examples for > > openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a dual core > > Athlon amd64, with OMP_NUM_THREADS set to 1

Re: Static stack analysis

2007-10-17 Thread Ben Elliston
Hi Michael > I'm interested in static stack analysis tools. > Either using someone else's or creating. > > Where would I find existing tools? > Where would I find existing contracter software developers? I'm afraid this mailing list is for questions relating to the development and internals of G

Re: gomp slowness

2007-10-17 Thread Ross Ridge
skaller writes: > Unfortunately no, unless MSVC++ in VS2005 has openMP. I don't know if Visual C++ 2005 Express supports OpenMP, but the Professional edition should. Alternatively, the free, as in beer, Microsoft compiler included in the Windows SDK supports OpenMP.

Re: gomp slowness

2007-10-17 Thread skaller
On Wed, 2007-10-17 at 10:09 -0700, Joe Buck wrote: > On Thu, Oct 18, 2007 at 03:00:02AM +1000, skaller wrote: > > Hi, I have just run and timed a couple of tutorial examples for > > openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a dual core > > Athlon amd64, with OMP_NUM_THREADS set to 1

Re: gomp slowness

2007-10-17 Thread skaller
On Thu, 2007-10-18 at 11:18 +1000, skaller wrote: > On Wed, 2007-10-17 at 10:09 -0700, Joe Buck wrote: > > On Thu, Oct 18, 2007 at 03:00:02AM +1000, skaller wrote: > > > Hi, I have just run and timed a couple of tutorial examples for > > > openMP using gcc (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) on a

Re: gomp slowness

2007-10-17 Thread Biplab Kumar Modak
Ross Ridge wrote: skaller writes: Unfortunately no, unless MSVC++ in VS2005 has openMP. I don't know if Visual C++ 2005 Express supports OpenMP, but the Professional edition should. Alternatively, the free, as in beer, Microsoft compiler included in the Windows SDK supports OpenMP. Visual

Re: gomp slowness

2007-10-17 Thread Biplab Kumar Modak
skaller wrote: On Wed, 2007-10-17 at 18:14 +0100, Biagio Lucini wrote: skaller wrote: It would be interesting to try with another compiler. Do you have access to another OpenMP-enabled compiler? Unfortunately no, unless MSVC++ in VS2005 has openMP. I have an Intel licence but they're too ti

Re: gomp slowness

2007-10-17 Thread skaller
On Thu, 2007-10-18 at 12:02 +0800, Biplab Kumar Modak wrote: > skaller wrote: > > On Wed, 2007-10-17 at 18:14 +0100, Biagio Lucini wrote: > >> skaller wrote: > > > >> It would be interesting to try with another compiler. Do you have access > >> to another OpenMP-enabled compiler? > > > > Unfort