[Bug libstdc++/39796] cin/cout/cerr constructors should run at high priority when possible

2009-04-17 Thread ian at airs dot com
--- Comment #2 from ian at airs dot com 2009-04-18 05:40 --- You are much more familiar with the library than I am. I don't know if this issue arises anywhere else. cin/cout/cerr is sort of an obvious case. It didn't really occur to me that there might be similar issues elsewhere. -

[Bug regression/35671] GCC 4.4.x vs. 4.2.x performance regression

2009-04-17 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-04-18 02:24 --- (In reply to comment #4) > Test configuration: > > Software: Linux kernel 2.6.28.9 x86, GCC 4.2.4, GCC 4.4.0 RC, > http://www.rarlab.com/rar/unrarsrc-3.8.5.tar.gz > > Hardware: AMD64 Dual Core CPU 5600, 1MB x 2 lev

[Bug regression/35671] GCC 4.4.x vs. 4.2.x performance regression

2009-04-17 Thread t dot artem at mailcity dot com
--- Comment #4 from t dot artem at mailcity dot com 2009-04-18 01:44 --- Test configuration: Software: Linux kernel 2.6.28.9 x86, GCC 4.2.4, GCC 4.4.0 RC, http://www.rarlab.com/rar/unrarsrc-3.8.5.tar.gz Hardware: AMD64 Dual Core CPU 5600, 1MB x 2 level 2 cache RAM: DDR2 800MHz 4GB un

[Bug libstdc++/39802] std::num_get fails to parse negative zero input correctly

2009-04-17 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-04-18 01:17 --- Oops, apparently we never parsed correctly negative values for unsigned. The fix is simple. -- paolo dot carlini at oracle dot com changed: What|Removed |Added --

[Bug middle-end/39625] [4.5 Regression] Revision 145338 breaks ability to build Ada

2009-04-17 Thread rob1weld at aol dot com
usr/local/info --disable-stage1-checking --enable-checking=release --with-gmp=/usr/local --with-mpfr=/usr/local Thread model: posix gcc version 4.5.0 20090417 (experimental) [trunk revision 146277] (GCC) Thanks, Rob PS: The middle-end now permits the _build_ of gcc with the Language Ada selected

[Bug c++/39803] Bogus 'unused value' warning on declarations of non-POD arrays

2009-04-17 Thread lcwu at gcc dot gnu dot org
--- Comment #1 from lcwu at gcc dot gnu dot org 2009-04-17 23:07 --- This bogus warning started to show up after the fix for PR c++/39551 was submitted (at revision 146132). And the root cause for the issue is that C++ front-end generates the following code to initialize the local 'pair'

[Bug c++/39803] New: Bogus 'unused value' warning on declarations of non-POD arrays

2009-04-17 Thread lcwu at gcc dot gnu dot org
When compiling the following program using the mainline GCC (4.5) with -Wunused flag, we get a bogus "unused value" warning on the array declaration: $ cat Wunused-14.C #include using std::pair; int foo() { pair components[3]; components[0].first = 0; return 0; } $ g++ -Wunused -c Wunuse

[Bug fortran/31243] truncating strings longer than 2**32 characters

2009-04-17 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2009-04-17 22:42 --- Compiling the code in comment #1 gives: [ibook-dhum] f90/bug% gfc42 pr31243.f90 pr31243.f90:12.15: print *, len(ch) 1 Error: Result of LEN overflows its kind at (1) It compiles with -fdefault-intege

[Bug c/39383] sizeof object with zero-length array ignores initializer

2009-04-17 Thread anmol at freescale dot com
--- Comment #10 from anmol at freescale dot com 2009-04-17 22:39 --- I am working on this problem and see that for generic ELF OS's, defining ASM_DECLARE_OBJECT_NAME (gcc/config/elfos.h) to use the size of the initializer (as against the size of the type) to emit the true size in the .si

[Bug libstdc++/39802] New: std::num_get fails to pase negative zero input correctly

2009-04-17 Thread ritter at roguewave dot com
A call to std::num_get fails to parse negative values (specifically -0 in my example). /** Begin Test **/ #include #include #include int main () { unsigned long val = 1; std::stringbuf sb ("-0"); std::istream is (&sb); std::ios_base::iostate err (std::ios_base::goodbit);

[Bug target/38627] SuperH libgcc.a lacks .note.GNU-stack markings in math funcs

2009-04-17 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2009-04-17 22:20 --- Subject: Bug 38627 Author: kkojima Date: Fri Apr 17 22:20:40 2009 New Revision: 146297 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146297 Log: PR target/38627 * config/sh/lib1funcs.asm [__

[Bug fortran/39667] I/O possibly unneccesary truncations

2009-04-17 Thread jb at gcc dot gnu dot org
--- Comment #1 from jb at gcc dot gnu dot org 2009-04-17 22:18 --- Confirmed, assigning to myself. -- jb at gcc dot gnu dot org changed: What|Removed |Added Assig

[Bug fortran/31243] truncating strings longer than 2**32 characters

2009-04-17 Thread jb at gcc dot gnu dot org
--- Comment #6 from jb at gcc dot gnu dot org 2009-04-17 22:13 --- I'm not sure how this could be fixed in a "proper way" without breaking the procedure call ABI. Gfortran follows pretty much every other Fortran compiler in providing character length as a hidden argument of type default

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-04-17 22:06 --- Best to CC Zadeck on DSE problems. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

2009-04-17 Thread amonakov at gcc dot gnu dot org
--- Comment #2 from amonakov at gcc dot gnu dot org 2009-04-17 21:55 --- I attempted to investigate the miscompilation on the 4.4 branch. The problem seems to appear in dse2 pass. Basically, after encountering 313 dx:DI=ax:DI+0x4 187 {[di:DI+dx:DI]=[di:DI+dx:DI]<<0x1;clobber flags

[Bug c++/39778] Using DJGPP to compile CPP file and get failure

2009-04-17 Thread andris dot pavenis at iki dot fi
--- Comment #2 from andris dot pavenis at iki dot fi 2009-04-17 21:15 --- One needs additional information (like preprocessed source, used operating system etc.) to do anything with this bug report. See page http://gcc.gnu.org/bugs.html (already mentioned in GCC error message) for more

[Bug other/31567] cc1, cc1plus, etc. don't support @file mechanism

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

[Bug other/31567] cc1, cc1plus, etc. don't support @file mechanism

2009-04-17 Thread dnovillo at gcc dot gnu dot org
--- Comment #4 from dnovillo at gcc dot gnu dot org 2009-04-17 21:13 --- Fixed. -- dnovillo at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGN

[Bug other/31567] cc1, cc1plus, etc. don't support @file mechanism

2009-04-17 Thread dnovillo at gcc dot gnu dot org
--- Comment #3 from dnovillo at gcc dot gnu dot org 2009-04-17 21:12 --- Subject: Bug 31567 Author: dnovillo Date: Fri Apr 17 21:11:46 2009 New Revision: 146292 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146292 Log: PR 31567 * gcc.c (create_at_file): New.

[Bug tree-optimization/39799] [4.3/4.4/4.5 Regression] missing 'may be used uninitialized' warning

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-17 20:55 --- This is because we zero-initialize uninitialized variables during inlining. Honza, do you remember why we do this? /* By inlining function having uninitialized variable, we might extend the li

[Bug other/31567] cc1, cc1plus, etc. don't support @file mechanism

2009-04-17 Thread dnovillo at gcc dot gnu dot org
--- Comment #2 from dnovillo at gcc dot gnu dot org 2009-04-17 20:51 --- Proposed patch: http://gcc.gnu.org/ml/gcc-patches/2009-04/msg01379.html -- dnovillo at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/39801] New: Builtins are assumed not to throw exceptions, even with -fnon-call-exceptions

2009-04-17 Thread mmitchel at gcc dot gnu dot org
Some builtin functions are marked as not throwing exceptions, even when -fnon-call-exceptions is in use. As a result, the compiler will assume these functions will not throw exceptions -- but they might. For example, the buitin va_arg might cause a SEGV, which would become an exception, if the po

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-04-17 20:49 --- g++-4.3 -S t.C t.C:21: error: could not convert template argument ‘MatrixBase::M’ to ‘unsigned int’ t.C:21: error: could not convert template argument ‘MatrixBase::N’ to ‘unsigned int’ t.C: In member function ‘const

[Bug fortran/39800] New: Rejects PRIVATE TYPE as compont of local type declaration

2009-04-17 Thread burnus at gcc dot gnu dot org
Reported by Alexei Matveev at http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/ed70666b0c90b655 * * * The following does not make sense: MODULE m TYPE, PRIVATE :: type; ... CONTAINS SUBROUTINE foo() TYPE :: bar TYPE(type) :: x The last line is rejected with "

[Bug regression/39799] New: missing 'may be used uninitialized' warning

2009-04-17 Thread alexvod at google dot com
The following code: inline int foo(int x) { return x; } static void bar(int a, int *ptr) { do { int b; if (b < 40) { ptr[0] = b; } b += 1; ptr++; } while (--a != 0); } void foobar(int a, int *ptr) { bar(foo(a), ptr); } generates correct warning when compi

[Bug c++/39798] New: would like flag to disable constructors for built-in types

2009-04-17 Thread kraftche at cae dot wisc dot edu
In C++, the statement 'k = int()' will zero 'k'. This somewhat inconsistent behavior (e.g. initialize a struct with a default constructor is a no-op) is somewhat annoying because it results in all STL containers zeroing their contents. I've encountered a few rare cases where this resulted in a si

[Bug target/27263] armv5te-linux-gnueabi-gcc-4.1 fails to compile libquicktime-0.9.7-0.4/plugins/opendivx/encore50/text_code_mb.c

2009-04-17 Thread ramana at gcc dot gnu dot org
--- Comment #8 from ramana at gcc dot gnu dot org 2009-04-17 16:41 --- As per comment above appears fixed in all release branches today. -- ramana at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
--- Comment #6 from stephanemarcotte at 3d-p dot com 2009-04-17 15:45 --- the template also declares the methods M() and N(), when M, N are also template parameters. (The code snippet is obviously buggy.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39797

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
--- Comment #5 from stephanemarcotte at 3d-p dot com 2009-04-17 15:41 --- Also, if I remove the derivation from the MatrixBase abstract base class, the error disappears. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39797

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-04-17 15:40 --- I can reproduce only with 4_2-branch (no longer maintained) and 4_3-branch. I can't with 4_4-branch and mainline. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
--- Comment #3 from stephanemarcotte at 3d-p dot com 2009-04-17 15:38 --- Isolate to the method: Matrix::Matrix & operator*=( double f ) ... The template takes 2 args, but the above makes g++ crash. If I take out one parameter (e.g., Matrix), then I get a compiler error as expected.

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
--- Comment #2 from stephanemarcotte at 3d-p dot com 2009-04-17 15:27 --- Created an attachment (id=17652) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17652&action=view) the .ii file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39797

[Bug c++/39797] Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
--- Comment #1 from stephanemarcotte at 3d-p dot com 2009-04-17 15:27 --- Created an attachment (id=17651) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17651&action=view) Source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39797

[Bug c++/39797] New: Segmentation fault g++

2009-04-17 Thread stephanemarcotte at 3d-p dot com
Version Info: Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-inc

[Bug libstdc++/39796] cin/cout/cerr constructors should run at high priority when possible

2009-04-17 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-04-17 15:06 --- I see. I would be tempted to ask you to propose a fix at once, seems pretty simple, basically a bit of configury and very few lines of actual code. However, I wonder if we have something similar elsewhere, I se

[Bug libstdc++/39796] New: cin/cout/cerr constructors should run at high priority when possible

2009-04-17 Thread ian at airs dot com
libstdc++ ensures that cin/cout/cerr are constructed before they are used, but the scheme fails when using constructor priorities. Constructors with a priority are run before constructors without a priority, which is the appropriate behaviour. However, this means that this program: #include voi

[Bug ada/35953] Socket stream subprograms incorrectly handling null arrays

2009-04-17 Thread charlet at gcc dot gnu dot org
--- Comment #2 from charlet at gcc dot gnu dot org 2009-04-17 13:41 --- Fixed on trunk -- charlet at gcc dot gnu dot org changed: What|Removed |Added Status|A

[Bug ada/35953] Socket stream subprograms incorrectly handling null arrays

2009-04-17 Thread charlet at gcc dot gnu dot org
--- Comment #1 from charlet at gcc dot gnu dot org 2009-04-17 13:39 --- Subject: Bug 35953 Author: charlet Date: Fri Apr 17 13:39:10 2009 New Revision: 146267 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146267 Log: 2009-04-17 Thomas Quinot PR ada/35953 *

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-17 12:19 --- -fno-ivopts also fixes this. The unrolling happening on the RTL level for the loop in foo() somehow is broken. We end up with (gdb) p a $1 = {0, 1, 4, 2, 10, 12, 24, 44, 72, 18, 20, 22, 24, 26, 28, 50} (gdb) p ref

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

2009-04-17 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P5 |P3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39794

[Bug fortran/39795] New: Support round-to-zero in Fortran front-end

2009-04-17 Thread uweigand at gcc dot gnu dot org
On the SPU, all single-precision floating-point arithmetic always takes place in round-to-zero rounding mode. The Fortran front-end always assumes round-to-nearest mode. This causes a number of issues: - Both real->string and string->real transformations (e.g. printf, scanf) operate in round-t

[Bug target/14202] [arm] Thumb __builtin_setjmp not interworking safe

2009-04-17 Thread ramana at gcc dot gnu dot org
--- Comment #13 from ramana at gcc dot gnu dot org 2009-04-17 11:07 --- Created an attachment (id=17650) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17650&action=view) Patch being tested Here is a rather hackish patch that I'm testing. It looks correct so far with the case of bu

[Bug libstdc++/38132] basic_string.tcc methods not declared inline

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-04-17 10:50 --- Thus, wontfix. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|U

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

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

[Bug tree-optimization/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above

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

[Bug tree-optimization/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2009-04-17 10:29 --- Subject: Bug 39746 Author: rguenth Date: Fri Apr 17 10:29:26 2009 New Revision: 146240 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146240 Log: 2009-04-17 Richard Guenther PR tree-optimizatio

[Bug libstdc++/38132] basic_string.tcc methods not declared inline

2009-04-17 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2009-04-17 10:27 --- Of course s/extern inline/extern template -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38132

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops

2009-04-17 Thread amonakov at gcc dot gnu dot org
-- amonakov at gcc dot gnu dot org changed: What|Removed |Added Known to fail||4.4.0 4.5.0 Known to work||4.3.2

[Bug libstdc++/38132] basic_string.tcc methods not declared inline

2009-04-17 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-04-17 10:12 --- Frankly, I don't think this is an issue. What we really want, is that all inline functions get inlined anyway, debug mode or not, and this is correctly happening, as far as I can see. Out of line functions are

[Bug middle-end/39794] New: Miscompile with -O2 -funroll-loops

2009-04-17 Thread abel at gcc dot gnu dot org
The following testcase aborts with -O2 -funroll-loops, but passes with plain -O2 for me on today's trunk. --cut here extern void abort(); void foo(int *a, int n) { int i; for (i = 0; i < n; i++) { a[i] *= 2; a[i+1] = a[i-1] + a[i-2]; } } enum {N = 16}; int a[N]; int ref[N

[Bug libstdc++/38132] basic_string.tcc methods not declared inline

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-04-17 09:23 --- We had this for a short time but then see 2009-02-24 Richard Guenther PR c++/39242 * pt.c (instantiate_decl): Do not instantiate extern, non-inline declared functions. thus, if the funct

[Bug c++/37949] static initialisation through pointer deferred until run time

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-04-17 09:18 --- This would be "inlining" of static-initialization-and-destruction functions if they get optimized to return a constant initializer. It's not easy to do as they cannot be easily removed late in the compilation. Of c

[Bug c++/39786] [4.3/4.4/4.5 Regression] Qualified name lookup through different numbers of using directives

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-17 09:14 --- Confirmed. The code was accepted with 3.3.6 -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/39792] g++.dg/ext/complit11.C failed

2009-04-17 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-04-17 08:54 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug testsuite/39792] g++.dg/ext/complit11.C failed

2009-04-17 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-04-17 08:47 --- Subject: Bug 39792 Author: jakub Date: Fri Apr 17 08:46:52 2009 New Revision: 146223 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146223 Log: PR testsuite/39792 * g++.dg/ext/complit11.C: Add

[Bug tree-optimization/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above

2009-04-17 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2009-04-17 08:26 --- Ah. I see what goes on then. The new logic assumes that GOMP_barrier does not change shrd (which is a local non-address-taken static variable in main, accessed from the OMP clone main.omp_fn.0). This is of cours

[Bug ada/39793] New: gnatxref generates incomplete output for overloaded operator

2009-04-17 Thread david at midoan dot com
This bug report only concerns gnatxref not the gnat compiler. Given the following : package bug_op is type Vector is array (1 .. 1) of Integer; function "&"(A, B : Vector) return Vector; end bug_op; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; package body bug_op is V : Vector; functio