Re: -debug to collect2

2012-08-20 Thread Ian Lance Taylor
On Mon, Aug 20, 2012 at 5:45 AM, Perry Smith pedz...@gmail.com wrote: Is there a way to get the -debug flag from the g++ command line to collect2? -Wl,-debug Ian

Re: at exit alternative for AIX

2012-08-20 Thread Ian Lance Taylor
On Mon, Aug 20, 2012 at 4:55 PM, Perry Smith pedz...@gmail.com wrote: collect2 is dying when it calls ld for the first time because __dso_handle is not defined. It is being reference from the calls to __cxa_atexit. So, create another stub, and pass it into the first link. Ian

Re: Optimising/cleaning-up GSOC summary. What was done, future directions.

2012-08-21 Thread Ian Lance Taylor
On Tue, Aug 21, 2012 at 10:26 AM, Dimitrios Apostolou ji...@gmx.net wrote: In a very brief summary, I achieved a few things this summer: Ported patches from last year - some made it to mainline, extended old patches and resubmitted them, wrote new but mostly small clean-ups/speed-ups.k Thanks

Re: Question: at which version gcc started supporting -D_FORTIFY_SOURCE for c++ files?

2012-08-22 Thread Ian Lance Taylor
On Wed, Aug 22, 2012 at 12:38 PM, Oleg Pekar (olpekar) olpe...@cisco.com wrote: I'm using gcc 4.1.2, it supports -D_FORTIFY_SOURCE option for c files but not for c++. I'm looking for gcc version number where support for this option in c++ files was added. I'm not sure how to answer your

Re: Question: at which version gcc started supporting -D_FORTIFY_SOURCE for c++ files?

2012-08-22 Thread Ian Lance Taylor
On Wed, Aug 22, 2012 at 1:33 PM, Oleg Pekar (olpekar) olpe...@cisco.com wrote: On Wed, Aug 22, 2012 at 12:38 PM, Oleg Pekar (olpekar) olpe...@cisco.com wrote: I'm using gcc 4.1.2, it supports -D_FORTIFY_SOURCE option for c files but not for c++. I'm looking for gcc version number where support

Re: Using C++ - Problem with cstdlib

2012-08-25 Thread Ian Lance Taylor
On Sat, Aug 25, 2012 at 1:27 PM, Oleg Endo oleg.e...@t-online.de wrote: I'm currently playing around with an RTL pass and started using C++. When including algorithm I get the following: /usr/include/c++/4.6/cstdlib:76:8: error: attempt to use poisoned calloc

Re: [wwwdocs] Update links to C++ ABI (was: at exit alternative for AIX)

2012-08-26 Thread Ian Lance Taylor
On Sun, Aug 26, 2012 at 3:43 AM, Gerald Pfeifer ger...@pfeifer.com wrote: On Tue, 7 Aug 2012, Ian Lance Taylor wrote: The official link at http://codesourcery.com/cxx-abi/ (note trailing slash) still works. It used to be http://sourcery.mentor.com/public/cxx-abi/ as of lately, and now

Re: C++ conversion? Why still .c (not .cc) files and CC (not CXX) in Makefile.in?

2012-08-28 Thread Ian Lance Taylor
On Tue, Aug 28, 2012 at 6:21 AM, Basile Starynkevitch bas...@starynkevitch.net wrote: Sorry for such a stupid question, but assuming that the GCC trunk (e.g. svn rev 190745) did already switch (during my holidays, so I did not follow that) to C++ per

Re: C++ conversion? Why still .c (not .cc) files and CC (not CXX) in Makefile.in?

2012-08-28 Thread Ian Lance Taylor
On Tue, Aug 28, 2012 at 6:45 AM, Michael Matz m...@suse.de wrote: On Tue, 28 Aug 2012, Ian Lance Taylor wrote: Or do we have a rule than any file using C++ specific feature should be renamed from *.c to *.cc at the moment the C++ feature goes inside? We do not have such a rule and I would

Re: GCC stack backtraces

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 6:27 AM, Michael Matz m...@suse.de wrote: On Wed, 29 Aug 2012, Ian Lance Taylor wrote: Does this seem like something we could usefully add to GCC? Does anybody see any big problems with it? Does it work without unwind tables? I suspect it doesn't as it's using

Re: GCC stack backtraces

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 12:43 AM, Janne Blomqvist blomqvist.ja...@gmail.com wrote: On Wed, Aug 29, 2012 at 10:22 AM, Ian Lance Taylor i...@google.com wrote: I've spent the last couple of days working on a stack backtrace library. It uses the GCC unwind interface to collect a stack trace

Re: GCC stack backtraces

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 1:07 AM, Paweł Sikora pl...@agmk.net wrote: On Wednesday 29 of August 2012 00:22:55 Ian Lance Taylor wrote: I've spent the last couple of days working on a stack backtrace library. It uses the GCC unwind interface to collect a stack trace, and parses DWARF debug info

