gcc-in-cxx update

2009-04-29 Thread Ian Lance Taylor
I've finished my set of patches which fix -Wc++-compat to check for enum conversions which are valid in C++. Adding those checks forced a lot of changes in mainline to compile cleanly with -Wc++-compat. I have merged those changes over to the gcc-in-cxx branch. In the gcc directory itself,

Re: gcc-in-cxx update

2009-04-29 Thread Richard Guenther
On Wed, Apr 29, 2009 at 9:39 AM, Ian Lance Taylor i...@google.com wrote: I've finished my set of patches which fix -Wc++-compat to check for enum conversions which are valid in C++.  Adding those checks forced a lot of changes in mainline to compile cleanly with -Wc++-compat.  I have merged

Re: Documentation on running dejagnu with qemu?

2009-04-29 Thread Richard Earnshaw
On Tue, 2009-04-28 at 14:52 -0700, Doug Kwan (關振德) wrote: I would like to run the testsuite using qemu as the gdb simulator does not support newer ARMs. However, there does not seems to be any good documents on that topic. Could someone give me a pointer or two? At least on a linux system,

Unexpected offsets when eliminating SP

2009-04-29 Thread Michael Hope
HI there. I'm working on porting gcc to a new architecture which only does indirect addressing - there is no indirect with displacement. The problem is with spill locations in GCC 4.4.0. The elimination code correctly elimates the frame and args pointer and replaces it with register X. The

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joern Rennecke
In order to be able to use namespaces in my endeavour to support gcc with multiple targets, I've first done a merge from the gcc-in-cxx branch. For my initial implementation, I choose as configuration --target=m32r-elf --with-extra-target-list='sh64-elf arc-elf32' . I've found some issues with

