Re: Bootstrap failure on i686-apple-darwin9

2008-04-15 Thread Jan Hubicka
> > Does this help? > > Thanks for tha answer, but now I have: > > ... > ../../gcc-4.4-work/gcc/except.c: In function 'set_nothrow_function_flags': > ../../gcc-4.4-work/gcc/except.c:2787: error: 'struct rtl_data' has no member > named 'epilogue_delay_list' > make[3]: *** [except.o] Error 1 > ...

Re: [ARM] Lack of __aeabi_fsqrt / __aeabi_dsqrt (sqrtsf2 / sqrtdf2) functions

2008-04-15 Thread Daniel Jacobowitz
On Wed, Apr 16, 2008 at 09:18:07AM +1000, Hasjim Williams wrote: > glibc uses its own internal sqrt function, rather than the > sqrtsf2/sqrtdf2 opcode, even on FPA or VFP. Always. That's how it is supposed to work; the expander allows GCC to optimize sqrt operations inline, for architectures wher

Re: gfortran+libcpp: linking objects from c-compiler

2008-04-15 Thread Tom Tromey
> "Daniel" == Daniel Franke <[EMAIL PROTECTED]> writes: Daniel> Is it acceptable to simply link in the C-frontend object to Daniel> gfortran (as C is a required language and the .o file will be Daniel> available)? Do I need to do something else in addition or Daniel> instead, like renaming or

Re: Structured Exception Handling in gcc

2008-04-15 Thread Ian Lance Taylor
"Rodrigo Dominguez" <[EMAIL PROTECTED]> writes: > I am looking for information on how GCC implements Structured Exception > Handling (try/catch) in C++ programs. I would really appreciate any pointers > that helped me understand the internals. gcc does not implement Structured Exception Handling

Structured Exception Handling in gcc

2008-04-15 Thread Rodrigo Dominguez
Hi, I am looking for information on how GCC implements Structured Exception Handling (try/catch) in C++ programs. I would really appreciate any pointers that helped me understand the internals. Thank you, Rodrigo

Re: Bootstrap failure on i686-apple-darwin9

2008-04-15 Thread Dominique Dhumieres
> Does this help? Thanks for tha answer, but now I have: ... ../../gcc-4.4-work/gcc/except.c: In function 'set_nothrow_function_flags': ../../gcc-4.4-work/gcc/except.c:2787: error: 'struct rtl_data' has no member named 'epilogue_delay_list' make[3]: *** [except.o] Error 1 ... Dominique

Re: [ARM] Lack of __aeabi_fsqrt / __aeabi_dsqrt (sqrtsf2 / sqrtdf2) functions

2008-04-15 Thread Hasjim Williams
On Tue, 15 Apr 2008 09:15:45 -0400, "Daniel Jacobowitz" <[EMAIL PROTECTED]> said: > > I'm going to keep asking until I get something we can work > with... you're reporting a bug in the compiler, so we need a test case > and the exact error message. What is generating any kind of sqrt > libcall?

Re: Bootstrap failure on i686-apple-darwin9

2008-04-15 Thread Jan Hubicka
> At revision 134333, boostrap fails on i686-apple-darwin9 at stage 1 > with: > > ... > gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -I. > -I

Bootstrap failure on i686-apple-darwin9

2008-04-15 Thread Dominique Dhumieres
At revision 134333, boostrap fails on i686-apple-darwin9 at stage 1 with: ... gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4-wo

Re: -pthread switch and binary compatibitity

2008-04-15 Thread Ian Lance Taylor
"John Maddock" <[EMAIL PROTECTED]> writes: > The crux of the issue is this: if gcc/g++ is configured with the pthread > threading model, then are object files always binary compatible irrespective > of whether they are compiled with the -pthread command line option or not? Yes, modulo the #define

Re: http://gcc.gnu.org/onlinedocs/libstdc++/ needs a bit of help

2008-04-15 Thread Gerald Pfeifer
On Sun, 13 Apr 2008, Gerald Pfeifer wrote: > Yes, and no. I think there are two issues here. The one you are pointing > out, the other the fact that we changed existing URLs (some of them old or > "prominent" ones with external links towards them). > > I believe you have mostly addressed the

Re: Official GCC git repository

2008-04-15 Thread Andreas Schwab
Andreas Schwab <[EMAIL PROTECTED]> writes: > "Daniel Berlin" <[EMAIL PROTECTED]> writes: > >> No, nothing is wrong wit he import, if you want all the remote >> branches, you have to ask git to get all the remote branches >> >> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' >

gfortran+libcpp: linking objects from c-compiler

