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 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 of data type info

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 wrote: > > On Fri, Dec 14, 2012 at 10:00 AM, Ian Lance Taylor wrote: >> On Thu, Dec 13, 2012 at 4:16 AM, Matt Davis wrote: >>> >>> I have a GIMPLE pass and would like to make use of the data type >>> informa

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 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 the mailing list g

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 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 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 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 > built with this com

Re: Query regarding atomic builtins

2013-01-10 Thread Ian Lance Taylor
On Thu, Jan 10, 2013 at 10:38 AM, Prasad Joshi 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 through the source code

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 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 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 eflags > register

Re: Question on lower-subreg.c

2013-01-25 Thread Ian Lance Taylor
On Thu, Jan 24, 2013 at 11:57 PM, Bin.Cheng 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 PR56102: > > double g

Re: Initial Stack Padding?

2013-01-27 Thread Ian Lance Taylor
On Sat, Jan 26, 2013 at 5:44 PM, Matt Davis 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 list of stack alloc

Re: Bug repositories

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 6:48 AM, Igor Kovacevic 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 bugzilla or something

Re: Bug repositories

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 11:51 AM, Frédéric Buclin 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 run." > > > S

Re: Loading Gimple from file

2013-01-28 Thread Ian Lance Taylor
On Mon, Jan 28, 2013 at 1:46 PM, Chassin 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 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 that you had two differ

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 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 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 must be done using

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 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 compilation level) memory b

Re: coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 6:54 AM, Frediano Ziglio 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 GPL2 which the exceptio

Re: [Xen-devel] coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 9:05 AM, Jan Beulich wrote: >>>> On 04.02.13 at 17:46, Ian Lance Taylor wrote: >> On Mon, Feb 4, 2013 at 6:54 AM, Frediano Ziglio >> wrote: >>> >>> I imported some headers from Linux kernel which mainly came from >>>

Re: coverage license information

