Re: Segmentation fault when calling a library fun - GCC bug?

2009-09-25 Thread Ian Lance Taylor
Mohamed Shafi writes: > After analyzing the issue i find that this might be a bug. I just want > to confirm if that is the case or not. > In order to reproduce i think the target should have the following properties > a. Only 2 32bit registers available as argument registers. > b. Second 64bit va

Re: delete dead feature branches?

2009-09-25 Thread Ian Lance Taylor
Jason Merrill writes: > The SVN book > (http://svnbook.red-bean.com/nightly/en/svn.branchmerge.basicmerging.html) > suggests deleting feature branches that have been merged into the > trunk; I think this would help to reduce the clutter in the branches > directory and avoid confusion with people

Re: [LTO merge][0/15] Description of the final 15 patches

2009-09-29 Thread Ian Lance Taylor
"Joseph S. Myers" writes: > On Mon, 28 Sep 2009, Diego Novillo wrote: > >> - libiberty >> I need help with this one. When the linker plugin is >> enabled (if GCC is configured to use gold), LTO can >> detect LTO objects inside archives via the callbacks it >> gets from the li

Re: DImode operations

2009-09-29 Thread Ian Lance Taylor
daniel tian writes: > when I build the libgcc2.c, an unrecognizable RTL exist. Its about subreg. > Here is the info: > > ../../../rice-gcc-4.3.0/libgcc/../gcc/libgcc2.c: In function '__mulvsi3': > ../../../rice-gcc-4.3.0/libgcc/../gcc/libgcc2.c:169: error: unrecognizable > insn: > (insn 24 26 25

Re: [LTO merge][0/15] Description of the final 15 patches

2009-09-29 Thread Ian Lance Taylor
Paolo Bonzini writes: >> So all Diego needs to do is pass --enable-shared down to libiberty >> when --enable-lto/--enable-gold. The way to do that is something like >> the appended. > > What about just always adding --enable-shared to the host libiberty? That will just cause everybody to always

Re: [LTO merge][0/15] Description of the final 15 patches

2009-09-29 Thread Ian Lance Taylor
Paolo Bonzini writes: > On 09/29/2009 06:52 PM, Ian Lance Taylor wrote: >> Paolo Bonzini writes: >> >>>> So all Diego needs to do is pass --enable-shared down to libiberty >>>> when --enable-lto/--enable-gold. The way to do that is something like >

Re: i370 port - constructing compile script

2009-09-30 Thread Ian Lance Taylor
"Paul Edwards" writes: > 2. If the normal way to do things is to parse the make -n output > with perl etc, that's fine, I'll do it that way. I was just wondering > if the proper way was to incorporate the logic into a Makefile > rule and get that rule repeatedly executed rather than just > havin

Re: i370 port - constructing compile script

2009-10-01 Thread Ian Lance Taylor
"Paul Edwards" writes: >> the gcc build system working. Trying to bootstrap gcc there seems >> like a lot >> of pain for no real benefit. > > The effort is mostly in the Canadian Cross. The changes to get it to > bootstrap from that point are relatively small. I think you are underestimating th

Re: i370 port - constructing compile script

2009-10-02 Thread Ian Lance Taylor
"Paul Edwards" writes: > 1. First I need to use my current build machine, Linux, > to first of all convert the i370.md into insn*.c files, then > generate an xgcc. The xgcc would be capable of producing > i370 code so long as I use the "-S" option. It doesn't really > matter how this xgcc was c

Should #ident really be deprecated?

2009-10-03 Thread Ian Lance Taylor
Hi Tom, in the fix for PR 22168 you deprecated #ident, in the sense that gcc now warns about it. Is that really a good idea? #ident is a reasonably widely used extension: codesearch.google.com finds "about" 110,000 uses. It's supported by other compilers--it was introduced on System V, I believe

Re: i370 port - constructing compile script

2009-10-03 Thread Ian Lance Taylor
"Paul Edwards" writes: >> * Configure gcc as a cross-compiler. > > So this would not be considered a Canadian Cross after all, > and with configure I only change the target, not the host? The end result is a Canadian Cross, but the first step in a typical build of a Canadian Cross is a cross-com

Re: i370 port - constructing compile script

2009-10-03 Thread Ian Lance Taylor
"Paul Edwards" writes: * Copy header files and libraries from the host (MVS). >>> >>> That's fine. And use the --with-root option of configure to get >>> them used? >> >> --with-sysroot, yes. > > I have been trying combinations of --prefix and --with-sysroot, and > --with-build-sysroot, but

Re: Inline assembly operand specification

2009-10-05 Thread Ian Lance Taylor
Zoltán Kócsi writes: > Is there a documentation of the various magic letters that you can > apply to an operand in inline assembly? Unfortunately, no. > The > only place I found some information was going through the > gcc/config//.c file and trying to find the meaning of such > letters in the

Re: Error when building cross compiler

2009-10-05 Thread Ian Lance Taylor
Denis Onischenko writes: > I am getting the following error when compiling "x86_64 to powerpc64" > cross gcc, as soon as the libgcc_s.so.1 has appeared in obj/gcc > directory. This question would be more appropriate for the mailing list gcc-h...@gcc.gnu.org. Please take any followups there. Th

Re: Lattice Mico32 port

2009-10-05 Thread Ian Lance Taylor
"Jon Beniston" writes: > Hi Richard, > >>> Index: gcc/config/lm32/sfp-machine.h >>> Index: gcc/config/lm32/crti.S >>> Index: gcc/config/lm32/lib1funcs.S >>> Index: gcc/config/lm32/crtn.S >>> Index: gcc/config/lm32/arithmetic.c >>> Index: gcc/config/lm32/t-fprules-softfp >>> Index: gcc/config/lm32

Re: LTO and LTO Plugin Reviewers

2009-10-07 Thread Ian Lance Taylor
Diego Novillo writes: > On Wed, Oct 7, 2009 at 09:55, Basile STARYNKEVITCH > wrote: > >> Are LTO plugins fondamentally different from others, non LTO plugins? > > Yes, it should be probably be named 'linker' plugins. It's a plugin > for gold to allow extraction of individual .o files out of sta

Re: LTO and LTO Plugin Reviewers

2009-10-07 Thread Ian Lance Taylor
Diego Novillo writes: > On Wed, Oct 7, 2009 at 10:34, Daniel Jacobowitz wrote: >> On Wed, Oct 07, 2009 at 04:29:29PM +0200, Basile STARYNKEVITCH wrote: >>> I suppose LTO plugins means plugin dlopen-ed in lto-plugin/lto-symtab.c >> >> It sounds to me like this confusion comes from "LTO plugins".

Re: GCC's switch table code generation

2009-10-07 Thread Ian Lance Taylor
Edd Barrett writes: > I would be really interested to know how GCC: > * Decides whether or not to embed tables in the data segment of the binary. > * Selects the comparisons in the above tree. The relevant code is expand_case and friends in gcc/stmt.c. Where a jump table should go is decided

Re: loop optimization in gcc

2009-10-11 Thread Ian Lance Taylor
sandeep soni writes: > I have been studying the gcc code lately as part of my project.I have > got info from this mailing list about CFG and DFG information.I want > to know how gcc uses this information to perform loop optimization? > Does it Follow any particular algorithm or in particular what

Re: glibc configure: error: Need linker with .init_array/.fini_array support

2009-10-12 Thread Ian Lance Taylor
jeffiedward writes: > when i try to compile glibc, the following configuration error occurs: > > ../configure CFLAGS=" -march=i686 -O2" --host=i686-pc-linux-gnu > --target=powerpc-linux-gnu --prefix=/home/tellabs/GNU/PPC > --with-headers=/home/tellabs/GNU/include > --with-binutils=/home/tellabs/G

Re: status of http://sshproxy.sourceware.org:443/

2009-10-12 Thread Ian Lance Taylor
Loren James Rittle writes: > Since around Wednesday of last week, I have been unable to access > svn+ssh://ljrit...@gcc.gnu.org/svn/gcc through > http://sshproxy.sourceware.org:443/ > > I have not changed any local configuration in some time but definitely > not since it worked the day before tha

Re: inlining problems

2009-10-12 Thread Ian Lance Taylor
Thomas Heller writes: > I ran into a little issue when trying to force inlining with > __attribute__(( always_inline )). The reason why i am trying to force > the compiler to inline my code is simple: I want to implement handwritten > optimizations using SSE intrinsics. However it seems that gcc

Re: loop optimization in gcc

2009-10-12 Thread Ian Lance Taylor
sandeep soni writes: > On Mon, Oct 12, 2009 at 12:13 PM, Ian Lance Taylor wrote: > >> I'm not really sure what you are asking.  gcc supports OpenMP for >> parallelizing loops.  That is mostly done in the frontends. > > I have been told that openMP does parallelizin

Re: [4.4] Strange performance regression?

2009-10-13 Thread Ian Lance Taylor
francesco biscani writes: > I'm experiencing a strange behaviour with GCC 4.4.1. Basically I have > some C++ mathematical code which gets a ~x2 performance drop if I > *remove* the following debug line from the code: This message is not appropriate for the mailing list g...@gcc.gnu.org. It is a

Re: [4.4] Strange performance regression?

2009-10-13 Thread Ian Lance Taylor
Joern Rennecke writes: > Quoting Ian Lance Taylor : > >> francesco biscani writes: >> >>> I'm experiencing a strange behaviour with GCC 4.4.1. Basically I have >>> some C++ mathematical code which gets a ~x2 performance drop if I >>&g

Re: help: standard name of vector mode

2009-10-15 Thread Ian Lance Taylor
彭建章 writes: > I'm porting gcc , and use its autovectorization. > How can I know wether a standard name support a vector mode ? The standard names all have modes built into them. If you are porting gcc, then you need to write a define_expand or define_insn in your MD file with a standard name w

Re: Bus error gcc compiler for any for ( x in array ) inside Objective-C++ template

2009-10-15 Thread Ian Lance Taylor
John Holdsworth writes: > I've encountered a bus error using Apple's gcc in Xcode 3.1, 3.2 > compiling the following code or any containing for( x in y ) is used > inside a template in Objective-C++. > > template > class OODictionary { > void boom() { > NSArray *keys = nil;

Re: Ada Copyright Notice Nit

2009-10-16 Thread Ian Lance Taylor
Joel Sherrill writes: > In checking my local changes, I noticed a minor > difference in how the Ada source files have their > Copyright notice. Some have a comma between the > years and party, others do not. > > 9drpc.adb:-- Copyright (C) 1992-2009, Free Software > Foundation, Inc.

Re: Constraint modifier for partially overlaping operands

2009-10-16 Thread Ian Lance Taylor
Andrew Hutchinson writes: > I can use "=" modifier to make operands use same register and early > clobber "&" to avoid overlaps. > > Is it possible to have or construct a contraint that permits partial > overlap operands. (which neither = or & would allow) > The case would be wide types taking m

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-19 Thread Ian Lance Taylor
tbp writes: > Merrily trying to make a test-case showing how unmanageable it is to > try to override *math* flags per function, i soon had to stop > because... Please file a bug report. __attribute__((optimize())) is definitely only half-baked. Ian

Re: --enable-plugin option overloaded

2009-10-19 Thread Ian Lance Taylor
Andrew Haley writes: > Matthias Klose wrote: >> --enable-plugin is used by classpath (part of libjava) and now by GCC >> itself. disabling the build of the gcjwebplugin now disables plugin >> support in GCC as well. Please could the option for enabling GCC plugin >> support be renamed to somethin

Re: char drawstrings[DRAW_MAX][] = { " .. give error

2009-10-19 Thread Ian Lance Taylor
Bernd Roesch writes: > I compile an old code which use this and i think its compile with Gcc 2.95 > and the > PPC GCC 1998 or 1999 > it fail to compile with newer compiler. > > #define DRAW_MAX4 > char drawstrings[DRAW_MAX][] = { > "Number of points drawn using 3D hardware:",

Re: Need help in understanding code generated for C++ exception handling

2009-10-20 Thread Ian Lance Taylor
Shankar Iyer writes: > I have compiled and generated a C++ shared library with the "-fPIC" option. > But this shared library requires text relocation during runtime and is not > usable on seLinux which disables writeable text segments. The text relocation > is due to use of exceptions inside

Re: two ideas to improve C++

2009-10-20 Thread Ian Lance Taylor
Ireneusz Szpilewski writes: > I have 2 ideas about C++ language, maybe they could be implemented as > GCC C++ extensions (Microsoft has many his own and no one > complains). :-) We generally do not want to implement language extensions. It takes a strong argument to convince us. Also, as a pra

Re: gcc ld error

2009-10-21 Thread Ian Lance Taylor
daniel tian writes: > I just wanna get the argment passed to ld, when I could debug the > ld with gdb. > I run the command the > rice-elf-gcc helloworld.c -v > But I couldn't get the parameter passed to ld. > and I don't know what the relationship between "collect2" and >

Re: CFG,DFG

2009-10-21 Thread Ian Lance Taylor
swati raina writes: > The compiler stores the information about dependencies among various > instruction in control flow graphs and data flow graph. What kind of > graphs are these? and can this dependency information be extracted > from gcc? See cfg*.[ch] and df*.[ch]. Note that df*.[ch] only

Re: Typo in internals

2009-10-23 Thread Ian Lance Taylor
Mohamed Shafi writes: > The internal doc says : > > — Target Hook: bool TARGET_CAN_INLINE_P (tree caller, tree callee) > > This target hook returns false if the caller function cannot > inline callee, based on target specific information. By default, > inlining is not allowed if the callee fu

Re: i370 port - constructing compile script

2009-10-23 Thread Ian Lance Taylor
"Paul Edwards" writes: > The next thing I hit was that genmodes didn't compile because > there were conflicts between the strsignal function in the > Linux include files and the system.h. Looking at the system.h, > it was including things in because it thought that the prototypes > didn't exist.

-use-linker-plugin passed to ld

2009-10-23 Thread Ian Lance Taylor
I noticed that the -use-linker-plugin option seems to be passed to the linker. This is because LINK_COMMAND_SPEC includes %{u*}. And that is because -uSYMBOL is a documented linker option. The effect is that the linker creates an undefined reference to the symbol "se-linker-plugin". Any user un

Re: -use-linker-plugin passed to ld

2009-10-23 Thread Ian Lance Taylor
Rafael Espindola writes: > 2009-10-23 Rafael Avila de Espindola > > * gcc.c (LINK_COMMAND_SPEC): Remove -use-linker-plugin from the command > line. This is OK if it passes bootstrap and if nobody objects in 24 hours. Thanks. Ian

Re: -use-linker-plugin passed to ld

2009-10-23 Thread Ian Lance Taylor
Steven Bosscher writes: > On Fri, Oct 23, 2009 at 8:21 PM, Ian Lance Taylor wrote: >> Rafael Espindola writes: >> >>> 2009-10-23  Rafael Avila de Espindola   >>> >>>       * gcc.c (LINK_COMMAND_SPEC): Remove -use-linker-plugin from the >>> co

Re: A forward declaration used by template class issue on gcc 4.4.1

2009-10-23 Thread Ian Lance Taylor
"Zhang Lin" writes: > class ACE_Message_Queue_NT; > template > ACE_Message_Queue_NT *ACE_Message_Queue_Factory::create_NT_message_queue > (int max_threads) > { > ACE_Message_Queue_NT *tmp = 0; > > tmp = new ACE_Message_Queue_NT (max_threads); > > return tmp; > } > > class ACE_Message_Queue_

Re: when (not) use bugzilla for GCC?

2009-10-26 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > Are you suggesting me to upload to bugzilla the nearly 3000 > preprocessed forms of the files? I could do that, but the *.i files > totalize more than one gigabyte. A bzip2 compressed tar archive of > them is almost 80Mbytes. That is a difficulty, but without a sel

Re: when (not) use bugzilla for GCC?

2009-10-26 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > May I respectfully suggest to the person maintaining the bugzilla a > notice in the login page saying something like: > > GCC maintainers having write after approval (or better) access to the > GCC trunk should preferably login with their xx...@gcc.gnu.org email Go

Re: Some GCC porting questions

2009-10-26 Thread Ian Lance Taylor
palpar writes: > 1. How can I tell from the RTL declaration of a function if it is > declared INLINE of not? You have to look at the tree decl, at DECL_DECLARED_INLINE_P. > 2. Where is the code responsible for allocating those variables on the > stack which don't fit in registers (needed to fix

Re: plugin hooks

2009-10-27 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > Richard Guenther wrote: >> On Tue, Oct 27, 2009 at 1:15 PM, Basile STARYNKEVITCH >> >> Adding hooks just because you think they might be useful >> isn't the way to go. > > Then what is the correct way to enhance the current plugin API. There > are a lot of stuff mis

Re: plugin hooks

2009-10-27 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > Ian Lance Taylor wrote: >> We should add hooks as we find plugins that need them. Simply adding >> a laundry list of hooks that we think might be needed will most likely >> cause us to overdesign. We know that we can write interesting plugi

Re: -use-linker-plugin passed to ld

2009-10-27 Thread Ian Lance Taylor
Andreas Schwab writes: > Rafael Espindola writes: > >> diff --git a/gcc/common.opt b/gcc/common.opt >> index b57234a..9e4cf12 100644 >> --- a/gcc/common.opt >> +++ b/gcc/common.opt >> @@ -1391,6 +1391,11 @@ funwind-tables >> Common Report Var(flag_unwind_tables) Optimization >> Just generate u

Re: -use-linker-plugin passed to ld

2009-10-27 Thread Ian Lance Taylor
Rafael Espindola writes: > Which can also be fixed by explicitly ignoring > OPT_fuse_linker_plugin. The attached patch does that. Any preferences? This version is OK with a ChangeLog entry if it bootstraps. Since there have been several comments, please give people 24 hours to suggest changes.

Re: Possibly gcc/ld bug

2009-10-29 Thread Ian Lance Taylor
Bluddy writes: > Notice that ld is chaining LO16 relocations after HI16's. However, it's > doing something completely illegal since the LO16 for 08aecb54 is not > preceded by a valid HI16 entry! ld got confused by the two address ranges. While the calculation of a HI16 reloc requires the LO16 r

Re: SHN_UNDEF symbols with non-zero value in MIPS shared object

2009-10-29 Thread Ian Lance Taylor
Uma shankar writes: > Cross-MIPS gcc version (for Linux target) used is  4.3.2 > > Today  I saw that .so files of MIPS contain some undef symbols with > non-zero value > > The few I saw are defined in libC > > Wont this confuse dynamic linker of 4.3.2  ?  ( i know that in 4.3.3. > , there is the

Re: "uninitialized variable" warning from compiler

2009-10-29 Thread Ian Lance Taylor
Uma shankar writes: > a)  The compiler activates the warning mechanism only if  optimisation > is enabled  at compilation time with -O option. For all the bugs that > I went  through at bugzilla, the failure is not  -O level dependent. > The warning-failure occurs for  all levels of optimisation

Re: IRA is not looking into the predicates ?

2009-10-30 Thread Ian Lance Taylor
Mohamed Shafi writes: >>From ice4.c.168r.asmcons > > (insn 5 2 6 2 ice4.c:4 (set (reg:SI 61 [ s ]) > (mem/c/i:SI (symbol_ref:SI ("s") [flags 0x2] 0xb7bfd000 s>) [0 s+0 S4 A32])) 2 {*movsi_internal} (nil)) > > (insn 6 5 7 2 ice4.c:4 (set (reg:QI 62) > (plus:QI (subreg:QI (reg:SI 6

Re: [RFC] md reorg plans for 4.6?

2009-10-30 Thread Ian Lance Taylor
Paolo Bonzini writes: > with the new plugin infrastructure, it makes sense to replace the > one-catches-all md reorg pass with target-specific passes plugged into > the pass manager. Yes, please. > - there's also M68HC11 and SH... well, I doubt there will be volunteers. But note that, e.g., bt

Re: help on - instruction scheduling passes in gcc

2009-11-03 Thread Ian Lance Taylor
ddmetro writes: > 1. We are expecting that pass_sched and pass_sched2, each will enter > schedule_insns() function once per pass. However, we found that it is > entering schedule_insns() function per function(in the program) per pass. > (If there are two functions in the input program, pass_sched

Re: Preserving the argument spills for GDB

2009-11-03 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > I've been working on handling the Debugging information for the use of > GDB on my port. Though I definitely know that, when compiling in -O3, > some information is lost and the debugger can't always have all the > information, I'd like to at least keep the values

Re: Preserving the argument spills for GDB

2009-11-04 Thread Ian Lance Taylor
Jean Christophe Beyler writes: >> You can force your writes to the stack to not be removed by making >> them use UNSPEC_VOLATILE.  You would write special define_insns for >> this. > > Is there an architecture port that has done this already ? No, because, when given the choice, gcc prefers fast

Re: [plugins-ici-cloning-instrumentation] new GCC plugin developements

2009-11-05 Thread Ian Lance Taylor
"Grigori Fursin" writes: > Also, I am trying to figure out if GCC 4.5 branch is still open or not?.. gcc 4.5 is in stage 3, which normally means that no new features are permitted. That said, plugins are a new feature in gcc 4.5, so the release managers are likely to grant some leeway for chang

Re: How to do executable individualization using optimization options ?

2009-11-07 Thread Ian Lance Taylor
Byoungyoung Lee writes: > If the optimization options provided in a different way, > the same source codes would be compiled into different executables. > > In the different executables, > the register allocation or instruction orders might be easily changed, > but I think that's not that big cha

Re: link list & thread

2009-11-08 Thread Ian Lance Taylor
Mohsen Pahlevanzadeh writes: > I have a thread & 2 func.flush_2_db() is in thread & add_element() is > outside of thread. > add_element's job is adding data to link list.& flush_2_db()'s job is > reading list & drop from list.But my problem is override data & lost > data, because flush_2_db is in

Re: How to write shift and add pattern?

2009-11-09 Thread Ian Lance Taylor
Mohamed Shafi writes: >Ok the constrain for address register is 'a'. Thats typo in the > pattern that i given here. The proper pattern is > > (define_insn "*saddl" >[(set (match_operand:SI 0 "register_operand" "=a,d") >(plus:SI (mult:SI (match_operand:SI 1 "register_operand" "a,d

Re: Preserving the argument spills for GDB

2009-11-09 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > How can I force the prologue to keep this instruction. It is useless > only in the case that there is no function call or no alloca. But I > have a case where there is a function call and it is still removed. Make the hard frame pointer register a fixed register,

Re: i370 port

2009-11-09 Thread Ian Lance Taylor
"Paul Edwards" writes: > Now all code needs to be exposed to this. ie libiberty and > gcc. To fit in with the new style of building, I basically want > to update ansidecl.h to do a: > > #ifdef PUREISO > #include "mshort.h" > #endif > > Does that seem reasonable? The ISO C99 standard requires t

Re: How to avoid a tree node being garbage collected after C frontend?

2009-11-09 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > I need to pass a tree node (section name from processing pragmas) > from C frontend to main GCC body (used in TARGET_INSERT_ATTRIBUTES). > I store the node in a global pointer array delcared in target.c. > But the tree node is garbage collected in the end of c-parser > p

Re: pure64 patch for 4.5.0

2009-11-09 Thread Ian Lance Taylor
"Justin P. Mattock" writes: > wanting to know if there's a pure64 patch for 4.5.0 > right now I've plugged in a pure64 patch for 4.4.1 > on 4.5.0. > will this be good or is there more to that needs to be added. > http://patches.cross-lfs.org/dev/gcc-4.4.1-pure64-1.patch You might do better to as

Re: i370 port

2009-11-10 Thread Ian Lance Taylor
"Paul Edwards" writes: > Another "where" question. The i370 port can't cope with 64-bit > integers. I think I would stop right there. Why can't the i370 port support 64-bit integers? Plenty of 32-bit hosts support them. That said, these days gcc always defines __SIZEOF_LONG_LONG__. It would

Re: i370 port

2009-11-10 Thread Ian Lance Taylor
"Paul Edwards" writes: > and c-parse.c: That file no longer exists so I don't know how to interpret this. >> I think I would stop right there. Why can't the i370 port support >> 64-bit integers? Plenty of 32-bit hosts support them. > > It got an internal error. I don't have the skills to ge

gccgo: A gcc frontend for Go, a new programming language

2009-11-10 Thread Ian Lance Taylor
For the last year and a half I've been working on a gcc frontend for Go, a new experimental systems programming language designed by a small group at Google. We've just open sourced it. You can read more about it at http://golang.org/ . The gcc frontend is called gccgo. I've just committed it t

License of gccgo frontend

2009-11-10 Thread Ian Lance Taylor
I committed the gccgo frontend using a BSD-style license with this boilerplate: // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. The frontend is currently tightly tied to gcc. However, m

Re: gccgo: A gcc frontend for Go, a new programming language

2009-11-11 Thread Ian Lance Taylor
f...@redhat.com (Frank Ch. Eigler) writes: > Ian Lance Taylor writes: > >> [...] Go, a new experimental systems programming language designed >> by a small group at Google. [...] The frontend is written in, yes, >> C++. [...] > > Neat. Are there any plans to h

Re: gccgo: A gcc frontend for Go, a new programming language

2009-11-11 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > BTW, I understood perhaps wrongly that Ian Taylor seems to believe > that gccgo has not much future, and that most of the software written > in Go (the Google niche language) could be compiled by something which > is not GCC based. I certainly hope that gccgo has a

Re: gccgo: A gcc frontend for Go, a new programming language

2009-11-16 Thread Ian Lance Taylor
Sebastian Pop writes: > I haven't looked at the gccgo branch yet, but have quickly browsed > over the material at golang.org, and I found no document describing, > at a high level, the design of the compiler(s) and the runtime of go. As far as I know there is no such document. First let me say

Re: gcc Digest 16 Nov 2009 18:04:16 -0000 Issue 6154

2009-11-17 Thread Ian Lance Taylor
"Adrian Wadey" writes: > I'm new to GCC and was wondering if anyone has done work on a back end for > small micros such as microchip PICs? It is something I'd like to work on > but would like to know if there are any reasons why GCC only appears to have > back ends for larger format CPUs. Peopl

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?

2009-11-17 Thread Ian Lance Taylor
Paolo Carlini writes: > I'm trying to resolve one way or another this PR, which I have assigned > to myself a long time ago... The issue essentially is very simple. This > kind of code: > > struct S { int s[3]; }; > struct S s1 = { 1, 1, 1 }; > > triggers a warning with -Wall about missin

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?

2009-11-17 Thread Ian Lance Taylor
Jonathan Wakely writes: > 2009/11/17 Ian Lance Taylor: >> >> I don't really understand how this interacts with std::tr1:array, >> though. > > For it to be a more convenient drop-in replacement for builtin arrays > you want to initialise tr1::array like so

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?

2009-11-17 Thread Ian Lance Taylor
Paolo Carlini writes: > Ian Lance Taylor wrote: >> OK, to me that seems like an excellent reason to implement a special >> case for the warning here. For example, perhaps if a struct has only >> one field, and that field is an aggregate, then we don't warn if there &g

Re: [Dwarf-Discuss] Does gcc optimization impacts retrieving Dwarf information?

2009-11-18 Thread Ian Lance Taylor
"M. Mohan Kumar" writes: > Are VTA patches part of mainline gcc now? Yes. Ian

Re: How does builtin_sqrt get used - or not

2009-11-21 Thread Ian Lance Taylor
Andrew Hutchinson writes: > I am tracking test failure with avr target where function sqrtf is > undefined reference at link time. > > Here is command line: > > /media/verbatim/gcchead/obj-dir/gcc/xgcc > -B/media/verbatim/gcchead/obj-dir/gcc/ > /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/p

Re: No .got section in ELF

2009-11-27 Thread Ian Lance Taylor
yunfeng zhang writes: > Sorry! I've made a mistake! But using LD_PRELOAD to force to reposition a > variable/function from a module is violating software engineer. And the more > important is, as the result, all user *all* pay the bill for this even they > make sure they don't need the feature, s

Re: Insn missing in Size optimization(-Os)

2009-12-02 Thread Ian Lance Taylor
daniel tian writes: > Addition information, I just found. It was deleted in function: void > set_insn_deleted (rtx insn), in emit-rtl.c. You need to figure out how register 42 in the call insn got changed to register 0 if reg_renumber[42] was not set to 0. Ian

Re: generate RTL sequence

2009-12-10 Thread Ian Lance Taylor
daniel tian writes: > I have a problem about RTL sequence. > If I wanna generate the RTL in sequence, and don't let gcc to schedule > them. > Like the following(all the variable is rtx): > > emit_insn(reg0, operands[0]); > emit_insn(reg1, reg0); > emit_insn(operands[0],

Re: generate RTL sequence

2009-12-10 Thread Ian Lance Taylor
daniel tian writes: > 2009/12/11 Ian Lance Taylor : >> daniel tian writes: >> >>>     I have a problem about RTL sequence. >>>     If I wanna generate the RTL in sequence, and don't let gcc to schedule >>> them. >>>     Like the follow

Re: generate RTL sequence

2009-12-10 Thread Ian Lance Taylor
daniel tian writes: > By the way, I don't underand the start_sequence and end_sequence. > What does those function mean. > I checked the source code in emit-rtl.c. > I still can't figure out what they do. > There is a structure sequence_stack, I don't what it does. start_sequence and end_

Re: generate RTL sequence

2009-12-11 Thread Ian Lance Taylor
Joern Rennecke writes: > If you need more rigid scheduling, you can use CC0. No, please don't. I accept that CC0 is necessary today for a few processors, but I really don't think we should encourage any new uses of it. Ian

Re: a question about argument ARG_POINTER_REGNUM

2009-12-14 Thread Ian Lance Taylor
Ivan Shcherbakov writes: > I have noticed that the latest ports of GCC (e.g. i386) use a > pseudo-register (argp in i386) defined as fixed in FIXED_REGISTERS. > When I implement it similarly in msp430 port (instead of hardware > register r5, add a pseudo-register marked as fi

Re: a question about argument ARG_POINTER_REGNUM

2009-12-15 Thread Ian Lance Taylor
Ivan Shcherbakov writes: > ELIMINATE_REGS and TARGET_CAN_ELIMINATE are set correctly. As far as I > understand from further investigation, at some point during > compilation, the argument pointer register is used, then the > expand_prologue() produces INSNs including "push

Re: a question about argument ARG_POINTER_REGNUM

2009-12-15 Thread Ian Lance Taylor
Ivan Shcherbakov writes: > It seems that in x86 the argp register gets > eliminated before the reload phase. That seems unlikely to me. What pass do you think is eliminating the argument register? Ian

Re: a question about argument ARG_POINTER_REGNUM

2009-12-15 Thread Ian Lance Taylor
Ivan Shcherbakov writes: > For i386-gcc, this seems to happen during global register allocation > pass. This corresponds to IRA pass of gcc 4.4.x. I have attached the > corresponding RTL dump files. That means that reload is where the register is eliminated, as expected. Reload is really pa

Re: problem posting to gdb-patc...@gnu.org

2009-12-29 Thread Ian Lance Taylor
"g...@cyberfiber.org" writes: > can someone please comment? 1) This is definitely the wrong mailing list. Try sysad...@gnu.org. 2) Nobody can help you without much more information, like exactly what you tried to do and exactly what happened. 3) You probably want gdb-patc...@sourceware.org.

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Ian Lance Taylor
Matt writes: > I'm trying to fix some errors/warnings to make sure that gcc-as-cxx > doesn't bitrot too much. I ran into this issue, and an unsure how to > fix it without really ugly casting: > > enum df_changeable_flags > df_set_flags (enum df_changeable_flags changeable_flags) > { > enum df_c

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Ian Lance Taylor
NightStrike writes: > On Tue, Jan 5, 2010 at 1:40 PM, Ian Lance Taylor wrote: >> The gcc-in-cxx branch is no longer active.  All the work was merged to >> trunk, where it is available via --enable-build-with-cxx. > > Is that option regularly tested? Probably not. >

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Tue, Nov 3, 2009 at 3:23 PM, Roland McGrath wrote: >> --with is wrong for this.  It's not about the ambient system built against. >> It's a feature selection for how you build binutils, which means --enable. >> > > Here is the updated patch. I'm still not entirely convinc

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Ian Lance Taylor
Matt writes: > Yes, was I pasted was a local change. I was trying to eliminate the > implicit cast to int from the enum type, which was causing my > --enable-werror build to fail. At this point, I think the better > option would be to break up the enum values into indivdual #defines > and do a ty

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Ian Lance Taylor
Roland McGrath writes: >> I'm still not entirely convinced that this is the way to go. It seems >> to me that ideally one wants to be able to select the linker at >> runtime. I don't see how this patch supports that. What am I >> missing? > > It covers the first step by letting you run "ld.bfd

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Tue, Jan 5, 2010 at 1:35 PM, Ian Lance Taylor wrote: >> Roland McGrath writes: >> >>>> I'm still not entirely convinced that this is the way to go.  It seems >>>> to me that ideally one wants to be able to select t

Re: [gcc-as-cxx] enum conversion to int

2010-01-05 Thread Ian Lance Taylor
Matt writes: > On Tue, 5 Jan 2010, Ian Lance Taylor wrote: > >> Matt writes: >> >>> Yes, was I pasted was a local change. I was trying to eliminate the >>> implicit cast to int from the enum type, which was causing my >>> --enable-werror bui

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Ian Lance Taylor
Roland McGrath writes: >> Mainly because an alternative is to install them in subdirectories >> with the name ld. Then gcc can run them directly using a -B option. >> I don't know which approach is best. > > I think it keeps things simplest for humans to understand if the actual > binaries are a

Re: reghunt and "trunk" (GCC 4.5.x)?

2010-01-06 Thread Ian Lance Taylor
Gary Funck writes: > Above 'as' is a script, and at line 83 it is trying to > invoke the assembler, which indirectly will try to invoke > ORIGINAL_AS_FOR_TARGET, but that variable is empty: > ORIGINAL_AS_FOR_TARGET="" > > I notice that the build script, 'reghunt/bin/gcc-build-simple does > some e

Re: pro_and_epilogue pass ran several time for same function?

2010-01-08 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I just noticed that the pro_and_epilogue pass in gcc3.4.3 for certain > functions is ran multiple times with sibcalls enabled. Why is that? > > What I did was to put a printf on the epilogue and sibcall_epilogue > pattern so that during compilation it prints the name of

Re: gcc backend beginner: only -O1 gives 'unrecongnizable insn' error

2010-01-12 Thread Ian Lance Taylor
Alex writes: > I am a beginner on gcc backend. I was performing some experiments > on .md file using a completly new backend set of files written by > me. I end up on something I really could not understand. Regarding > addition, I put the following code on my .md file: > > (define_expand "ad

<    7   8   9   10   11   12   13   14   15   16   >