Re: Why are libgcc.a and libgcc_eh.a compiled with -fvisibility=hidden?

2012-03-07 Thread Ian Lance Taylor
Ollie Wild writes: > So ... is there a valid reason for this, or is this just an accident > of history? AFICT, this behavior dates back to 2007 as of r120429 > (http://gcc.gnu.org/viewcvs/trunk/libgcc/static-object.mk?view=markup&pathrev=120429). No, that's not right. That change just moves th

Re: Why are libgcc.a and libgcc_eh.a compiled with -fvisibility=hidden?

2012-03-07 Thread Ian Lance Taylor
Eric Botcazou writes: >> So ... is there a valid reason for this, or is this just an accident >> of history? AFICT, this behavior dates back to 2007 as of r120429 >> (http://gcc.gnu.org/viewcvs/trunk/libgcc/static-object.mk?view=markup&pathr >>ev=120429). > > At least on some platforms, you cann

Re: Why are libgcc.a and libgcc_eh.a compiled with -fvisibility=hidden?

2012-03-07 Thread Ian Lance Taylor
Eric Botcazou writes: >> True, but not, as far as I can see, an explanation for why the symbols >> are hidden. Hiding the symbols doesn't fix the problem of having >> multiple libgcc_eh on those platforms. > > Yes, it does, as it prevents libgcc_eh from being linked in shared libraries, > thus

Re: GCC 4.7.0RC: Mangled names in cc1

2012-03-09 Thread Ian Lance Taylor
ludovic.cour...@inria.fr (Ludovic Courtès) writes: > However, this means that plug-ins must now be built with g++, except > when GCC was configured with --disable-build-poststage1-with-cxx. This > seems difficult to deal with, for plug-in writers. This is an unfortunate truth during our transiti

Re: GCC 4.7.0RC: Mangled names in cc1

2012-03-09 Thread Ian Lance Taylor
ludovic.cour...@inria.fr (Ludovic Courtès) writes: > Ian Lance Taylor skribis: > >> ludovic.cour...@inria.fr (Ludovic Courtès) writes: >> >>> However, this means that plug-ins must now be built with g++, except >>> when GCC was configured with --disable-build-

Re: GCC 4.7.0RC: Mangled names in cc1

2012-03-09 Thread Ian Lance Taylor
ludovic.cour...@inria.fr (Ludovic Courtès) writes: > Ian Lance Taylor skribis: > >> ludovic.cour...@inria.fr (Ludovic Courtès) writes: >> >>> Ian Lance Taylor skribis: >>> >>>> ludovic.cour...@inria.fr (Ludovic Courtès) writes: >>>> &g

Re: fine grained control over testsuite

2012-03-12 Thread Ian Lance Taylor
Dennis Clarke writes: > Q: is there a way to prevent a test timing out ? > > I see a lot of this sort of thing : > > Running /opt/bw/src/gcc-4.5.3/gcc/testsuite/gcc.c-torture/compile/compile.exp > ... > WARNING: program timed out. > FAIL: gcc.c-torture/compile/pr46534.c -O0 (test for excess er

Re: regrename creates invalid insn

2012-03-12 Thread Ian Lance Taylor
Andreas Schwab writes: > When regrename runs it turns it into this: > > (insn 6 27 7 2 (parallel [ > (set (reg:SI 1 %d1 [35]) > (truncate:SI (lshiftrt:DI (mult:DI (sign_extend:DI (reg:SI 1 > %d1 [36])) > (const_int -2004318071 [0x8889])

Re: regrename creates invalid insn

2012-03-12 Thread Ian Lance Taylor
Andreas Schwab writes: > Ian Lance Taylor writes: > >> But it also looks like the pattern should use a match_scratch. > > It is also used as input in operand 2. Sorry, I missed that. This still seems like a bug in regrename to me, but it also seems like an unusual c

Re: target_header_dir vs host-x-host

2012-03-15 Thread Ian Lance Taylor
DJ Delorie writes: > configure has various ways of specifying the target headers for a > cross-compiler. However, none of these work when you're > cross-building a native (build!=host==target). Unfortunately, > configure looks in $target_header_dir for target headers to determine > various bits

Re: target_header_dir vs host-x-host

2012-03-15 Thread Ian Lance Taylor
DJ Delorie writes: >> My first try would be --with-build-sysroot. Does that fail in some way? > > It's ignored without --with-sysroot, but if you use --with-sysroot, > the cross-built native *also* expects to use a sysroot, which means > binutils must also be built with a sysroot, even if its "/

Re: target_header_dir vs host-x-host

2012-03-16 Thread Ian Lance Taylor
DJ Delorie writes: >> OK, but what's wrong --with-sysroot=/ ? > > It should work, it just seems "wrong" for a native compiler to have a > sysroot... I agree that it's a bug, but I'm not sure I think it's the same bug that you think it is. Every toolchain has a sysroot, really. I think it's a

Re: pr52543

2012-03-19 Thread Ian Lance Taylor
Kenneth Zadeck writes: > I have figured out what the root cause of pr52543, but i need some > advise as to how to fix it. > The bug only happens if the source or destination of the move is a > hard register. lower-subreg never breaks up pseudo to pseudo moves > that are larger than word mode.

Re: fold_builtin changes tree

2012-03-19 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I have builtin __function_size(foobar) that is applied to functions. > This should be folded to a symbol foobar@size. > > The problem comes when I mark in the fold_builtin function in my backend > that DECL_PRESERVE(foobar) = 1; > > The reason I need to do this is so t

Re: GSoC project idea(Before formal Submission)

2012-03-19 Thread Ian Lance Taylor
Subrata Biswas writes: > I want to design a new IPC(Inter Process Communication) for > Linux(Which can be extended for windows and mac also) as a project in > Google Summer of Code. This seems like an interesting project but it doesn't seem to be a compiler project. It seems like a library. I

Re: GSoC ideas: sc frontend, multi output compilation, constant path swap runtime optimization

2012-03-19 Thread Ian Lance Taylor
Tomasz Borowik writes: > The most beneficial task (for me) would be to just bring the front-end > I've already written up to mainline quality (though not necessarily > inclusion), and in the process update some of the documentation or > maybe even cleanup some gcc code. I have nothing against ne

Re: pr52543

2012-03-20 Thread Ian Lance Taylor
Kenneth Zadeck writes: > I think that the question is really bigger than finding the correct > line to fix. The problem is, that this code assumes that machines do > not have multiword moves or multiword shifts. My machine has both, > and i assume that the avr and the neon have at least multi

Re: pr52543

2012-03-20 Thread Ian Lance Taylor
Kenneth Zadeck writes: > i actually care about all registers, not just the hard ones.as it > turns out i had been wrong and lower-subregs splits pseudo to pseudo > moves, and hard reg to and from psuedo moves. > > register_move_cost requires the regclasses. > > anyway that is not the right th

Re: gcc-4.6.3 ICE

2012-03-21 Thread Ian Lance Taylor
Rainer Orth writes: > That's a Linux-only option, unfortunately. I asked the Solaris > engineers about implementing split-stack support, but they rejected it > for the complexity. Wimps. The split-stack support is simpler than than TLS support. Not that I really think gcc should use split-sta

Re: Freescale 68HC11/68HC12 port (gcc newbie help request)

2012-03-21 Thread Ian Lance Taylor
James Murray writes: > However, the generated code isn't as good as the output from 3.3.6. I > swapped back to unpatched 3.4.4 and compared with unpatched 3.3.6. I can understand why you are doing this. However, you should be aware that the compiler internals changed significantly in version 4.

Re: Backends with no exception handling on GCC47

2012-03-26 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I am porting my backend to GCC47 and during libgcc configuration I get: > configure:4511: checking whether to use setjmp/longjmp exceptions > configure:: /home/pm18/p4ws/pm18_binutils/bc/main/result/linux/ > intermediate/FirmwareGcc47Package/./gcc/xgcc -B/home/pm18/p4ws

Re: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-03-28 Thread Ian Lance Taylor
Stefano Lattarini writes: >> (I think avoiding info documentation being built in the source directory, >> so that builds could use a non-writable source directory, may have been >> one part). >> > There is probably some hack to obtain this effect (it's tested in the > testsuite > somewhere), but

Re: Copyright assignment

2012-03-28 Thread Ian Lance Taylor
David Stone writes: > I would like to get a form to assign all future contributions to the FSF. Sent off-list. Ian

Re: unwind and type support in GCC47

2012-03-29 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I am porting my backend to GCC47 and have been jumping through some > hurdles. libgcc is trying to compile unwind*.c files which I can't > remember being there for GCC46. They were there. In 4.6 they were in the gcc subdirectory. For 4.7 they moved to the libgcc di

Re: Backends with no exception handling on GCC47

2012-03-29 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > Is there anything documenting porting backend between GCC major versions > (GCC4.6 - GCC4.7), in order to avoid these questions? Basically, everything related to library code should move from gcc/config/CPU to libgcc/config/CPU. I don't know of any specific documenta

Re: Proposed plugin API for GCC

2012-03-29 Thread Ian Lance Taylor
David Malcolm writes: > I had a go at writing a possible plugin API for GCC, and porting parts > of my python plugin to it: > http://git.fedorahosted.org/git/?p=gcc-python-plugin.git;a=commitdiff;h=36a0d6a45473c39db550915f8419a794f2f5653e Seems like a good start. > I initially attempted an unde

Re: Proposed plugin API for GCC

2012-03-30 Thread Ian Lance Taylor
Romain Geissler writes: > Using structs with some sets of function pointers may break compatibility > between minor release. Yes, but fortunately we have a good understanding of how not to do that. We could also go the even safer route used for linker plugins, in which the plugin is invoked wit

Re: Proposed plugin API for GCC

2012-03-30 Thread Ian Lance Taylor
ludovic.cour...@inria.fr (Ludovic Courtès) writes: > What about sticking to the current “API” instead, and explicitly marking > as internal those parts that core developers know are still in flux? > > For instance, I would expect a large subset of and > to be stable (it’s been the case in my exp

Re: how to generate 64 bit relocations with gcc 3.3.3

2012-03-30 Thread Ian Lance Taylor
"张翀(Zhang Chong)" writes: > Hi, gcc-help, Please never send e-mail to both gcc-h...@gcc.gnu.org and gcc@gcc.gnu.org. Please send any followups only to gcc-help. Thanks. > Can anyone tell me that how to generate only 64bit relocations binary > with gcc 3.3? Thanks for the help I don't unders

Re: GCC 4.7.0 as a AVR cross compiler

2012-03-30 Thread Ian Lance Taylor
stuart writes: > I am not sure this is the right place to ask this It's not. The right place is gcc-h...@gcc.gnu.org. Please take any followups there. Thanks. > I can not seem to get gcc 4.7.0 to compile; it will not complete the > configuration stage complaining about missing packages (GMP

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-02 Thread Ian Lance Taylor
Stefano Lattarini writes: >> Anyway the real use in the src tree is different, IIUC. >> Info files are built in the build tree by developers, but put in the >> source tree for distribution. >> > In such a setup, what is the issue with having the '.info' files built > in the srcdir? It's not like

Re: unwind and type support in GCC47

2012-04-03 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > On 30/03/12 05:11, Ian Lance Taylor wrote: > >> There really shouldn't be anything in the exception support that uses >> SImode. That would be a bug. And I don't see anything that uses >> SImode. What are you loo

Re: Switching to C++ by default in 4.8

2012-04-03 Thread Ian Lance Taylor
Paweł Sikora writes: > On Tuesday 03 of April 2012 13:37:50 Diego Novillo wrote: >> >> Concurrently with this, Lawrence and Ian are working on the C++ coding >> guidelines. The draft is stored at http://gcc.gnu.org/wiki/CppConventions. > > what about using http://astyle.sourceforge.net/astyle.

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-03 Thread Ian Lance Taylor
Stefano Lattarini writes: > But since I'm not yet ready to publish this new feature, I intend to make > it available only though the new, undocumented option named (literally) > "hack!info-in-builddir". I hope this is acceptable to you. Sure, works for me. Thanks. Ian

Re: Switching to C++ by default in 4.8

2012-04-03 Thread Ian Lance Taylor
David Edelsohn writes: > Do you expect GCC to be able to bootstrap starting from a vendor C++ > compiler or will this require G++? In principle it should be possible to start from a vendor C++ compiler. Of course we will have to test in order to see. > What is the earliest release of G++ that w

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Ian Lance Taylor
Tristan Gingold writes: > On Apr 3, 2012, at 7:37 PM, Diego Novillo wrote: > >> >> We would like to start the process to make GCC 4.8 build in C++ mode by >> default. >> >> The mechanics of the change are simple enough. I volunteer to test changing >> the default on all primary targets (assu

Re: RFC: -Wall by default

2012-04-04 Thread Ian Lance Taylor
Andrew Haley writes: > On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >> For GCC-4.8, I would like to turn on -Wall by default. >> Comments? > > Umm, should this really happen at exactly the same time as C++ > by default? I assume that Gaby is talking about making -Wall the default for users of

Re: RFC: -Wall by default

2012-04-04 Thread Ian Lance Taylor
Andrew Haley writes: > On 04/04/2012 03:56 PM, Ian Lance Taylor wrote: >> Andrew Haley writes: >> >>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >>>> For GCC-4.8, I would like to turn on -Wall by default. >>>> Comments? >>> >>

Re: question about the constraint modifier '+'

2012-04-04 Thread Ian Lance Taylor
Handong Ye writes: > Hi, I'm new in gcc, and maybe misunderstand the constraint modifier '+'. > As the internal document says, '+' means an inout parameter. In my > mind, it means the instruction both reads and writes the pseudo > register. > > Assuming I have a pattern like: > > (define_insn "ls

Re: Warn if making external references to local stack memory?

2012-04-09 Thread Ian Lance Taylor
"sa...@hederstierna.com" writes: > GCC does warn if returning a pointer to a local variable (stack memory). > But there are alot of more cases where GCC could possibly warn, > eg. when references are made to local variables or stack memory. > > See this attached example code. > GCC warns for firs

Re: RFC: -Wall by default

2012-04-11 Thread Ian Lance Taylor
Andrew Haley writes: > On 04/05/2012 01:28 PM, Michael Veksler wrote: > >> As for specific warnings, I hate that the the code (a&&b || c&&d), >> which did not cause a warning on older gcc version now gives a >> warning. I would not want it on by default since it forces users to >> write too many

Re: Switching to C++ by default in 4.8

2012-04-11 Thread Ian Lance Taylor
Andrew Pinski writes: > The main reason why LLVM is the default compiler in XCode is license > rather any technical reason. Yes. > And GCC usually has better diagnostic than clang except in those few > areas which it does not (those some might say those areas are the most > important ones). No

Re: Switching to C++ by default in 4.8

2012-04-11 Thread Ian Lance Taylor
Jonathan Wakely writes: > I get my views on their relative merits from actually using GCC and > clang, not from out of date webpages. Me too, and I think clang's are better. Simply having caret diagnostics and good suggestions are quite important for people who are not C++ experts. Ian

Re: FW: is "syslimits.h" likely to change?

2012-04-11 Thread Ian Lance Taylor
"Mark Galeck (CW)" writes: > GCC has this internal include file "included/syslimits.h".   This file, uses > a non-standard C include directive "include_next" to recursively include > "limits.h" from a second location.  > > I need to change this syslimits.h for our internal use, since I cannot

Re: Updated GCC vs Clang diagnostics

2012-04-12 Thread Ian Lance Taylor
Lawrence Crowl writes: > On 4/12/12, Manuel López-Ibáñez wrote: >> So given your ideal implementation, if the user-visible result >> was exactly like the one in Clang, will you be happy with any of >> the three things: ranges, color and fix-it hints? > > There are many issues with color. Does y

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Fri, Apr 20, 2012 at 3:10 PM, Cary Coutant wrote: >>> We only have very few bits to in STB_XXX field. >> >> This is exactly why I'm not in favor of this extension. The feature >> doesn't seem compelling enough to use up one of these precious >> reserved values (in fact, yo

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Fri, Apr 20, 2012 at 3:59 PM, Ian Lance Taylor wrote: >> "H.J. Lu" writes: >> >>> On Fri, Apr 20, 2012 at 3:10 PM, Cary Coutant wrote: >>>>> We only have very few bits to in STB_XXX field. >>>> &

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Ian Lance Taylor
"H.J. Lu" writes: > In our usage, the backup definition may not be at the end of > command line since it may reference library symbols. You could write out the backup function you need under a different name. Then have the backup symbol at the end of the link call the new name of the backup func

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Fri, Apr 20, 2012 at 5:49 PM, Ian Lance Taylor wrote: >> "H.J. Lu" writes: >> >>> In our usage, the backup definition may not be at the end of >>> command line since it may reference library symbols. >>

Re: target specific builtin expansion (middle end and back end definition inconsistence problem?).

2012-04-22 Thread Ian Lance Taylor
Feng LI writes: > I generate builtin function directly in the middle end and and expand > the builtin function in the x86 backend to certain set of > instructions. > > I've defined x86 builtin functions in the gcc backend like this: > > { OPTION_MASK_ISA_TSTAR | OPTION_MASK_ISA_64BIT, > CODE_FOR_

Re: old archives from 1998

2012-04-22 Thread Ian Lance Taylor
"Paul Edwards" writes: > During the GCC 2.7.2/2.8.1 timeframe I sent emails to this list (or > some similar list) with patches. I have found evidence of the > patches being applied: > > http://hg.sourceforge.jp/view/cbc/GCC/file/ec4cbc2ac877/gcc/FSFChangeLog > > 527 Sun Oct 4 08:37:36 1998 Paul

Re: target specific builtin expansion (middle end and back end definition inconsistence problem?).

2012-04-22 Thread Ian Lance Taylor
Feng LI writes: > Yes, you are right. But how could I reference to a backend defined builtin > function in the middle end (I need to generate the builtin function in the > middle end and expand it in x86 backend)? If the function doesn't have a machine-independent definition, then use a target h

Re: target specific builtin expansion (middle end and back end definition inconsistence problem?).

2012-04-23 Thread Ian Lance Taylor
Feng LI writes: > Hi Ian, > > 2012/4/22 Ian Lance Taylor : >> Feng LI writes: >> >>> Yes, you are right. But how could I reference to a backend defined builtin >>> function in the middle end (I need to generate the builtin function in the >>> mi

Re: Failed access check

2012-04-23 Thread Ian Lance Taylor
"Peter A. Felvegi" writes: > Should I file a bug report? Yes, please. Thanks. Ian

Re: target specific builtin expansion (middle end and back end definition inconsistence problem?).

2012-04-23 Thread Ian Lance Taylor
Feng LI writes: > Yes, you are right. But how could I reference to a backend defined builtin > function in the middle end (I need to generate the builtin function in the > middle end and expand it in x86 backend)? If the function doesn't have a machine-independent definition

Re: GCC 2.8.1 for i370

2012-04-25 Thread Ian Lance Taylor
"Paul Edwards" writes: > It seems to me that in addition to doing a strcmp to cc1, I would > also have needed to do a strcmp to cccp. Can someone confirm > that GCC 2.8.1 and GCC 3.4.6 differ in that respect - ie there > was an extra executable (cccp) in GCC 2.8.1 when doing that > task of conver

Re: go in 4.7.0 seems to fail quite badly

2012-04-30 Thread Ian Lance Taylor
Dennis Clarke writes: > Has anyone seen better results from the testsuite for GO ? Yes. I test Go more than daily on x86_64-unknown-linux-gnu, and I see no failures at all. > FAIL: go.go-torture/execute/go-1.go execution, -O0 To see why these tests are failing, look in gcc/testsuite/go/go.l

Re: No documentation of -fsched-pressure-algorithm

2012-05-01 Thread Ian Lance Taylor
Richard Sandiford writes: > nick clifton writes: >> Hi Richard, >> I have just noticed that the new -fsched-pressure-algorithm= gcc command line option is not documented in gcc/doc/invoke.texi. Was this an oversight ? >>> >>> No, it was deliberate. It's not supposed to

Re: No documentation of -fsched-pressure-algorithm

2012-05-01 Thread Ian Lance Taylor
Richard Sandiford writes: > Well, given the replies from you, Ian and Vlad (when reviewing the patch), > I feel once again in a minority of one here :-) but... I just don't > think we should be advertising this sort of stuff to users. Not because > I'm trying to be cliquey, but because any time

Re: Porting new target architecture to GCC

2012-05-02 Thread Ian Lance Taylor
Ben Morgan writes: > In a course at my university (Universität Würzburg, Germany) we have > created a 32-bit RISC CPU architecture -- the HaDesXI-CPU -- (in VHDL) > which we then play onto a FPGA (the Xilinx Spartan-3AN) to use. So far > if we want to do anything with it, we have to write the ass

Re: Paradoxical subreg reload issue

2012-05-02 Thread Ian Lance Taylor
Aurelien Buhrig writes: > I have an issue (gcc 4.6.3, private bacakend) when reloading operands of > this insn: > (set (subreg:SI (reg:QI 21 [ iftmp.1 ]) 0) > (lshiftrt:SI (reg/v:SI 24 [ w ]) (const_int 31 [0x1f])) > > The register 21 is reloaded into > (reg:QI 0 r0 [orig:21 iftmp.1 ] [21]),

Re: Register constraints + and =

2012-05-04 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > Expand generates: > > (define_insn_and_split "movmem_long" > [(set (match_operand:QI 2 "register_operand" "d,c") (const_int 0)) >(set (mem:BLK (match_operand:QI 0 "register_operand" "d,c")) > (mem:BLK (match_operand:QI 1 "register_operand" "x,c"))) >(s

Re: type argument in FUNCTION_ARG macro

2012-05-04 Thread Ian Lance Taylor
BELBACHIR Selim writes: > I'm working on an architecture where the calling convention depends on the > type of the parameter (i.e. pointers are passed into $C regs and non-pointers > are passed into $R regs). I've implemented this difference by using the > POINTER_TYPE_P() macro on the 'type'

Re: Register constraints + and =

2012-05-04 Thread Ian Lance Taylor
writes: > I thought that the "operand" in a mem:BLK is the pointer to the block, > not the block itself. So if the instruction(s) generated don't touch > the pointer -- a likely answer for a block-move instruction -- then > the operand would be read-only. Is that the right interpretation? Yes.

Re: Register constraints + and =

2012-05-04 Thread Ian Lance Taylor
writes: > On May 4, 2012, at 11:39 AM, Ian Lance Taylor wrote: > >> writes: >> >>> I thought that the "operand" in a mem:BLK is the pointer to the block, >>> not the block itself. So if the instruction(s) generated don't touch >>>

Re: Register constraints + and =

2012-05-04 Thread Ian Lance Taylor
writes: > What I was trying to describe is the handling of a memcpy operation in the > .md file, where the operands are the memory pointers and (in my case) I want > to tell the machinery that the registers it's using to pass in the addresses > no longer have those addresses in them on complet

Re: Register constraints + and =

2012-05-08 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > On 04/05/12 19:48, Ian Lance Taylor wrote: > >> The i386 rep_movqi insn is an example: >> >> (define_insn "*rep_movqi" >>[(set (match_operand:P 2 "register_operand" "=c") (const_int 0)) >&

Re: Register constraints + and =

2012-05-08 Thread Ian Lance Taylor
Jan Hubicka writes: >> "Paulo J. Matos" writes: >> >> > On 04/05/12 19:48, Ian Lance Taylor wrote: >> > >> >> The i386 rep_movqi insn is an example: >> >> >> >> (define_insn "*rep_movqi" >> >>

Re: Register constraints + and =

2012-05-08 Thread Ian Lance Taylor
Jan Hubicka writes: >> >> I can accept the issue as a matter of documentation, but I don't >> understand the rest. Remember that all the patterns are executed in >> parallel. I don't see how adding a USE in parallel could affect >> anything about how the operand is used. > >> >> >> (define_ins

Re: Register constraints + and =

2012-05-08 Thread Ian Lance Taylor
Jan Hubicka writes: >> Jan Hubicka writes: >> >> >> >> >> I can accept the issue as a matter of documentation, but I don't >> >> understand the rest. Remember that all the patterns are executed in >> >> parallel. I don't see how adding a USE in parallel could affect >> >> anything about how

Re: G++ could optimize ASM code more

2012-05-09 Thread Ian Lance Taylor
Daniel Marschall writes: > As I was optimizing my program, I found a few things which looked odd > to me in the assembler code. Thanks. It's often best to report missed optimizations at http://gcc.gnu.org/bugzilla/ . They will tend to be forgotten on the mailing list. > I am on an AMD x64_32

Re: G++ could optimize ASM code more

2012-05-09 Thread Ian Lance Taylor
Daniel Marschall writes: > I did understand that the compiler used "signed" multiplication > instead of an unsigned one because char*char needs to be extended. > > Maybe I am wrong, but couldn't the compiler "know" that the result > will be at least unsigned because unsigned * unsigned = unsigned

Re: confusion about fma description in section 16.9 of gccint doc.

2012-05-14 Thread Ian Lance Taylor
Kenneth Zadeck writes: > Should i change the section 16.9 doc to indicate that this pattern is > only to be used if the machine can do this with a single rounding? Sure. Ian

Re: Build problem with libgo runtime

2012-05-15 Thread Ian Lance Taylor
"William J. Schmidt" writes: > I'm investigating another build failure for Fedora 17 (based on 4.7). > The failing compile from the build log is as follows: > > /bin/sh ./libtool --tag=CC > --mode=compile > /builddir/build/BUILD/gcc-4.7.0-20120504/obj-ppc64-redhat-linux/./gcc/xgcc > -B/builddi

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Ralf Corsepius writes: > I am not sure, but AFAICT, -pthread is Linux-specific. It's not properly documented, but -pthread works on a number of hosts, including Solaris, Darwin, FreeBSD, NetBSD, OpenBSD, AIX. Ian

Re: Insufficient access check for private static member in base class

2012-05-18 Thread Ian Lance Taylor
"Peter A. Felvegi" writes: > All versions I've tried (4.4, 4.5, 4.6, 4.7) compiles the code. clang > gives proper diagnostic stating that Base::foo is private. > > If base::foo is not static, gcc catches the error, too: > gccacbug.cpp: In member function ‘int DerivT::Foo() [with T = void]’: > gcc

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: >> Ralf Corsepius writes: >> >>> I am not sure, but AFAICT, -pthread is Linux-specific. >> It's not properly documented, but -pthread works on a number of hosts, >> including Solar

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > On 05/18/2012 09:05 AM, Ian Lance Taylor wrote: >> Joel Sherrill writes: >> >>> On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: >>>> Ralf Corsepius writes: >>>> >>>>> I am not sure, but AFAICT, -pthread is

Re: Option -pthread in test suite with cross compilers

2012-05-18 Thread Ian Lance Taylor
Joel Sherrill writes: > I agree with you on this one. Would it be a good general > rule that on a system with pthreads, -pthread should be > accepted by gcc? Yes, I think so. Ian

Re: Use of stack VECs in df-scan.c:df_bb_verify

2012-05-18 Thread Ian Lance Taylor
Diego Novillo writes: > I've converted vec.[hc] to C++ and this meant some subtle changes to > how VEC(T,stack) works. We no longer need all those macro expansions. But it took me hours to write those macros > This means that the allocation function for vectors can detect when a > stack v

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-20 Thread Ian Lance Taylor
Jonathan Wakely writes: > On 19 May 2012 12:36, Gabriel Dos Reis wrote: >> On Fri, May 18, 2012 at 10:53 PM, Jay K wrote: >>> >>> /src/gcc-4.7.0/configure -disable-bootstrap -enable-languages=go >>> >>> >>> book2:gccgo-4.7 jay$ g++ -v >>> Using built-in specs. >>> Target: i686-apple-darwin9 >>>

Re: tree-nomudflap.c dependency on gt-tree-mudflap.h not needed

2012-05-20 Thread Ian Lance Taylor
Jay K writes: >  gcc-4.6.2/gcc/Makefile.in: > > >  tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \ >  $(C_TREE_H) $(C_COMMON_H) $(GIMPLE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) \ >  output.h langhooks.h tree-mudflap.h $(TM_H) coretypes.h \ >  $(GGC_H) gt-tree-mudflap.h $(TREE_

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-20 Thread Ian Lance Taylor
Gabriel Dos Reis writes: > On Sun, May 20, 2012 at 10:30 PM, Ian Lance Taylor wrote: > >> To be clear, as far as I can see the Go frontend isn't doing anything >> wrong or dubious.  It just happens to #include when >> it is available but is not.  It looks l

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-20 Thread Ian Lance Taylor
Gabriel Dos Reis writes: > On Mon, May 21, 2012 at 12:08 AM, Ian Lance Taylor wrote: >> Gabriel Dos Reis writes: >> >>> On Sun, May 20, 2012 at 10:30 PM, Ian Lance Taylor wrote: >>> >>>> To be clear, as far as I can see the Go frontend isn

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-21 Thread Ian Lance Taylor
Jay K writes: >> --enable-stage1-languages=go. (Mail to the OP is bouncing for me, by >> the way.) > > I don't know why. > I'm getting them, at least via the list. For every e-mail I send to jay.kr...@cornell.edu, I'm getting a bounce from cashub03.exchange.cornell.edu saying - The follow

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-21 Thread Ian Lance Taylor
Jay K writes: > I know gccgo is actuall C++.But why was no-rtti specified? Maybe that > is for the other code, the C code? Thank you, sorry, I'm in a rush > right now, - Jay I thought I answered that earlier. When building C++ code that is part of GCC itself, we use -fno-rtti because GCC never

Re: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)

2012-05-21 Thread Ian Lance Taylor
Jay K writes: > I know gccgo is actually C++. > But why was no-rtti specified? Maybe that is for the other code, the C code? Answered previously. > But I see: > > > and using -fno-rtti saves some space in the generated compiler. > > > > Is it worth it? Sure, why not? We make similar chang

Re: Enabling a function based on Language

2012-05-21 Thread Ian Lance Taylor
"Iyer, Balaji V" writes: > Is there a #define in GCC that will turn on only for certain languages? > I am trying to use build_array_ref but it is giving me a undefined reference > for f951. This code that I am trying to use will ONLY execute if we have a > C/C++ code. Is it possible fo

Re: Effect of 'register' keyword on debug info

2012-05-23 Thread Ian Lance Taylor
Rohit Arul Raj writes: > Looking at the debug info and the generated assembly, the values of > variables 'f1' and 'd1' are stored in the same register. > Due to this, while debugging, after setting the break point at (A) > [line no 8], if we print the value of 'f1' i get the wrong value. > Q: I

Re: mkconfig.sh incrementality?

2012-05-23 Thread Ian Lance Taylor
Jay K writes: > At the bottom of mkconfig.sh in 4.6.2 and 4.7.0: > > > # Avoid changing the actual file if possible. > if [ -f $output ] && cmp ${output}T $output >/dev/null 2>&1; then >     echo $output is unchanged >&2 >     rm -f ${output}T > else >     mv -f ${output}T $output > fi > > # Touc

Re: How to run a compiled C program?

2012-05-26 Thread Ian Lance Taylor
Georg-Johann Lay writes: > The avr backend auto-generates a part of the texi documentation by > means of a small C program. The relevant part of t-avr reads: > > s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext) > $(RUN_GEN) $< | sed -e 's:\r::g' > avr-mmcu.texi > > > There was a problem re

Re: Bootstrapping trunk error with gcc 4.6.2

2012-05-29 Thread Ian Lance Taylor
Thomas Koenig writes: > I just got a bootstrap error on trunk, with configuration > > ../trunk/configure --prefix=$HOME --enable-languages=c,fortran > --disable-build-poststage1-with-cxx > > The error was: > > ../../trunk/gcc/fortran/decl.c: In function 'match_attr_spec': > ../../trunk/gcc/fortra

Re: Question about gcse.c vs cc0

2012-05-29 Thread Ian Lance Taylor
Steven Bosscher writes: > In gcse.c:insert_insn_end_basic_block() I found the following code: > > #ifdef HAVE_cc0 > /* FIXME: 'twould be nice to call prev_cc0_setter here but it aborts > if cc0 isn't set. */ > note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); > if

Re: gcov / lcov producing icorrect results due to white space in source.

2012-05-29 Thread Ian Lance Taylor
TK Banks writes: > I'm also not sure I'm directing this issue to the correct mailing list. > If not, perhaps someone would be so kind as to point me to the right > mailing list or forum. In fact, gcc@gcc.gnu.org is the wrong mailing list. The right mailing list would be gcc-h...@gcc.gnu.org. P

Re: gcov / lcov producing icorrect results due to white space in source.

2012-05-29 Thread Ian Lance Taylor
TK Banks writes: > Would it be poor-form to submit a bug without first testing on the latest > version of the compiler?  (I'm just running whatever version Ubuntu doles out > via the management system:  4.3.4) It's OK to do that, just make clear that version of the compiler you tested. Ian

Re: Traversing trees in a plugin...

2012-06-03 Thread Ian Lance Taylor
Brett Foster writes: > 1) How to marking a node as visited by my algorithm (without screwing > up the compiler!) Use a pointer_set. > 2) How to associate additional data (perhaps a pointer to something > else) to a node (like a unique identifier, or a pointer to a data > structure). Use a poin

Re: Question about ifcvt.c:noce_mem_write_may_trap_or_fault_p() vs. decl_readonly_section

2012-06-07 Thread Ian Lance Taylor
Steven Bosscher writes: > I am confused by the following code in > ifcvt.c:noce_mem_write_may_trap_or_fault_p(): > > static bool > noce_mem_write_may_trap_or_fault_p (const_rtx mem) > { > rtx addr; > > if (MEM_READONLY_P (mem)) > return true; > (...) > > addr = XEXP (mem, 0); > > /* C

Re: GCC Making a new PASS

2012-06-11 Thread Ian Lance Taylor
Satya Prakash Prasad writes: > But the compilation process fails further on: > > gcc/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/xgcc > -Bgcc/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/ > -B/usr/local/x86_64-unknown-linux-gnu/bin/ > -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem > /usr/loca

Re: detecting when an option is not available

2012-06-11 Thread Ian Lance Taylor
Vincent Torri writes: > I would like to know if there is a way to know if a warning option > like -Wno-initializer-overrides is supported or not by gcc. My purpose > is to write an m4 macro that checks if an option is supported or not > by a compiler. This question is not appropriate for the mai

Re: "self" keyword

2012-06-14 Thread Ian Lance Taylor
"Rick C. Hodgin" writes: > How hard would it be to implement a "self" keyword extension which > references the contextual function name wherein it was referenced? > > int foo(int a) > { > // recursion > self(a + 1); > } > > int food(int a) > { > // recursion > self(a + 1); > } > >

<    20   21   22   23   24   25   26   27   28   29   >