Re: Which Binutils should I use for performing daily regression test on trunk?

2011-12-21 Thread Ian Lance Taylor
Terry Guo writes: > I plan to set up daily regression test on trunk for target > ARM-NONE-EABI and post results to gcc-testresults mailing list. Which > Binutils should I use, the Binutils trunk or the latest released > Binutils? And which way is recommended, building from a combined tree > or bu

Re: Possible wrong-way example in gcc4-4-2 documentation of __builtin_expect

2011-12-21 Thread Ian Lance Taylor
Jonathan Wakely writes: > In order to follow the GCC coding style (a space between the function > name and opening parenthesis) and to match the first example for > __builtin_expect, I propose this patch instead: > > Index: extend.texi > ===

Re: a nifty feature for c preprocessor

2011-12-29 Thread Ian Lance Taylor
R A writes: >> The gcc developers, and everyone else involved in the development of C >> as a language, are perhaps not superhuman - but I suspect their combined >> knowledge, experience and programming ability outweighs yours. > > given. but do you have a consensus of the community that this fea

Re: a nifty feature for c preprocessor

2011-12-29 Thread Ian Lance Taylor
R A writes: >> This particular extension seems problematic when cross-compiling. In >> what environment should the expressions be evaluated? > > > why > are you asking for a specific environment? it's coding convenience and > elegance for coding in c itself. simplest case scenario is what i've

Re: none

2011-12-29 Thread Ian Lance Taylor
(Sorry for the double reply back, I should have read ahead). R A writes: > good questions, but i'm surprised that you don't know basic semantics of how > the cpp works. i take it that you don't use it as extensively as others?? Thank for the patronizing words. That is always a good way to get

Re: GCC/GLIBC and non-temporal instructions

2012-01-03 Thread Ian Lance Taylor
Sergey Oboguev writes: > The question is whether there is any GCC/runtime policy on non-temporal > SSE/3DNow instructions? As far as I know gcc will never generate any non-temporal instructions, except if the programmer uses the special intrinsic functions which generate them. If the programme

Re: GCC/GLIBC and non-temporal instructions

2012-01-03 Thread Ian Lance Taylor
Sergey Oboguev writes: > Well, all these > > storent > emit_storent_insn > may_use_storent_in_loop > storent_optab > nontemporal > assign_set_nontemporal_move > mark_nontemporal_store > mark_nontemporal_stores > nontemporal_store_p > schedule_prefetches >

Re: major and minor macros in /usr/include/x86_64-linux-gnu/sys/sysmacros.h

2012-01-04 Thread Ian Lance Taylor
Pedro Larroy writes: > Shouldn't major and minor macros in > /usr/include/x86_64-linux-gnu/sys/sysmacros.h be inline functions? > They prevent doing stuff like > > struct T { > T() : major() {} > int major; > }; > > in C++. According to the C++ standard those names shoudn't be > reserved to th

Re: reverse conditionnal jump

2012-01-05 Thread Ian Lance Taylor
BELBACHIR Selim writes: > How can I tell GCC to perform the best conditionnal jump by sometimes > reversing the comparison ? It should work when compiling with -O2. I can't think of anything you are doing wrong or anything special you should need to do. I think you will need to debug this. S

Re: I think that may be a bug...

2012-01-06 Thread Ian Lance Taylor
two2the8th_power_is...@yahoo.co.jp writes: > I am making a OS for a PC/AT compatible machine with gcc on ubuntu. > The code , whose extension is .c , to task switch in the handler for > PIT(timer) interrupt is... > int tr=(a selector(segment number)); > farjmp(0,tr); > > the function prototype is

Re: struggling with make inside GCC MELT

2012-01-10 Thread Ian Lance Taylor
Basile Starynkevitch writes: > I am fighting against makefile issues on the GCC MELT branch. > > Much more details are given in >http://stackoverflow.com/q/8727896/841108 > and in >http://lists.gnu.org/archive/html/help-make/2012-01/msg00017.html > > So (unless you ask) I won't repeat t

Re: struggling with make inside GCC MELT

2012-01-10 Thread Ian Lance Taylor
Basile Starynkevitch writes: > On Tue, Jan 10, 2012 at 07:12:50AM -0800, Ian Lance Taylor wrote: >> Basile Starynkevitch writes: >> >> > I am fighting against makefile issues on the GCC MELT branch. >> > >> > Much more details are given in >>

Go in gcc 4.7