2008-04-15 Thread Daniel Franke
Hi all. To integrate libcpp into gfortran, I copy/adapt quite some code from the c frontend. For include-path handling, I found that I can nicely re-use the functions defined in c-incpath.c and exported by c-incpath.h. Now, linking gfortran, the linker of course complains about undefined refer

RE: Bootstrap failure on native mingw32

2008-04-15 Thread Danny Smith
Committed as obvious. This was already in my sources (for another reason) when I tested Kai's patch. Sorry for not noticing. Danny * libgcc2.c [L_trampoline]: Remove unnecessary prototype for Windows VirtualProtect function. Index: libgcc2.c ==

Re: Official GCC git repository

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 2:23 PM, Samuel Tardieu <[EMAIL PROTECTED]> wrote: > > "Daniel" == Daniel Berlin <[EMAIL PROTECTED]> writes: > > Daniel> No, nothing is wrong wit he import, if you want all the remote > Daniel> branches, you have to ask git to get all the remote branches > > Daniel> g

Re: Official GCC git repository

2008-04-15 Thread Ludovic Courtès
Hi, Samuel Tardieu <[EMAIL PROTECTED]> writes: > how did you setup the git repository? The branch heads are supposed to > be located under "/refs/heads/" on gcc.gnu.org, not under > "/refs/remotes/", where you generally find the remote references: > those branches aren't supposed to be remote on

Re: Official GCC git repository

2008-04-15 Thread Samuel Tardieu
> "Daniel" == Daniel Berlin <[EMAIL PROTECTED]> writes: Daniel> No, nothing is wrong wit he import, if you want all the remote Daniel> branches, you have to ask git to get all the remote branches Daniel> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' Daniel, how did y

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Diego Novillo
On 4/15/08 1:34 PM, Zdenek Dvorak wrote: Hi, > To clarify what Richard means, your assertion that "you have updated > SSA information" is false. > If you had updated the SSA information, the error would not occur :). > > How exactly are you updating the ssa information? > > The general w

-pthread switch and binary compatibitity

2008-04-15 Thread John Maddock
Hi there, Over at the Boost C++ libraries project we're trying to decide what is the correct thing to do when code is compiled with -pthread or not. The crux of the issue is this: if gcc/g++ is configured with the pthread threading model, then are object files always binary compatible irrespecti

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Zdenek Dvorak
Hi, > > > To clarify what Richard means, your assertion that "you have updated > > > SSA information" is false. > > > If you had updated the SSA information, the error would not occur :). > > > > > > How exactly are you updating the ssa information? > > > > > > The general way to update SSA

Re: Official GCC git repository

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 1:12 PM, Andreas Schwab <[EMAIL PROTECTED]> wrote: > "Daniel Berlin" <[EMAIL PROTECTED]> writes: > > > > No, nothing is wrong wit he import, if you want all the remote > > branches, you have to ask git to get all the remote branches > > > > git config --add remote.origin.

Re: Official GCC git repository

2008-04-15 Thread Andreas Schwab
"Daniel Berlin" <[EMAIL PROTECTED]> writes: > No, nothing is wrong wit he import, if you want all the remote > branches, you have to ask git to get all the remote branches > > git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' This will put the remote branch heads in refs/remot

Re: Where is restrict keyword used in dependence analysis?

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 12:01 PM, Bingfeng Mei <[EMAIL PROTECTED]> wrote: > Hello, > > I am porting to GCC 4.3.0 for our VLIW processor, and try to utilize > improved restrict keyword support. Somehow, I find for normal data > types, including vector types up to 8bytes, the restrict keyword work

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 8:05 AM, Zdenek Dvorak <[EMAIL PROTECTED]> wrote: > Hi, > > > > To clarify what Richard means, your assertion that "you have updated > > SSA information" is false. > > If you had updated the SSA information, the error would not occur :). > > > > How exactly are you upda

Re: DU-chains Vs UD-chains

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 10:59 AM, Fran Baena <[EMAIL PROTECTED]> wrote: > Hi all, > > i'm currently studing alias analysis, and i have some questions, for > instance, when are the du/ud-chains calculated? ud chains are implicit in SSA form, since each use only has one reaching definiiton. du ch

Re: Official GCC git repository

2008-04-15 Thread Daniel Berlin
No, nothing is wrong wit he import, if you want all the remote branches, you have to ask git to get all the remote branches git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' Then fetch again. then, if you want to really see all the branches, including the remote ones, use git

Implementation of string-literal as template parameter