Re: gcc-in-cxx update

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Ian Lance Taylor wrote: * The C++ frontend warns about while (true); when there is no whitespace between the ')' and the ';'. The C frontend does not. I'm not sure how to best handle this. It doesn't make much sense to warn about this with -Wc++-compat. Should

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Joern Rennecke wrote: What are your thoughts on using gcc extensions for gcc-in-cxx ? I believe we agreed in a previous discussion to aim for building with the intersection of C++98/C++03 and C++ as supported by GCC 3.4 (including making sure at an appropriate point that

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joern Rennecke
Quoting Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Joern Rennecke wrote: What are your thoughts on using gcc extensions for gcc-in-cxx ? I believe we agreed in a previous discussion to aim for building with the intersection of C++98/C++03 and C++ as supported by GCC 3.4

Re: gcc-in-cxx update

2009-04-29 Thread Manuel López-Ibáñez
2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Ian Lance Taylor wrote: * The C++ frontend warns about while (true); when there is no   whitespace between the ')' and the ';'.  The C frontend does not.  I'm   not sure how to best handle this.  It doesn't make much

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Joern Rennecke wrote: Quoting Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Joern Rennecke wrote: What are your thoughts on using gcc extensions for gcc-in-cxx ? I believe we agreed in a previous discussion to aim for building with the

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Richard Earnshaw
On Wed, 2009-04-29 at 13:21 +, Joseph S. Myers wrote: On Wed, 29 Apr 2009, Joern Rennecke wrote: Quoting Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Joern Rennecke wrote: What are your thoughts on using gcc extensions for gcc-in-cxx ? I believe we

Re: gcc-in-cxx update

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: 2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Ian Lance Taylor wrote: * The C++ frontend warns about while (true); when there is no   whitespace between the ')' and the ';'.  The C frontend does not.  I'm   not

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Richard Earnshaw wrote: The question is not just one for bootstrapping a native compiler but also one of what compiler can be used to build a cross compiler (such as that with multiple targets), which is not bootstrapped in the usual GCC sense. There we presently

Re: gcc-in-cxx update

2009-04-29 Thread Manuel López-Ibáñez
2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: I don't know the rationale for this warning.  Is it to do with the C++0x specification that certain loops may be assumed to terminate? I guess the rationale is that there is little use for

Re: gcc-in-cxx update

2009-04-29 Thread Sebastian Redl
Joseph S. Myers wrote: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: 2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Ian Lance Taylor wrote: * The C++ frontend warns about while (true); when there is no whitespace between the ')' and the ';'.

Re: gcc-in-cxx update

2009-04-29 Thread Manuel López-Ibáñez
2009/4/29 Sebastian Redl sebastian.r...@getdesigned.at: So MSC will warn about this construct, but GCC will not, due to its whitespace rule: I think we should just remove the whitespace rule and implement the warning in C. Cheers, Manuel.

Re: gcc-in-cxx update

2009-04-29 Thread Ian Lance Taylor
Richard Guenther richard.guent...@gmail.com writes: * The C++ frontend emits some warnings on code which is known to be  never executed, which the C frontend does not.  This leads to some  warnings compiling code in gcc.  I think it is reasonable to fix this  in the C++ frontend. Or just

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Ian Lance Taylor
Joern Rennecke amyl...@spamcop.net writes: I've found some issues with gcc-in-cxx both specific to these targets, and specific to (parts of) compiler passes that are only compiled for a subset of all tagets, which include one or more of the above mentioned three. I'd be happy to see and

Re: gcc-4.4.0 Build Report: Success on Open Solaris 2008.11, x86_64

2009-04-29 Thread Dennis Clarke
Attached is a shortened test report with the following lines removed: excellent, now we have a benchmark/comparison to look at. Well done, excellent work. What did you use to build libgmp and mpfr ? I am curious because most people that try wwith Sun Studio Express or Sun Studio 12 fail

Re: Unexpected offsets when eliminating SP

2009-04-29 Thread Ian Lance Taylor
Michael Hope micha...@juju.net.nz writes: HI there. I'm working on porting gcc to a new architecture which only does indirect addressing - there is no indirect with displacement. The problem is with spill locations in GCC 4.4.0. The elimination code correctly elimates the frame and args

Re: gcc-in-cxx update

2009-04-29 Thread Ian Lance Taylor
Manuel López-Ibáñez lopeziba...@gmail.com writes: 2009/4/29 Sebastian Redl sebastian.r...@getdesigned.at: So MSC will warn about this construct, but GCC will not, due to its whitespace rule: I think we should just remove the whitespace rule and implement the warning in C. Actually it

Re: gcc-in-cxx update

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: BTW, why is this warned about? I imagine because in C it is not conventional to use extern when defining something, only on a declaration that is not a definition. But may it lead to some confusion or subtle error? It seems overly

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Ian Lance Taylor wrote: (I'm not personally convinced that a multi-targeted gcc is particularly useful, though I don't object if there is a general desire to support it.) I think the cleanups involved in using the target vector / class more, and other cleanups involved

Re: gcc-in-cxx update

2009-04-29 Thread Manuel López-Ibáñez
2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: BTW, why is this warned about? I imagine because in C it is not conventional to use extern when defining something, only on a declaration that is not a definition. But may it lead to some

Re: gcc-4.4.0 Build Report: Success on Open Solaris 2008.11, x86_64

2009-04-29 Thread Tom Browder
On Wed, Apr 29, 2009 at 9:29 AM, Dennis Clarke dcla...@blastwave.org wrote: Attached is a shortened test report with the following lines removed: excellent, now we have a benchmark/comparison to look at. Well done, excellent work. What did you use to build libgmp and mpfr ? I am curious

Re: gcc-in-cxx update

2009-04-29 Thread Joseph S. Myers
On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: 2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: BTW, why is this warned about? I imagine because in C it is not conventional to use extern when defining something, only on a

Re: gcc-in-cxx update

2009-04-29 Thread Manuel López-Ibáñez
2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: 2009/4/29 Joseph S. Myers jos...@codesourcery.com: On Wed, 29 Apr 2009, Manuel López-Ibáñez wrote: BTW, why is this warned about? I imagine because in C it is not conventional to use

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Kaveh R. GHAZI
On Wed, 29 Apr 2009, Joseph S. Myers wrote: On Wed, 29 Apr 2009, Richard Earnshaw wrote: If you are building a non-C front end without bootstrapping you need at least 2.95: To build all languages in a cross-compiler or other configuration where 3-stage bootstrap is not performed,

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joern Rennecke
Quoting Ian Lance Taylor i...@google.com: I'm not sure why you are singling me out. You seemed to be actively working on the branch, and the c++ enum type checks provide a motivation to make changes. Also, this issue should be considered in general when people change their coding habits in

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joern Rennecke
Quoting Joseph S. Myers jos...@codesourcery.com: I think the cleanups involved in using the target vector / class more, and other cleanups involved in the natural approach to multi-target GCC of which the target vector is a part, are more useful than the end result (for which compiling large

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Esben Mose Hansen
On Wednesday 29 April 2009 12:47:04 Joern Rennecke wrote: Something which I miss in C++ is a way to declare that a function uses an integral type to pass an enum value (in arguments or return value), and then at function definition time only check that the integral type is sufficently large to

[lambda] Segmentation fault in simple lambda program

2009-04-29 Thread Esben Mose Hansen
Hi, this program SEGFAULTs #include algorithm int main() { int numbers[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; const std::size_t nn = sizeof(numbers)/sizeof(int); int sum = 0; int f = 5; std::for_each(numbers[0], numbers[nn], [] (int n) { sum += n * f; }); } Now, my assembly

svn 1.5.0 merge support

2009-04-29 Thread Laurynas Biveinis
I have updated http://gcc.gnu.org/wiki/SvnBranch with information on how to use svn 1.5.0 to maintain branches. Please review, comment, edit etc. - especially in the places marked untested :) Thanks, -- Laurynas

[graphite] Weekly phone call notes

2009-04-29 Thread Tobias Grosser
Hi gcc developers, hi graphities here are some notes from our weekly phone call. Unfortunately I missed to send out the notes from the last two phone calls, but I hope to get them out more regulary. Believe in me! ;-) http://gcc.gnu.org/wiki/Graphite_Phone_Call/2009_04_29 Attendees: Li, Jan,

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Richard Guenther
On Wed, Apr 29, 2009 at 11:34 PM, Tobias Grosser gros...@fim.uni-passau.de wrote: Hi gcc developers, hi graphities here are some notes from our weekly phone call. Unfortunately I missed to send out the notes from the last two phone calls, but I hope to get them out more regulary. Believe in

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Tobias Grosser
On Wed, 2009-04-29 at 23:57 +0200, Richard Guenther wrote: On Wed, Apr 29, 2009 at 11:34 PM, Tobias Grosser gros...@fim.uni-passau.de wrote: Hi gcc developers, hi graphities here are some notes from our weekly phone call. Unfortunately I missed to send out the notes from the last two

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Sebastian Pop
On Wed, Apr 29, 2009 at 16:57, Richard Guenther richard.guent...@gmail.com wrote:      * Reductions: Diego OK with going out of SSA. You will loose all points-to information.  I think going out of SSA is a very bad idea. There is no loss of information: we go out of SSA only for scalar phi

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Richard Guenther
On Thu, Apr 30, 2009 at 12:06 AM, Tobias Grosser gros...@fim.uni-passau.de wrote: On Wed, 2009-04-29 at 23:57 +0200, Richard Guenther wrote: On Wed, Apr 29, 2009 at 11:34 PM, Tobias Grosser gros...@fim.uni-passau.de wrote: Hi gcc developers, hi graphities here are some notes from our

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Steven Bosscher
On Thu, Apr 30, 2009 at 12:15 AM, Richard Guenther richard.guent...@gmail.com wrote: Well, the challenge is to retain the per SSA name information across Graphite.  At some point we need to stop re-computing points-to information because we cannot do so with retaining IPA results. Not to

Re: gcc-4.4.0 Build Report: Success on Open Solaris 2008.11, x86_64

2009-04-29 Thread Janis Johnson
On Wed, 2009-04-29 at 08:56 -0500, Tom Browder wrote: Attached is a shortened test report with the following lines removed: XFAIL PASS UNSUPPORTED The preferred way to post test results is by running the script $SRC/contrib/test_summary from within the build directory. It produces a

Re: gcc-in-cxx update / multi-targeted gcc

2009-04-29 Thread Joern Rennecke
On Wednesday 29 April 2009 12:47:04 Joern Rennecke wrote: Something which I miss in C++ is a way to declare that a function uses an integral type to pass an enum value (in arguments or return value), and then at function definition time only check that the integral type is sufficently large to

Re: Unexpected offsets when eliminating SP

2009-04-29 Thread Jim Wilson
Michael Hope wrote: HI there. I'm working on porting gcc to a new architecture which only does indirect addressing - there is no indirect with displacement. The IA-64 target also has only indirect addressing. Well, it has some auto-increment addressing modes too, but that isn't relevant

Re: [lambda] Segmentation fault in simple lambda program

2009-04-29 Thread Ian Lance Taylor
Esben Mose Hansen k...@mosehansen.dk writes: this program SEGFAULTs #include algorithm int main() { int numbers[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; const std::size_t nn = sizeof(numbers)/sizeof(int); int sum = 0; int f = 5; std::for_each(numbers[0], numbers[nn], [] (int n) {

Re: [graphite] Weekly phone call notes

2009-04-29 Thread Daniel Berlin
On Wed, Apr 29, 2009 at 6:19 PM, Steven Bosscher stevenb@gmail.com wrote: On Thu, Apr 30, 2009 at 12:15 AM, Richard Guenther richard.guent...@gmail.com wrote: Well, the challenge is to retain the per SSA name information across Graphite.  At some point we need to stop re-computing

format argument does not have string type

2009-04-29 Thread Jack Howarth
Does anyone understand why Apple's gcc-4.2 compiler in Xcode 3.1.2 accepts the following code... typedef const struct __CFString * CFStringRef; typedef struct __CFBundle *CFBundleRef; extern CFStringRef CFBundleCopyLocalizedString(CFBundleRef bundle, CFStringRef key, CFStringRef value,

Re: format argument does not have string type

2009-04-29 Thread Chris Lattner
On Apr 29, 2009, at 9:58 PM, Jack Howarth wrote: Does anyone understand why Apple's gcc-4.2 compiler in Xcode 3.1.2 accepts the following code... typedef const struct __CFString * CFStringRef; typedef struct __CFBundle *CFBundleRef; extern CFStringRef

[Bug ada/39336] libgnat.dylib, libgnarl.dylib don't contain full paths

2009-04-29 Thread simon at pushface dot org
--- Comment #2 from simon at pushface dot org 2009-04-29 06:00 --- (In reply to comment #1) The Ada make files don't use GNU libtool to build the shared libraries. GNAT Pro 6.2.1 on Darwin uses -rpath/@rpath, presumably AdaCore will fold this in at a future date. --

[Bug c++/39956] New: no error for a instantiated class accessing private types in base class

2009-04-29 Thread kannanmj at hp dot com
Access to private types in a class from another instantiated template class is not getting the expected type is private error from gcc compiler. $gcc -c -v inp4.cpp Using built-in specs. Target: hppa1.1-hp-hpux11.11 Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure

[Bug c++/39956] no error for a instantiated class accessing private types in base class

2009-04-29 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|blocker |normal Keywords|

[Bug c++/33934] access control bug in member function templates

2009-04-29 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-04-29 07:05 --- *** This bug has been marked as a duplicate of 16617 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/24118] Access control bug for base class of templates