2013-02-04 Thread Ian Lance Taylor
On Mon, Feb 4, 2013 at 12:56 PM, Paolo Bonzini 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 clean-room reve

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 wrote: > > Consider this code in va_gc::reserve: > > > template > void > va_gc::reserve (vec *&v, unsigned reserve, bool exact > MEM_STAT_DECL) > { > unsigned alloc > = vec_prefix::calculate_allocation (v ? &v->vecpfx_ : 0, reserve,

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 wrote: > On Wed, Feb 13, 2013 at 8:31 AM, Alec Teal wrote: >> On 13/02/13 12:39, Richard Biener wrote: >>> >>> On Wed, Feb 13, 2013 at 1:31 PM, Alec Teal wrote: >>> It's just a filename ... we compile it with a C++ compiler. >>> >>> Richard. >> >> I

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 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 functions. Why is tha

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 wrote: > Ian Lance Taylor 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 t

Re: Question on Undefined Right Shifts

2013-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2013 at 4:19 PM, Jeffrey Walton 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 undefined > right

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 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 address in a st

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 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 tree and it's most

Re: svn returning Access Denied

2013-02-27 Thread Ian Lance Taylor
On Wed, Feb 27, 2013 at 3:35 PM, Joseph F Shobe 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 > server located at W

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 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 which h

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 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 to

Re: changing gcc

2008-01-05 Thread Ian Lance Taylor
"amnon stanislavsky" <[EMAIL PROTECTED]> writes: > Could you please direct me on how to change gcc so that it will translate > c/c++ files to an assembly language to a new instruction set that I am > building? http://gcc.gnu.org/onlinedocs/gccint/ Notably the chapters "Machine Descriptions" and

Re: hard_regno_nregs == 0 ?

2008-01-09 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > In rtlanal.c we have these lines: > > nregs_ymode = hard_regno_nregs[xregno][ymode]; > ... > && (GET_MODE_SIZE (ymode) % nregs_ymode) == 0) > > The m32c cc1 crashes here because xregno is 1 and ymode is QI, and > register 1 cannot hold a QI valu

Re: Changes in C++ FE regarding pedwarns to be errors are harmful

2008-01-09 Thread Ian Lance Taylor
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: > Of course there is a third option: > > * Make pedwarns warnings by default unless -Werror or > --pedantic-errors are given (just like the C front-end). This makes sense to me. I have never understood why it is a good idea for the C++ and C fro

Re: [RFC] porting to gcc-4.3 docs

2008-01-09 Thread Ian Lance Taylor
Benjamin Kosnik <[EMAIL PROTECTED]> writes: > As such, I'd like to get a general indication from the greater GCC > community as to this plan. Does this document seem like a good idea? > (Previously, we've left this kind of document to the user community. > Often the passage of time has not been pa

Re: about regenerate new configure script file

2008-01-09 Thread Ian Lance Taylor
tian xiaonan <[EMAIL PROTECTED]> writes: > Hi, All. I don't know How to regenerate a new > configure file while added new target on config.sub, > and gcc/config.gcc. I am a newcomer in using GCC. Changing config.sub and/or gcc/config.gcc does not require regenerating the configure script. If yo

Re: hard_regno_nregs == 0 ?

2008-01-09 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > > I would first ask why subreg_get_info is being called with ymode == > > QImode for a hard register which can not hold QImode. That implies > > that there is a QImode value in the register, which you say is > > invalid. > > Are there any ports besides m3

Re: Allocating scratch register

2008-01-09 Thread Ian Lance Taylor
Boris Boesler <[EMAIL PROTECTED]> writes: > I'm trying to allocate a scratch register: write immediate constant > into scratch register r, write register r into memory > > ;; write imm into memory > (define_insn_and_split "mov_imm_by_store" >[(set (match_operand:I8I16 0 "memory_operand"

Re: -Wparentheses lumps too much together

2008-01-11 Thread Ian Lance Taylor
Joe Buck <[EMAIL PROTECTED]> writes: > A warning that flagged code like > > if (c1 || c2 && c3) >... > > would swamp users in warnings, since this kind of code is extremely > common, and this isn't the kind of thing that anyone who's not a total C > beginner has trouble with. That is what -

Re: Is it possible to import a gimple file into gcc so to generate target code?

2008-01-11 Thread Ian Lance Taylor
Haizhou LING <[EMAIL PROTECTED]> writes: > Suppose we dump the GIMPLE tree into a file by using gcc option. Is it > possible to import the GIMPLE file into the gcc and generate the target > code? No. The LTO project is working toward making something like that possible. Ian

Re: -Wparentheses lumps too much together

2008-01-11 Thread Ian Lance Taylor
"Doug Gregor" <[EMAIL PROTECTED]> writes: > To make this discussion a bit more concrete, the attached patch > removes this particular warning from -Wparentheses and puts it into a > new warning, -Wprecedence, that is not enabled by -Wall. This is > slightly more fine-grained than what -Wparenthese

Re: Memory leaks in compiler

2008-01-16 Thread Ian Lance Taylor
"Kaveh R. GHAZI" <[EMAIL PROTECTED]> writes: > For what is to save developer time, which is way more valuable than cpu > time. If you are the only person running the compiler, then developer time is far more valuable than CPU time. But tens of thousands of people run the compiler, and they run i

Re: A simple sample code involving templates, friends and lookup

2008-01-17 Thread Ian Lance Taylor
"Richard Guenther" <[EMAIL PROTECTED]> writes: > On Jan 17, 2008 2:12 PM, Dragan Milenkovic <[EMAIL PROTECTED]> wrote: > > Richard Guenther wrote: > > [snip] > > >> template > > >> struct Foo > > >> { > > >> template > > >> friend void func(const Foo &); > > >> }; > > >> > > >> void ch

Re: A simple sample code involving templates, friends and lookup

2008-01-17 Thread Ian Lance Taylor
"Richard Guenther" <[EMAIL PROTECTED]> writes: > > > On Jan 17, 2008 2:12 PM, Dragan Milenkovic <[EMAIL PROTECTED]> wrote: > > > > Richard Guenther wrote: > > > > [snip] > > > > >> template > > > > >> struct Foo > > > > >> { > > > > >> template > > > > >> friend void func(const Foo &);

Re: Finding out what backend instruction pattern matches instruction

2008-01-22 Thread Ian Lance Taylor
Andrew Hutchinson <[EMAIL PROTECTED]> writes: > The alternative, perhaps, would be to set each length attribute > dynamically in each pattern - if that was possible. But that looks > like way more work. That is certainly the best way. Search for "length" in mips.md for one example of how it can

Re: Finding out what backend instruction pattern matches instruction

2008-01-22 Thread Ian Lance Taylor
Andrew Hutchinson <[EMAIL PROTECTED]> writes: > As I say above, the logic already exists as c function. If we could > call these directly to determine the attribute value, it would be much > easier! You can. Use symbol_ref. Again, examples in mips.md. Note how the default value for the "length

Re: dwarf2 EH address size

2008-01-24 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > The m32c port has this: > > #define DWARF2_ADDR_SIZE 4 > > However, dwarf2asm.c has this: > > int > size_of_encoded_value (int encoding) > { > . . . > case DW_EH_PE_absptr: > return POINTER_SIZE / BITS_PER_UNIT; > > The net result is th

Re: dwarf2 EH address size

2008-01-25 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > > The EH code does seem to use POINTER_SIZE pretty consistently. > > DWARF2_ADDR_SIZE is for the debug info, not the exception frame > > info. I haven't looked into the history of why this is so. > > Hmmm... I suppose the EH info is used by the runtime as

Re: uninit-13 testcase: Weird line number in the "uninitialized use" warning

2008-01-25 Thread Ian Lance Taylor
"Andreas Krebbel" <[EMAIL PROTECTED]> writes: > Should we do something about this for GCC 4.3 or just XFAIL the > testcases for s390 and s390x? I haven't tried to figure out what is really going on, but I know the answer to this question: an off-by-one error in the line number for a warning is a

Re: Question about Register Class Allocation

2008-01-29 Thread Ian Lance Taylor
"Balaji V. Iyer" <[EMAIL PROTECTED]> writes: > I saw that regclass() function determines which class of register > the registers in the current units should be assigned to. The question I > have is: Will this decision change in any other parts of the compiler? > or is this this the final place

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 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

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

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

Re: gcc bug question regarding error recovery

2008-02-01 Thread Ian Lance Taylor
Pjotr Kourzanov <[EMAIL PROTECTED]> writes: > int main() { const int size=10; struct foo { > int array[size]; int* p; };// f = { .p=0 }; > struct foo f = { .p = 0 }; } With gcc mainline, compiled with checking, I get an ICE: /home/iant/foo1.c: In function

Re: How to implement efficiently builtins for dual-result instructions ?

2008-02-04 Thread Ian Lance Taylor
Paolo Bonzini <[EMAIL PROTECTED]> writes: > > To invoke this instruction from the source level, a compiler builtin > > is provided. > > Since C syntax doesn't provide functions with two results, this builtin > > refers > > to them via pointers:__super_ld32( int* x, int *y, int *a) > > I did some

Re: How to implement efficiently builtins for dual-result instructions ?

2008-02-07 Thread Ian Lance Taylor
Paolo Bonzini <[EMAIL PROTECTED]> writes: > > In the response of Paolo I also don't understand how the DI pseudo could be > > mapped on two consecutive SI regs. I think gcc always will map a multiword > > pseudo on consecutive word-size regs. Am I wrong here ? > > Oops, I forgot a part. In th

Re: Volunteer for a Beginner's Project: Header-Header Interdependencies

2008-02-11 Thread Ian Lance Taylor
Jonathan Adamczewski <[EMAIL PROTECTED]> writes: > NightStrike wrote: > > What is gcc's irc server? > > > > > #gcc on irc.oftc.net Which is mentioned on http://gcc.gnu.org/wiki , by the way. Ian

Re: ICE in delete_output_reload

2008-02-12 Thread Ian Lance Taylor
Michael Eager <[EMAIL PROTECTED]> writes: > I'm trying to understand an assertion failure in reload1.c:8135. > > In delete_output_reload(), I'm getting an assertion failure > in this code: > >for (i1 = reg_equiv_alt_mem_list [REGNO (reg)]; i1; i1 = XEXP (i1, 1)) > { >gcc_assert

Re: Is anyone testing for a (cross-) target (board) with dynlinking?

2008-02-12 Thread Ian Lance Taylor
Hans-Peter Nilsson <[EMAIL PROTECTED]> writes: > Apparently tricks are needed as the -rpath is used both at > run-time and at link-time, ld complains about "No such file or > directory" if the path doesn't exist on the host side. -rpath-link is your friend here. In the past I've just manually co

Re: Is anyone testing for a (cross-) target (board) with dynlinking?

2008-02-12 Thread Ian Lance Taylor
Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > Yes, I was slightly mistaken. The manual says "Searching -rpath in > this way is only supported by native linkers and cross linkers which > have been configured with the --with-sysroot option." > > I don't remember why that exception is there. Bec

Re: ICE in delete_output_reload

2008-02-12 Thread Ian Lance Taylor
Michael Eager <[EMAIL PROTECTED]> writes: > I patched the code to only count the occurrence if the > locations are different. Any idea if that has adverse > consequences? I would expect that to work. But before bringing it back to mainline I'd like to find out why the locations are the same. >

Re: Double constructors in C++?

2008-02-18 Thread Ian Lance Taylor
Samuel Tardieu <[EMAIL PROTECTED]> writes: > Why are constructors included twice in object code? This is required by the C++ ABI. It is, in my opinion, a real bug that gcc does not simply merge identical constructors. There are ABI issues with changing, in that it can change the behaviour of ex

Re: Double constructors in C++?

2008-02-18 Thread Ian Lance Taylor
Mark Mitchell <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: > > Samuel Tardieu <[EMAIL PROTECTED]> writes: > > > >> Why are constructors included twice in object code? > > This is required by the C++ ABI. > > It is, in my opinion, a real

decl_constant_value_for_broken_optimization

2008-02-26 Thread Ian Lance Taylor
I just spent a couple of hours looking into what turned out to be an issue with decl_constant_value_for_broken_optimization, and I wanted to record the notes. The function was introduced here: http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00649.html At the time Joseph added this comment: /*

Re: decl_constant_value_for_broken_optimization

2008-02-27 Thread Ian Lance Taylor
Paolo Bonzini <[EMAIL PROTECTED]> writes: > > In the current compiler, it seems very likely that every call to > > decl_constant_value_for_broken_optimization can simply be removed. > > The constant propagation passes should implement the optimization. > > What about format checking for constant

Re: Excess registers pushed - regs_ever_live not right way?

2008-02-27 Thread Ian Lance Taylor
Andrew Hutchinson <[EMAIL PROTECTED]> writes: > Register contains parameter that is passed to function. This register > is not part of call used set. It's very odd to pass parameters in a register which the callee may not modify. What target is this? Ian

Re: birthpoints in rtl.

2008-02-28 Thread Ian Lance Taylor
"Steven Bosscher" <[EMAIL PROTECTED]> writes: > On Thu, Feb 28, 2008 at 2:32 PM, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > > > > > Thanks for the quick response. As it turns out, the libcall issue will > > > soon be gone, as bonzini will be deleting them. We have finally > > > overcome that

Re: birthpoints in rtl.

2008-02-28 Thread Ian Lance Taylor
"Steven Bosscher" <[EMAIL PROTECTED]> writes: > On 28 Feb 2008 12:41:30 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > libcalls are still used for no-conflict blocks. This may be what you > > mean by the scheduling thing. No-conflict blocks are e

Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-03 Thread Ian Lance Taylor
Richard Guenther <[EMAIL PROTECTED]> writes: > I believe at last years summit Ian told me that someone at google was > working on this -- Ian is this still true? Unfortunately that person moved on to other projects. Ian

Re: [RFC] GCC caret diagnostics

2008-03-04 Thread Ian Lance Taylor
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: > Here is a patch that give us caret diagnostics in C/C++. There a lot > of things that can be improved but because I wanted to get some > feedback with my current approach. > > Basically, I store a pointer linebuf in the line_map structure to a >

Re: Google Summer of Code 2008

2008-03-04 Thread Ian Lance Taylor
"Doug Gregor" <[EMAIL PROTECTED]> writes: > I see that it is time to submit applications to be a mentor > organization for the Google Summer of Code. I've updated the GSoC wiki > page at: > > http://gcc.gnu.org/wiki/SummerOfCode > > with a class of projects I'm interested in; others should do

Re: [4.3/4.4]: PATCH: PR target/35453: nmmintrin.h defines macros SIDD_XXX

2008-03-04 Thread Ian Lance Taylor
"H.J. Lu" <[EMAIL PROTECTED]> writes: > Here is the patch for both gcc 4.3 and 4.4. OK for 4.3/4.4? Tested on > Linux/ia32 > and Linux/ia64 with gcc 4.3/4.4. > gcc/ > > 2008-03-03 H.J. Lu <[EMAIL PROTECTED]> > > PR target/35453 > * config/i386/smmintrin.h (SIDD_XXX): Renamed to .

Re: [4.3/4.4]: PATCH: PR target/35453: nmmintrin.h defines macros SIDD_XXX

2008-03-04 Thread Ian Lance Taylor
Ian Lance Taylor <[EMAIL PROTECTED]> writes: > This is OK for mainline. I will defer to an RM for 4.3, though my > recommendation is that it should go into 4.3 if possible. Sorry, the thread broke, and I didn't see that this had already been approved. Ian

Re: Help with GCC on Cygwin

2008-03-04 Thread Ian Lance Taylor
"Balaji V. Iyer" <[EMAIL PROTECTED]> writes: > I am trying to do some development on the C Compiler in Cygwin and I > am doing the following to build it: gcc@gcc.gnu.org is the wrong mailing list. Please send any further e-mail to [EMAIL PROTECTED] Thanks. > $ ../gcc-4.0.2/gcc/configure R

Re: Help with GCC on Cygwin

2008-03-05 Thread Ian Lance Taylor
"Balaji V. Iyer" <[EMAIL PROTECTED]> writes: > Thank you Ian. I did the modification you mentioned...now I am running > into more problems. Again: gcc@gcc.gnu.org is the wrong mailing list. Please do not send any more e-mail about this to [EMAIL PROTECTED] Please take any followups to [EMAIL PR

Re: Idea for code size reduction

2008-03-07 Thread Ian Lance Taylor
"Philipp Marek" <[EMAIL PROTECTED]> writes: >> Shouldn't this be done in the linker instead? > Well, can the linker change the instruction sequences? Ie. put a JMP > instead of other code? Sure. The linker can do whatever it likes. The usual problem is that by the time the linker sees the cod

Re: [RFC] GCC caret diagnostics

2008-03-07 Thread Ian Lance Taylor
Tom Tromey <[EMAIL PROTECTED]> writes: > Ian suggested that we delete this information after the FE is > finished. This makes sense, I think, from a memory-saving > perspective. But, that means we will get different kinds of error > output depending on when a diagnostic is emitted, which I think

Re: Combine repeats matching on insn pairs and will ICE on 3.

2008-03-10 Thread Ian Lance Taylor
Andy H <[EMAIL PROTECTED]> writes: > I have problem with data flow and combine that is causing ICE with > experimental build. Despite all efforts to blame my own target > changes, > I have reached the conclusion that this is a gcc COMBINE bug, but seek > your advice before filing a bug report. Yo

Re: RTL definition

2008-03-10 Thread Ian Lance Taylor
"Fran Baena" <[EMAIL PROTECTED]> writes: > 2008/3/10, Jim Wilson <[EMAIL PROTECTED]>: >> Fran Baena wrote: >> > RTL represents a low-level language, machine-independent. But I didn't >> > find any especification of such language represented. This is, I found >> > no document where the language

Re: RTL definition

2008-03-11 Thread Ian Lance Taylor
"Fran Baena" <[EMAIL PROTECTED]> writes: >> By the way, RTL is not really machine-independent. The data >> structures are machine independent. But the contents are not. You >> can not, even in principle, take the RTL generated for one processor >> and compile it on another processor. > > I

Re: RFC: adding knowledge of the int_fastN_t types to the compiler

2008-03-12 Thread Ian Lance Taylor
FX Coudert <[EMAIL PROTECTED]> writes: > The Fortran 2003 standard requires that Fortran compilers be able to > know, at compile-time, what size the various int_fastN_t types have > on the target (for N = 8, 16, 32 and 64). I've discussed that issue > before on this list, and was told it's a known

Re: [RFC] GCC caret diagnostics

2008-03-12 Thread Ian Lance Taylor
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: > On 08/03/2008, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: >> >> Another approach would be to only use the carets for parse errors, >> which is where they are the most helpful. For a middle-end er

Re: [RFC] GCC caret diagnostics

2008-03-12 Thread Ian Lance Taylor
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: >> >> Another approach would be to only use the carets for parse errors, >> >> which is where they are the most helpful. For a middle-end error like >> >> "assuming signed overflow does not occur when simplifying >> >> multiplication" a ca

Re: [PATCH] Fix bug on soft emulation of float point in gcc/longlong.c

2008-03-12 Thread Ian Lance Taylor
Liu Yu <[EMAIL PROTECTED]> writes: > There are 2 bugs existing in __udiv_qrnnd_c: > > 1. remainder could not be counted correctly > __r1 and __r0 are not adding enough, so I use do..while to replace former if > > 2. the case of overflow of __m are not considered > so I add a couple of lines to han

Re: [RFC] GCC caret diagnostics

2008-03-13 Thread Ian Lance Taylor
Tom Tromey <[EMAIL PROTECTED]> writes: > I'm not certain that this is the tradeoff I prefer, but I haven't > exactly done a survey of what diagnostics are emitted where. My > general worry is that these more distant (from the FE) diagnostics > will also be the ones where having good location info

Re: [RFC] GCC caret diagnostics

2008-03-13 Thread Ian Lance Taylor
Chris Lattner <[EMAIL PROTECTED]> writes: > On Mar 13, 2008, at 11:37 AM, Ian Lance Taylor wrote: >> As you know the optimizers can pull together information >> from all over the place. The actual warning can be issued for code >> which looks very different from anyth

Re: [RFC] GCC caret diagnostics

2008-03-13 Thread Ian Lance Taylor
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: > Anyway, I think we moved slightly off topic here. Getting the > locations right is in general a much complex task than simply > providing caret diagnostics that show whatever location we happen to > have at hand. But let's start with what we hav

Re: gcc-4.1-20080303 is now available

2008-03-14 Thread Ian Lance Taylor
"Gabriel Dos Reis" <[EMAIL PROTECTED]> writes: > On Sat, Mar 8, 2008 at 7:36 PM, Gerald Pfeifer <[EMAIL PROTECTED]> wrote: >> On Mon, 3 Mar 2008, Gabriel Dos Reis wrote: >> > Do we still want to keep this branch alive? >> >> Looking at the changes that were made in the last three months still, >

Re: Been Looking how gcc operates there is a major weaknesses in its optimiser.

2008-03-16 Thread Ian Lance Taylor
"Peter Dolding" <[EMAIL PROTECTED]> writes: > Since test is in a different object file it gets completely skiped > from optimising even that it should be optimised out. http://gcc.gnu.org/wiki/LTO_Driver Ian

Google Summer of Code 2008 mentors

2008-03-17 Thread Ian Lance Taylor
GCC has been approved as a supported project for Google's Summer of Code 2008. Summer of Code is a program in which Google pays students to work on open source projects. Now we need people to sign up as mentors. As in past years, I think mentors should be restricted to people listed in the MAINT

Re: Google Summer of Code 2008 mentors

2008-03-18 Thread Ian Lance Taylor
NightStrike <[EMAIL PROTECTED]> writes: > On 3/17/08, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: >> If you are interested, please sign up at >>http://code.google.com/soc/mentor_step1.html >> You will need to have a gmail.com account. > > How does someo

Re: Google Summer of Code 2008 mentors

2008-03-18 Thread Ian Lance Taylor
David Daney <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: >> GCC has been approved as a supported project for Google's Summer of >> Code 2008. Summer of Code is a program in which Google pays students >> to work on open source projects. >> >

Re: Basic block infrastructure after dbr pass

2008-03-18 Thread Ian Lance Taylor
Boris Boesler <[EMAIL PROTECTED]> writes: > The following code generators use FOR_EACH_BB[_REVERSE] in the > target machine dependent reorg pass: > - bfin > - frv > - ia64 > - mt > - s390 > Are these invalid code generators then? Or are we talking about > different

Re: Basic block infrastructure after dbr pass

2008-03-18 Thread Ian Lance Taylor
Bernd Schmidt <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: >> Boris Boesler <[EMAIL PROTECTED]> writes: >> >>> The following code generators use FOR_EACH_BB[_REVERSE] in the >>> target machine dependent reorg pass: >>> - bfin &g

Re: Lexer/cpplib improvements

2008-03-20 Thread Ian Lance Taylor
"Alexey Salmin" <[EMAIL PROTECTED]> writes: > I want to join the gcc development process and I decided that > Lexer/cpplib will be a good place to start. It's quite interesting for > me, I have some experience in this theme in few projects, fortunately > there is a http://gcc.gnu.org/onlinedocs/cp

Re: GSoC ideas

2008-03-29 Thread Ian Lance Taylor
Robert Millan <[EMAIL PROTECTED]> writes: > I know it's a bit late, but I just thought that it'd be really nice if GCC > had a C# frontend. I don't have time to do this myself right now (although > I'm willing to work on it in the future if noone beats me to it), but maybe > someone would pick it

Re: GSOC Student application

2008-03-29 Thread Ian Lance Taylor
"Alexey Salmin" <[EMAIL PROTECTED]> writes: > Hello, here's my application. Please, leave your comments as I still > have two days to fix it if something is wrong :) Thanks for sending this. > Project > I want to make some improvements in the Lexer/cpplib area: > 1) Change the way of file handli

Re: Thread starvation and resource saturation in atomicity functions?

2008-03-31 Thread Ian Lance Taylor
"Chad Attermann" <[EMAIL PROTECTED]> writes: > Hello all. Late last year I posted a couple of questions about > multi-threaded application hangs in Solaris 10 for x86 platforms, and > about thread-safety of std::basic_string in general. This was an > attempt to solve persistent problems I have b

Re: Thread starvation and resource saturation in atomicity functions?

2008-03-31 Thread Ian Lance Taylor
"Chad Attermann" <[EMAIL PROTECTED]> writes: > I can not confirm that it was the i386 code included in the gcc build > but it appears that way from the signature. Is this perhaps a problem > with the way that gcc 3.4.3 shipping with Solaris 10 x86 was built? > Should it have opted for the i486 ve

<    22   23   24   25   26   27   28   29   30   31   >