2008-04-15 Thread Piotr Rak
Hi, Recently i have posted an idea of new language feature to comp.lang.c++.moderated. That is "String literal as template parameter?" form 12.04.2008, if anyone is interested to see whole thread. The idea is to allow string-literals as template argument, and make them equivalent to variadic char

Where is restrict keyword used in dependence analysis?

2008-04-15 Thread Bingfeng Mei
Hello, I am porting to GCC 4.3.0 for our VLIW processor, and try to utilize improved restrict keyword support. Somehow, I find for normal data types, including vector types up to 8bytes, the restrict keyword works just fine. But for wider vector, such as 4 32-bit word type, the restrict keyword do

Re: [tuples] creating singleton sequences

2008-04-15 Thread Diego Novillo
On 4/15/08 11:36 AM, Aldy Hernandez wrote: I'm tired of typing the same thing over and over. Lazy bum. How about a convenience function like this? Sure. Diego.

[tuples] creating singleton sequences

2008-04-15 Thread Aldy Hernandez
Hey there. Frequently we want to create a new sequence that contains one element. This is especially common when wrapping things with a BIND or in a TRY block. I'm tired of typing the same thing over and over. How about a convenience function like this? Index: gimple.h =

Warning during GCC bootstrap on i686-pc-mingw32

2008-04-15 Thread FX
I've seen a weird warning during a bootstrap of mainline on native i686-pc-mingw32, which I guess is related to the recent introduction of MS printf formats. It can be reproduced on the following small example: $ cat foo.i void format_gcov (void) { __builtin_printf ("%I64d", (long long) 1); } $

DU-chains Vs UD-chains

2008-04-15 Thread Fran Baena
Hi all, i'm currently studing alias analysis, and i have some questions, for instance, when are the du/ud-chains calculated? Before translating to SSA form? If i'm not wrong the def-use chain connects a definition of a variable to all the uses it may flow to, and the use-def chain connects a use

Re: A question regarding define_split pattern