2009-04-29 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-29 07:05 --- *** This bug has been marked as a duplicate of 16617 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/26693] [4.3/4.4/4.5 regression] Access checks not performed for types in templates

2009-04-29 Thread pinskia at gcc dot gnu dot org
--- Comment #17 from pinskia at gcc dot gnu dot org 2009-04-29 07:09 --- *** Bug 39956 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39947] Shared libgcc getting clobbered for multilib builds

2009-04-29 Thread dannysmith at users dot sourceforge dot net
--- Comment #2 from dannysmith at users dot sourceforge dot net 2009-04-29 07:29 --- The same problem will occur for all dll's (libstdc++-x,dll, libgfortran-x.dll, libssp-x.dll, etc) that are built as part of gcc Danny -- dannysmith at users dot sourceforge dot net changed:

[Bug target/39947] Shared libgcc getting clobbered for multilib builds

2009-04-29 Thread ktietz at gcc dot gnu dot org
--- Comment #3 from ktietz at gcc dot gnu dot org 2009-04-29 07:38 --- (In reply to comment #2) The same problem will occur for all dll's (libstdc++-x,dll, libgfortran-x.dll, libssp-x.dll, etc) that are built as part of gcc Danny That's correct. We have to find a way to install

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-04-29 Thread vvv at ru dot ru
--- Comment #11 from vvv at ru dot ru 2009-04-29 07:46 --- (In reply to comment #8) From config/i386/i386.c: /* AMD Athlon works faster when RET is not destination of conditional jump or directly preceded by other jump instruction. We avoid the penalty by inserting NOP just

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-04-29 Thread vvv at ru dot ru
--- Comment #12 from vvv at ru dot ru 2009-04-29 07:55 --- (In reply to comment #9) So that explains it, Use -Os or attribute cold if you want NOPs to be gone. But my measurements on Core 2 Duo P8600 show that push %ebp mov %esp,%ebp leave ret _faster_ then push %ebp mov