Re: GCC stack backtraces

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 9:31 AM, H.J. Lu hjl.to...@gmail.com wrote: On Wed, Aug 29, 2012 at 9:21 AM, Ian Lance Taylor i...@google.com wrote: I believe the unwinder proper is async signal safe--it just uses _Unwind_Backtrace. The DWARF reader calls malloc and is therefore not async-signal

Re: GCC stack backtraces

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 11:45 AM, Paweł Sikora pl...@agmk.net wrote: On Wednesday 29 of August 2012 11:37:07 Ian Lance Taylor wrote: On Wed, Aug 29, 2012 at 1:07 AM, Paweł Sikora pl...@agmk.net wrote: On Wednesday 29 of August 2012 00:22:55 Ian Lance Taylor wrote: I've spent the last couple

Re: detecting if cross-compiler (in plugin)?

2012-08-29 Thread Ian Lance Taylor
On Wed, Aug 29, 2012 at 1:59 AM, Basile Starynkevitch bas...@starynkevitch.net wrote: What is the simplest way, for a plugin (and also for a GCC branch), to detect if the compiler is straight or not (i.e. cross, that is target host are different, or even canadian-cross). I was thinking of

Re: GCC stack backtraces

2012-08-30 Thread Ian Lance Taylor
On Thu, Aug 30, 2012 at 1:04 AM, Florian Weimer fwei...@redhat.com wrote: On 08/29/2012 09:22 AM, Ian Lance Taylor wrote: It uses the GCC unwind interface to collect a stack trace, and parses DWARF debug info to get file/line/function information. (Of course it's silly to write yet another

Re: print operand modifiers in the manual

2012-09-06 Thread Ian Lance Taylor
On Thu, Sep 6, 2012 at 11:56 AM, Mike Stump mikest...@comcast.net wrote: Where in the manual are the machine specific print operand modifiers documented? I've looked around, and just can seem to find them; surely, I can't be the first to document such a modifier. To the best of my knowledge

Re: contrib/config-list.mk

2012-09-11 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 3:18 PM, Lawrence Crowl cr...@googlers.com wrote: The contrib/config-list.mk tool appears to be suffering from bitrot. The make failures for a limited subset of configurations consisted exclusively of: cc1: warnings being treated as errors

Re: GCC stack backtraces

2012-09-12 Thread Ian Lance Taylor
On Wed, Sep 12, 2012 at 9:50 AM, Diego Novillo dnovi...@google.com wrote: On Thu Aug 30 16:18:47 2012, Lawrence Crowl wrote: Diego already loves it! Indeed I do! I'm making changes in VEC that will benefit from this. I am currently keeping the VEC_* macros so that I can pass

Compiler crash with block numbers

2012-09-20 Thread Ian Lance Taylor
Hi Dehao, I suspect that your recent patch changing block handling has broken bootstrap with --enable-languages=go. I reduced the test case to this C++ code: #include string std::string f(bool is_string, bool is_constant) { if (is_string) { std::string left_string; std::string

Re: Compiler crash with block numbers

2012-09-20 Thread Ian Lance Taylor
On Thu, Sep 20, 2012 at 12:59 PM, Dehao Chen de...@google.com wrote: The bug is in tree-eh.c. IS_UNKNOWN_LOCATION is mistakenly used, thus the block info for a call stmt is cleared. A patch to fix the problem is atached: gcc/ChangeLog: tree-eh.c (lower_try_finally_dup_block): Use

Re: Compiler crash with block numbers

2012-09-20 Thread Ian Lance Taylor
On Thu, Sep 20, 2012 at 12:59 PM, Dehao Chen de...@google.com wrote: gcc/ChangeLog: tree-eh.c (lower_try_finally_dup_block): Use correct way to check unknown location. While you think about my questions, let's fix the bootstrap. This patch is OK if it passes bootstrap and a gcc and

Steering Committee: I propose Cary Coutant as DWARF maintainer

2012-09-26 Thread Ian Lance Taylor
I propose that Cary Coutant ccout...@google.com become an additional DWARF maintainer, along with Jason. Cary has been on the DWARF working group for many years and is very familiar with the format. He has written several patches for GCC's DWARF code. He's been an extensive contributor to the

Re: Question about insn predicates and constraints

2012-09-29 Thread Ian Lance Taylor
On Sat, Sep 29, 2012 at 3:15 AM, Andreas Schwab sch...@linux-m68k.org wrote: m68k.md contains the following insn: (define_insn [(set (match_operand:SI 0 nonimmediate_operand =d) (zero_extract:SI (match_operand:SI 1 register_operand do) (match_operand:SI 2

Re: IRA subregs playing badly with REG_EQUIV (Was: Reload reloading outdated values ?)

2012-10-04 Thread Ian Lance Taylor
On Thu, Oct 4, 2012 at 6:40 AM, Frederic Riss frederic.r...@gmail.com wrote: Thanks to the help of segher and iant on IRC (thanks again!), I narrowed my problem down to something I can fully understand and explain (well I hope). There is a bad interaction between the IRA handling of subregs

Re: libbacktrace and darwin

2012-10-04 Thread Ian Lance Taylor
On Thu, Oct 4, 2012 at 1:32 PM, Jack Howarth howa...@bromo.med.uc.edu wrote: Is libbacktrace currently functional in gcc trunk and is it expected to function on darwin? While I could understand it not working on installed binaries of FSF gcc that were stripped, I would think it should work

Re: Error reporting functions

2012-10-04 Thread Ian Lance Taylor
On Thu, Oct 4, 2012 at 5:21 PM, Iyer, Balaji V balaji.v.i...@intel.com wrote: This question is mainly for some future submission. Am I allowed to use fatal_error (..)? Mainly, I want to use it in cases where I want to say if this error has occurred, I see no reason to go forward with

Re: libbacktrace and darwin

2012-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2012 at 2:37 AM, Richard Guenther richard.guent...@gmail.com wrote: So I take it that libbacktrace doesn't work with the separate DWARF debuginfo as shipped by all Linux distributions either? That does not work at present. I doubt it's difficult. Ian

Re: Proposing switch -fsmart-pointers

2012-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2012 at 9:08 AM, _ neura...@gmail.com wrote: I thing it would be best to implement it as compiller switch -fsmart-pointers not requiring scope object and derive statement for objects. ie we need equal flexibility and freedom like have today with static objects Experience shows

Re: Instability in successive builds of fortran mod files with f951

2012-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2012 at 10:45 AM, Simon Baldwin sim...@google.com wrote: I've looked at fortran/module.c and at libgomp/omp_lib.mod, and this is not a bug. This isn't particularly helpful, but, based on the rest of your description, this is a bug. The compiler should never depend on the order

Re: thumb2 support

2012-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2012 at 4:42 AM, Grant emailgr...@gmail.com wrote: Hello, I'm working with the BeagleBone and gcc-4.5.4 on Gentoo. If I try to compile the 3.6 kernel with CONFIG_THUMB2_KERNEL, I get: arch/arm/boot/compressed/head.S:127: Error: selected processor does not support requested

Re: thumb2 support

2012-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2012 at 9:58 PM, Grant emailgr...@gmail.com wrote: Hello, I'm working with the BeagleBone and gcc-4.5.4 on Gentoo. If I try to compile the 3.6 kernel with CONFIG_THUMB2_KERNEL, I get: arch/arm/boot/compressed/head.S:127: Error: selected processor does not support requested

Re: Question about memory allocation in ifcvt.c

2012-10-14 Thread Ian Lance Taylor
On Sun, Oct 14, 2012 at 1:40 AM, Andrew Pinski pins...@gmail.com wrote: Maybe Ian can mention why he used alloca there instead of xmalloc. It was a long time ago, but I expect it was just because alloca is usually fine for memory that has to live for just a single function. As a single-threaded

Re: Bugzilla new bug page

2012-10-18 Thread Ian Lance Taylor
On Thu, Oct 18, 2012 at 10:14 AM, Jonathan Wakely jwakely@gmail.com wrote: That PR now has a link to a mocked up bugzilla page: http://www.kayari.plus.com/gcc/enter_bug.cgi-1.html which I think would be a significant improvement, without getting in the way or being an eyesore. Do any

Re: Inconsistency between code and docs

2012-10-18 Thread Ian Lance Taylor
On Thu, Oct 18, 2012 at 8:02 AM, Paulo Matos pma...@broadcom.com wrote: I have found a strange inconsistency between code and docs for TARGET_ASM_NAMED_SECTION. Docs say (http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gccint/File-Framework.html#index-TARGET_005fASM_005fNAMED_005fSECTION-4472):

Re: Build/Makefile question

2012-10-26 Thread Ian Lance Taylor
On Fri, Oct 26, 2012 at 10:58 AM, Caroline Tice cmt...@google.com wrote: I am working on a patch (which I hope to be able to submit in the next few days), and I have run into a snag that I am hoping someone can help me with. As part of this patch, I am trying to build two new *.a (static

Re: Build/Makefile question

2012-10-26 Thread Ian Lance Taylor
On Fri, Oct 26, 2012 at 3:25 PM, Caroline Tice cmt...@google.com wrote: Ok, here are the patches for the Makefile.am and Makefile.in files. I am also having trouble with the following issue: I need to make sure that one of the new libraries is linked in with libstdc++ when libstdc++ gets

Re: Build/Makefile question

2012-10-27 Thread Ian Lance Taylor
On Sat, Oct 27, 2012 at 1:45 PM, Caroline Tice cmt...@google.com wrote: Ian Tayler (in private communication) asked that I get the part of the build log that shows the .so and .a files being built and send it to the list. Here it is. I see the problem. libstdc++/libsupc++/Makefile.am

Re: add .cc files to libgcc.a

2012-10-29 Thread Ian Lance Taylor
On Mon, Oct 29, 2012 at 9:20 AM, Perry Smith pedz...@gmail.com wrote: I'm sure they could be rewritten in C. GNUs libc choose to do them in C++ probably because C++ just gives a nicer way to do things. In the GNU libc __cxa_atexit and __cxa_finalize are written in C, not C++. We should not

Re: Build/Makefile question

2012-10-29 Thread Ian Lance Taylor
On Mon, Oct 29, 2012 at 10:24 AM, Caroline Tice cmt...@google.com wrote: Actually, I did have to edit the Makefile.in slightly. When I generate it with automake, it automatically adds the lines: libvtv_init_la_LIBADD = libvtv_init_la_SOURCES = libvtv_init.c libvtv_init_la_OBJECTS =

Re: gcc-4.8-20121028 array bound check

2012-10-29 Thread Ian Lance Taylor
On Mon, Oct 29, 2012 at 3:56 AM, nat...@t-online.de nat...@t-online.de wrote: I find this array bound check too hard: Please file a bug report. http://gcc.gnu.org/bugs/ Thanks. Ian

Re: calculation of pi

2012-11-02 Thread Ian Lance Taylor
On Fri, Nov 2, 2012 at 8:13 AM, Mischa Baars mjbaars1...@gmail.com wrote: I have been writing this piece of example code, but it seems that someone has been modifying the compiler in the meantime such that arguments are now passed in xmm registers instead of over the stack. Also the npx top of

Re: calculation of pi

2012-11-03 Thread Ian Lance Taylor
On Sat, Nov 3, 2012 at 12:55 AM, Mischa Baars mjbaars1...@gmail.com wrote: On 11/02/2012 07:11 PM, Ian Lance Taylor wrote: On Fri, Nov 2, 2012 at 8:13 AM, Mischa Baars mjbaars1...@gmail.com wrote: I have been writing this piece of example code, but it seems that someone has been modifying

Re: calculation of pi

2012-11-04 Thread Ian Lance Taylor
On Sun, Nov 4, 2012 at 1:34 AM, Mischa Baars mjbaars1...@gmail.com wrote: On 11/04/2012 02:45 AM, Ian Lance Taylor wrote: There is no original. The 32-bit and 64-bit ABIs are different. The 64-bit ABI has always passed arguments in registers. There is no option to force the 64-bit compiler

Re: Using -ffunction-sections and -p

2012-11-04 Thread Ian Lance Taylor
On Sun, Nov 4, 2012 at 8:04 PM, Sriraman Tallam tmsri...@google.com wrote: Currently, using -ffunction-sections and -p together results in a warning. I ran into this problem when compiling the kernel. This is discussed in this thread: http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html

Re: a question for the c/c++ front end / standards people.

2012-11-05 Thread Ian Lance Taylor
On Mon, Nov 5, 2012 at 10:02 AM, Kenneth Zadeck zad...@naturalbridge.com wrote: The question is why is having a case label of 256 on a unsigned char switch legal? Are you asking why it is valid in the C language? Or are you asking why it is valid in GIMPLE? I guess the first question is

Re: Time for GCC 5.0? (TIC)

2012-11-05 Thread Ian Lance Taylor
On Mon, Nov 5, 2012 at 3:45 PM, Steven Bosscher stevenb@gmail.com wrote: On Wed, 24 Mar 2010 04:34:15 +, Dave Korn wrote: Say, why don't we reserve GCC 5.0 for the first version that gets rid of reload? Then let's see if we can get there while the X in 4.X is still in single

-fPIC -fPIE

2012-11-13 Thread Ian Lance Taylor
Currently -fPIC -fPIE seems to be the same as -fPIE. Unfortunately, -fPIE -fPIC also seems to be the same as -fPIE. It seems to me that, as is usual with conflicting options, we should use the one that appears last on the command line. Do we have an existing mechanism in options processing for

Re: -fPIC -fPIE

2012-11-13 Thread Ian Lance Taylor
On Tue, Nov 13, 2012 at 7:00 AM, H.J. Lu hjl.to...@gmail.com wrote: On Tue, Nov 13, 2012 at 6:56 AM, Ian Lance Taylor i...@google.com wrote: Currently -fPIC -fPIE seems to be the same as -fPIE. Unfortunately, -fPIE -fPIC also seems to be the same as -fPIE. It seems to me that, as is usual

Re: -fPIC -fPIE

2012-11-14 Thread Ian Lance Taylor
On Wed, Nov 14, 2012 at 5:36 AM, Richard Earnshaw rearn...@arm.com wrote: On 13/11/12 14:56, Ian Lance Taylor wrote: Currently -fPIC -fPIE seems to be the same as -fPIE. Unfortunately, -fPIE -fPIC also seems to be the same as -fPIE. It seems to me that, as is usual with conflicting options

Re: Using -ffunction-sections and -p

2012-11-14 Thread Ian Lance Taylor
On Wed, Nov 14, 2012 at 10:58 AM, Sriraman Tallam tmsri...@google.com wrote: On Sun, Nov 4, 2012 at 9:03 PM, Ian Lance Taylor i...@google.com wrote: On Sun, Nov 4, 2012 at 8:04 PM, Sriraman Tallam tmsri...@google.com wrote: Currently, using -ffunction-sections and -p together results

Re: Using -ffunction-sections and -p

2012-11-14 Thread Ian Lance Taylor
On Wed, Nov 14, 2012 at 12:04 PM, Jeff Law l...@redhat.com wrote: On 11/14/2012 01:00 PM, Ian Lance Taylor wrote: Given that nobody has stepped forward to test it, let's just remove the code and see if anybody complains. I'll approve the patch unless somebody objects in the next 24 hours

Re: RFC - Alternatives to gengtype

2012-11-16 Thread Ian Lance Taylor
On Fri, Nov 16, 2012 at 2:06 AM, Basile Starynkevitch bas...@starynkevitch.net wrote: My strong belief is that a compiler project as gigantic as GCC needs some kind of garbage collection. I suspect that is correct, especially given the way the compiler is currently implemented. But I also

Re: Unifying the GCC Debugging Interface

2012-11-21 Thread Ian Lance Taylor
On Wed, Nov 21, 2012 at 3:18 AM, Gabriel Dos Reis g...@integrable-solutions.net wrote: On Tue, Nov 20, 2012 at 6:16 PM, Lawrence Crowl cr...@googlers.com wrote: And, as a side note, highly formatted output generally is not much better than printf. For any text that needs to be localized, I

Re: -fPIC -fPIE

2012-11-21 Thread Ian Lance Taylor
On Wed, Nov 21, 2012 at 8:56 AM, Paolo Bonzini bonz...@gnu.org wrote: Il 14/11/2012 15:27, Ian Lance Taylor ha scritto: On Wed, Nov 14, 2012 at 5:36 AM, Richard Earnshaw rearn...@arm.com wrote: On 13/11/12 14:56, Ian Lance Taylor wrote: Currently -fPIC -fPIE seems to be the same as -fPIE

Re: RFC - Initial planning for next Cauldron workshop

2012-11-21 Thread Ian Lance Taylor
On Wed, Nov 21, 2012 at 11:27 AM, Diego Novillo dnovi...@google.com wrote: Ian and I have started thinking about the next Cauldron. This time, we are thinking of organizing it in Mountain View, at Google's headquarters. In case it's not obvious, this is Mountain View, California, USA. -

Re: -fPIC -fPIE

2012-11-21 Thread Ian Lance Taylor
On Wed, Nov 21, 2012 at 1:20 PM, Paolo Bonzini bonz...@gnu.org wrote: On Wed, Nov 21, 2012 at 8:02 PM, Ian Lance Taylor i...@google.com wrote: The main advantage is that you can compile a program with CFLAGS=-O2 -g -fPIE, and libtool's adding of -fPIC for shared libraries will work reliably

Re: Could we start accepting rich-text postings on the gcc lists?

2012-11-24 Thread Ian Lance Taylor
Diego Novillo dnovi...@google.com writes: Sure. First I wanted to find out whether this requirement is just a technical limitation with our mailing list software. It is not a technical limitation. We explicitly reject HTML e-mail. We could accept it. As Jonathan pointed out, accepting HTML

Re: MCSoC2013: to enhance embedded Linux for many-core system

2012-12-11 Thread Ian Lance Taylor
On Mon, Dec 10, 2012 at 2:00 AM, ETANI NORIKO norik...@fc.ritsumei.ac.jp wrote: We have been developing many-core system in a program of“Extremely Low-power Circuits and Systems (Green IT Project)”sponsored by New Energy and Industrial Technology Development Organization (NEDO) which is one

Re: How to write an array var into .s file without null-terminator

2012-12-11 Thread Ian Lance Taylor
On Tue, Dec 11, 2012 at 5:27 PM, Dmitry Mikushin dmi...@kernelgen.org wrote: We are trying to embed a raw vector of chars into .s file using the following code: tree index_type = build_index_type(size_int(moduleBitcode.size())); tree const_char_type = build_qualified_type(

Re: Accessing Go type descriptors from the middle end

2012-12-13 Thread Ian Lance Taylor
On Thu, Dec 13, 2012 at 4:16 AM, Matt Davis mattdav...@gmail.com wrote: I have a GIMPLE pass and would like to make use of the data type information that the Go frontend produces. Is there a way to access this information from the middle end without having to query the frontend? What kind

Re: Accessing Go type descriptors from the middle end

2012-12-13 Thread Ian Lance Taylor
On Thu, Dec 13, 2012 at 3:52 PM, Matt Davis mattdav...@gmail.com wrote: On Fri, Dec 14, 2012 at 10:00 AM, Ian Lance Taylor i...@google.com wrote: On Thu, Dec 13, 2012 at 4:16 AM, Matt Davis mattdav...@gmail.com wrote: I have a GIMPLE pass and would like to make use of the data type

Re: Possible issue with integer promotion for and in gcc.4.5.3

2012-12-18 Thread Ian Lance Taylor
On Tue, Dec 18, 2012 at 2:39 PM, Arthur Schwarz aschwarz1...@att.net wrote: I have run some tests to determine the gcc 4.5.3 integer promotion policies. This message is not appropriate for the mailing list gcc@gcc.gnu.org, which is for the development of GCC itself. It would be appropriate on

Re: cloog/isl version update for gcc 4.8

2012-12-21 Thread Ian Lance Taylor
On Fri, Dec 21, 2012 at 8:06 AM, Richard Günther richard.guent...@gmail.com wrote: Oy vey, he's changed his name again. Ian

Re: cloog/isl version update for gcc 4.8

2012-12-21 Thread Ian Lance Taylor
On Fri, Dec 21, 2012 at 8:39 AM, Jack Howarth howa...@bromo.med.uc.edu wrote: The main issue is that the test in configure is brain-dead and demands an explicit version. Any reason not to fix that? Ian

Re: Primary and secondary sysroot?

2013-01-07 Thread Ian Lance Taylor
On Mon, Jan 7, 2013 at 2:47 AM, Dmitry Mikushin dmi...@kernelgen.org wrote: We have a version of GCC coming as additional toolchain for several supported Linux distros. Moreover, package we are shipping also contains modified glibc and some other libraries. In this situation, applications

Re: Query regarding atomic builtins

2013-01-10 Thread Ian Lance Taylor
On Thu, Jan 10, 2013 at 10:38 AM, Prasad Joshi prasadjoshi...@gmail.com wrote: I recently joined this mailing list and I was particularly interested in knowing how the atomic built-ins (http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html) are implemented in gcc. I skimmed

Re: stabs support in binutils, gcc, and gdb

2013-01-11 Thread Ian Lance Taylor
On Fri, Jan 11, 2013 at 5:55 PM, Cary Coutant ccout...@google.com wrote: Next, I compiled a 5000-line C++ source file at both -O0 and -O2. I have to assume that David is working with C code, as stabs debugging for C++ is nearly unusable. Ian

Re: not-a-number's

2013-01-16 Thread Ian Lance Taylor
On Wed, Jan 16, 2013 at 4:52 AM, Mischa Baars mjbaars1...@gmail.com wrote: Let me explain again for you. Every 'if' statement in C is translated into a 'fucom' or similar instruction, which sets a number of conditions flags in the co-processor. Some instructions need you to load these into the

Re: Question on lower-subreg.c

2013-01-25 Thread Ian Lance Taylor
On Thu, Jan 24, 2013 at 11:57 PM, Bin.Cheng amker.ch...@gmail.com wrote: I read code in lower-subreg.c and found GCC only split some of multi-word mode instructions, like load from memory into pseudo reg, etc. The related code is in find_decomposable_subregs. So for below example from

Re: Initial Stack Padding?

2013-01-27 Thread Ian Lance Taylor
On Sat, Jan 26, 2013 at 5:44 PM, Matt Davis mattdav...@gmail.com wrote: This question is similar to my last; however, I think it provides a bit more clarity as to how I am obtaining offsets from the frame pointer. I have an RTL pass that is processed after expand passes. I keep track of a

Re: Bug repositories

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 6:48 AM, Igor Kovacevic igor.kovacev...@gmail.com wrote: I'm a master student and I'm writing my thesis on bug triaging in open source project and I wondering if I can access to a big part of the bug repository, if I can, how to do it ? Writing a crawler/parser for

Re: Bug repositories

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 11:51 AM, Frédéric Buclin lpso...@netscape.net wrote: (Igor jumped into the Bugzilla developers IRC channel, so that's why I heard about this thread.) Ian said: I'm willing to provide you with a dump of gcc's bugzilla database if you can give me the exact command to

Re: Loading Gimple from file

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 1:46 PM, Chassin chas...@ceis.cujae.edu.cu wrote: is there any function allows loading Gimple output from file and create the internal Gimple structure ? Not to my knowledge, but see http://gcc.gnu.org/wiki/GimpleFrontEnd . Ian

Re: RTL insns set differences

2013-01-30 Thread Ian Lance Taylor
On Wed, Jan 30, 2013 at 1:51 AM, Umesh Kalappa umesh.kalap...@gmail.com wrote: First ,As per the gcc Gimple to RTL conversion ,the RTL insns set should be same for the both target ...am i rite here ???...or do i miss something here ??? Although you didn't say that the targets are, you said

Re: Array of pointers to global data

2013-01-31 Thread Ian Lance Taylor
On Thu, Jan 31, 2013 at 8:03 PM, Matt Davis mattdav...@gmail.com wrote: decl = create_tmp_var(type, testarray); DECL_INITIAL(decl) = build_constructor(type, entries); return decl; Do you ever create a DECL_EXPR statement for this local variable? Ian

Re: How To Add a Sequence Point?

2013-02-03 Thread Ian Lance Taylor
On Sat, Feb 2, 2013 at 5:10 PM, Jeffrey Walton noloa...@gmail.com wrote: What does C/C++ and GCC offer to ensure writes are complete before reads are performed on a value in a multi-threaded program? The write must be done using __atomic_store(pointer, value, __ATOMIC_RELEASE); The read

Re: How To Add a Sequence Point?

2013-02-03 Thread Ian Lance Taylor
On Sun, Feb 3, 2013 at 11:47 AM, David Brown david.br...@hesbynett.no wrote: Anyway, the simplest memory barrier in gcc is : asm volatile( ::: memory); That is a compilation level memory barrier, but it clearly does nothing at the machine level. To get a machine level (and

Re: coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 6:54 AM, Frediano Ziglio frediano.zig...@citrix.com wrote: I imported some headers from Linux kernel which mainly came from gcov-io.h and the structures used internally by GCC. Our problem is currently about the license. In gcov-io.h is stated that license is mainly

Re: [Xen-devel] coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 9:05 AM, Jan Beulich jbeul...@suse.com wrote: On 04.02.13 at 17:46, Ian Lance Taylor i...@google.com wrote: On Mon, Feb 4, 2013 at 6:54 AM, Frediano Ziglio frediano.zig...@citrix.com wrote: I imported some headers from Linux kernel which mainly came from gcov-io.h

Re: coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 12:56 PM, Paolo Bonzini bonz...@gnu.org wrote: Would it make sense to release the header file under a permissive license or even public domain? The information there is just ABI, it's dubious that it is copyrightable at all. If two colleagues of Frediano's did a

Re: Possible NULL pointer dereference in GCC's vec code?

2013-02-11 Thread Ian Lance Taylor
On Mon, Feb 11, 2013 at 11:48 AM, Jeff Law suzanne.jeff@gmail.com wrote: Consider this code in va_gc::reserve: templatetypename T, typename A void va_gc::reserve (vecT, A, vl_embed *v, unsigned reserve, bool exact MEM_STAT_DECL) { unsigned alloc =

Re: Use of templates in c code?

2013-02-13 Thread Ian Lance Taylor
On Wed, Feb 13, 2013 at 5:47 AM, Diego Novillo dnovi...@google.com wrote: On Wed, Feb 13, 2013 at 8:31 AM, Alec Teal a.t...@warwick.ac.uk wrote: On 13/02/13 12:39, Richard Biener wrote: On Wed, Feb 13, 2013 at 1:31 PM, Alec Teal a.t...@warwick.ac.uk wrote: It's just a filename ... we compile

Re: make_decl_one_only and inlining

2013-02-15 Thread Ian Lance Taylor
On Fri, Feb 15, 2013 at 9:57 AM, Johannes Pfau johannesp...@gmail.com wrote: We recently got a bug report for the GCC D compiler frontend which shows that we currently don't inline any templated functions. The reason seems to be that decl_replaceable_p always returns true for D template

Re: make_decl_one_only and inlining

2013-02-16 Thread Ian Lance Taylor
On Sat, Feb 16, 2013 at 12:00 AM, Johannes Pfau johannesp...@gmail.com wrote: Ian Lance Taylor iant at google.com writes: Why is that? decl_replaceable_p is supposed to be true for a function that may be replaced by an entirely different function at runtime. This is mainly to implement

Re: Question on Undefined Right Shifts

2013-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2013 at 4:19 PM, Jeffrey Walton noloa...@gmail.com wrote: I've been using John Regehr's Integer Overflow Checker (IOC) on a few libraries. It is a Clang plug-in and can be found at http://embed.cs.utah.edu/ioc/. The checker has flagged two libraries I use for performing

Re: Can DWARF2 CFI represent a static return location?

2013-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2013 at 7:32 PM, Alan Lehotsky alehot...@me.com wrote: I'm looking at a machine with limited stack, and no push instructions or displaced-addressing mode. The call instruction stores the return address in the link register. For non-recursive functions we save the return

Re: TREE_ADDRESSABLE types cause ICE in declare_return_variable

2013-02-21 Thread Ian Lance Taylor
On Thu, Feb 21, 2013 at 7:58 AM, Johannes Pfau johannesp...@gmail.com wrote: the gdc D compiler currently doesn't implement non-POD types. As in C++ those types can have copy constructors or destructors and should be kept in memory. Right now I just set TREE_ADDRESSABLE on the RECORD_TYPE

Re: svn returning Access Denied

2013-02-27 Thread Ian Lance Taylor
On Wed, Feb 27, 2013 at 3:35 PM, Joseph F Shobe jfsh...@wichita.edu wrote: I've been doing some research and using your SVN repository. I have limited myself to just performing 'svn log' and 'svn ls' requests. However, as of late, I am no longer able to to perform this function from a

Re: Question on building a variably modified type at parameter scope

2013-03-05 Thread Ian Lance Taylor
On Tue, Mar 5, 2013 at 4:49 AM, YU Chenkan cy...@ust.hk wrote: I'm a newbie and I'm trying to modify the front end to extend C. I know the following code can be accepted, void f (struct S { int a; } s, int a[][s.a]) { } . I'm wondering whether it is possible to build a structure

Re: Adding UNION/MAP -- Feedback and tips pls!

2013-03-06 Thread Ian Lance Taylor
On Wed, Mar 6, 2013 at 11:46 AM, N.M. Maclaren n...@cam.ac.uk wrote: On Mar 6 2013, Andrew Pinski wrote: Except GCC implements C's unions as allowing to do type punning as an extension and as far as GCC is concerned that is not going to change any time soon. This is a documented exception

Re: Build problem with 4.8.0 RC-20130316 and in-tree binutils

2013-03-20 Thread Ian Lance Taylor
On Wed, Mar 20, 2013 at 5:35 AM, Matt Godbolt m...@godbolt.org wrote: I'm having trouble building the RC 4.8.0 with an in-tree binutils on an Ubuntu 12.04 x86_64. It seems that while building GCC, the runtime library path does not include the objdir/prev-*/.libs directories; so whenever any

Re: Build problem with 4.8.0 RC-20130316 and in-tree binutils

2013-03-20 Thread Ian Lance Taylor
On Wed, Mar 20, 2013 at 6:36 AM, Matt Godbolt m...@godbolt.org wrote: Thanks for the quick reply. I definitely have --enable-shared set in the configuration, and had so with 4.7. However I'm not certain that previously a system-installed libbfd.so et al were causing my build to succeed (for

Re: GCC 4.8.0 does not compile for DJGPP

2013-03-24 Thread Ian Lance Taylor
On Sun, Mar 24, 2013 at 10:51 AM, Fabrizio Gennari fabrizio...@tiscali.it wrote: Il 24/03/2013 18:48, Fabrizio Gennari ha scritto: Il 23/03/2013 18:07, DJ Delorie ha scritto: The DJGPP build of gcc 4.8.0 was just uploaded, it might have some patches that haven't been committed upstream yet.

Re: Inquiry about GCC Summer Of Code project idea.

2013-03-25 Thread Ian Lance Taylor
On Mon, Mar 25, 2013 at 7:42 AM, Fotis Koutoulakis fotis.koutoula...@gmail.com wrote: I am writing this email with regard to a potential project idea that's hosted on the GCC wiki about porting the go programming language GCC (gccgo) frontend to the GNU/HURD operating system (information found

Re: GCC 4.8.0 does not compile for DJGPP

2013-03-25 Thread Ian Lance Taylor
On Mon, Mar 25, 2013 at 11:02 AM, Fabrizio Gennari fabrizio...@tiscali.it wrote: Il 25/03/2013 00:00, Ian Lance Taylor ha scritto: On Sun, Mar 24, 2013 at 10:51 AM, Fabrizio Gennari fabrizio...@tiscali.it wrote: Il 24/03/2013 18:48, Fabrizio Gennari ha scritto: Il 23/03/2013 18:07, DJ

Re: gcc build on FC18 and automake 1.11

2013-03-27 Thread Ian Lance Taylor
On Wed, Mar 27, 2013 at 2:04 PM, Nenad Vukicevic ne...@intrepid.com wrote: The latest Fedora Core 18 comes with automake 1.12.1 and perl 5.16.2. I installed and tried to use automake 1.11.1 for one of the GCC libraries, but got a warning from aclocal: main::scan_file() called too early to

Re: gengtype and inheritance

2013-03-28 Thread Ian Lance Taylor
On Thu, Mar 28, 2013 at 7:06 AM, Diego Novillo dnovi...@google.com wrote: On Thu Mar 28 08:53:03 2013, Richard Biener wrote: Eh - in fact you _promised_ to do that in trade for accepting the C++ conversion! Never trust promises from google ... *sigh* You need to calm down. This childish

Re: --disable-install-libiberty and libiberty.a

2013-03-29 Thread Ian Lance Taylor
On Fri, Mar 29, 2013 at 1:35 AM, Matt Burgess matt...@linuxfromscratch.org wrote: 1) We currently assume that binutils is 'upstream' for libiberty development, and should therefore 'own' the libiberty.a file. Is that assumption correct? No. The master sources for libiberty are in the GCC

Re: Trying to find a link for information about parsing template parameters and the problem

2013-04-01 Thread Ian Lance Taylor
On Mon, Apr 1, 2013 at 8:55 AM, Alec Teal a.t...@warwick.ac.uk wrote: I'm still planning to rewrite the c++ parser in GCC, right now I am still researching, I remember a page that talked about the problems of parsing in nested templates, and I cannot find the link! Searching for it has

  1   2   3   4   5   6   7   8   9   10   >