2012-01-10 Thread Ian Lance Taylor
The Go language is closing in what we are calling Go version 1. This will be a long-term stable release of Go, with no language or library API changes. Go 1 is described here: https://docs.google.com/a/google.com/document/pub?id=1ny8uI-_BHrDCZv_zNBSthNKAMX_fR_0dc6epA6lztRE The expected completi

Re: struggling with make inside GCC MELT

2012-01-11 Thread Ian Lance Taylor
Jonathan Wakely writes: > I'm not sure why "@true" is needed, as I think GNU make allows simply > ";" for an empty recipe, maybe Ian can explain that part. The rules I described work for all versions of make. It's quite possible that with GNU make the "@true" is unnecessary. Ian

Re: Go in gcc 4.7

2012-01-11 Thread Ian Lance Taylor
Dennis Clarke writes: > The Go 1 release will be available in source and binary form for at least > these platforms: > > FreeBSD 7+: amd64, 386 > Linux 2.6+: amd64, 386, arm > OS X (Snow Leopard + Lion): amd64, 386 > Windows (2000 + later): amd64, 386 > > Therefore

Re: Go in gcc 4.7

2012-01-12 Thread Ian Lance Taylor
Richard Guenther writes: > On Wed, Jan 11, 2012 at 5:43 AM, Ian Lance Taylor wrote: >> The Go language is closing in what we are calling Go version 1.  This >> will be a long-term stable release of Go, with no language or library >> API changes.  Go 1 is described here:

Re: Go in gcc 4.7

2012-01-12 Thread Ian Lance Taylor
Joel Sherrill writes: > FWIW Go used to work well on RTEMS but recent changes have added > to the required set of OS APIs required and we are missing ucontext.h > currently. If someone wants to volunteer to help us out on implementing > that, it would be appreciated. I'd be happy to describe wh

Re: Go in gcc 4.7

2012-01-12 Thread Ian Lance Taylor
Andreas Schwab writes: > Ian Lance Taylor writes: > >> The functions required are makecontext, getcontext, and setcontext. > > Note that these functions are obsolescent in POSIX.1-2004 and removed > from POSIX.1-2008. I know, but they were removed with no adequate replace

Re: Go in gcc 4.7

2012-01-12 Thread Ian Lance Taylor
Joel Sherrill writes: > On 01/12/2012 12:16 PM, Andreas Schwab wrote: >> Ian Lance Taylor writes: >> >>> The functions required are makecontext, getcontext, and setcontext. >> Note that these functions are obsolescent in POSIX.1-2004 and removed >>

Re: Go in gcc 4.7

2012-01-12 Thread Ian Lance Taylor
Dennis Clarke writes: > Stuff from the opensolaris project isn't going to help here is it ? makecontext is inherently processor/ABI dependent. That looks like a SPARC version. It's fairly easy to write makecontext/getcontext/ setcontext for any specific processor/ABI. I don't really understan

Re: Go in gcc 4.7

