Re: printf issue

2011-05-04 Thread Jonathan Wakely
On 4 May 2011 07:12, Fan Chongbin-B32609 wrote: > > In the main.c file , I used printf("%f",1.0f); to print a float number but > the output is 0.. > Can anybody help me to figure that out, pls? This is the wrong mailing list for questions about using gcc, and you should not cross-post to gcc

Re: Detecting global pointers

2011-05-04 Thread Richard Guenther
On Wed, May 4, 2011 at 6:16 AM, Matt Davis wrote: > I am writing a gcc plugin and am trying to detect if a value assigned by a > function call, is a global variable or not.  Unfortunately, all calls to > 'is_global_var' with a DECL type are returning false. > > My pass executes after alias analysi

Re: GCC Optimisation, Part 0: Introduction

2011-05-04 Thread Dimitrios Apostolou
On Fri, 29 Apr 2011, Laurynas Biveinis wrote: Thanks Diego, please send me the form. I'll sign it as soon as my contributions require it. Don't wait; sign it right away - it might take a while to process it. Hey all, I should have told you, I sent the email so I'm now waiting for the papers

Re: Integration of transactional memory support into a data-flow extension of OpenMP

2011-05-04 Thread Patrick Marlier
Dear Ismail, On 05/03/2011 11:18 PM, ismail wrote: >> ++ First of all, MEMCPY and MEMSET functions do not include any >> transaction identifier (id) and transactions inside the LeeTM fails >> during transactional access to the memory. I think this case is also >> for tinySTM-0.9.9 and tinySTM-1.0

Re: Detecting global pointers

2011-05-04 Thread Matt Davis
On Wed, May 4, 2011 at 7:38 PM, Richard Guenther wrote: > On Wed, May 4, 2011 at 6:16 AM, Matt Davis wrote: >> I am writing a gcc plugin and am trying to detect if a value assigned by a >> function call, is a global variable or not.  Unfortunately, all calls to >> 'is_global_var' with a DECL type

[C++0x]User-defined literals - building a call to template function.

2011-05-04 Thread Ed Smith-Rowland
Greetings, I am working on user-defined literals and have much of it working. I am stuck on template function calls though. If I have a literal oprator like this: template int operator"" _abc() { return 42 + sizeof...(Chars); } Then later on I see this: int j = 123_abc; I need to look

'The GNU Compiler for the JavaTM Programming Language' translation

2011-05-04 Thread GM
Hi! I'm willing to translate publication located at http://gcc.gnu.org/java/ to the Belorussian language (my mother tongue). What I'm asking for is your written permission, so you don't mind after I'll post the translation to my blog. The translation is intended only for web, no print copies

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Nenad Vukicevic
On 5/3/2011 3:47 PM, Ian Lance Taylor wrote: There is no support for passing options to a test in the dg framework. You would have to write your own Tcl code to do that. Note that such tests are somewhat discouraged because not all remote execution environments support passing command line argum

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Ian Lance Taylor
Nenad Vukicevic writes: > Thank you for your response. I am trying to write some tests > for GUPC that have two modes of compilation: static and dynamic. In > static environment you specify number of threads you want to run in > compile time, while in dynamic you specify it when you run the > pro

A legal question

2011-05-04 Thread Andrew Haley
Our web pages say "Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved." but does "Verbatim" allow people to translate and redistribute the pages? Andrew.

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Nenad Vukicevic
It seems that I fixed my problem by defining remote_spawn procedure (and fixing the order of loading libraries :) ) in my own upc-dg.exp file and adding a line to it that append additional arguments to the command line: "append commandline $upc_run_arguments". global $upc_run_arguments is getti

Re: A legal question

2011-05-04 Thread Gerald Pfeifer
On Wed, 4 May 2011, Andrew Haley wrote: > Our web pages say > > "Verbatim copying and distribution of this entire article is permitted in any > medium, provided this notice is preserved." > > but does "Verbatim" allow people to translate and redistribute the pages? In spirit it should, legally

Re: A legal question

2011-05-04 Thread Robert Dewar
On 5/4/2011 2:47 PM, Gerald Pfeifer wrote: On Wed, 4 May 2011, Andrew Haley wrote: Our web pages say "Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved." but does "Verbatim" allow people to translate and redistribute the pag

Re: adding an argument for test execution in testsuite

2011-05-04 Thread Janis Johnson
On 05/04/2011 11:21 AM, Nenad Vukicevic wrote: > It seems that I fixed my problem by defining remote_spawn > procedure (and fixing the order of loading libraries :) ) in my > own upc-dg.exp file and adding a line to it that append > additional arguments to the command line: "append commandline > $

--enable-build-with-cxx vs -Werror=conversion-null

2011-05-04 Thread Jack Howarth
/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include -I/sw/src/fink.build/gcc47-4.7.0-1000/gcc-4.7-20110504/libstdc++-v3/libsupc++ -L/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/src/.libs -c -g -O2 -mdynamic-no-pic -flto=jobserver -frandom

Re: --enable-build-with-cxx vs -Werror=conversion-null

2011-05-04 Thread Janis Johnson
libstdc++-v3/include/x86_64-apple-darwin10.7.0 > > -I/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include > > -I/sw/src/fink.build/gcc47-4.7.0-1000/gcc-4.7-20110504/libstdc++-v3/libsupc++ > -L/sw/src/fink.build/gcc47-4.7.0-1000/da

Re: --enable-build-with-cxx vs -Werror=conversion-null

2011-05-04 Thread Gabriel Dos Reis
On Wed, May 4, 2011 at 8:32 PM, Janis Johnson wrote: > Fix those assignments to use "NULL" instead of "false". Hi Janis, is there a way your regression tester could automatically build with a C++ compiler. This is the second breakage in about a week... -- Gaby

Re: --enable-build-with-cxx vs -Werror=conversion-null

2011-05-04 Thread Janis Johnson
On 05/04/2011 07:03 PM, Gabriel Dos Reis wrote: > On Wed, May 4, 2011 at 8:32 PM, Janis Johnson > wrote: > >> Fix those assignments to use "NULL" instead of "false". > > Hi Janis, > > is there a way your regression tester could automatically build with a > C++ compiler. > This is the second br

Re: --enable-build-with-cxx vs -Werror=conversion-null

2011-05-04 Thread Gabriel Dos Reis
On Wed, May 4, 2011 at 9:32 PM, Janis Johnson wrote: > On 05/04/2011 07:03 PM, Gabriel Dos Reis wrote: >> On Wed, May 4, 2011 at 8:32 PM, Janis Johnson >> wrote: >> >>> Fix those assignments to use "NULL" instead of "false". >> >> Hi Janis, >> >> is there a way your regression tester could autom