[Bug target/39565] Static variable leaves undefined symbol in object file

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-04-29 08:34 --- Subject: Bug 39565 Author: rguenth Date: Wed Apr 29 08:34:21 2009 New Revision: 146928 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=146928 Log: 2009-04-29 Anmol P. Paralkar an...@freescale.com PR

[Bug target/39947] Shared libgcc getting clobbered for multilib builds

2009-04-29 Thread jon_y at users dot sourceforge dot net
--- Comment #4 from jon_y at users dot sourceforge dot net 2009-04-29 08:37 --- (In reply to comment #3) (In reply to comment #2) The same problem will occur for all dll's (libstdc++-x,dll, libgfortran-x.dll, libssp-x.dll, etc) that are built as part of gcc Danny That's

[Bug c++/39862] [4.5 Regression] verify_eh_tree failed with -O2

2009-04-29 Thread reichelt at gcc dot gnu dot org
--- Comment #3 from reichelt at gcc dot gnu dot org 2009-04-29 08:58 --- Shorter testcase, which still includes map, though. It crashes with -O and above: == #includemap struct A { virtual ~A() {} }; struct B : A { virtual ~B() {

[Bug libstdc++/39909] non-TLS version of std::call_once causes terminate

2009-04-29 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2009-04-29 09:17 --- Jon, patch looks generally good to me, can you please send it to the mailing list for higher visibility? Then we can commit it and close this annoying issue once and for all ;) --