2012-01-13 Thread Ian Lance Taylor
Andreas Schwab writes: > Dennis Clarke writes: > >> for (argno = 0; argno < argc; argno++) { >> if (argno < 6) >> *tsp++ = reg[REG_O0 + argno] = va_arg(ap, long); >> else >> *tsp++ = va_arg(ap, long); > > This is broken. T

Re: Go in gcc 4.7

2012-01-13 Thread Ian Lance Taylor
Andreas Schwab writes: >> I suspect that the error of using "int" is one of the reasons why >> makecontext has been removed from POSIX. Thought I don't know why it >> was not replaced with a proper version. > > See >

Re: comp_type_attributes

2012-01-17 Thread Ian Lance Taylor
Marc Glisse writes: > I am trying to understand comp_type_attributes, which checks whether > attributes are compatible. From what I understand, on many platforms, > that function can only ever return 1. Indeed, it does some checks to > know whether it can answer 1, and if not it forwards to the t

Re: readonly register

2012-01-18 Thread Ian Lance Taylor
BELBACHIR Selim writes: > I'm trying to support an 'in' instruction which reads a value on a peripheral > and writes it into a $INP register. > The $INP register can be used in almost every insn as input operand (add, > sub, mul ...). > I defined a builting to access the 'in' instruction. > > H

Re: readonly register

2012-01-19 Thread Ian Lance Taylor
ge the register bank, but you don't want it to use registers from that bank for outputs. The allocator doesn't really work that way. Perhaps there is a way that I don't know about. Ian > -Message d'origine- > De : Ian Lance Taylor [mailto:i...@google.co

Re: Hashing regs and subregs

2012-01-19 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I am developing a new pass and looking for suggestions on the best way > to record in a data structure which regs and subregs I have seen and > which mode they are in through the insn chain so I know if I find > duplicates. > > Any suggestions on the best way to do this

Re: Interface Method Table

2012-01-20 Thread Ian Lance Taylor
Matt Davis writes: > For a Go program being compiled in gcc, from the middle end, is there a way to > figure-out which routines make up the interface-method-table? I could check > the > mangled name of the method table, but is there another way to deduce what > methods compose it from the middl

Re: RTL AND Instruction

2012-01-21 Thread Ian Lance Taylor
Matt Davis writes: > What I have in my source is the following: > > rtx eax = gen_rtx_REG(DImode, 0); > rtx and = gen_rtx_AND(DImode, eax, gen_rtx_CONST_INT(VOIDmode, 7)); > and = gen_rtx_SET(DImode, eax, and); > emit_insn_before(and, insn); This is normally not what you want to

Re: Is it possible to get virtual function indication from mangled name?

2012-01-30 Thread Ian Lance Taylor
Sergei Dyshel writes: > I need to profile a C++ program with 'gprof' but I'm only interested in > virtual functions. Is it possible to get indication of virtual function in > flat profile? As of now, virtual functions aren't marked in any special > way inside demangled names. Correct: the ma

Re: libgcc maintainer

2012-02-06 Thread Ian Lance Taylor
Zoltán Kócsi writes: > Who'd be the best person to contact regarding to libgcc for ARM 4T, 6M and 7M > targets? The "arm port" maintainers listed in the top-level MAINTAINERS file. Ian

Re: Information Assistance

2009-07-12 Thread Ian Lance Taylor
Microsoft® writes: > On July 3, 2009 I purchased a Hewlett-Packard HDX18t Premium Series > Notebook PC with free upgrade for Windows 7. (Customized). > > Product: Hewlett-Packard HDX18t Premium Series Notebook PC > > • Genuine Windows Vista Home Premium with Service Pack 1 (32-bit) > • Intel(R) C

Re: how to use expand_builtin_alloca

2009-07-13 Thread Ian Lance Taylor
Janboe Ye writes: > normally gcc will use expand_builtin_alloca to handle variable array. > But mudflap will force this function to return immediately to invoke > alloca explicit. > > Is there some way to still use expand_builtin_alloca without changing > gcc source code? mudflap can't check acc

Re: how to use expand_builtin_alloca

2009-07-13 Thread Ian Lance Taylor
Janboe Ye writes: > Is it possible to override alloc to do the same thing as > expand_buitlin_alloca in application codes? I don't know of any way to do that when using mudflap. If there were such a way, it would imply that mudflap were broken, or that there is a special way to work around it.

Re: template instantiation and anonymous namespaces

2009-07-14 Thread Ian Lance Taylor
Stefan Lampe writes: > Here's some code that produced a surprising result with GCC 4.3.3 on > linux 64. I'd have expected all addresses output to be the same. This message should have gone to gcc-h...@gcc.gnu.org rather than g...@gcc.gnu.org. Please take any followups to gcc-help. Thanks. You

Re: Adding constraints.md to my port

2009-07-14 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > In file included from ./tm_p.h:5, > from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: > ./tm-preds.h:40:1: warning: "CONSTRAINT_LEN" redefined > In file included from ./tm.h:6, > from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: > /home/tot

Re: [gcc-in-cxx] zlib?

2009-07-15 Thread Ian Lance Taylor
Jerry Quinn writes: > Hi. I started looking at what it would take to convert zlib to build > with c++. The zlib library in gcc is actually a copy of upstream sources, so I don't think it would be a good idea to make this change. We should stay as close to the upstream source as possible. Ian

Re: [gcc-in-cxx] zlib?

2009-07-15 Thread Ian Lance Taylor
Jerry Quinn writes: > It does mean that we will always have to have c++ and c available to > bootstrap. Was one of the goals to remove the need for a host C > compiler? No, removing the need for a host C compiler was not a goal. > Meanwhile, I'm working on libdecnumber... Actually, that is al

Re: Problem with static linking

2009-07-15 Thread Ian Lance Taylor
Zachary Turner writes: > The codebase is large, but is new to linux. It was originally > developed on windows and then ported to linux. It makes heavy use of > C++, STL, and boost and we'd like to (if possible) link *everything* > statically. This means libc, libgcc, libstdc++, boost, libpthre

Re: Is GDE available for now?

2009-07-16 Thread Ian Lance Taylor
Eric Fisher writes: > I read the paper "The Visual Development of GCC Plug-ins with GDE" > from gcc summit 2009. It's a powerful tool. So where can I get it to > help me debug and study gcc? I think the best way to start would be to contact the authors of the paper. Their e-mail addresses are t

Re: Problem with static linking

2009-07-16 Thread Ian Lance Taylor
Jakub Jelinek writes: >> -static option? and 3) Is there a way to fix them? I've even gone so >> far as to manually run collect2 specifying my own hand edited command >> line, but nothing I've tried there has worked either. > > Don't link statically, there are many reasons not to and only very

Re: current_function_outgoing_args_size

2009-07-18 Thread Ian Lance Taylor
Mohamed Shafi writes: > The change logs says that current_function_outgoing_args_size is no > more available. But it doesnt say with what it is replaced. Looking at > the other targets i find that its replaced with some field in a > structure crtl. Where is this defined/declared. crtl is declare

Re: Pre and post increment

2009-07-20 Thread Ian Lance Taylor
i...@adari.net writes: > 1. It is wise then to insure that the final value of an expression is > ascertained upfront before it is being used in a function call as an > argument. I suppose this is applicable in all cases of expressions > and not limited to pre and post increments, although, pre an

Re: New port IA64 VMS and updated Alpha/VMS

2009-07-21 Thread Ian Lance Taylor
Douglas B Rupp writes: > 1) submit the target independent bits and pieces first then the > configure bits. This seems like the right approach to me. Ian