2008-04-15 Thread Ian Lance Taylor
"Mohamed Shafi" <[EMAIL PROTECTED]> writes: > I have the following define_insn and define_splt pattern > > (define_insn "movhi_const" > [(set (match_operand:HI 0 "register_operand" "=r,r,r,r,r") > (match_operand:HI 1 "immediate_operand" "L,K,N,O,i"))] > > ) > > (define_split > [

Re: Bootstrap failure on native mingw32

2008-04-15 Thread Kai Tietz
FX <[EMAIL PROTECTED]> wrote on 15.04.2008 15:21:30: > > I remember that modification. This is related to a patch in > > config/i386/mingw32.h to include for libgcc2 the windows header. > > OK. Bootstrap does proceed with the prototype removed, of course (it's > not yet finished). > > Question i

Re: Bootstrap failure on native mingw32

2008-04-15 Thread Kai Tietz
[EMAIL PROTECTED] wrote on 15.04.2008 14:40:15: > [EMAIL PROTECTED] wrote on 15.04.2008 14:28:17: > > > I'm not exactly sure how this one was introduced, but a bootstrap on > > native i686-pc-mingw32 dies in stage1 libgcc with: > > > > ../../../trunk/libgcc/../gcc/libgcc2.c:2052: warning: no pre

Re: Bootstrap failure on native mingw32

2008-04-15 Thread FX
> I remember that modification. This is related to a patch in > config/i386/mingw32.h to include for libgcc2 the windows header. OK. Bootstrap does proceed with the prototype removed, of course (it's not yet finished). Question is: can we remove it altogether, or are there still cases where it is

Re: [ARM] Lack of __aeabi_fsqrt / __aeabi_dsqrt (sqrtsf2 / sqrtdf2) functions

2008-04-15 Thread Daniel Jacobowitz
On Tue, Apr 15, 2008 at 01:20:29PM +1000, Hasjim Williams wrote: > Suffice to say, it will compile, but when you try to run it, and your > program tries to do the libcall to the sqrt function it will segfault, > because there is no libcall sqrt defined. > > As far as I can tell, sqrt and div are t

Re: Official GCC git repository

2008-04-15 Thread Ludovic Courtès
Hi, [EMAIL PROTECTED] (Ludovic Courtès) writes: > "Daniel Berlin" <[EMAIL PROTECTED]> writes: > >> I put my version of the gcc conversion (which has all branches but no >> tags) at git://gcc.gnu.org/git/gcc.git and set a script up to update >> it appropriately. >> >> Note that i will not announce

Re: Official GCC git repository

2008-04-15 Thread Ludovic Courtès
Hi, "Daniel Berlin" <[EMAIL PROTECTED]> writes: > I put my version of the gcc conversion (which has all branches but no > tags) at git://gcc.gnu.org/git/gcc.git and set a script up to update > it appropriately. > > Note that i will not announce this anywhere until someone steps > forward to actua

Re: Bootstrap failure on native mingw32

2008-04-15 Thread Kai Tietz
[EMAIL PROTECTED] wrote on 15.04.2008 14:28:17: > I'm not exactly sure how this one was introduced, but a bootstrap on > native i686-pc-mingw32 dies in stage1 libgcc with: > > ../../../trunk/libgcc/../gcc/libgcc2.c:2052: warning: no previous > prototype for 'getpagesize' > ../../../trunk/libgcc/.

Re: Official GCC git repository

2008-04-15 Thread Kirill A. Shutemov
On Tue, Apr 15, 2008 at 08:37:36AM +0200, Bernie Innocenti wrote: > Daniel Berlin wrote: >> I put my version of the gcc conversion (which has all branches but no >> tags) at git://gcc.gnu.org/git/gcc.git and set a script up to update >> it appropriately. >> >> Note that i will not announce this an

Bootstrap failure on native mingw32

2008-04-15 Thread FX
I'm not exactly sure how this one was introduced, but a bootstrap on native i686-pc-mingw32 dies in stage1 libgcc with: ../../../trunk/libgcc/../gcc/libgcc2.c:2052: warning: no previous prototype for 'getpagesize' ../../../trunk/libgcc/../gcc/libgcc2.c:2062: error: conflicting types for 'VirtualPr

bootstrap failure in gcc4.3.1 on hppa2.0w-hp-hpux11.00

2008-04-15 Thread Rainer Emrich
revision 134311 mkdir -p -- hppa2.0w-hp-hpux11.00/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in hppa2.0w-hp-hpux11.00/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Zdenek Dvorak
Hi, > To clarify what Richard means, your assertion that "you have updated > SSA information" is false. > If you had updated the SSA information, the error would not occur :). > > How exactly are you updating the ssa information? > > The general way to update SSA for this case would be: > > For

Re: RFC: named address space support

2008-04-15 Thread Joseph S. Myers
On Tue, 15 Apr 2008, Ben Elliston wrote: > Hi Mark > > > I'm not terribly familiar with this proposal. > > > Ben, to answer your original question, I don't think that lack of nested > > address spaces is a fatal flaw, as long as the implementation otherwise > > meets the spec, and as long as t

Re: Problem with reloading in a new backend...

2008-04-15 Thread Stelian Pop
Le lundi 14 avril 2008 à 18:27 -0700, Jim Wilson a écrit : > On Tue, 2008-04-15 at 00:06 +0200, Stelian Pop wrote: > > - I had to add a PLUS case in PREFERRED_RELOAD_CLASS() or else reload > > kept generating incorrect insn (putting constants into EVEN_REGS for > > example). I'm not sure this

template parameter does not hide class name

2008-04-15 Thread Balazs Dezso
Hello all, I have tested the following code on g++ 4.3, 4.2, 4.1 and 3.4. #include struct B { static const int x = 1; }; struct A { static const int x = 0; template static void f() { std::cerr << A::x << std::endl; } }; int main() { A::f(); return 0; } The program just wr

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Richard Guenther
On Tue, Apr 15, 2008 at 7:49 AM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 10:34 AM, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > To clarify what Richard means, your assertion that "you have updated > > SSA information" is false. > > If you had updated the SSA informat

Re: IA-64 ICE on integer divide due to trap_if and cfgrtl

2008-04-15 Thread Richard Guenther
On Tue, Apr 15, 2008 at 6:27 AM, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > Jim Wilson <[EMAIL PROTECTED]> writes: > > > It seems odd that cfgrtl allows a conditional trap inside a basic block, > > but not an unconditional trap. The way things are now, it means we need > > to fix up the basi

A question regarding define_split pattern

2008-04-15 Thread Mohamed Shafi
Hello all, I have the following define_insn and define_splt pattern (define_insn "movhi_const" [(set (match_operand:HI 0 "register_operand" "=r,r,r,r,r") (match_operand:HI 1 "immediate_operand" "L,K,N,O,i"))] ) (define_split [(set (match_operand:HI 0 "register_operand" "")

Re: US-CERT Vulnerability Note VU#162289

2008-04-15 Thread Paolo Bonzini
A theoretical argument for why somebody might write problematic code is http://www.fefe.de/openldap-mail.txt . But that's like "putting the cart before the horses" (and complaining that it does not work). You find a security problem, you find a solution, you find the compiler optimizes awa