Re: [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03

2010-11-01 Thread eric
On Sun, 2010-10-31 at 21:48 -0700, C.W. Holeman II wrote:
 You might try:
 
 http://groups.google.com/group/ppp-public?pli=1
 
 --
 C.W.Holeman II | cw...@julianlocals.com |  http://JulianLocals.com/cwhii
  To only a fraction of the  human  race does God  give the  privilege of
  earning one's bread doing what one would have  gladly pursued free, for
  passion. I am very thankful. The Mythical Man-Month Epilogue/F.P.Brooks
 
 
 

dear Holeman:

  I follow your advice read that mailing list (or newsgroup) article,
and download fltk-1.3.x-r7769
re autoconf
   ./configure
   make
   sudo make install


  then recompile

e...@eric-laptop:~/BStrou/usingC++4/code/Chapter12$ g++ -Wno-deprecated
chapter.12.7.2.cpp   -lfltk 
In file included from chapter.12.7.2.cpp:7:
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error: class Graph_lib::Window
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error: class Graph_lib::Window
e...@eric-laptop:~/BStrou/usingC++4/code/Chapter12$ 

--
should I also post this to X.org and gcc 's mailing list?
-
this is code of chapter.12.7.2.cpp(same as that newgroup's Drill.cpp)
again my compiler is not MS visual c++, it is gnu gcc 4.4.3 on linux
plz help

//--

int main ()
try
{ 
Point tl(100,100); // top-left corner of our window

Simple_window win(tl,600,400,Canvas);
// screen coordinate tl for top-left corner
// window size(600*400)
// title: Canvas
win.wait_for_button(); // Display!
} 
catch(exception e) {
// some error reporting
return 1;
}
catch(...) {
// some more error reporting
return 2;
}

//--
-



Re: [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03

2010-11-01 Thread Jonathan Wakely
On 1 November 2010 08:46, eric  wrote:
 should I also post this to X.org and gcc 's mailing list?

No.  This mailing list is not for help using GCC, and your problem is
not caused by GCC.  Please post somewhere else more appropriate, such
as the gcc-help list.


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Andrew Haley
On 10/31/2010 07:09 PM, Ian Lance Taylor wrote:

 This patch should not of course change whether or not distros choose to
 package the Java compiler; undoubtedly they would continue to do so,
 just as they package the Ada compiler today.
 
 Comments?  Approvals?

I see your point, but this will lead to some quality regressions in gcc
itself.  libgcj is a good stress test for gcc, and has revealed some
bugs in the past.  It might be possible to mitigate some of this with
autotesters that run a full libgcj bootstrap every night.

Andrew.


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Andrew Haley
On 11/01/2010 04:06 AM, Geert Bosch wrote:
 
 On Oct 31, 2010, at 15:33, Steven Bosscher wrote:
 The argument against disabling java as a default language always was
 that there should be at least one default language that requires
 non-call exceptions. I recall testing many patches without trouble if
 I did experimental builds with just C, C++, and Fortran, only to find
 lots of java test suite failures in a complete bootstrap+test cycle.
 So the second point is, IMVHO, not really true.
 
 Feel free to enable Ada. Builds and tests faster than Java, 
 and is known to expose many more middle end bugs,

Hmm, weasely use of passive voice noted.  ;-)

Out of interest, why would Ada expose more midle-end bugs?

Andrew.


Re: dual result function ABI (using extra register), e.g. for Go

2010-11-01 Thread Paul Brook
  Does the Go language define a specific ABI convention for returning
  two values from a function thru registers? If yes, how does GCC
  implement it? Or is it some future work?
 
 The Go language does not define an ABI for returning multiple values.
 The gccgo frontend implements it by saying that a function which returns
 multiple values returns a struct with fields whose types are the types
 of the result parameter.
 
 It's desirable to make it possible to write C functions which return
 multiple values to Go code.  For example, some of the runtime support
 functions work that way.  Having the Go return a struct ensures that it
 is easy to write compatible C code.

So the original question becomes How are structures returned from a 
function. The answer depends on the ABI.

If the ABI for your favourite target doesn't behave as you might like I guess 
we could invent a target attribute to change this on a per-function basis, 
similar to __attribute__((regparm)).  Some third party ARM toolchains already 
have this.

Paul


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Dave Korn
On 01/11/2010 03:48, Andrew Pinski wrote:
 On Sun, Oct 31, 2010 at 12:47 PM, Gerald Pfeifer ger...@pfeifer.com wrote:
 On Sun, 31 Oct 2010, Steven Bosscher wrote:
 Is it possible to build and test java without all of libjava?
 configure --disable-libgcj.  I have been using this for my daily
 bootstraps for a while.
 
 But it does not test java.  Since the java testsuite depends on libjava.

  Indeed, it doesn't do anything at all.  There is no java testsuite (i.e.
nothing in gcc/testsuite/java.*).  There is only a libjava testsuite.

cheers,
  DaveK



Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Dave Korn
On 31/10/2010 19:09, Ian Lance Taylor wrote:

 Java in the same category as Ada and Objective C++.  The main argument
 in favor of this proposal is twofold: 1) building libjava is a large
 component of gcc bootstrap time, and thus a large component in the
 amount of time it takes to test changes; 

  Proposing to change the compiler as a solution to that problem seems to be a