Re: #pragma startup doesn't work on GCC

2009-07-22 Thread Ian Lance Taylor
Debarshi Sanyal writes: > gcc doesn't seem to support "#pragma startup" and "#pragma exit". I > used gcc 4.0.0. > Does there exist equivalent commands for these pragmas in gcc? This question is not appropriate for the mailing list gcc@gcc.gnu.org, which is for developers of gcc. It is appropria

We shouldn't tell people to send e-mail to gcc-bugs

2009-07-23 Thread Ian Lance Taylor
It seems to me that e-mail to gcc-b...@gcc.gnu.org is basically lost in the noise. It seems to me that we should not recommend that people send bug reports there; the chances that anything will happen are much smaller than the already small chance that anybody will fix their bugzilla bug report.

Re: libstdc++.so.6.0.*-gdb.py might be installed at the wrong place

2009-07-24 Thread Ian Lance Taylor
Basile STARYNKEVITCH writes: > I would believe that it is the wrong place to install such a file. (In > particular it makes ldconfig unhappy, when /usr/local/lib/lib64 is > scanned). In what way does it make ldconfig unhappy? My /usr/lib directory has a number of files which are not shared libr

Re: GPL (probably a FAQ)

2009-07-24 Thread Ian Lance Taylor
This discussion is offtopic for the gcc@gcc.gnu.org mailing list. Please send replies directly to me or to gnu-misc-discuss. Adel Abushaev writes: > GPL is viral, one drop of it will make everything else GPL, especially > when you redistribute the code. Please try to avoid using words like "vi

Re: Building GCC

2009-07-24 Thread Ian Lance Taylor
Angelo Graziosi writes: > What it the best? DPD or BID? The question is not appropriate for the gcc@gcc.gnu.org mailing list, which is for gcc developers. It would be appropriate for gcc-h...@gcc.gnu.org. Please take any followups to gcc-help. Thanks. You neglected to mention which version o

Re: Modelling of multiple condition code registers

2009-07-24 Thread Ian Lance Taylor
Markus L writes: > I have a question about modelling of condition codes in GCC. The > target I am considering has the following characteristics: > > Associated with each register is a set of CC flags that are updated > whenever that register is used as a destination of an operation that > would n

Re: regarding optimization options in phase ordering

2009-08-10 Thread Ian Lance Taylor
pms writes: > thanks, But b=a is a assignment statement. It is doing some memory operations > isn't it. Assuming b=a is a dead statement, how r the following i386 > assembly statements generated > pushl %ebp > movl%esp, %ebp > andl$-16, %esp > subl$16, %esp

Re: How to link a static lib when build a shared lib ?

2009-08-10 Thread Ian Lance Taylor
Andy writes: > I got that, glibc can support SHA in crypt lib since v2.7. > > There is a requirement in my application to use SHA, but update the > whole glibc is too risky. So I want to build a specific crypt lib for > the module using crypt function in my application. > > Now the calling graph

Re: regarding optimization options in phase ordering

