Re: [RFC] Apple Blocks extension

2013-11-04 Thread Florian Weimer
On 11/04/2013 06:10 AM, Ian Lance Taylor wrote: Clang's blocks are more powerful than GCC's nested functions, because blocks may be placed on the heap, and therefore returned from a function. And they don't need code generation at run time. -- Florian Weimer / Red Hat Product Security Team

Re: integer_onep vs. signed 1-bit bitfields

2013-11-04 Thread Richard Biener
On Sat, 2 Nov 2013, Richard Sandiford wrote: > Jakub Jelinek writes: > > On Sat, Nov 02, 2013 at 03:15:44PM +, Richard Sandiford wrote: > >> What should integer_onep mean if we have a signed 1-bit bitfield in > >> which the bit is set? Seen as a 1-bit value it's "obviously" 1, > >> but seen

Re: integer_onep vs. signed 1-bit bitfields

2013-11-04 Thread Richard Biener
On Sat, 2 Nov 2013, Marc Glisse wrote: > On Sat, 2 Nov 2013, Jakub Jelinek wrote: > > > On Sat, Nov 02, 2013 at 05:38:53PM +, Richard Sandiford wrote: > > > OK, thanks. I should have realised this earlier, but we have: > > > > > > /* Return 1 if EXPR is the integer constant one or the corre

Re: [RFC] Apple Blocks extension

2013-11-04 Thread David Brown
On 04/11/13 06:18, pins...@gmail.com wrote: > > >> On Nov 3, 2013, at 9:10 PM, Ian Lance Taylor >> wrote: >> >>> On Sun, Nov 3, 2013 at 8:49 PM, wrote: >>> >>> On Nov 3, 2013, at 8:28 PM, Maxim Kuvyrkov wrote: Hi, I am considering a project to add Apple's bl

Report on the bounded pointers work

2013-11-04 Thread Florian Weimer
More than a decade ago, there was some work in GCC and glibc about propagating bounds information for pointers. I could find the old web page on archive.org, but I'm wondering if there's a concise report how it actually worked and how much software could be ported over with what amount of effo

Re: Fwd: [RTL, ARM] subreg of partially invalid register, is it valid RTL?

2013-11-04 Thread Eric Botcazou
> The question: > > The insn which causes the segfault is: > (debug_insn 1548 1547 1886 11 (var_location:V4HI __b (subreg:V4HI > (reg:V8HI 125 d31 [orig:657 vr ] [657]) 0)) upsampling_neon.c:850 -1 > (nil)) > > The variable vr is declared as a NEON vector of 8 16bit integers, and > -frename-

Re: Report on the bounded pointers work

2013-11-04 Thread Ondřej Bílka
On Mon, Nov 04, 2013 at 11:44:57AM +0100, Florian Weimer wrote: > More than a decade ago, there was some work in GCC and glibc about > propagating bounds information for pointers. I could find the old > web page on archive.org, but I'm wondering if there's a concise > report how it actually worked

Re: Something wrong with bootstrap-lto, or lto itself:

2013-11-04 Thread Richard Biener
On Wed, Oct 30, 2013 at 8:17 PM, Toon Moene wrote: > Consider this: > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02329.html > > and > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02258.html > > /scratch/toon/bd5894/./prev-gcc/xg++ -B/scratch/toon/bd5894/./prev-gcc/ > -B/home/toon/com

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Torvald Riegel
On Mon, 2013-11-04 at 17:28 +1300, Maxim Kuvyrkov wrote: > I am considering a project to add Apple's blocks [*] extension to GCC. I am > looking at adding blocks support to C, C++ and Obj-C/C++ front-ends. > > There are many challenges (both technical and copyright) that require work > before a

Re: Something wrong with bootstrap-lto, or lto itself:

2013-11-04 Thread Trevor Saunders
On Mon, Nov 04, 2013 at 01:29:10PM +0100, Richard Biener wrote: > On Wed, Oct 30, 2013 at 8:17 PM, Toon Moene wrote: > > Consider this: > > > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02329.html > > > > and > > > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02258.html > > > > /scrat

Why doesn't gcc 4.6 show line numbers in error messages?

2013-11-04 Thread David Aldrich
Hi I hope this isn't a silly question. I am running gcc 4.6.3 on Ubuntu 12. When I compile my source code I get compiler errors in a form that I don't expect. For example: EVD.cpp:(.text+0x1c6e): undefined reference to `Matrix >::Matrix()' Why is the location of the error shown relative to

Re: Why doesn't gcc 4.6 show line numbers in error messages?

2013-11-04 Thread Florian Weimer
On 11/04/2013 02:56 PM, David Aldrich wrote: I hope this isn't a silly question. I am running gcc 4.6.3 on Ubuntu 12. When I compile my source code I get compiler errors in a form that I don't expect. For example: EVD.cpp:(.text+0x1c6e): undefined reference to `Matrix >::Matrix()' Why is

Re: Why doesn't gcc 4.6 show line numbers in error messages?

2013-11-04 Thread Fidel Leon
On Monday 04 November 2013 13:56:46 David Aldrich wrote: > EVD.cpp:(.text+0x1c6e): undefined reference to `Matrix > >::Matrix()' Because it's the linker which is complaining, not the compiler. "Undefined reference" means you're referencing a library the linker can't find. -- Fidel Leon fidell.

RE: Why doesn't gcc 4.6 show line numbers in error messages?

2013-11-04 Thread David Aldrich
Thanks for your answer. Sorry I used the wrong list. David > -Original Message- > From: fidell...@mykolab.com [mailto:fidell...@mykolab.com] > Sent: 04 November 2013 14:34 > To: gcc@gcc.gnu.org > Cc: David Aldrich > Subject: Re: Why doesn't gcc 4.6 show line numbers in error messages? >

Re: Report on the bounded pointers work

2013-11-04 Thread Jeff Law
On 11/04/13 03:44, Florian Weimer wrote: More than a decade ago, there was some work in GCC and glibc about propagating bounds information for pointers. I could find the old web page on archive.org, but I'm wondering if there's a concise report how it actually worked and how much software could

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Joseph S. Myers
On Mon, 4 Nov 2013, Maxim Kuvyrkov wrote: > Joseph, Richard, as C front-end maintainers, would you be supportive of > Blocks extension implemented for C front-end? Yes. I believe the point (or one of the points) is that at least some system headers in current Darwin require this extension (mor

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Joseph S. Myers
On Mon, 4 Nov 2013, Torvald Riegel wrote: > What is the status of this or similar features (eg, lambdas) in ISO C? > IOW, what was the feedback on the blocks part of > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1370.pdf, and are there > any follow-ups? IMHO, it would be preferable to suppor

Re: Report on the bounded pointers work

2013-11-04 Thread Joseph S. Myers
On Mon, 4 Nov 2013, Jeff Law wrote: > You might also be referring to Greg McGary's work on bounded pointers, I don't > think that ever got integrated or if it did, it got pulled long ago. It was integrated in 2000, removed in 2002/2003 (I removed the relics from glibc earlier this year). By usi

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Torvald Riegel
On Mon, 2013-11-04 at 16:39 +, Joseph S. Myers wrote: > On Mon, 4 Nov 2013, Torvald Riegel wrote: > > > What is the status of this or similar features (eg, lambdas) in ISO C? > > IOW, what was the feedback on the blocks part of > > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1370.pdf, and

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Jason Merrill
On 11/04/2013 11:34 AM, Joseph S. Myers wrote: On Mon, 4 Nov 2013, Maxim Kuvyrkov wrote: Joseph, Richard, as C front-end maintainers, would you be supportive of Blocks extension implemented for C front-end? Yes. I believe the point (or one of the points) is that at least some system headers

libcilkrts breaks non-bootstrap build

2013-11-04 Thread Tom de Vries
Hi, When configuring a gcc build with "--disable-bootstrap --enable-languages=c" I run into this error: ... libtool: compile: g++ -B/home/vries/gcc_versions/devel/lean-c/install/x86_64-unknown-linux-gnu/bin/ -B/home/vries/gcc_versions/devel/lean-c/install/x86_64-unknown-linux-gnu/lib/ -isystem /h

RE: libcilkrts breaks non-bootstrap build

2013-11-04 Thread Iyer, Balaji V
Hi Tom, Please see my response below: Thanks, Balaji V. Iyer. > -Original Message- > From: Tom de Vries [mailto:tom_devr...@mentor.com] > Sent: Monday, November 4, 2013 2:15 PM > To: gcc@gcc.gnu.org > Cc: Iyer, Balaji V > Subject: libcilkrts breaks non-bootstrap build > > Hi, >

RE: libcilkrts breaks non-bootstrap build

2013-11-04 Thread Iyer, Balaji V
Hi Tom, This is what I tried for --enable-languages=c,c++ ../trunk-gcc/configure --disable-bootstrap --enable-languages="c,c++" --prefix=/home /install_dir/trunk-install-disable-bootstrap And it seem to compile fine. Did you any other tags to configure? Thanks, Balaji V. Iyer. > -

[Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__

2013-11-04 Thread Tobias Burnus
Tobias Burnus wrote: Gerald Pfeifer wrote: To make it easier to reproduce builds of software and entire GNU/Linux distributions, RMS had the idea of adding a warning to GCC that warns about the use of __DATE__ and __TIME__. I assume that he also likes to have a warning for __TIMESTAMP__. I w

Re: Warning about __DATE__ and __TIME__

2013-11-04 Thread Jonathan Wakely
On 28 October 2013 21:13, Ian Lance Taylor wrote: > On Sun, Oct 27, 2013 at 12:04 PM, Gerald Pfeifer wrote: >> To make it easier to reproduce builds of software and entire GNU/Linux >> distributions, RMS had the idea of adding a warning to GCC that warns >> about the use of __DATE__ and __TIME__.

Re: Warning about __DATE__ and __TIME__

2013-11-04 Thread Gerald Pfeifer
On Mon, 4 Nov 2013, Jonathan Wakely wrote: > On 28 October 2013 21:13, Ian Lance Taylor wrote: >> I don't have any strong objection, but I'll note that it's even easier >> to use -D options. >> >> CC='gcc -D__DATE__=today' > It's undefined behaviour in both C and C++ to redefine pre-defined > macro

Re: libcilkrts breaks non-bootstrap build

2013-11-04 Thread Tom de Vries
On 04/11/13 21:23, Iyer, Balaji V wrote: > Hi Tom, > This is what I tried for --enable-languages=c,c++ > > ../trunk-gcc/configure --disable-bootstrap --enable-languages="c,c++" > --prefix=/home /install_dir/trunk-install-disable-bootstrap > > And it seem to compile fine. Did you any other

Re: [Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__

2013-11-04 Thread Joseph S. Myers
The warning should say "macro" not "Macro" and I think "reproducing" not "reproduce". The c-family and libcpp changes are OK with that fixed. -- Joseph S. Myers jos...@codesourcery.com

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Mike Stump
On Nov 3, 2013, at 8:49 PM, pins...@gmail.com wrote: > What benefits does blocks have over nested functions in C and over lambas in > C++? The ability to compile existing code. The ability to compile code that uses system header files on macosx. The ability to use third party libraries on mac

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Mike Stump
On Nov 3, 2013, at 8:28 PM, Maxim Kuvyrkov wrote: > I am considering a project to add Apple's blocks [*] extension to GCC. I have a funny story about that one… I was just about ready to submit the work, the GPLv3 happened. Ah… life goes on.

Re: [RFC] Apple Blocks extension

2013-11-04 Thread Mike Stump
On Nov 3, 2013, at 8:28 PM, Maxim Kuvyrkov wrote: > Mike, as Obj-C/C++ front-end maintainers, would you be supportive of Blocks > extension implemented for Obj-C/C++ front-ends? Sure. Though, I'd really love a front-end extension to allow one to implement Blocks as a pure library. :-) [ duck

Re: Warning about __DATE__ and __TIME__

2013-11-04 Thread Jonathan Wakely
On 4 November 2013 22:26, Andreas Schwab wrote: > >> The undefined behaviour study group of the C++ committee are >> considering making it ill-formed, which would require a diagnostic. > > That still wouldn't cover command line arguments. Ah yes, as it would still be predefined, but to the value g

[PATCH] RE: libcilkrts breaks non-bootstrap build

2013-11-04 Thread Iyer, Balaji V
> -Original Message- > From: Tom de Vries [mailto:tom_devr...@mentor.com] > Sent: Monday, November 4, 2013 2:15 PM > To: gcc@gcc.gnu.org > Cc: Iyer, Balaji V > Subject: libcilkrts breaks non-bootstrap build > > Hi, > > When configuring a gcc build with "--disable-bootstrap --enable- > l

Re: Something wrong with bootstrap-lto, or lto itself:

2013-11-04 Thread Trevor Saunders
On Mon, Nov 04, 2013 at 01:29:10PM +0100, Richard Biener wrote: > On Wed, Oct 30, 2013 at 8:17 PM, Toon Moene wrote: > > Consider this: > > > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02329.html > > > > and > > > > http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg02258.html > > > > /scrat