[Bug tree-optimization/39955] [4.5 Regression] struct-layout-1 test failures passing struct containing _Decimal32

2009-04-29 Thread matz at gcc dot gnu dot org
--- Comment #4 from matz at gcc dot gnu dot org 2009-04-29 09:22 --- I didn't enable it explicitely, but Janis neither (according to the testresults post), so it's probably default. But I did not use some other options, in particular the --with-cpu=default32, so I'm rechecking with

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2009-04-29 09:32 --- You are benchmarking something completely unrelated. What really matters is how code that has 4 branches/calls in one 16-byte block is able to predict all those branches. And Core2 similarly to various AMD CPUs is

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #14 from jakub at gcc dot gnu dot org 2009-04-29 10:12 --- Also, couldn't we use the information computed by compute_alignments and assume CODE_LABELs are aligned? Probably would need to add label_to_max_skip (rtx) function to final.c, so that not just label_to_alignment,

[Bug middle-end/39941] [4.5 Regression] ice in passes.c:execute_todo()

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-04-29 10:39 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/39941] [4.5 Regression] ice in passes.c:execute_todo()

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-04-29 10:39 --- Subject: Bug 39941 Author: rguenth Date: Wed Apr 29 10:39:26 2009 New Revision: 146948 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=146948 Log: 2009-04-29 Richard Guenther rguent...@suse.de PR