2009-08-10 Thread Ian Lance Taylor
pms writes: > My question is as follwos > > We've a problem here. we were trying to use cc1 with & without -O option to > verify the optimizations happening in our sample code. > the sample code is given below > file name : 1.c > #include > int main() > { int a=5; > int b; > b=a; > printf(

Re: [gcc-in-cxx] replacing qsort with std::sort

2009-08-12 Thread Ian Lance Taylor
Pedro Lamarão writes: > Also, is the gcc-in-cxx branch still active? Should my objective be to > contribute patches to this branch? The gcc-in-cxx branch is currently dead, having been merged into mainline. We can choose to revive it for contributions like yours. I would be interested in opini

Re: Cannot configure gcc4.4.0 in order to build h8300 crosscompiler

2009-08-17 Thread Ian Lance Taylor
"ariga masahiro" writes: > /* Dump each assembler insn's rtl into the output file. > This is for debugging the compiler only. */ > #define TARGET_RTL_DUMP (target_flags & MASK_RTL_DUMP) > --- > > But there are not above codes in GCC4.4.0's /gcc/config/h8300/h8300.h !!! All that stuff has move

Re: Installing multiple versions of GCC

2009-08-17 Thread Ian Lance Taylor
Angelo Graziosi writes: > Is there a way to send libiberty.a where go the other libs (i.e > /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)? Really libiberty should not be installed at all by default. I don't know of any way to change where it is installed. Ian

Re: Installing multiple versions of GCC

2009-08-17 Thread Ian Lance Taylor
Angelo Graziosi writes: > Ian Lance Taylor ha scritto: >> Angelo Graziosi writes: >> >>> Is there a way to send libiberty.a where go the other libs (i.e >>> /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)? >> >> Really libiberty sho

Re: Cannot configure gcc4.4.0 in order to build h8300 crosscompiler

2009-08-18 Thread Ian Lance Taylor
"ariga masahiro" writes: >>> /* Dump each assembler insn's rtl into the output file. >>> This is for debugging the compiler only. */ >>> #define TARGET_RTL_DUMP (target_flags & MASK_RTL_DUMP) >>> --- >>> >>> But there are not above codes in GCC4.4.0's /gcc/config/h8300/h8300.h !!! >> >> All th

Re: What's the 'Mail' program mentioned on http://gcc.gnu.org/install/test.html

2009-08-18 Thread Ian Lance Taylor
Larry Evans writes: > I don't have any program called Mail on my system: It's usually part of the mailx package. In any case, you can edit the script to use any command line program which sends e-mail. Ian

Re: Question about the difference between two instruction scheduling passes

2009-08-19 Thread Ian Lance Taylor
"Amker.Cheng" writes: >I'm currently studying implementation of instruction sched in gcc. > > it is possible to schedule insns directly from queue in case > there is nothing better to do and there are still vacant dispatch slots > in the current cycle. > > Gcc only does this work in the secon

Re: Latent bug in update_equiv_regs?

2009-08-19 Thread Ian Lance Taylor
Jeff Law writes: > Somehow I can't help but think I'm missing something here... > > Given: > > (set (reg X) (mem Y)) > > (...) > > (set (mem Y) (reg Z)) > > (...) > > (use (reg X)) > > > > update_equiv_regs can set an equivalence between (reg X) and (mem Y) > which is clearly wrong as

Re: web interface to repo just got decidedly worse

2009-08-19 Thread Ian Lance Taylor
Mikael Pettersson writes: > When browsing e.g. gcc-cvs via the web it used to be possible to click on a > newly added file and get a 'download raw' (I think it was called) option to > see the file without all that idiotic html formatting. That seems to be gone > now. For me, at least, this is ext

Re: Latent bug in update_equiv_regs?

2009-08-19 Thread Ian Lance Taylor
Jeff Law writes: > You're right. This should have been rejected by validate_equiv_mem, > but isn't because the two memory references are in different alias > sets. > > You can see this in the mainline sources configured for > i686-pc-linux-gnu by compiling > libgomp/testsuite/libgomp.fortran/red

Re: Exception handling information

2009-08-20 Thread Ian Lance Taylor
Dave Korn writes: > The > DW2 version has zero overhead in terms of execution time when no exceptions > are thrown, but adds a noticeable amount of memory usage for the eh tables. For the extremely picky (and who among us is not extremely picky) there is still some overhead in the dwarf2 version

Re: [Repost] RFC: dump gengtype structures