category error to me.  You can achieve the same end-result by social rather
than technical means: just change the rules for patch submission to say You
don't have to test your patch against Java.

 2) it is in practice very
 unusual for middle-end or back-end changes to cause problems with Java
 without also causing problems for C/C++, 

  This seems like false reasoning as well.  It may (or may not - I don't
suppose anyone's actually done the number on this, have they?) be unusual, but
the bugs that meet this criterion are nonetheless real bugs that we do not
want to put into our compiler if we can possibly help it, they will
subsequently need discovering, analysing and fixing, and will require manpower
and resources to do so.

  I find it hard not to expect that the long-term outcome will be a gradual
decline in quality of gcj if we do this.  Particularly on minority platforms,
which are exactly the ones that have the least manpower available to fix 
problems.

  For these reasons, my vote is against making this change.

cheers,
  DaveK



Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Geert Bosch

On Nov 1, 2010, at 00:30, Joern Rennecke wrote:
 Feel free to enable Ada. Builds and tests faster than Java,
 and is known to expose many more middle end bugs, including
 ones that require non-call exceptions.
 
 But to get that coverage, testers will need to have gnat installed.
 Will that become a requirement for middle-end patch regression testing?

No, the language will only be built if a suitable bootstrap compiler
is present. 

  -Geert


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Joern Rennecke

Quoting Geert Bosch bo...@adacore.com:


On Nov 1, 2010, at 00:30, Joern Rennecke wrote:

But to get that coverage, testers will need to have gnat installed.
Will that become a requirement for middle-end patch regression testing?


No, the language will only be built if a suitable bootstrap compiler
is present.


I know that.  My question was aimed at soliciting opinions on patch
submission policy in the case that libjava build  testing are dropped
from standard bootstrap tests.


how much is the effort required to retarget gcc?

2010-11-01 Thread Hui Yan Cheah
Hi,

We are working on a new project which requires a retargetting a
compiler to a small cpu on FPGA.
The cpu is hand-coded and it supports only a limited number of instruction sets.

My questions are:

1. Since I have very limited experience with compilers (this is my
first compiler project), is it wise to begin with gcc? I have
googled-up smaller compilers like pcc, lcc and small-c and they seem
like very good candidates. However, I would like to listen to the
opinions of programmers who have worked with gcc or retargetted gcc.

2. How much is the effort in retargetting compilers? I heard it took
months but it all depends on the level of experience of the
programmer. So if an experienced programmer took 2 month, it might
have taken a beginner 6 months or so.

Thanks,
HY


Re: help debugging ICE in fortran testsuite (was: TARGET_VALID_POINTER_MODE unused?)

2010-11-01 Thread Paul Koning

On Oct 31, 2010, at 2:39 PM, Ian Lance Taylor wrote:

 Paul Koning paul_kon...@dell.com writes:
 
 What triggered the question is that I'm trying to debug a testsuite
 ICE in fortran, pdp11 target, where it aborts in
 convert_memory_address_addr_space apparently trying to make a 32 bit
 pointer.  But only 16 bit pointers are valid, ptr_mode is HImode as
 expected and as far as I can tell from gccint everything is set up
 correctly for that to be the only pointer type.  I don't have
 TARGET_VALID_POINTER_MODE defined and from what the documentation says
 it doesn't seem like I have to.  So where should I look to find an
 explanation for why the fortran compiler is trying to make an SImode
 pointer?
 
 This should not happen and I agree that TARGET_VALID_POINTER_MODE is
 irrelevant here.  This sounds like a bug somewhere but I don't know
 here.  In the absence of additional information, like which test case is
 failing, all I can advise is to debug it to find out where the invalid
 pointer mode is coming from.

I've changed the subject string to match better what we're talking about...

aaa-5v57ooxfyrm:build pkoning$ pdp11-aout-gfortran -mfloat32 
/Users/pkoning/Documents/svn/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32663.f
/Users/pkoning/Documents/svn/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32663.f:
 In function ‘dimoid’:
/Users/pkoning/Documents/svn/gcc/gcc/testsuite/gfortran.fortran-torture/compile/pr32663.f:54:0:
 internal compiler error: in convert_memory_address_addr_space, at explow.c:327
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
aaa-5v57ooxfyrm:build pkoning$ 

I see the same for a couple of different fortran compile testcases; this is the 
first of those.  (In fact, right now I get 32 testsuite fails for Fortran, all 
caused by this one issue.)

From some code reading I'm guessing that this problem occurs when RTL is being 
generated from the tree, so I tried looking at the tree dumps.  That didn't 
tell me much; I've never looked there and don't really know what to look for.

paul



UNITS_PER_SIMD_WORD

2010-11-01 Thread roy rosen
Hi All,

Is it possible to define UNITS_PER_SIMD_WORD as a global variable and
to set this varibale using a pragma (even once for a compilation) and
that way to be able to compile one file with UNITS_PER_SIMD_WORD = 8
and another file with UNITS_PER_SIMD_WORD = 16?

Thanks, Roy.


Re: UNITS_PER_SIMD_WORD

2010-11-01 Thread Paul Brook
 Hi All,
 
 Is it possible to define UNITS_PER_SIMD_WORD as a global variable and
 to set this varibale using a pragma (even once for a compilation) and
 that way to be able to compile one file with UNITS_PER_SIMD_WORD = 8
 and another file with UNITS_PER_SIMD_WORD = 16?

No. This is an internal value that is a property of the vector ISA you're 
targeting.

AFAIK there's only one supported target that supports variable length vectors 
(ARM NEON), which allows selecting between doubleword and quadword vectors via 
a target specific commandline option.  Idealy you wouldn't need this at all, 
but I don;t believe the vectorizer is capable of handling this.

Paul


Re: UNITS_PER_SIMD_WORD

2010-11-01 Thread H.J. Lu
On Mon, Nov 1, 2010 at 9:27 AM, Paul Brook p...@codesourcery.com wrote:
 Hi All,

 Is it possible to define UNITS_PER_SIMD_WORD as a global variable and
 to set this varibale using a pragma (even once for a compilation) and
 that way to be able to compile one file with UNITS_PER_SIMD_WORD = 8
 and another file with UNITS_PER_SIMD_WORD = 16?

 No. This is an internal value that is a property of the vector ISA you're
 targeting.

 AFAIK there's only one supported target that supports variable length vectors
 (ARM NEON), which allows selecting between doubleword and quadword vectors via
 a target specific commandline option.  Idealy you wouldn't need this at all,
 but I don;t believe the vectorizer is capable of handling this.

x86 supports either 128bit (SSE) or 256bit (AVX) vectors. It works OK.



-- 
H.J.


Re: RFC: Add zlib source to src CVS resposity

2010-11-01 Thread Nick Clifton

Hi Guys,

 So this becomes a question for the binutils maintainers: do

the binutils want to be self-contained, or do they want to follow the
path of gcc and require additional libraries to be installed before a
build can succeed?


As I see it the pros of having a copy of the zlib sources in the 
binutils tree are that:


  * The tools can be built on a host that does not have
zlib installed.

  * We can be sure exactly which version of zlib is being
used.

  * It simplifies our configure scripts and sources.  We
always know that zlib is present and the API to use.

Whereas the cons of having our own copy of zlib are that:

  * We have to manually import any bug-fixes or enhancements
to the official zlib sources.  Which means that we have
to watch the zlib sources and be ready to evaluate any
changes.

  * We have to make sure that zlib will build on all of the
hosts that we care about.  Should the situation arise
where the zlib does not build on a particular host, and
the zlib maintainers are not interested in making it
build there, then it will be down to us to fix it.  Or
else abandon compression support on that host.

  * It is essentially a waste of space on hosts that already
have zlib installed.

At the moment I feel that the pros outweigh the cons.  What do other 
people think ?


Cheers
  Nick


Re: Discussion about merging Go frontend

2010-11-01 Thread Tom Tromey
 Ian == Ian Lance Taylor i...@google.com writes:

Ian This patch puts the code in libiberty, but it could equally well go in
Ian gcc.  Anybody want to make an argument one way or another?

Ian +extern const char *
Ian +objfile_attributes_compare (objfile_attributes *attrs1,

GDB already uses the name objfile for one of its modules.
I don't think we have any name clashes with this patch right now, but I
would prefer to avoid the eventual confusion.
So, if this is in libiberty, could it please have a different name?

thanks,
Tom




Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Ian Lance Taylor
Dave Korn dave.korn.cyg...@gmail.com writes:

 On 31/10/2010 19:09, Ian Lance Taylor wrote:

 Java in the same category as Ada and Objective C++.  The main argument
 in favor of this proposal is twofold: 1) building libjava is a large
 component of gcc bootstrap time, and thus a large component in the
 amount of time it takes to test changes; 

   Proposing to change the compiler as a solution to that problem seems to be a
 category error to me.  You can achieve the same end-result by social rather
 than technical means: just change the rules for patch submission to say You
 don't have to test your patch against Java.

I think the two statements are essentially equivalent.  These days, when
most ordinary users get their compiler from a distro or other binary
form, the set of default languages is most important for gcc developers.
We currently say that for middle-end or backend patches you must
bootstrap with all default languages.  Changing the set of default
languages is a way of changing that statement.  It's not, in my opinion,
a category error.

Ian


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Tom Tromey
 Steven == Steven Bosscher stevenb@gmail.com writes:

Steven The argument against disabling java as a default language always was
Steven that there should be at least one default language that requires
Steven non-call exceptions. I recall testing many patches without trouble if
Steven I did experimental builds with just C, C++, and Fortran, only to find
Steven lots of java test suite failures in a complete bootstrap+test cycle.
Steven So the second point is, IMVHO, not really true.

Is it possible to convert all failures of this form into a C++ test case
with -fnon-call-exceptions?  If so then at least there is a way to add
regression tests.

Steven Is it possible to build and test java without all of libjava?

As far as I'm aware, not at present.  I think even the minimal possible
subset of libjava is pretty big, on the order of hundreds of classes,
IIRC.

Tom


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Andrew Haley
On 11/01/2010 05:50 PM, Tom Tromey wrote:
 Steven == Steven Bosscher stevenb@gmail.com writes:
 
 Steven The argument against disabling java as a default language always was
 Steven that there should be at least one default language that requires
 Steven non-call exceptions. I recall testing many patches without trouble if
 Steven I did experimental builds with just C, C++, and Fortran, only to find
 Steven lots of java test suite failures in a complete bootstrap+test cycle.
 Steven So the second point is, IMVHO, not really true.
 
 Is it possible to convert all failures of this form into a C++ test case
 with -fnon-call-exceptions?  If so then at least there is a way to add
 regression tests.

In practice, no.  We don't know what the C++ equivalent is until we've
seen the Java (or Ada) test failure.  In the Rumsfeld epistemology it's
an unknown uknown, something that we don't know we don't know.

 Steven Is it possible to build and test java without all of libjava?
 
 As far as I'm aware, not at present.  I think even the minimal possible
 subset of libjava is pretty big, on the order of hundreds of classes,
 IIRC.

And the failures I've seen have been in some of the crazy cases, not
just simple Java code, where things get complicated.

Andrew.


Re: Discussion about merging Go frontend

2010-11-01 Thread Ian Lance Taylor
Tom Tromey tro...@redhat.com writes:

 Ian == Ian Lance Taylor i...@google.com writes:

 Ian This patch puts the code in libiberty, but it could equally well go in
 Ian gcc.  Anybody want to make an argument one way or another?

 Ian +extern const char *
 Ian +objfile_attributes_compare (objfile_attributes *attrs1,

 GDB already uses the name objfile for one of its modules.
 I don't think we have any name clashes with this patch right now, but I
 would prefer to avoid the eventual confusion.
 So, if this is in libiberty, could it please have a different name?

Sure.

Any suggestions?

Ian


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Andrew Haley
On 11/01/2010 06:16 PM, Diego Novillo wrote:
 On Sun, Oct 31, 2010 at 15:09, Ian Lance Taylor i...@google.com wrote:
 
 Comments?  Approvals?
 
 FWIW, I agree with this patch for the same reasons stated by Ian.
 Other than massively increasing build times, I have not seen
 substantial benefits for having java enabled by default.  Ada, on the
 other hand, has shown more usefulness in exposing bugs (particularly,
 middle end) and is many times faster.
 
 This is the kind of patch that requires more consensus or agreement
 from the java maintainers.  aph, are you dead set against disabling
 java?

No.

 Is there anything we could do to change your mind?

Yes, if we have an autotester that runs the libgcj test suite and
mails maintainers (or the list) when they break things.

Andrew.


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread H.J. Lu
On Mon, Nov 1, 2010 at 11:58 AM, Andrew Haley a...@redhat.com wrote:

 Is there anything we could do to change your mind?

 Yes, if we have an autotester that runs the libgcj test suite and
 mails maintainers (or the list) when they break things.


I don't mind enabling Java in my autotesters for Linux/ia32 and
Linux/x86-64.


-- 
H.J.


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Richard Guenther
On Mon, Nov 1, 2010 at 10:03 AM, Andrew Haley a...@redhat.com wrote:
 On 11/01/2010 04:06 AM, Geert Bosch wrote:

 On Oct 31, 2010, at 15:33, Steven Bosscher wrote:
 The argument against disabling java as a default language always was
 that there should be at least one default language that requires
 non-call exceptions. I recall testing many patches without trouble if
 I did experimental builds with just C, C++, and Fortran, only to find
 lots of java test suite failures in a complete bootstrap+test cycle.
 So the second point is, IMVHO, not really true.

 Feel free to enable Ada. Builds and tests faster than Java,
 and is known to expose many more middle end bugs,

 Hmm, weasely use of passive voice noted.  ;-)

 Out of interest, why would Ada expose more midle-end bugs?

In the 5 years working on GCC (and usually testing both Java and Ada)
Ada caught infinitely more bugs than Java (which caught zero) for me.

I think enabling Ada by default if gnat is installed makes sense.

Richard.

 Andrew.



ipa on all files together

2010-11-01 Thread Hongtao
 Hi All,

While using gcc-4.6 with option -flto, I found that interprocedural
analysis were performed on each source file separately. For example for
the pass pass_ipa_pta, if we compile two files like :
 gcc -O -flto f1.c f2.c
we have the pass run twice, one for each source file. So is there a way
that can perform IPA on all source files together?


Thanks,
Hongtao
Purdue University


Re: ipa on all files together

2010-11-01 Thread Diego Novillo
On Mon, Nov 1, 2010 at 19:57, Hongtao yu...@purdue.edu wrote:
  Hi All,

 While using gcc-4.6 with option -flto, I found that interprocedural
 analysis were performed on each source file separately. For example for
 the pass pass_ipa_pta, if we compile two files like :
         gcc -O -flto f1.c f2.c
 we have the pass run twice, one for each source file. So is there a way
 that can perform IPA on all source files together?

With -combine you used to be able to do this, but it has been removed
in favour of -flto (actually, I'm not quite sure whether it's been
removed already, but it's on the chopping block).

With -flto, IPA will be performed on all the files together, as well
as each file separately.  In your example, IPA runs 3 times.  Once for
each f1.c and f2.c, and a third time with both f1.o and f2.o as a
single translation unit.


Diego.


Re: ipa on all files together

2010-11-01 Thread Hongtao
 On 11/01/10 20:35, Diego Novillo wrote:
 On Mon, Nov 1, 2010 at 19:57, Hongtao yu...@purdue.edu wrote:
  Hi All,

 While using gcc-4.6 with option -flto, I found that interprocedural
 analysis were performed on each source file separately. For example for
 the pass pass_ipa_pta, if we compile two files like :
 gcc -O -flto f1.c f2.c
 we have the pass run twice, one for each source file. So is there a way
 that can perform IPA on all source files together?
 With -combine you used to be able to do this, but it has been removed
 in favour of -flto (actually, I'm not quite sure whether it's been
 removed already, but it's on the chopping block).

 With -flto, IPA will be performed on all the files together, as well
 as each file separately.  In your example, IPA runs 3 times.  Once for
 each f1.c and f2.c, and a third time with both f1.o and f2.o as a
 single translation unit. 
  Thanks. But can I only keep the third pass, i.e.  I want to perform a
pass only on all units together without on each unit separately?

  Hongtao

 Diego.




Re: RFC: Add zlib source to src CVS resposity

2010-11-01 Thread Christopher Faylor
On Tue, Nov 02, 2010 at 10:25:50AM +1030, Alan Modra wrote:
On Mon, Nov 01, 2010 at 05:13:44PM +, Nick Clifton wrote:
   * We have to make sure that zlib will build on all of the
 hosts that we care about.  Should the situation arise
 where the zlib does not build on a particular host, and
 the zlib maintainers are not interested in making it
 build there, then it will be down to us to fix it.  Or
 else abandon compression support on that host.

This would mean we need to keep machinery to conditionally compile
in compressed debug support, removal of said support being HJ's stated
reason for importing zlib.

I'm against importing zlib into binutils, and I think we should keep
support of compressed debug sections conditional, to avoid potential
bootstrap problems or circular dependencies.

FWIW, I agree.  I think that having to keep zlib up-to-date wrt
potential security issues or other serious bugs is a burden that we
shouldn't take on.  Shouldn't we be trying to use any system shared
libraries for these types of things specifically so that the vendor
can handle problems for us?

cgf


not quite polymorphism

2010-11-01 Thread eric lin
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning:
#warning This file includes at least one deprecated or antiquated
header which may be removed without further notice at a future date.
Please use a non-deprecated interface with equivalent functionality
instead. For a listing of replacement headers and interfaces, consult
the  file  backward_warning.h.  To  disable  this  warning  use
-Wno-deprecated.
In file included from Simple_window.cpp:7:
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error: class Graph_lib::Window
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error: class Graph_lib::Window
Simple_window.cpp: In constructor
‘Simple_window::Simple_window(Point, int, int, const String)’:
Simple_window.cpp:12: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error: class Graph_lib::Window
Simple_window.cpp:12: error: class ‘Simple_window’ does not have any
field named ‘Window’
Simple_window.cpp:16: error: ‘attach’ was not declared in this scope
Simple_window.cpp:  In  member  function  ‘bool
Simple_window::wait_for_button()’:
Simple_window.cpp:26: error: ‘show’ was not declared in this scope
Simple_window.cpp: In member function ‘void Simple_window::next()’:
Simple_window.cpp:53: error: ‘hide’ was not declared in this scope
# cc1plus 0.54 0.04
make[1]: *** [Simple_window.o] Error 1
rm Graph.o GUI.o
make[1]: Leaving directory `/home/eric/BStrou/usingC++4/code/GUI'
make: *** [../GUI/libbookgui.a] Error 2
e...@eric-laptop:~/BStrou/usingC++4/code/Chapter12$
-link 
fltk with example program of book by Stroustrup--
I am using 4.4.3, could anyone have experience to use different(newer) version 
of gcc/g++ so it can distinquish different useage of same variable, i.e. 
Window, in my case without response by compile time error?

thans your time and effort a lot in advance, Eric


_
Luxmail.com is spam free. However, we do not throw your important emails into 
spam box like other defective email systems.

Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Jeff Law

 On 11/01/10 12:16, Diego Novillo wrote:

On Sun, Oct 31, 2010 at 15:09, Ian Lance Taylori...@google.com  wrote:


Comments?  Approvals?

FWIW, I agree with this patch for the same reasons stated by Ian.
Other than massively increasing build times, I have not seen
substantial benefits for having java enabled by default.  Ada, on the
other hand, has shown more usefulness in exposing bugs (particularly,
middle end) and is many times faster.

This is the kind of patch that requires more consensus or agreement
from the java maintainers.  aph, are you dead set against disabling
java?  Is there anything we could do to change your mind?
Building libjava (at least for me) is primarily painful due to 2 files 
(the names escape me) and the rather poor coarse level parallelism 
(can't build the 32bit and 64bit multilibs in parallel for example).


Has anyone looked at fixing the build machinery for libjava to make it 
more sensible?


I'd personally prefer java over ada as I'm able to understand java code 
easier, thus when something does go wrong I'm able to debug it much faster.


Jeff



Re: PATCH RFA: Do not build java by default

2010-11-01 Thread H.J. Lu
On Mon, Nov 1, 2010 at 8:39 PM, Jeff Law l...@redhat.com wrote:
  On 11/01/10 12:16, Diego Novillo wrote:

 On Sun, Oct 31, 2010 at 15:09, Ian Lance Taylori...@google.com  wrote:

 Comments?  Approvals?

 FWIW, I agree with this patch for the same reasons stated by Ian.
 Other than massively increasing build times, I have not seen
 substantial benefits for having java enabled by default.  Ada, on the
 other hand, has shown more usefulness in exposing bugs (particularly,
 middle end) and is many times faster.

 This is the kind of patch that requires more consensus or agreement
 from the java maintainers.  aph, are you dead set against disabling
 java?  Is there anything we could do to change your mind?

 Building libjava (at least for me) is primarily painful due to 2 files (the
 names escape me) and the rather poor coarse level parallelism (can't build
 the 32bit and 64bit multilibs in parallel for example).

 Has anyone looked at fixing the build machinery for libjava to make it more
 sensible?

 I'd personally prefer java over ada as I'm able to understand java code
 easier, thus when something does go wrong I'm able to debug it much faster.


FWIW, it takes about 33minutes to bootstap gcc trunk on Fedora 13/Intel
Core i7 870 with both 32bit and 64bit libraries. I configure gcc with

-enable-clocale=gnu --with-system-zlib --with-demangler-in-ld  --enab
le-shared --enable-threads=posix --enable-haifa  --prefix=/usr/gcc-4.6.0 --with-
local-prefix=/usr/local --with-fpmath=sse --with-plugin-ld=ld.gold --enable-gold
 --with-fpmath=sse


-- 
H.J.


Re: not quite polymorphism

2010-11-01 Thread Ian Lance Taylor
eric lin fs...@luxmail.com writes:

 I am using 4.4.3, could anyone have experience to use different(newer)
 version of gcc/g++ so it can distinquish different useage of same
 variable, i.e. Window, in my case without response by compile time
 error?

This question is not appropriate for the mailing list gcc@gcc.gnu.org,
which is for issues regarding the development of gcc itself.  It would
be appropriate for the mailing list gcc-h...@gcc.gnu.org.  Please take
any followups to gcc-help.  Thanks.

Unfortunately I don't know the answer to your question, as you did not
provide any source code.  In the absence of other information it appears
to be a language question rather than a compiler question.

Ian


Re: PATCH RFA: Do not build java by default

2010-11-01 Thread Matthias Klose

On 31.10.2010 20:09, Ian Lance Taylor wrote:

Currently we build the Java frontend and libjava by default.  At the GCC
Summit we raised the question of whether should turn this off, thus only
building it when java is explicitly selected at configure time with
--enable-languages.  Among the people at the summit, there was general
support for this, and nobody was opposed to it.

Here is a patch which implements that.  I'm sending this to the mailing
lists gcc@ and java@, as well as the relevant -patches@ lists, because
it does deserve some broader discussion.

This is not a proposal to remove the Java frontend nor is it leading up
to that.  It is a proposal to not build the frontend by default, putting
Java in the same category as Ada and Objective C++.  The main argument
in favor of this proposal is twofold: 1) building libjava is a large
component of gcc bootstrap time, and thus a large component in the
amount of time it takes to test changes; 2) it is in practice very
unusual for middle-end or back-end changes to cause problems with Java
without also causing problems for C/C++, thus building and testing
libjava does not in practice help ensure the stability of the compiler.
A supporting argument is since Sun has released their Java tools under
the GPL, community interest seems to have shifted toward the Sun tools;
gcc's Java frontend is in maintenance mode, with little new development
currently planned.


please note that gcj is still required for a bootstrap of openjdk on platforms 
which don't yet have a working openjdk. At least for this purpose it is still 
maintained.



This patch should not of course change whether or not distros choose to
package the Java compiler; undoubtedly they would continue to do so,
just as they package the Ada compiler today.

Comments?  Approvals?


if build speed is the only issue, why not

 - disable the static libgcj build, if not explicitely enabled?

 - disable the biarch build for libgcj? most distributions don't
   have all of the depending libraries available for biarch builds.

Matthias


[Bug fortran/45629] libgfortran/io/list_read.c:1872:10: warning: variable 'elem' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]

2010-11-01 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45629

Janne Blomqvist jb at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.01 07:28:21
 AssignedTo|unassigned at gcc dot   |jb at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #4 from Janne Blomqvist jb at gcc dot gnu.org 2010-11-01 07:28:21 
UTC ---
Scratch that previous patch. It turned out to not be such a good idea after
all, I'm working on a better approach.


[Bug target/45250] [4.6 Regression] FAIL: tr1/5_numerical_facilities/special_functions/01_assoc_laguerre/check_nan.cc

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45250

--- Comment #13 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
07:58:51 UTC ---
Author: jakub
Date: Mon Nov  1 07:58:46 2010
New Revision: 166126

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166126
Log:
PR target/45250
* var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
(cfa_base_offset): New variable.
(compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
(adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
is NULL.
(vt_init_cfa_base): Initialize cfa_base_offset.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/var-tracking.c


[Bug target/45250] [4.6 Regression] FAIL: tr1/5_numerical_facilities/special_functions/01_assoc_laguerre/check_nan.cc

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45250

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #14 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
08:00:00 UTC ---
Fixed.


[Bug rtl-optimization/46248] [4.6 regression] crash+infinite recursion in combine

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46248

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot
   ||gnu.org, jakub at gcc dot
   ||gnu.org

--- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
10:34:53 UTC ---
  if (added_sets_1)
{
  rtx t = i1pat;
  if (i0_feeds_i1_n)
t = subst (t, i0dest, i0src, 0, 0);

  XVECEXP (newpat, 0, --total_sets) = t;
}
  if (added_sets_2)
{
  rtx t = i2pat;
  if (i0_feeds_i2_n)
t = subst (t, i0dest, i0src, 0, 0);
  if (i1_feeds_i2_n)
t = subst (t, i1dest, i1src, 0, 0);
  if (i0_feeds_i1_n  i1_feeds_i2_n)   ==
t = subst (t, i0dest, i0src, 0, 0); ==

  XVECEXP (newpat, 0, --total_sets) = t;
}

The two lines above are problematic, because subst may clobber the first
argument's expression and
  newpat = subst (newpat, i0dest, i0src, 0,
  i0_feeds_i1_n  i0dest_in_i0src); 
actually clobbered not just newpat, but also i1src which was in it.  Not sure
if we actually can rely it always happened say if substed_i0 is true and not do
the i0dest - i0src replacement in i2pat here.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
11:22:26 UTC ---
This would also be solved by the override control features coming in C++0x

c.f. PR 17920, PR 31397, PR 36848


[Bug rtl-optimization/46248] [4.6 regression] crash+infinite recursion in combine

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46248

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot   |jakub at gcc dot gnu.org
   |gnu.org |

--- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
11:23:33 UTC ---
Created attachment 22216
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22216
gcc46-pr46034.patch

Untested patch.


[Bug rtl-optimization/46212] [4.6 regression] segfault in reg_nonzero_bits_for_combine

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46212

--- Comment #6 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
11:24:12 UTC ---
Created attachment 22217
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22217
gcc46-pr46034.patch

Untested fix.


[Bug rtl-optimization/46034] [4.6 regression] internal compiler error: segmentation fault

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46034

--- Comment #11 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
11:25:04 UTC ---
Created attachment 22218
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22218
gcc46-pr46034.patch

Untested fix.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread loose at astron dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #3 from loose at astron dot nl 2010-11-01 12:29:27 UTC ---
As far as I know attributes were removed from the C0x Final Draft.
Besides, if GCC were to provide a compiler flag to warn for this, you would
also be able to catch potential bugs in old code, or in code where the author
was not explicit about overrides.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
12:36:45 UTC ---
Attributes were still in the FCD, and are still in the current draft, but might
be removed.  Override control may not be done by attributes, but will be
present in C++0x in some form, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3151.html and
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3163.pdf for the
latest proposals.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
12:39:48 UTC ---
also, GNU-style attributes are not being removed from GCC, even if C++0x
attributes get dropped

my point was just that there are several similar bugs and that whatever it
looks like, the final implementation of C++0x override control is likely to
influence this enhancement request.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread loose at astron dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #6 from loose at astron dot nl 2010-11-01 12:54:25 UTC ---
OK, fair enough.

However, I reported this bug, because I would like GCC to produce a warning
when hiding a non-virtual method in *existing* code; an option similar to
-Woverloaded-virtual.

New code could of course be written, using either C0x attributes or GCC
attributes. But that won't solve the issue for C98-compliant code.

I agree that it's preferable to remove duplicate bugs. However, I'm not sure
the bugs you mention are real duplicates, because at least some of them
explicitly refer to overriding (virtual) functions, whereas I'm referring to
overloading (non-virtual) functions.


[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710

--- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
13:01:43 UTC ---
Yup, that's why I haven't closed this as a duplicate.  

The C++0x override control works for virtual and non-virtual names, so is
relevant to this PR *and* the others.  Noting and linking to similar PRs helps
people looking at this in future.


[Bug debug/46255] [4.6 Regression] -fcompare-debug failure with -fprofile-generate

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46255

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |jakub at gcc dot gnu.org
   |gnu.org |

--- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
13:07:52 UTC ---
Created attachment 22219
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22219
gcc46-pr46255.patch

Untested fix.


[Bug target/45359] poor -march=native choices for VIA C7 Esther processors

2010-11-01 Thread mahatma at eu dot by
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45359

--- Comment #3 from Dzianis Kahanovich mahatma at eu dot by 2010-11-01 
13:21:40 UTC ---
Created attachment 0
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=0
native VIA/CentaurHauls

(In reply to comment #1)
 Why do you think it's a poor choice?

This is regression after PR target/44046. Previous behaviour was:
sse3 - -march=prescott -mtune=generic, now: sse3 - -march=pentium-m
-mtune=generic. This regression lose sse3 support for C-7 CPU. But in other
point, prescott as family-15 member, may be (or not) else scheduled, then
family-6 clone... Other source of problem - VIA/Centaur CPUs detecting as
Intel vendor. I believe, Intel support have own reason to make choice sse3 -
pentium-m and lose this sse3, then I suggest to forget this behaviour and add
native VIA/CentaurHauls support code. There are 3 point of detection:
1) vendor signature;
2) cache detection: according to Linux kernel code,  detect_caches_amd
behaviour is not vendor-specific and used in kernel also for any x86_64,
VIA/Centaur, Transmeta and Cyrix family-5/model-5, but I have no exotic CPUs
exclude VIA C-7 in my notebook to test other vendors;
3) model detection - C-7 will be -march=prescott -mtune=core2 (FIXME if pure
prescott is better!), also may be fixed c3-2 -mtune=c3 selection (Gentoo Wiki
suggest -mtune=generic or -march=c3 to avoid NOPL for some models, but I try to
not use variable generic).


[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native

2010-11-01 Thread mahatma at eu dot by
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046

Dzianis Kahanovich mahatma at eu dot by changed:

   What|Removed |Added

 CC||mahatma at eu dot by

--- Comment #12 from Dzianis Kahanovich mahatma at eu dot by 2010-11-01 
13:22:26 UTC ---
This patch produced regression, described (and more) in Bug 45359


[Bug c++/46246] [C++0x] Move constructor required when passing a temporary by copy, but not actually used

2010-11-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46246

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #8 from Jason Merrill jason at gcc dot gnu.org 2010-11-01 
14:17:04 UTC ---
Jonathan is correct.


[Bug tree-optimization/46259] New: [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

   Summary: [4.6 Regression] Revision 166102 failed 416.gamess in
SPEC CPU 2006
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: hjl.to...@gmail.com
CC: froy...@codesourcery.com


On Linux/x86-64, revision 166102:

http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg01289.html

failed to build 416.gamess in SPEC CPU 2006

gfortran -c -o efinp.fppized.o -O3 -funroll-loops -ffast-math -ffixed-form
efinp.fppized.f
efinp.fppized.f: In function 'rdstfr':
efinp.fppized.f:2392:0: internal compiler error: tree check: expected
integer_cst, have string_cst in tree_to_double_int, at tree.h:4020
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
specmake[1]: *** [efinp.fppized.o] Error 1
specmake[1]: *** Waiting for unfinished jobs


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

   Target Milestone|--- |4.6.0


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread froydnj at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #1 from froydnj at codesourcery dot com froydnj at codesourcery 
dot com 2010-11-01 14:40:58 UTC ---
A backtrace and/or a reduced testcase would be helpful.  I don't have a
copy of SPEC 2006.


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2010-11-01 14:48:00 
UTC ---
#0  internal_error (gmsgid=0x12a2830 tree check: %s, have %s in %s, at %s:%d)
at ../../src/gcc/diagnostic.c:825
#1  0x00ccb556 in tree_check_failed (node=0x71190f78, 
file=0x1213380 ../../src/gcc/tree.h, line=4020, 
function=0x1214490 tree_to_double_int) at ../../src/gcc/tree.c:8580
#2  0x0073f092 in tree_to_double_int (cst=0x71190f78)
at ../../src/gcc/tree.h:4020
#3  0x0076db8b in const_vector_from_tree (exp=0x703f5880)
at ../../src/gcc/expr.c:10253
#4  0x0076349b in expand_expr_real_1 (exp=0x703f5880, 
target=0x701fc9c0, tmode=V2DImode, modifier=EXPAND_NORMAL, 
alt_rtl=0x7fffd180) at ../../src/gcc/expr.c:8498
#5  0x0075d076 in expand_expr_real (exp=0x703f5880, 
target=0x701fc9c0, tmode=V2DImode, modifier=EXPAND_NORMAL, 
alt_rtl=0x7fffd180) at ../../src/gcc/expr.c:7237
#6  0x0074e173 in store_expr (exp=0x703f5880, 
target=0x701fc9c0, call_param_p=0, nontemporal=0 '\000')
at ../../src/gcc/expr.c:4700
#7  0x0074c586 in expand_assignment (to=0x7109fcb0, 
from=0x703f5880, nontemporal=0 '\000') at ../../src/gcc/expr.c:4473
#8  0x00662d0b in expand_gimple_stmt_1 (stmt=0x70a642d0)
at ../../src/gcc/cfgexpand.c:1991
#9  0x00663136 in expand_gimple_stmt (stmt=0x70a642d0)
---Type return to continue, or q return to quit---
at ../../src/gcc/cfgexpand.c:2100
#10 0x00669ef7 in expand_gimple_basic_block (bb=0x70de7dd0)
at ../../src/gcc/cfgexpand.c:3552
#11 0x0066bd7d in gimple_expand_cfg () at
../../src/gcc/cfgexpand.c:4029
#12 0x0094b7bd in execute_one_pass (pass=0x17b6140)
at ../../src/gcc/passes.c:1560
#13 0x0094b9ac in execute_pass_list (pass=0x17b6140)
at ../../src/gcc/passes.c:1615
#14 0x00ad7087 in tree_rest_of_compilation (fndecl=0x711a4500)
at ../../src/gcc/tree-optimize.c:422
#15 0x00d746e1 in cgraph_expand_function (node=0x71245840)
at ../../src/gcc/cgraphunit.c:1494
#16 0x00d748a0 in cgraph_expand_all_functions ()
at ../../src/gcc/cgraphunit.c:1553
#17 0x00d74ec5 in cgraph_optimize () at ../../src/gcc/cgraphunit.c:1809
#18 0x00d7290b in cgraph_finalize_compilation_unit ()
at ../../src/gcc/cgraphunit.c:1016
#19 0x008e88cb in write_global_declarations ()
at ../../src/gcc/langhooks.c:310
#20 0x00552606 in gfc_write_global_declarations ()
at ../../src/gcc/fortran/f95-lang.c:322
#21 0x00a43358 in compile_file () at ../../src/gcc/toplev.c:931
#22 0x00a45800 in do_compile () at ../../src/gcc/toplev.c:2359
---Type return to continue, or q return to quit---
#23 0x00a4592c in toplev_main (argc=19, argv=0x7fffe138)
at ../../src/gcc/toplev.c:2419
#24 0x005e7790 in main (argc=19, argv=0x7fffe138)
at ../../src/gcc/main.c:36
(gdb)


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2010-11-01 14:49:15 
UTC ---
(gdb) f 3
#3  0x0076db8b in const_vector_from_tree (exp=0x703f5880)
at ../../src/gcc/expr.c:10253
10253RTVEC_ELT (v, i) = immed_double_int_const (tree_to_double_int
(elt),
(gdb) call debug_tree (exp)
 vector_cst 0x703f5880
type vector_type 0x70f9ec78
type array_type 0x71236b28 type integer_type 0x77ec91f8
character(kind=1)
string-flag DI
size integer_cst 0x77eb87d0 constant 64
unit size integer_cst 0x77eb87f8 constant 8
align 8 symtab 0 alias set 4 canonical type 0x71236b28 domain
integer_type 0x71236a80
pointer_to_this pointer_type 0x7123e540 reference_to_this
reference_type 0x7111fa80
V2DI
size integer_cst 0x77eb8960 constant 128
unit size integer_cst 0x77eb8988 constant 16
align 128 symtab 0 alias set 4 canonical type 0x70f9ec78 nunits 2
pointer_to_this pointer_type 0x70f9de70
constant
elt0:  string_cst 0x71190f78 type array_type 0x71236b28
constant  elt1:  string_cst 0x71190f78
(gdb)


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2010-11-01 14:50:25 
UTC ---
(gdb) f 3
#3  0x0076db8b in const_vector_from_tree (exp=0x703f5880)
at ../../src/gcc/expr.c:10253
10253RTVEC_ELT (v, i) = immed_double_int_const (tree_to_double_int
(elt),
(gdb) call debug_tree (exp)
 vector_cst 0x703f5880
type vector_type 0x70f9ec78
type array_type 0x71236b28 type integer_type 0x77ec91f8
character(kind=1)
string-flag DI
size integer_cst 0x77eb87d0 constant 64
unit size integer_cst 0x77eb87f8 constant 8
align 8 symtab 0 alias set 4 canonical type 0x71236b28 domain
integer_type 0x71236a80
pointer_to_this pointer_type 0x7123e540 reference_to_this
reference_type 0x7111fa80
V2DI
size integer_cst 0x77eb8960 constant 128
unit size integer_cst 0x77eb8988 constant 16
align 128 symtab 0 alias set 4 canonical type 0x70f9ec78 nunits 2
pointer_to_this pointer_type 0x70f9de70
constant
elt0:  string_cst 0x71190f78 type array_type 0x71236b28
constant  elt1:  string_cst 0x71190f78
(gdb)


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread froydnj at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #5 from froydnj at codesourcery dot com froydnj at codesourcery 
dot com 2010-11-01 14:57:32 UTC ---
If I had to guess, one of these two hunks is probably responsible:

--- trunk/gcc/tree-vect-loop.c2010/10/31 01:58:12166101
+++ trunk/gcc/tree-vect-loop.c2010/10/31 02:20:22166102
@@ -3021,14 +3017,7 @@
 break;
   }

-for (i = nunits - 1; i = 0; --i)
-  t = tree_cons (NULL_TREE, init_value, t);
-
-if (TREE_CONSTANT (init_val))
-  init_def = build_vector (vectype, t);
-else
-  init_def = build_constructor_from_list (vectype, t);
-
+init_def = build_vector_from_val (vectype, init_value);
 break;

   default:

--- trunk/gcc/tree-vect-stmts.c2010/10/31 01:58:12166101
+++ trunk/gcc/tree-vect-stmts.c2010/10/31 02:20:22166102
@@ -987,9 +987,7 @@
   loop_vec_info loop_vinfo = STMT_VINFO_LOOP_VINFO (stmt_vinfo);
   tree vec_inv;
   tree vec_cst;
-  tree t = NULL_TREE;
   tree def;
-  int i;
   enum vect_def_type dt;
   bool is_simple_use;
   tree vector_type;
@@ -1055,13 +1049,7 @@
 if (vect_print_dump_info (REPORT_DETAILS))
   fprintf (vect_dump, Create vector_inv.);

-for (i = nunits - 1; i = 0; --i)
-  {
-t = tree_cons (NULL_TREE, def, t);
-  }
-
-/* FIXME: use build_constructor directly.  */
-vec_inv = build_constructor_from_list (vector_type, t);
+vec_inv = build_vector_from_val (vector_type, def);
 return vect_init_vector (stmt, vec_inv, vector_type, NULL);
   }

Can you try reverting each one individually and see if those fix the
problem?  Thanks.


[Bug debug/46252] [4.6 Regression] -fcompare-debug failure (length) with -O -frerun-cse-after-loop -fno-tree-loop-optimize -funroll-loops

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46252

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |jakub at gcc dot gnu.org
   |gnu.org |

--- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
15:17:58 UTC ---
Created attachment 1
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=1
gcc46-pr46252.patch

Untested fix.


[Bug middle-end/46234] [4.6 Regression] ICE in expand_expr_real_2 for va-arg-XXX tescases

2010-11-01 Thread pthaugen at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46234

Pat Haugen pthaugen at gcc dot gnu.org changed:

   What|Removed |Added

Summary|ICE in expand_expr_real_2   |[4.6 Regression] ICE in
   |for va-arg-XXX tescases |expand_expr_real_2 for
   ||va-arg-XXX tescases

--- Comment #2 from Pat Haugen pthaugen at gcc dot gnu.org 2010-11-01 
15:50:58 UTC ---
Looking back at gcc-testresults, problem was introduced on trunk between
revisions 163885 and 163940.


[Bug tree-optimization/45875] [4.6 Regression] ice in gimple_fold_obj_type_ref_known_binfo with -O2

2010-11-01 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875

Martin Jambor jamborm at gcc dot gnu.org changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #16 from Martin Jambor jamborm at gcc dot gnu.org 2010-11-01 
16:00:32 UTC ---
No, it is not, it happened that two different bug were reported in
this PR.  On the other hand, I have just submitted a patch for the
remaining issue:

http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00043.html


[Bug middle-end/46120] [4.6 regression] g++.dg/ipa/ivinline-?.C

2010-11-01 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46120

--- Comment #5 from Martin Jambor jamborm at gcc dot gnu.org 2010-11-01 
16:01:19 UTC ---
I have submitted a patch for this PR:

http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00044.html


[Bug target/46179] Codegen/TLS: invalid assembler syntax

2010-11-01 Thread tg at mirbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46179

--- Comment #8 from Thorsten Glaser tg at mirbsd dot org 2010-11-01 16:08:18 
UTC ---
I can confirm that attachment 22191 fixes the original problem, namely that
one source file from util-linux, for me. No testsuite run, though ☹

Built on Debian/m68k, natively.


[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2010-11-01 Thread tg at mirbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37053

Thorsten Glaser tg at mirbsd dot org changed:

   What|Removed |Added

 CC||tg at mirbsd dot org

--- Comment #23 from Thorsten Glaser tg at mirbsd dot org 2010-11-01 16:10:32 
UTC ---
Backported r150626 from Comment 19 and applied to Debian/m68k gcc-4.4
(native). Fixes this ICE when building libjpeg for me. No regression
tests run, though.


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2010-11-01 16:21:11 
UTC ---
(In reply to comment #5)
 If I had to guess, one of these two hunks is probably responsible:
 
 
 --- trunk/gcc/tree-vect-stmts.c2010/10/31 01:58:12166101
 +++ trunk/gcc/tree-vect-stmts.c2010/10/31 02:20:22166102
 @@ -987,9 +987,7 @@
loop_vec_info loop_vinfo = STMT_VINFO_LOOP_VINFO (stmt_vinfo);
tree vec_inv;
tree vec_cst;
 -  tree t = NULL_TREE;
tree def;
 -  int i;
enum vect_def_type dt;
bool is_simple_use;
tree vector_type;
 @@ -1055,13 +1049,7 @@
  if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, Create vector_inv.);
 
 -for (i = nunits - 1; i = 0; --i)
 -  {
 -t = tree_cons (NULL_TREE, def, t);
 -  }
 -
 -/* FIXME: use build_constructor directly.  */
 -vec_inv = build_constructor_from_list (vector_type, t);
 +vec_inv = build_vector_from_val (vector_type, def);
  return vect_init_vector (stmt, vec_inv, vector_type, NULL);
}
 

Revert this patch fixes the problem.


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.11.01 16:33:38
 Ever Confirmed|0   |1

--- Comment #7 from H.J. Lu hjl.tools at gmail dot com 2010-11-01 16:33:38 
UTC ---
[...@gnu-32 delta-fortran]$ cat testcase-min.f
  SUBROUTINE RDSTFR(FRGMNT,IFRAG,PROVEC,FOCKMA,
 *  MXBF,MXMO,MXMO2,NTMOF)
  PARAMETER (MXPT=100, MXFRG=50, MXFGPT=MXPT*MXFRG)
  CHARACTER*8 WORD,MNAME,PNAME,RNAME
  COMMON /FRGSTD/ CORD(3,MXPT),PCORD(3,MXPT),POLT(9,MXPT),
 *INLPR(4*MXPT),IKFR(MXPT),IKLR(MXPT),
 *MNAME(MXPT),PNAME(MXPT),RNAME(MXPT)
  DO 10 I=1,MXPT
 INLPR(4*(I-1)+1)=0
 INLPR(4*(I-1)+2)=0
 INLPR(4*(I-1)+3)=0
 INLPR(4*(I-1)+4)=0
 IKLR(I)=0
 RNAME(I)=''
   10 CONTINUE
  END
[...@gnu-32 delta-fortran]$ /export/gnu/import/rrs/166102/usr/bin/gcc -S -O3
-ffast-math -funroll-loops -ffixed-form -S testcase-min.f
testcase-min.f: In function ‘rdstfr’:
testcase-min.f:14:0: internal compiler error: tree check: expected integer_cst,
have string_cst in tree_to_double_int, at tree.h:4020
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
[...@gnu-32 delta-fortran]$


[Bug web/45803] bugzilla: Invalid HTML

2010-11-01 Thread LpSolit at netscape dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45803

Frédéric Buclin LpSolit at netscape dot net changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.01 16:35:25
 AssignedTo|unassigned at gcc dot   |LpSolit at netscape dot net
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #2 from Frédéric Buclin LpSolit at netscape dot net 2010-11-01 
16:35:25 UTC ---
(In reply to comment #1)
 It seems Firefox shows the pages as expected, but Chromium doesn't.

OK, you are right. I can indeed reproduce with Google Chrome. I didn't give
attention to this bug, because I thought only the HTML4 validator was
complaining. :)

I will look into this problem.


[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2010-11-01 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37053

--- Comment #24 from Paolo Bonzini bonzini at gnu dot org 2010-11-01 16:38:53 
UTC ---
You'd need also the patch for bug 41064.


[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2010-11-01 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37053

Paolo Bonzini bonzini at gnu dot org changed:

   What|Removed |Added

 CC||nospamname at web dot de

--- Comment #25 from Paolo Bonzini bonzini at gnu dot org 2010-11-01 16:40:07 
UTC ---
*** Bug 40414 has been marked as a duplicate of this bug. ***


[Bug target/40414] gcc 4.4.0 error at postreload.c:396

2010-11-01 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40414

Paolo Bonzini bonzini at gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #28 from Paolo Bonzini bonzini at gnu dot org 2010-11-01 16:40:07 
UTC ---
Same ICE, marking as duplicate.

*** This bug has been marked as a duplicate of bug 37053 ***


[Bug other/46202] Makefile doesn't support install-strip

2010-11-01 Thread rwild at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46202

Ralf Wildenhues rwild at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.01 16:41:30
 CC||rwild at gcc dot gnu.org
 AssignedTo|unassigned at gcc dot   |rwild at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1


[Bug c++/46203] constexpr weirdness w/ default ctors

2010-11-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46203

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2010-11-01 
16:45:44 UTC ---
Should be fixed now.


[Bug web/45803] bugzilla: Invalid HTML

2010-11-01 Thread LpSolit at netscape dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45803

Frédéric Buclin LpSolit at netscape dot net changed:

   What|Removed |Added

 Status|ASSIGNED|WAITING

--- Comment #3 from Frédéric Buclin LpSolit at netscape dot net 2010-11-01 
16:46:32 UTC ---
OK, the fix was trivial. A two characters long patch and that's it. :) I will
apply the patch next time we upgrade.


[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2010-11-01 Thread tg at mirbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37053

--- Comment #26 from Thorsten Glaser tg at mirbsd dot org 2010-11-01 16:53:18 
UTC ---
Probably, but not on m68k ;-)


[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2010-11-01 Thread bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37053

--- Comment #27 from Paolo Bonzini bonzini at gnu dot org 2010-11-01 16:58:20 
UTC ---
Better: not for this testcase.  We found it on CRIS, but the bug could really
happen on any target.


[Bug web/46260] New: Upgrade GCC and Sources Bugzilla from 3.6.2 to 3.6.3

2010-11-01 Thread LpSolit at netscape dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46260

   Summary: Upgrade GCC and Sources Bugzilla from 3.6.2 to 3.6.3
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: web
AssignedTo: lpso...@netscape.net
ReportedBy: lpso...@netscape.net
Blocks: 45803,45811,45818


Bugzilla 3.6.3 will be released in the coming days, probably tomorrow. It
includes two security fixes, plus several bug fixes which are cool to have. I
will also use this upgrade window (5 minutes max per installation) to fix some
bugs reported in GCC Bugzilla, see bugs depending on this one.


[Bug web/46260] Upgrade GCC and Sources Bugzilla from 3.6.2 to 3.6.3

2010-11-01 Thread LpSolit at netscape dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46260

Frédéric Buclin LpSolit at netscape dot net changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.01 17:43:29
 Ever Confirmed|0   |1


[Bug c/46261] New: avr-gcc: Segfaults when compiled with the -mint8 option

2010-11-01 Thread tnorth at fedoraproject dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46261

   Summary: avr-gcc: Segfaults when compiled with the -mint8
option
   Product: gcc
   Version: 4.5.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: tno...@fedoraproject.org


The compiler segfaults when code is compiled with -mint8 option.

This bug was previously reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=626889

Arch: reported to happend on i686 and x86_64.
GCC build: see below.

How to reproduce: compile and run the following code, as shown below.

/** \file testmint8.c */
#include avr/io.h

int main(void) {
  DDRB=0xFF;
  while(1)
{
PORTB++;
}
}

Output:
avr-gcc -v -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99
-funsigned-char -funsigned-bitfields -mint8 -mmcu=at90pwm3b -DF_CPU=800UL
-MMD -MP -MFtestmint8.d -MTtestmint8.d -c -otestmint8.o testmint8.c
-save-temps
Using built-in specs.
COLLECT_GCC=/usr/bin/avr-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/avr/4.5.1/lto-wrapper
Target: avr
Configured with: ../gcc-4.5.1/configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls
--disable-libssp --with-system-zlib --enable-version-specific-runtime-libs
--with-pkgversion='Fedora 4.5.1-2.fc14'
--with-bugurl=https://bugzilla.redhat.com/
Thread model: single
gcc version 4.5.1 (Fedora 4.5.1-2.fc14) 
COLLECT_GCC_OPTIONS='-v' '-Wall' '-g2' '-gstabs' '-O0' '-fpack-struct'
'-fshort-enums' '-std=gnu99' '-funsigned-char' '-funsigned-bitfields' '-mint8'
'-mmcu=at90pwm3b' '-DF_CPU=800UL' '-MMD' '-MP' '-MFtestmint8.d'
'-MTtestmint8.d' '-c' '-o' 'testmint8.o' '-save-temps'
 /usr/libexec/gcc/avr/4.5.1/cc1 -E -quiet -v -imultilib avr4 -MMD testmint8.d
-MFtestmint8.d -MP -MTtestmint8.d -MQ testmint8.o -DF_CPU=800UL testmint8.c
-mint8 -mmcu=at90pwm3b -std=gnu99 -Wall -fpack-struct -fshort-enums
-funsigned-char -funsigned-bitfields -g2 -gstabs -fworking-directory -O0
-fpch-preprocess -o testmint8.i
ignoring nonexistent directory
/usr/lib/gcc/avr/4.5.1/../../../../avr/sys-include
#include ... search starts here:
#include ... search starts here:
 /usr/lib/gcc/avr/4.5.1/include
 /usr/lib/gcc/avr/4.5.1/include-fixed
 /usr/lib/gcc/avr/4.5.1/../../../../avr/include
End of search list.
built-in:0:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See https://bugzilla.redhat.com/ for instructions.

preprocessed file (*.i*) is short and contains:
# 1 testmint8.c
# 1 /tmp//

avr-gcc --version -v
Using built-in specs.
COLLECT_GCC=/usr/bin/avr-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/avr/4.5.1/lto-wrapper
avr-gcc (Fedora 4.5.1-2.fc14) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Target: avr
Configured with: ../gcc-4.5.1/configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls
--disable-libssp --with-system-zlib --enable-version-specific-runtime-libs
--with-pkgversion='Fedora 4.5.1-2.fc14'
--with-bugurl=https://bugzilla.redhat.com/
Thread model: single
gcc version 4.5.1 (Fedora 4.5.1-2.fc14) 
COLLECT_GCC_OPTIONS='-fversion' '-v'
 /usr/libexec/gcc/avr/4.5.1/cc1 -quiet -v help-dummy -quiet -dumpbase
help-dummy -auxbase help-dummy -version -fversion -o /tmp/ccfBxPus.s
GNU C (Fedora 4.5.1-2.fc14) version 4.5.1 (avr)
compiled by GNU C version 4.5.1 20100907 (Red Hat 4.5.1-3), GMP version
4.3.1, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-fversion' '-v'
 /usr/lib/gcc/avr/4.5.1/../../../../avr/bin/as --version -o /tmp/cc9BaGQj.o
/tmp/ccfBxPus.s
GNU assembler (GNU Binutils) 2.20
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `avr'.
COMPILER_PATH=/usr/libexec/gcc/avr/4.5.1/:/usr/libexec/gcc/avr/4.5.1/:/usr/libexec/gcc/avr/:/usr/lib/gcc/avr/4.5.1/:/usr/lib/gcc/avr/:/usr/lib/gcc/avr/4.5.1/../../../../avr/bin/
LIBRARY_PATH=/usr/lib/gcc/avr/4.5.1/:/usr/lib/gcc/avr/4.5.1/../../../../avr/lib/
COLLECT_GCC_OPTIONS='-fversion' '-v'
 /usr/libexec/gcc/avr/4.5.1/collect2 --version -L/usr/lib/gcc/avr/4.5.1
-L/usr/lib/gcc/avr/4.5.1/../../../../avr/lib /tmp/cc9BaGQj.o -lgcc -lc -lgcc
GNU ld (GNU Binutils) 2.20
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no 

[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread froydnj at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

--- Comment #8 from Nathan Froyd froydnj at gcc dot gnu.org 2010-11-01 
18:58:35 UTC ---
Author: froydnj
Date: Mon Nov  1 18:58:30 2010
New Revision: 166139

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166139
Log:
gcc/
2010-11-01  Nathan Froyd  froy...@codesourcery.com

PR tree-optimization/46259

Revert:

2010-10-30  Nathan Froyd  froy...@codesourcery.com

* tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
build_vector_from_val.

gcc/testsuite/
2010-11-01  H.J. Lu  hongjiu...@intel.com
Nathan Froyd  froy...@codesourcery.com

PR tree-optimization/46259
* gfortran.dg/pr46259.f: New testcase.

Added:
trunk/gcc/testsuite/gfortran.dg/pr46259.f
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-stmts.c


[Bug c++/46221] huge number of c++ testsuite failures, libstdc++.so alias missing

2010-11-01 Thread meissner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46221

Michael Meissner meissner at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P1
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.11.01 19:20:37
 CC||meissner at gcc dot gnu.org
 Ever Confirmed|0   |1
   Severity|normal  |blocker

--- Comment #7 from Michael Meissner meissner at gcc dot gnu.org 2010-11-01 
19:20:37 UTC ---
This is a blocker for powerpc64-linux.


[Bug fortran/46152] [F03] ALLOCATE with type-spec fails for intrinsic types

2010-11-01 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152

--- Comment #18 from kargl at gcc dot gnu.org 2010-11-01 19:30:01 UTC ---
Author: kargl
Date: Mon Nov  1 19:29:57 2010
New Revision: 166140

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166140
Log:
2010-10-30  Steven G. Kargl  ka...@gcc.gnu.org

PR fortran/46152
* gfortran.dg/select_type_11.f03: Update dg-error phrase.
* gfortran.dg/allocate_with_typespec_4.f90: New test.
* gfortran.dg/allocate_with_typespec_1.f90: New test.
* gfortran.dg/allocate_with_typespec_2.f: New test.
* gfortran.dg/allocate_with_typespec_3.f90: New test.
* gfortran.dg/allocate_derived_1.f90: Delete an obselescent test.
* gfortran.dg/select_type_1.f03: Update dg-error phrase.

2010-10-30  Steven G. Kargl  ka...@gcc.gnu.org

PR fortran/46152
* fortran/match.c (match_derived_type_spec): Reoplace gfc_match_symbol
with a gfc_find_symbol to prevent namespace pollution.  Remove dead
code.
(match_type_spec): Remove parsing of '::'.  Collapse character
kind checking to one location.
(gfc_match_allocate): Use correct locus in error message.

Added:
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_1.f90
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_2.f
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_3.f90
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/match.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/allocate_derived_1.f90
trunk/gcc/testsuite/gfortran.dg/select_type_1.f03
trunk/gcc/testsuite/gfortran.dg/select_type_11.f03


[Bug fortran/46262] New: [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type

2010-11-01 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46262

   Summary: [4.6 Regression] [OOP] tree check: expected
function_type or method_type, have pointer_type
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ja...@gcc.gnu.org


The following code ICEs with current trunk:


module integrable_model_module

  implicit none 

  type :: integrable_model
  contains
procedure :: multiply
generic :: operator(*) = multiply
  end type integrable_model

  contains

subroutine integrate (model)
  class(integrable_model) :: model
  print *,d_dt(model)*2.0
end subroutine

function d_dt (this)
  class(integrable_model), intent(in) :: this
  class(integrable_model), allocatable :: d_dt
end function

real function multiply(lhs, rhs)
  class(integrable_model), intent(in) :: lhs
  real, intent(in) :: rhs
end function

end module


integrable_model.f03: In function ‘integrate’:
integrable_model.f03:15:0: internal compiler error: tree check: expected
function_type or method_type, have pointer_type in gimplify_call_expr, at
gimplify.c:2354

It is reported to work with 4.5.x and a 4.6 snapshot from 20100703.


[Bug fortran/46262] [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type

2010-11-01 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46262

janus at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code

--- Comment #1 from janus at gcc dot gnu.org 2010-11-01 19:43:41 UTC ---
-fdump-tree-original shows wrong code being generated:


  struct class$integrable_model_a T3f8 (struct class$integrable_model 
restrict) D.1529;
  static real(kind=4) C.1528 = 2.0e+0;
  struct class$integrable_model_a D.1527;

  D.1527 = d_dt ((struct class$integrable_model *) model);
  D.1529 = d_dt (D.1527, C.1528);
  _gfortran_transfer_real_write (dt_parm.0, D.1529, 4);


The second call to d_dt should actually be a call to
D.1527-$vptr-multiply.


[Bug fortran/46262] [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type

2010-11-01 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46262

--- Comment #2 from janus at gcc dot gnu.org 2010-11-01 19:45:12 UTC ---
The following variant:


module integrable_model_module

  implicit none 

  type :: integrable_model
  contains
procedure :: multiply
generic :: operator(*) = multiply
  end type integrable_model

  contains

subroutine integrate (model)
  class(integrable_model) :: model
  real :: r
  r = d_dt(model)*2.0
end subroutine

function d_dt (this)
  class(integrable_model), intent(in) :: this
  class(integrable_model), allocatable :: d_dt
end function

real function multiply(lhs, rhs)
  class(integrable_model), intent(in) :: lhs
  real, intent(in) :: rhs
end function

end module


yields:

integrable_model.f03: In function ‘integrate’:
integrable_model.f03:16:0: internal compiler error: in fold_convert_loc, at
fold-const.c:1934


[Bug fortran/46262] [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type

2010-11-01 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46262

--- Comment #3 from janus at gcc dot gnu.org 2010-11-01 19:49:28 UTC ---
Created attachment 2
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=2
full test case

When fixing, one should make sure that the full code from

http://portal.acm.org/citation.cfm?id=1644001.1644004

also works (attached). Originally reported by Ralph Kube at
http://gcc.gnu.org/ml/fortran/2010-11/msg3.html.


[Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution||FIXED

--- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
20:04:25 UTC ---
Fixed.


[Bug c/45062] [4.6 Regression] Revision 162223 caused ICE at c-decl.c:4064

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45062

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 CC||bonzini at gnu dot org

--- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
20:08:29 UTC ---
*** Bug 46243 has been marked as a duplicate of this bug. ***


[Bug c/46243] [4.6 Regression] expected tree that contains ‘decl minimal’ structure, have ‘tree_list’ in start_decl, at c-decl.c:4049

2010-11-01 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46243

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution||DUPLICATE

--- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org 2010-11-01 
20:08:29 UTC ---
Dup of PR45062.

*** This bug has been marked as a duplicate of bug 45062 ***


[Bug c++/46170] [4.4/4.5/4.6 Regression] g++ wrongly rejects pointer-to-member in template arguments

2010-11-01 Thread fang at csl dot cornell.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46170

--- Comment #10 from David Fang fang at csl dot cornell.edu 2010-11-01 
20:40:17 UTC ---
Thanks for working on this, Dodji!
Meanwhile, I've been trying to find some source workaround for my example until
this is patched and the next release is out.  Can you think of any?

Just to clarify: the test case I pasted isn't related to substitution failure
or SFINAE, is it?


[Bug c++/45095] internal compiler error: Segmentation fault compiling p7zip

2010-11-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45095

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Severity|major   |normal


[Bug libgcj/46263] New: without zip in system, gcc with --enable-languages=....,java bootstraps, but no libgcj in result

2010-11-01 Thread dougmencken at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46263

   Summary: without zip in system, gcc with
--enable-languages=,java bootstraps, but no libgcj
in result
   Product: gcc
   Version: 4.5.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dougmenc...@gmail.com


Maybe can you include just a simple test for zip support inside ./configure
before doing 3-stage bootstrap?


[Bug c++/46264] New: Trunk [4.6.0 20101028] - An overloaded operator returning rvalue reference invalidates stack.

2010-11-01 Thread mirza.husadzic at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46264

   Summary: Trunk [4.6.0 20101028] - An overloaded operator
returning rvalue reference invalidates stack.
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: mirza.husad...@gmail.com


Created attachment 3
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=3
./dist/bin/g++ -v -std=c++0x -Wall -g -save-temps rvalue_bug.cpp

The following code is compiled ('-std=c++0x -Wall -g') without optimizations.

Sounds bizarre but the for loop (operator*) invalidates the stack, where
invalid data pointer goes to delete (at the destructor) causing segmentation
fault in libc.so. 
If the code is compiled without *for loop* there is no bug.

Note: By compiling with optimization flags (-0, -O1, -O2, -O3) the bug can't
be reproduced.


#include iostream

using namespace std;

class foo
{
float *data;
bool   reused;

 public:

foo() : data(new float), reused(false) 
{
cout  Allocating data:   data  endl;
}

foo(foo f) : data(move(f.data)), reused(false) 
{
f.data = NULL;
cout  Move constructor.  endl;
}

~foo()
{
if(reused == false)
{ 
cout  Deleting data:   data  endl;
delete data;
}else
cout  Reused data:   data  endl;
}

foo operator*(const foo b) const
{
foo ab;

int sum = 0;

/// This for loop causes invalidation of stack.
for(int i=0; i0; i++)
sum += i; 

ab.reused = true;

cout  Operator *. Sum:   sum  endl;

return move(ab);
}
};


int
main()
{
foo a;
foo b;

foo c = a * b;

return 0;
}


[Bug debug/46252] [4.6 Regression] -fcompare-debug failure (length) with -O -frerun-cse-after-loop -fno-tree-loop-optimize -funroll-loops

2010-11-01 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46252

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 CC|ebotcazou at gcc dot|
   |gnu.org |

--- Comment #3 from Eric Botcazou ebotcazou at gcc dot gnu.org 2010-11-01 
21:16:26 UTC ---
 It is caused by revision 162618:
 
 http://gcc.gnu.org/ml/gcc-cvs/2010-07/msg00972.html

No, it isn't, this commit only reverts an incorrect change.


[Bug rtl-optimization/46034] [4.6 regression] internal compiler error: segmentation fault

2010-11-01 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46034

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|NEW
 AssignedTo|ebotcazou at gcc dot|unassigned at gcc dot
   |gnu.org |gnu.org


[Bug rtl-optimization/46212] [4.6 regression] segfault in reg_nonzero_bits_for_combine

2010-11-01 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46212

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|NEW
 AssignedTo|ebotcazou at gcc dot|unassigned at gcc dot
   |gnu.org |gnu.org


[Bug libstdc++/45999] runtime error in std::vector python pretty printer.

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45999

--- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
21:28:48 UTC ---
Author: redi
Date: Mon Nov  1 21:28:44 2010
New Revision: 166150

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166150
Log:
2010-11-01  Jonathan Wakely  jwakely@gmail.com

PR libstdc++/45999
* python/libstdcxx/v6/printers.py (StdVectorPrinter): Replace
conditional expression with backward-compatible if-else.


Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/python/libstdcxx/v6/printers.py


[Bug libstdc++/45999] runtime error in std::vector python pretty printer.

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45999

--- Comment #8 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
21:32:05 UTC ---
Author: redi
Date: Mon Nov  1 21:32:01 2010
New Revision: 166151

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166151
Log:
2010-11-01  Jonathan Wakely  jwakely@gmail.com

PR libstdc++/45999
* python/libstdcxx/v6/printers.py (StdVectorPrinter): Replace
conditional expression with backward-compatible if-else.


Modified:
branches/gcc-4_5-branch/libstdc++-v3/ChangeLog
branches/gcc-4_5-branch/libstdc++-v3/python/libstdcxx/v6/printers.py


[Bug libstdc++/45999] runtime error in std::vector python pretty printer.

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45999

--- Comment #9 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
21:33:44 UTC ---
trunk and 4.5.2 should work with python 2.4 now


[Bug c++/46264] Trunk [4.6.0 20101028] - An overloaded operator returning rvalue reference invalidates stack.

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46264

--- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 
21:49:56 UTC ---
foo::operator* returns a reference to a local variable which goes out of scope,
causing c.data to contain garbage.

operator* should return by value instead


[Bug c++/46264] Trunk [4.6.0 20101028] - An overloaded operator returning rvalue reference invalidates stack.

2010-11-01 Thread mirza.husadzic at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46264

Mirza mirza.husadzic at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #2 from Mirza mirza.husadzic at gmail dot com 2010-11-01 22:06:33 
UTC ---
Yes, you're right.
Thank you.
Closing this as not a bug.


[Bug middle-end/46251] ICE: in expand_expr_real_2, at expr.c:7276 with -funsafe-math-optimizations -mbionic and __builtin_sincosl()

2010-11-01 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46251

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |rguenth at gcc dot gnu.org
   |gnu.org |

--- Comment #2 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-01 
22:09:26 UTC ---
Mine.


[Bug tree-optimization/45022] No prefetch for the vectorized loop

2010-11-01 Thread changpeng.fang at amd dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022

Changpeng Fang changpeng.fang at amd dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #6 from Changpeng Fang changpeng.fang at amd dot com 2010-11-01 
22:21:56 UTC ---
Not surprise: Richard's check-in of the MISALIGNED_INDIRECT_REF removal
fixed the bug.

Surprise: only two prefetches are generated (which is right). However,
if we could align the references as the following case (PR 45021):

float a[1024], b[1024];
void foo(int beta)
{
  int i;
  for(i=0; i1024; i++)
 a[i] = a[i] + beta * b[i];
}

Three prefetches will be generated, one for b, one for load a, and one for
store a.

Anyway, I am closing this bug, and we should work on PR 45021.


  1   2   >