[Bug middle-end/39954] [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c

2009-04-29 Thread joseph at codesourcery dot com
--- Comment #10 from joseph at codesourcery dot com 2009-04-29 11:33 --- Subject: Re: [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c On Wed, 29 Apr 2009, matz at gcc dot gnu dot org wrote: The user should have the possibility to announce the

[Bug middle-end/39954] [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c

2009-04-29 Thread matz at gcc dot gnu dot org
--- Comment #11 from matz at gcc dot gnu dot org 2009-04-29 11:38 --- Thanks for the clarification. So there indeed is only one issue, that the temporary has an aligned type. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39954

[Bug middle-end/39666] spurious warning with ranged-switch statements

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-04-29 11:52 --- In C: int foo (int i) { int j; switch (i) { case -__INT_MAX__ - 1 ... -1: j = 6; break; case 0: j = 5; break; case 1 ... __INT_MAX__: j = 4; break; }

[Bug c++/39862] [4.5 Regression] verify_eh_tree failed with -O2

2009-04-29 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2009-04-29 12:33 --- Confirmed. Reduced testcase (crashes with -O): == struct A { virtual ~A() {} }; struct B : A { virtual ~B() { foo(); } void foo(); }; struct C : B { C(const C c) :

[Bug c++/35669] NULL (__null) not considered different from 0 with C++

2009-04-29 Thread bangerth at gmail dot com
--- Comment #10 from bangerth at gmail dot com 2009-04-29 12:51 --- There is really nothing much that can be done within the current C++ standard. In C, NULL is defined as (void*)0 which can be converted to any other pointer and so is clearly marked as a pointer. The compiler can

[Bug middle-end/39891] Bogus location given for warning, no warning at real location: dereferencing pointer �anonymous� does break strict-aliasing rules

2009-04-29 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2009-04-29 13:16 --- (In reply to comment #3) Note that getInt is completely inlined and there is no location involving that function available anymore :/ The difficulties of C++ and late diagnostics ... I wonder what Clang+LLVM

[Bug c++/39859] duplicated and unhelpful error for c:n (parser)

2009-04-29 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2009-04-29 13:21 --- Confirmed. -- manu at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug c++/35669] NULL (__null) not considered different from 0 with C++

2009-04-29 Thread l dot lunak at suse dot cz
--- Comment #11 from l dot lunak at suse dot cz 2009-04-29 13:21 --- (In reply to comment #10) As a consequence, since NULL can not in an obvious way be a pointer, there is no obvious warning that can be generated. Of course there is. NULL with gcc is not 0, 0L or (void*)0, it is

[Bug c++/39858] C++: expected primary-expression error could be more useful

2009-04-29 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2009-04-29 13:23 --- Confirmed. -- manu at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug target/36527] gcc 4.2.x generates wrong code for ARM target

2009-04-29 Thread ramana at gcc dot gnu dot org
--- Comment #9 from ramana at gcc dot gnu dot org 2009-04-29 13:48 --- 4.2.x is now closed. Since this appears to work on 4.3.1, could you confirm if this is still a problem with an eabi toolchain of more recent vintage ? -- ramana at gcc dot gnu dot org changed: What

[Bug tree-optimization/39955] [4.5 Regression] struct-layout-1 test failures passing struct containing _Decimal32

2009-04-29 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-04-29 13:50 --- (In reply to comment #5) Pff, I still can't reproduce the testsuite failures, but I can reproduce the ICE on the testcase from the initial comment. rs6000.c needs to handle SSA_NAMEs now. I'm currently

[Bug middle-end/39666] spurious warning with ranged-switch statements

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-04-29 13:54 --- Created an attachment (id=17778) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17778action=view) gcc44-pr39666.patch Fix I'm going to bootstrap/regtest soon. -- jakub at gcc dot gnu dot org changed:

[Bug libgcj/36658] Building gcj for arm linux from trunk (gcc 4.4.0): libjava/gcj/array.h:24: internal compiler error: verify_gimple failed

2009-04-29 Thread ramana at gcc dot gnu dot org
--- Comment #1 from ramana at gcc dot gnu dot org 2009-04-29 13:58 --- Could you check with a version of more recent vintage and provide more information like the svn revision number ? -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/39952] Inadequate gcc.dg/compat/struct-layout-1_generate.c

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-04-29 14:04 --- That's by design. Obviously there are so many possible combinations that you can't exhaustively test them all, that's why this test randomly chooses some. You can pass -n count to the generator to generate more (or

[Bug middle-end/39937] [4.5 Regression] Revision 146831 failed SPEC CPU 2006

2009-04-29 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2009-04-29 14:04 --- On Linux/x86-64, I got gcc -c -o pp_sort.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -O3 -ffast-math -funroll-loops -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 pp_sort.c pp_sort.c: In function 'S_qsortsv':

[Bug middle-end/39937] [4.5 Regression] Revision 146831 failed SPEC CPU 2006

2009-04-29 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2009-04-29 14:06 --- (In reply to comment #8) On Linux/x86-64, I got gcc -c -o pp_sort.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -O3 -ffast-math -funroll-loops -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 pp_sort.c pp_sort.c: In

[Bug middle-end/39937] [4.5 Regression] Revision 146831 failed SPEC CPU 2006

2009-04-29 Thread rguenther at suse dot de
--- Comment #10 from rguenther at suse dot de 2009-04-29 14:06 --- Subject: Re: [4.5 Regression] Revision 146831 failed SPEC CPU 2006 On Wed, 29 Apr 2009, hjl dot tools at gmail dot com wrote: --- Comment #8 from hjl dot tools at gmail dot com 2009-04-29 14:04 --- On

[Bug middle-end/39666] [4.3/4.4/4.5 Regression] spurious warning with ranged-switch statements

2009-04-29 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-04-29 14:07 --- This is a regression from 3.4.x to 4.0.x BTW. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/39937] [4.5 Regression] Revision 146831 failed SPEC CPU 2006

2009-04-29 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2009-04-29 14:10 --- (In reply to comment #10) 2009-04-28 Richard Guenther rguent...@suse.de * tree-vect-loop.c (get_initial_def_for_induction): Use correct types for pointer increment. That is before and

[Bug middle-end/39937] [4.5 Regression] Revision 146831 failed SPEC CPU 2006

2009-04-29 Thread rguenther at suse dot de
--- Comment #12 from rguenther at suse dot de 2009-04-29 14:12 --- Subject: Re: [4.5 Regression] Revision 146831 failed SPEC CPU 2006 On Wed, 29 Apr 2009, hjl dot tools at gmail dot com wrote: --- Comment #11 from hjl dot tools at gmail dot com 2009-04-29 14:10 --- (In

[Bug fortran/39286] Missing out-of-bounds diagnostic

2009-04-29 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2009-04-29 14:12 --- I wonder if this not a duplicate of pr36683. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39286

[Bug middle-end/39957] New: ICE : in expand_scalar_variables_expr, at graphite.c:4262

2009-04-29 Thread linuxl4 at sohu dot com
gcc 4.5 r146933 gcc -std=gnu99 -O2 -floop-block -c matmul_c4.c /svn/compilers/gcc/libgfortran/generated/matmul_c4.c: In function 'matmul_c4': /svn/compilers/gcc/libgfortran/generated/matmul_c4.c:79: internal compiler error: in expand_scalar_variables_expr, at graphite.c:4262 Please submit a

[Bug middle-end/39666] [4.3/4.4/4.5 Regression] spurious warning with ranged-switch statements

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-04-29 14:17 --- With -O2 VRP should (since 4.4) fix this as well. That said, newer GCC no longer need a default label. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39666

[Bug fortran/39286] Missing out-of-bounds diagnostic

2009-04-29 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2009-04-29 14:19 --- I have modified the code referenced in pr36683 as: PROGRAM calls IMPLICIT NONE INTEGER :: a(2), b(3), c(6), n , i c = myfunc(a,b) WRITE(*,*) c:,c!! gives c: 1 2 3 4 5 6 n = 5 c = 0

[Bug middle-end/39932] [4.5 Regression] Revision 146831 caused many test failures

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-04-29 14:20 --- The only expected fails left should now be FAIL: gcc.dg/pr34989-1.c (internal compiler error) FAIL: gcc.dg/pr34989-1.c (internal compiler error) FAIL: gcc.dg/pr34989-1.c (test for excess errors) FAIL:

[Bug fortran/36683] -fbounds-check failure for allocated array and spread

2009-04-29 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2009-04-29 14:20 --- pr39286 is a duplicate of this one. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36683

[Bug middle-end/39957] ICE : in expand_scalar_variables_expr, at graphite.c:4262

2009-04-29 Thread linuxl4 at sohu dot com
--- Comment #1 from linuxl4 at sohu dot com 2009-04-29 14:21 --- Created an attachment (id=17779) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17779action=view) the source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39957

[Bug middle-end/39958] New: [4.5 Regression] OMP tasking creates invalid gimple

2009-04-29 Thread rguenth at gcc dot gnu dot org
FAIL: libgomp.c++/task-4.C -O (internal compiler error) FAIL: libgomp.c++/task-4.C -O (internal compiler error) FAIL: libgomp.c++/task-4.C -O (test for excess errors) FAIL: libgomp.c++/task-4.C -O (test for excess errors)

[Bug c/39959] New: [4.5 Regression] IMA is broken

2009-04-29 Thread rguenth at gcc dot gnu dot org
FAIL: gcc.dg/pr34989-1.c (internal compiler error) FAIL: gcc.dg/pr34989-1.c (internal compiler error) FAIL: gcc.dg/pr34989-1.c (test for excess errors) FAIL: gcc.dg/pr34989-1.c (test for excess errors) /space/rguenther/src/svn/trunk/gcc/testsuite/gcc.dg/pr34989-2.c: In function 'syslogd_main':^M

[Bug tree-optimization/39960] New: [4.5 Regression] struct-reorg is broken

2009-04-29 Thread rguenth at gcc dot gnu dot org
FAIL: gcc.dg/struct/wo_prof_double_malloc.c (internal compiler error) FAIL: gcc.dg/struct/wo_prof_double_malloc.c (internal compiler error) FAIL: gcc.dg/struct/wo_prof_double_malloc.c (test for excess errors) FAIL: gcc.dg/struct/wo_prof_double_malloc.c (test for excess errors)

[Bug middle-end/39932] [4.5 Regression] Revision 146831 caused many test failures

2009-04-29 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2009-04-29 14:27 --- Three actually. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39958 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39959 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39960 Fixed. -- rguenth at gcc dot gnu dot org

[Bug middle-end/39958] [4.5 Regression] OMP tasking creates invalid gimple

2009-04-29 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39958

[Bug tree-optimization/39960] [4.5 Regression] struct-reorg is broken

2009-04-29 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39960

[Bug c/39959] [4.5 Regression] IMA is broken

2009-04-29 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39959

[Bug fortran/36754] Compile-time bound-checking for allocatable arrays with known bonds

2009-04-29 Thread dominiq at lps dot ens dot fr
--- Comment #10 from dominiq at lps dot ens dot fr 2009-04-29 14:28 --- This may be a duplicate of PR36683(?). It is not. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36754

  1   2   3   >