2009-08-21 Thread Ian Lance Taylor
Laurynas Biveinis writes: > [Third try. Apparently the compressed dump was still too big to get through] > > So I got fed up with trying to navigate gengtype maze of type_p, > pair_p and others and trying to figure out the difference between > GC_POINTED_TO and GC_USED and what is so "maybe" abou

Re: Front-End error

2009-08-21 Thread Ian Lance Taylor
Philip Herron writes: > But after i return true in lang_init i get the error: > > gpy1: internal compiler error: in init_excess_precision, at toplev.c:2160 > > Really not sure where i can start to debug this any help would be > great. You debug this by looking at line 2160 of toplev.c and readin

Re: verify_gimple fails for git-1.6.4.1

2009-08-25 Thread Ian Lance Taylor
Jan Engelhardt writes: > builtin-grep.c:669:5: internal compiler error: verify_gimple failed > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > make: *** [builtin-grep.o] Error 1 Please file a bug report, per http:/

Re: Exception handling information

2009-08-25 Thread Ian Lance Taylor
Jason Merrill writes: > On 08/20/2009 11:36 PM, Ian Lance Taylor wrote: >> Ironically, -freorder-blocks-and-partition, which seems tailor-made to >> fix this, is disabled when exception handling is used. > > This is no longer true: > > 2009-08-07 Jakub Jelinek

Re: Why no strings in error messages?

2009-08-26 Thread Ian Lance Taylor
Bradley Lucier writes: > I've never seen the answer to the following question: Why do some > versions of gcc that I build not have string substitutions in error > messages? Perhaps you configured with --disable-intl? > So, is -fschedule-insns an option to be avoided? -fschedule-insns should

Re: Why no strings in error messages?

2009-08-26 Thread Ian Lance Taylor
Bradley Lucier writes: > Are 12 registers not enough, in principle, to do scheduling before > register allocation? I was getting a 15% speedup on some numerical > codes, as pre-scheduling spaced out the vector loads among the > floating-point computations. If you are getting that kind of speedu

Re: Include statement in your gnu free fortran 77 compiler

2009-08-26 Thread Ian Lance Taylor
writes: > I have a quick question on the useage of your gnu free > fortran compiler. I have written fortran code for > microsoft fortran compiler version 5.1 and use an include > statement in my code. In this compiler, the include > statement starts with a $ letter. I think they call these >

Re: Help ! Frozen by a comment in gcc/c-common.h!

2009-08-27 Thread Ian Lance Taylor
"Alexei I. Adamovich" writes: > While modifying the C lexer to accommodate it for experimental > C-derived language front-end, I've stumbled across the following > comment in gcc/c-common.h before the "enum rid" definition (still > there in gcc-4.5-20090820 snapshot): > > 42 /* Reserved identifie

Re: Trace crash in gargabe collector to the code at fault?

2009-08-28 Thread Ian Lance Taylor
oliver.kell...@t-online.de (Oliver Kellogg) writes: > In multi source compile mode, I ggc_free() the data in dwarf2out.c after > code generation for a file is done. (I found that I need this because > otherwise the assembly code generated for file_2 to file_N of a compile > job will carry leftover

Re: Checking for -rdynamic flag in gcc/configure

2009-08-28 Thread Ian Lance Taylor
Steve Ellcey writes: > I have a question about the check for -rdynamic in gcc/configure. > What we have in configure.ac is: > > # Check -rdynamic > LDFLAGS="$LDFLAGS -rdynamic" > AC_MSG_CHECKING([for -rdynamic]) > AC_TRY_LINK([],[return 0;], > [AC_MSG_RESULT([yes]); have_rdynamic=yes]

Re: Checking for -rdynamic flag in gcc/configure

2009-08-31 Thread Ian Lance Taylor
"Joseph S. Myers" writes: > On Fri, 28 Aug 2009, Ian Lance Taylor wrote: > >> Link a small program with -rdynamic, one which defines a globally >> visible function which is not called. Run objdump -T and see if you can >> see that symbol in the output. >>

Re: Help ! Frozen by a comment in gcc/c-common.h!

2009-08-31 Thread Ian Lance Taylor
l...@dm.botik.ru (Alexey I. Adamovich) writes: > Forgot RID_LAST_MODIFIER > > On Sat, Aug 29, 2009 at 08:29:21PM +0400, Alexei I. Adamovich wrote: >> So for the sake of those who will develop C-derived front ends, should >> we change the comment like below: >> > /* Reserved identifiers. This is t

Re: letter to GCC Steering Committee, Streamnovation Ltd.

2009-08-31 Thread Ian Lance Taylor
Adam Rak writes: > We are a forming company (StreamNovation Ltd.) from Hungary, and we > would like to ask your attitude about our plans. We are intending to > implement a plugin for GCC 4.5 which makes it possible to utilize the > GPU (graphics processing unit) semi-automatically (later > fully-

Re: --enable-languages=c --enable-build-with-cxx

2009-08-31 Thread Ian Lance Taylor
Ralf Wildenhues writes: > Currently, --enable-languages=c --enable-build-with-cxx fails because > neither the C++ compiler nor libstdc++-v3 are built in Stage 1, but in > Stage 2, CXX is set to .../prev-gcc/g++ and other variables are set > accordingly. Is this combination supposed to work? It

Re: Bit fields

2009-08-31 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > But I get this message: > struct4.c: In function 'goo': > struct4.c:32: internal compiler error: in simplify_subreg, at > simplify-rtx.c:4923 > > Does anybody know how can I solve this issue ? You need to start by looking at line 4923 of simplify-rtx.c to see wha

Re: question about -mpush-args -maccumulate-outgoing-args on gcc for x86

2009-09-01 Thread Ian Lance Taylor
Godmar Back writes: > It appears to me that '-mno-push-args' is the enabled by default (*), > and not '-mpush-args'. The default varies by processor--it dependson the -mtune option. > Moreover, since -maccumulate-outgoing-args > implies -mno-push-args, it appears that the only way to obtain > '

Re: Replacing certain operations with function calls

2009-09-01 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > I have been also been looking into how to generate a function call for > certain operations. I've looked at various other targets for a similar > problem/solution but have not seen anything. On my target > architecture, we have certain optimized versions of the mu

Re: Replacing certain operations with function calls

2009-09-01 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > First off: does this seem correct? Awkward though it is, it may be more reliable to build a small tree here and pass it to expand_call. This assumes that you want to use the standard ABI when calling this function. Then your second issue would go away. Ian

Re: Replacing certain operations with function calls

2009-09-01 Thread Ian Lance Taylor
Jean Christophe Beyler writes: > In regard to what you said, do you mean I should build the tree before > the expand pass, by writing a new pass that will work on the trees > instead of rtx? Oh, sorry, I'm an idiot. I forgot that you only have RTL at this point. I would go with what you wrote

Re: The reincarnation of PR15242

2009-09-08 Thread Ian Lance Taylor
Andrew Haley writes: > This seems to be an an old bug that has come back. We're generating > > L1210: > jmp *%eax > .L4: > .L5: > ... > jmp .L1210 > .L1171: > .L1172: > ... > jmp .L1210 > .L1168: > .L1169: > ... > jmp .L1210

Re: The reincarnation of PR15242

2009-09-09 Thread Ian Lance Taylor
Andrew Haley writes: > I've been thinking about that. How would one go about writing a testcase? > I guess we're looking for a lot of jmp instrs all bracnhing to the same > label. Yeah. I would probably just wimp out and write a couple of target specific test cases. Ian

Re: gcc & C++ instead of g++

2009-09-09 Thread Ian Lance Taylor
Mohsen Pahlevanzadeh writes: > How do i write C++ with gcc instead of g++? The question is not appropriate for the mailing list g...@gcc.gnu.org. It is appropriate for gcc-h...@gcc.gnu.org. Please take any followups to gcc-help. Thanks. There is no particular reason to use gcc instead of g++.

Re: [gnat] stmt_group_free_list and gnu_stack_free_list in trans.c

2009-09-11 Thread Ian Lance Taylor
oliver.kell...@t-online.de (Oliver Kellogg) writes: > What is the point of stmt_group_free_list and gnu_stack_free_list in > trans.c? Why not always allocate a fresh node? Just for speed, I assume. It's usually faster to keep a free list than to go back to the allocator each time. I don't know

Re: [lambda] Latest experimental polymorphic lambda patches

2009-09-11 Thread Ian Lance Taylor
On Tue, Aug 11, 2009 at 7:05 AM, Jason Merrill wrote: > A few comments: > >> /* XXX: Any way to get current location? */ > > input_location Just a late comment: using input_location is generally not a good idea. Every token in the parser has a location. That should be the source of all location

Re: Not using DECL_VALUE_EXPR for callee-copied parameters?

2009-09-11 Thread Ian Lance Taylor
Martin Jambor writes: > I have run the testsuite on hppa with the following patch and I > successfully bootstrapped and tested it on x86_64. Unless someone > objects, I will bootstrap it on hppa and commit it in a week or two > along with Richi's patch verifying such decls don't leak to the IL >

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-09-13 Thread Ian Lance Taylor
Jerry Quinn writes: > Index: include/libiberty.h > === > --- include/libiberty.h (revision 149964) > +++ include/libiberty.h (working copy) > @@ -100,7 +100,7 @@ > declaration without arguments. If it is 0, we checke

Re: array subscript is below array bounds : false positive?

2009-09-15 Thread Ian Lance Taylor
"Peter A. Felvegi" writes: > I've run into this strange warning when compiling w/ optimization: > gcc-4.3 -O2 -Werror -Wall -c -o t.o t.c > cc1: warnings being treated as errors > t.c: In function ‘foo’: > t.c:25: error: array subscript is below array bounds This question is appropriate for gcc-

Re: request for copyright assignment forms

2009-09-15 Thread Ian Lance Taylor
David Krauss writes: > I'm rewriting std::rotate in the C++ standard library: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41351 . The other > contributors suggest I register as a contributor and check in my > changes, and in particular submit a copyright assignment form. May I > have that, an

Re: apple blocks extension

2009-09-15 Thread Ian Lance Taylor
Ed Smith-Rowland <3dw...@verizon.net> writes: > In general, and this has come up before, there are other things in > Objective-C 2.0 that we don't have. IIRC the Apple trees left behind > are a little old and not in good shape. What are the licensing issues > for borrowing from LLVM leaving asid

Re: apple blocks extension

2009-09-16 Thread Ian Lance Taylor
Mark Mitchell writes: > Ian Lance Taylor wrote: > >> programs. So it seems to me that any changes that Apple makes to gcc >> (or gdb, emacs, etc.) can simply be brought over by any interested >> party. > > I'd certainly check with the FSF before betting o

Re: Is Non-Blocking cache supported in GCC?

2009-09-17 Thread Ian Lance Taylor
"Amker.Cheng" writes: > Recently I found two relative old papers about non-blocking cache, > etc. which are : > > 1) Reducing memory latency via non-blocking and prefetching > caches. BY Tien-Fu Chen and Jean-Loup Baer. > 2) Data Prefetching:A Cost/Performance Analysis BY C

Re: Add new architechture in gcc build error

2009-09-21 Thread Ian Lance Taylor
daniel tian writes: >I have already finished CPU port named RICE. The previous version > I did is on gcc 4.0.2. it can be compiled. Now I wanna move it to > v4.3.0. I added the config script just as the CRX architechture. > configure:2379: $? = 1 > configure:2398: > /home/daniel.tian/gcc_

Re: C++: variable length arrays and operator new[]

2009-09-21 Thread Ian Lance Taylor
Florian Weimer writes: > G++ currently accepts the following code: > > char * > alloc(unsigned a, unsigned b) > { > typedef char array[a]; > return &**(new array[b]); > } > > Is this intentional? The equivalent "new char[a][b]" is rejected (as > required by the C++ standard). Is there any r

Re: what does the calling for min_insn_conflict_delay mean

2009-09-21 Thread Ian Lance Taylor
"Amker.Cheng" writes: >In function new_ready, it calls to min_insn_conflict_delay with > "min_insn_conflict_delay (curr_state, next, next)". > But the function's comments say that it returns minimal delay of issue of > the 2nd insn after issuing the 1st in given state. > Why the last two para

Re: SSA GIMPLE

2009-09-23 Thread Ian Lance Taylor
Rob Quigley writes: > I am looking for some more information of the SSA Gimple syntax and > was wondering if there was  BNF available? There is no BNF. Sorry. > I am interested in the IR of gcc and am just looking for some further > documentation/explanation of some of the syntax I am observin

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-09-23 Thread Ian Lance Taylor
Paolo Bonzini writes: > On 08/08/2009 11:59 PM, Sriraman Tallam wrote: >> Hi, >> >> Here is a patch to eliminate redundant zero-extension instructions >> on x86_64. > > The code looks nice! However, since it is very specific to x86 (and > x86 patterns), I'd rather see it in the i386 machine

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-09-23 Thread Ian Lance Taylor
Paolo Bonzini writes: > On 09/24/2009 08:14 AM, Ian Lance Taylor wrote: >> I don't agree with this. If we want this code to be x86_64 specific, >> then it should be done by having the i386 backend add the pass to the >> pass manager, much as plugins can add a pass. A

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