[Bug libfortran/40190] DATE_AND_TIME returns GMT hour sometimes with OpenMP

2009-05-18 Thread jb at gcc dot gnu dot org
--- Comment #3 from jb at gcc dot gnu dot org 2009-05-19 06:42 --- Assigning to myself. HJL is right, we should use the _r functions if available, if not we must protect the calls with a mutex. -- jb at gcc dot gnu dot org changed: What|Removed |A

[Bug ada/40185] Segmentation fault on legal program

2009-05-18 Thread ludovic at ludovic-brenta dot org
--- Comment #1 from ludovic at ludovic-brenta dot org 2009-05-19 06:30 --- There was a typo in the original program that I mistakenly corrected. This typo is the trigger for the bug: with Ada.Unchecked_Conversion; package Essai is type Attributed_Chararcter is record -- line 3

[Bug libfortran/40187] c_f_pointer with stride in SHAPE

2009-05-18 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2009-05-19 05:06 --- (In reply to comment #1) > Can you attach a working example? I failed to apply your patch and figure out > which diffed file is what. > Hi Tobias, It's a reversed diff! Hi Thomas, Works for me on FC9/x86_64 - what

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #24 from hjl dot tools at gmail dot com 2009-05-19 02:37 --- (In reply to comment #23) > Subject: Re: [4.5 Regression] Revision 147596 breaks bootstrap > > I still feel that if this patch is put in, we eventually will have the same > discussion, as the compiler gets smar

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread meissner at linux dot vnet dot ibm dot com
--- Comment #23 from meissner at linux dot vnet dot ibm dot com 2009-05-19 02:33 --- Subject: Re: [4.5 Regression] Revision 147596 breaks bootstrap On Tue, May 19, 2009 at 12:38:08AM -, hjl dot tools at gmail dot com wrote: > > > --- Comment #22 from hjl dot tools at gmail

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #11 from aoliva at gcc dot gnu dot org 2009-05-19 01:32 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 01:32:09 2009 New Revision: 147697 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147697 Log: PR other/40159 * Makefile.tpl (all): Don't assume gcc-bootstra

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #10 from aoliva at gcc dot gnu dot org 2009-05-19 01:31 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 01:31:12 2009 New Revision: 147696 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147696 Log: PR other/40159 * Makefile.tpl (all): Don't assume gcc-bootstra

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #9 from aoliva at gcc dot gnu dot org 2009-05-19 01:30 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 01:30:35 2009 New Revision: 147695 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147695 Log: PR other/40159 * Makefile.tpl (all): Don't assume gcc-bootstrap

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #22 from hjl dot tools at gmail dot com 2009-05-19 00:38 --- Another patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01187.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40172

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #8 from aoliva at gcc dot gnu dot org 2009-05-19 00:07 --- Fixed. -- aoliva at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #7 from aoliva at gcc dot gnu dot org 2009-05-19 00:05 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 00:04:57 2009 New Revision: 147685 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147685 Log: PR other/40159 * Makefile.tpl (all): Don't end with uncondition

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #6 from aoliva at gcc dot gnu dot org 2009-05-19 00:04 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 00:04:17 2009 New Revision: 147684 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147684 Log: PR other/40159 * Makefile.tpl (all): Don't end with uncondition

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #21 from pinskia at gcc dot gnu dot org 2009-05-19 00:02 --- (In reply to comment #16) > Just to chime in, the warning is a useful warning, but the way rs6000 and mips > define FRAME_GROWS_DOWNWARD, the test in toplev.c will never succeed. Yes and that is correct because

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #5 from aoliva at gcc dot gnu dot org 2009-05-19 00:01 --- Subject: Bug 40159 Author: aoliva Date: Tue May 19 00:01:17 2009 New Revision: 147683 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147683 Log: PR other/40159 * Makefile.tpl (all): Don't end with uncondition

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread meissner at linux dot vnet dot ibm dot com
--- Comment #20 from meissner at linux dot vnet dot ibm dot com 2009-05-18 23:48 --- David, as I said in my message, this patch is just papering over the problem. While we might want to install this patch temporarily, to get the mips and rs6000 building again, I think a better solution

[Bug rtl-optimization/40105] [4.3/4.4 Regression] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-18 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-05-18 23:41 --- Thanks for confirmation! I'll ask if the r146829 patch is safe to backport for 4.[34] branches in the gcc list, after the tests on x86 and powerpc. -- kkojima at gcc dot gnu dot org changed: What

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread daney at gcc dot gnu dot org
--- Comment #19 from daney at gcc dot gnu dot org 2009-05-18 23:32 --- Created an attachment (id=17890) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17890&action=view) Proposed fix. I am testing this patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40172

[Bug c++/40192] [4.4/4.5 Regression] Unable to use std::vector with typedef'd array types

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-05-18 23:18 --- Fixed for 4.4.1. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/40192] [4.4/4.5 Regression] Unable to use std::vector with typedef'd array types

2009-05-18 Thread paolo at gcc dot gnu dot org
--- Comment #3 from paolo at gcc dot gnu dot org 2009-05-18 23:17 --- Subject: Bug 40192 Author: paolo Date: Mon May 18 23:16:48 2009 New Revision: 147681 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147681 Log: 2009-05-18 Paolo Carlini PR libstdc++/40192 *

[Bug c++/40192] [4.4/4.5 Regression] Unable to use std::vector with typedef'd array types

2009-05-18 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2009-05-18 23:16 --- Subject: Bug 40192 Author: paolo Date: Mon May 18 23:16:20 2009 New Revision: 147680 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147680 Log: 2009-05-18 Paolo Carlini PR libstdc++/40192 *

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread manu at gcc dot gnu dot org
--- Comment #18 from manu at gcc dot gnu dot org 2009-05-18 23:13 --- The following patch moves the warning out of Wextra. I haven't tested it, though. Index: gcc/doc/invoke.texi === --- gcc/doc/invoke.texi (revision 14767

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #17 from hjl dot tools at gmail dot com 2009-05-18 23:03 --- (In reply to comment #16) > Just to chime in, the warning is a useful warning, but the way rs6000 and mips > define FRAME_GROWS_DOWNWARD, the test in toplev.c will never succeed. > > 5) Move FRAME_GROWS_DOWNWAR

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread meissner at linux dot vnet dot ibm dot com
--- Comment #16 from meissner at linux dot vnet dot ibm dot com 2009-05-18 22:56 --- Just to chime in, the warning is a useful warning, but the way rs6000 and mips define FRAME_GROWS_DOWNWARD, the test in toplev.c will never succeed. I can see a couple of ways to fix this: 1) Revert

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread daney at gcc dot gnu dot org
--- Comment #15 from daney at gcc dot gnu dot org 2009-05-18 22:35 --- And yet another place: ../../trunk/gcc/config/mips/sb1.md:159: error: logical ‘or’ of collectively exhaustive tests is always true ../../trunk/gcc/config/mips/sb1.md:159: error: logical ‘or’ of collectively exhaustiv

[Bug c++/40192] [4.4/4.5 Regression] Unable to use std::vector with typedef'd array types

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-18 22:34 --- I'll fix it momentarily. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/38064] [c++0x] operator== doesn't work for enum classes

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-05-18 22:12 --- *** Bug 40193 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/40193] No built-in comparison operators for scoped enums (C++0x)

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-18 22:12 --- *** This bug has been marked as a duplicate of 38064 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

[Bug libfortran/40190] DATE_AND_TIME returns GMT hour sometimes with OpenMP

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-05-18 22:11 --- date_and_time isn't thread-safe. It should use gmtime_r and localtime_r if they are available. -- hjl dot tools at gmail dot com changed: What|Removed |Added --

[Bug c++/40193] New: No built-in comparison operators for scoped enums (C++0x)

2009-05-18 Thread frabar666 at gmail dot com
On trunk (also seen in gcc-4.4.0), gcc doesn't compile this snippet: enum class E { A }; bool foo() { return E::A == E::A; } in C++0x mode (cc1plus -quiet -std=c++0x enumtest.cpp -o /tmp/enumtest.s), giving this erro

[Bug libfortran/40187] c_f_pointer with stride in SHAPE

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-18 21:20 --- Can you attach a working example? I failed to apply your patch and figure out which diffed file is what. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40187

[Bug fortran/40190] DATE_AND_TIME returns GMT hour sometimes with OpenMP

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-18 21:12 --- Confirm. I looked at the source code, but I don't see why it can happen, but it does. -- burnus at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c/40172] [4.5 Regression] Revision 147596 breaks bootstrap

2009-05-18 Thread daney at gcc dot gnu dot org
--- Comment #14 from daney at gcc dot gnu dot org 2009-05-18 21:10 --- For the record: This affects mips64-linux as well. -- daney at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40192] New: Unable to use std::vector with typedef'd array types

2009-05-18 Thread coleb at eyesopen dot com
The following code will not compile in gcc 4.3.2 on Ubuntu 8.10 #include typedef float float4[4]; int main() { std::vector vals; } I get the following compilation error: /usr/include/c++/4.3/bits/stl_construct.h: In function ‘void std::_Destroy(_Tp*) [with _Tp = float [4]]’: /usr/include/c++

[Bug c/40189] gcc 4.4.0 incorrectly folds add-as-comparison

2009-05-18 Thread mat at lcs dot mit dot edu
--- Comment #3 from mat at lcs dot mit dot edu 2009-05-18 20:53 --- Fair enough, thanks (this came up running a compiler test suite that checks even undefined edge cases). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40189

[Bug target/40191] fails to build a cross-compiler in-tree

2009-05-18 Thread rmh at gcc dot gnu dot org
--- Comment #2 from rmh at gcc dot gnu dot org 2009-05-18 20:45 --- Created an attachment (id=17889) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17889&action=view) patch 2009-05-18 Robert Millan * acx.m4: Fix ${host_subdir} initialization for libgcc. -- http://gcc.gnu.or

[Bug target/40191] fails to build a cross-compiler in-tree

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-18 20:43 --- I don't know that many folks who build in the source directory :). -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/40191] New: fails to build a cross-compiler in-tree

2009-05-18 Thread rmh at gcc dot gnu dot org
I found this when building a i586-mingw32 cross-compiler directly in srcdir. Build fails with: make[2]: Entering directory `/tmp/trunk/i586-mingw32msvc/libgcc' Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop.

[Bug fortran/40190] New: DATE_AND_TIME returns GMT hour sometimes with OpenMP

2009-05-18 Thread longb at cray dot com
Test case: program testhour use omp_lib integer :: h(1000), h1(1000), bins(0:23), v(8) call omp_set_num_threads(4) print *, "Running on",omp_get_max_threads(),"threads and",omp_get_num_procs(),"procs." !$omp parallel do schedule(STATIC,250) do i=1,1000 call date_and_time(values=v) h(i) = v

[Bug c/40189] gcc 4.4.0 incorrectly folds add-as-comparison

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-05-18 19:48 --- INT_MIN + any number is never going to be zero because INT_MIN = - INT_MAX -1. Also signed integer overflow is undefined which gives that the above. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40189

[Bug c/40189] gcc 4.4.0 incorrectly folds add-as-comparison

2009-05-18 Thread schwab at linux-m68k dot org
--- Comment #1 from schwab at linux-m68k dot org 2009-05-18 19:47 --- Not a bug. If arg0 is negative you get undefined behavior due to overflow. Use -fwrapv to get wrapping semantics. -- schwab at linux-m68k dot org changed: What|Removed |Added -

[Bug c/40189] New: gcc 4.4.0 incorrectly folds add-as-comparison

2009-05-18 Thread mat at lcs dot mit dot edu
This code: int foo(int arg0) { if ((-2147483647 - 1) + arg0) return 20; else return 11; } when compiled with gcc-4.4.0 at -O2 or higher, simply returns 20 unconditionally: $ ~/x86-gcc4/bin/gcc -m32 -O2 -S ~/baz.c -o /dev/tty .file "baz.c" .text .p2align 4,,1

[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org
--- Comment #6 from dodji at gcc dot gnu dot org 2009-05-18 19:29 --- Fixed in 4.5, 4.4 and 4.3. -- dodji at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org
--- Comment #5 from dodji at gcc dot gnu dot org 2009-05-18 19:26 --- Subject: Bug 40109 Author: dodji Date: Mon May 18 19:26:41 2009 New Revision: 147676 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147676 Log: Fix for PR debug/40109 gcc/ChangeLog: PR debug/40109 * dwarf2out

[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org
--- Comment #4 from dodji at gcc dot gnu dot org 2009-05-18 19:24 --- Subject: Bug 40109 Author: dodji Date: Mon May 18 19:24:17 2009 New Revision: 147675 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147675 Log: Candidate Fix for PR debug/40109 gcc/ChangeLog: PR debug/40109 *

[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org
--- Comment #3 from dodji at gcc dot gnu dot org 2009-05-18 19:20 --- Subject: Bug 40109 Author: dodji Date: Mon May 18 19:19:52 2009 New Revision: 147674 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147674 Log: Fix for PR debug/40109 gcc/ChangeLog: PR debug/40109 * dwarf2out

[Bug target/40129] M16C invalid shift count used by pack_d -> ashldi3

2009-05-18 Thread dj at redhat dot com
--- Comment #4 from dj at redhat dot com 2009-05-18 19:16 --- Yes, those two changes are the fix you need. However, those fixes were over three years ago, so I consider this bug "already fixed". If you agree, please close this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40

[Bug middle-end/39976] [4.5 Regression] Big sixtrack degradation on powerpc 32/64 after revision r146817

2009-05-18 Thread pthaugen at gcc dot gnu dot org
-- pthaugen at gcc dot gnu dot org changed: What|Removed |Added CC||pthaugen at gcc dot gnu dot |

[Bug libfortran/40187] New: c_f_pointer with stride in SHAPE

2009-05-18 Thread tkoenig at gcc dot gnu dot org
Using a SHAPE with stride doesn't work with c_f_pointer doesn't work (modified test case from the testsuite): $ diff -u c_f_pointer_shape_tests_4.f03 ~/gcc/trunk/gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2.f03 --- c_f_pointer_shape_tests_4.f03 2009-05-18 19:55:36.0 +0200 +++

[Bug target/39079] MIPS: __builtin___clear_cache() broken on SMP ISA_HAS_SYNCI systems.

2009-05-18 Thread daney at gcc dot gnu dot org
--- Comment #1 from daney at gcc dot gnu dot org 2009-05-18 17:39 --- I am working on a patch. -- daney at gcc dot gnu dot org changed: What|Removed |Added Assign

[Bug middle-end/40028] RFE - Add GPU acceleration library to gcc

2009-05-18 Thread rob1weld at aol dot com
--- Comment #2 from rob1weld at aol dot com 2009-05-18 17:36 --- (In reply to comment #1) > Yes GPU libraries would be nice but this needs a lot of work to begin with. > First you have to support the GPUs. This also amounts to doubling the > support. If you really want them, since this

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

2009-05-18 Thread hjl at gcc dot gnu dot org
--- Comment #48 from hjl at gcc dot gnu dot org 2009-05-18 17:21 --- Subject: Bug 39942 Author: hjl Date: Mon May 18 17:21:13 2009 New Revision: 147671 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147671 Log: 2009-05-18 H.J. Lu PR target/39942 * config/i386

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-18 16:59 --- Comment #0 is fixed by the following one-liner patch: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 147663) +++ gcc/fortran/

[Bug testsuite/39907] Aligned access to unaligned address

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2009-05-18 16:58 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug testsuite/39907] Aligned access to unaligned address

2009-05-18 Thread hjl at gcc dot gnu dot org
--- Comment #8 from hjl at gcc dot gnu dot org 2009-05-18 16:56 --- Subject: Bug 39907 Author: hjl Date: Mon May 18 16:56:42 2009 New Revision: 147669 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147669 Log: 2009-05-18 H.J. Lu PR testsuite/39907 * gcc.targe

[Bug testsuite/39907] Aligned access to unaligned address

2009-05-18 Thread hjl at gcc dot gnu dot org
--- Comment #7 from hjl at gcc dot gnu dot org 2009-05-18 16:54 --- Subject: Bug 39907 Author: hjl Date: Mon May 18 16:54:31 2009 New Revision: 147668 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147668 Log: 2009-05-18 H.J. Lu Backport from mainline: 2009-0

[Bug testsuite/39907] Aligned access to unaligned address

2009-05-18 Thread hjl at gcc dot gnu dot org
--- Comment #6 from hjl at gcc dot gnu dot org 2009-05-18 16:53 --- Subject: Bug 39907 Author: hjl Date: Mon May 18 16:53:25 2009 New Revision: 147667 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147667 Log: 2009-05-18 H.J. Lu PR testsuite/39907 * gcc.targe

[Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2009-05-18 16:52 --- Issue brought up by Jakub: do you require all equivalenced vars to be either threadprivate or non-threadprivate? or, does a single threadprivate var make all vars equivalenced somehow to it threadprivate? Is

[Bug testsuite/39907] Aligned access to unaligned address

2009-05-18 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-05-18 16:39 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01156.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug testsuite/40130] using RUNTESTFLAGS="--target_board 'foo{-mxyz,-mjkl,}'" screws up ieee.exp (and possibly others?)

2009-05-18 Thread ubizjak at gmail dot com
--- Comment #9 from ubizjak at gmail dot com 2009-05-18 16:37 --- (In reply to comment #8) > No, it's just i686-pc-linux-gnu. Without --target_board "etc." it > works; with I got this spurious failure. > > But it's not a wrong code, so I think we can close as invalid. BTW: Since you

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-18 Thread armin76 at gentoo dot org
--- Comment #6 from armin76 at gentoo dot org 2009-05-18 16:29 --- Sorry for taking a while, but i'm pretty sure you know sh machines are kinda of slow :) Yes! it works! Thank you for investigating it -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40105

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread schwab at linux-m68k dot org
--- Comment #4 from schwab at linux-m68k dot org 2009-05-18 15:48 --- GNU make does not use sh -e. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40159

[Bug target/39531] m68k gcc does not convert andil to bclr when compiled on a 64bit host

2009-05-18 Thread schwab at linux-m68k dot org
--- Comment #3 from schwab at linux-m68k dot org 2009-05-18 15:40 --- The same problem existed in output_iorsi3 and output_xorsi3. Fixed in 4.5. -- schwab at linux-m68k dot org changed: What|Removed |Added -

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-05-18 Thread w6ws at earthlink dot net
--- Comment #8 from w6ws at earthlink dot net 2009-05-18 15:36 --- Subject: Re: Attributes not fully checked comparing actual vs dummy procedure Janus, janus at gcc dot gnu dot org wrote: > --- Comment #7 from janus at gcc dot gnu dot org 2009-05-18 09:36 --- > The commit in

[Bug target/39531] m68k gcc does not convert andil to bclr when compiled on a 64bit host

2009-05-18 Thread schwab at gcc dot gnu dot org
--- Comment #2 from schwab at gcc dot gnu dot org 2009-05-18 15:36 --- Subject: Bug 39531 Author: schwab Date: Mon May 18 15:36:18 2009 New Revision: 147664 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147664 Log: PR target/39531 * config/m68k/m68k.c (output_andsi3): Mask off

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread aoliva at gcc dot gnu dot org
--- Comment #3 from aoliva at gcc dot gnu dot org 2009-05-18 15:34 --- Uhh... This shouldn't matter when commands are run in a shell with set -e, like make does, no? Anyhow, thanks for the analysis. I suppose replacing the final : for exit $$? should fix this, right? -- http://g

[Bug libstdc++/40184] locale(const char* std_name) can create invalid facets for nonuniform locale

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-05-18 15:03 --- Ok, thanks. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread vincent at vinc17 dot org
--- Comment #8 from vincent at vinc17 dot org 2009-05-18 14:56 --- Are you sure that this comes from the extended precision? This would mean that GCC does implicit extended -> double conversions in an asymmetric way, and IIRC, I've never seen that. I can't reproduce the problem with g++

[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread sliwa at cft dot edu dot pl
--- Comment #7 from sliwa at cft dot edu dot pl 2009-05-18 14:52 --- The case (a < b) && (b < a) shows that not discarding the extra precision before performing a comparison leads to serious problems. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40186

[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-05-18 14:49 --- Either use -ffloat-store or -mfpmath=sse . The issue comes from excessive precision. It is not < or > which is causing the problem but keeping one of a or b in the fp stack register but putting the other one on the

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers" (using PPCs)

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-18 14:47 --- Fixed with r147663. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40164] Fortran 2003: "Arrays of procedure pointers" (using PPCs)

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-18 14:45 --- Subject: Bug 40164 Author: janus Date: Mon May 18 14:44:55 2009 New Revision: 147663 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147663 Log: 2009-05-18 Janus Weil PR fortran/40164 * prim

[Bug libstdc++/40184] locale(const char* std_name) can create invalid facets for nonuniform locale

2009-05-18 Thread tsyvarev at ispras dot ru
--- Comment #2 from tsyvarev at ispras dot ru 2009-05-18 14:37 --- Yes, this seems reasonably. I also thought about smth. similar to this. Only it is need to take into account using mbsrtowcs for other locale properties(if they exist in others categories). Anyway, checking of mbsrtowcs

[Bug rtl-optimization/323] optimized code gives strange floating point results

2009-05-18 Thread ich at az2000 dot de
--- Comment #129 from ich at az2000 dot de 2009-05-18 14:24 --- I am a bit wondering if this bug is also for the case (a < b) && (b < a) == true. Is it? Because if so, this becomes way more serious, as for example std::set is broken then (and depending on the STL implementation, it will

[Bug tree-optimization/39907] Aligned access to unaligned address

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-05-18 14:25 --- (In reply to comment #3) > The bug is that > > snapshot_ret: > movq%rdi, rdi(%rip) > call*callthis(%rip) > > does not preserve stack alignment. But we assume that correct alignment > is pre

[Bug rtl-optimization/323] optimized code gives strange floating point results

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #128 from pinskia at gcc dot gnu dot org 2009-05-18 14:11 --- *** Bug 40186 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-05-18 14:11 --- *** This bug has been marked as a duplicate of 323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/25249] inconsistent code for template function calls

2009-05-18 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-18 14:10 --- I can't see this with 4.3, 4.4 or trunk today. Can you provide a more recent reference to this problem ? -- ramana at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread ich at az2000 dot de
--- Comment #4 from ich at az2000 dot de 2009-05-18 13:38 --- Created an attachment (id=17888) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17888&action=view) simpler test case (now for wrong ordering case 1) I was able to reproduce the first case now ("wrong ordering 1"). I also

Re: [Bug c/38286] configure: error: cannot compute suffix of object files - cannot find as

2009-05-18 Thread smcguffee
Hi, I'm trying to install gcc to get gcj on a mac. I found that I have to put in an excessive amount of flags to even get a start on compiling gcc. For example: export CC='gcc -arch x86_64';export GXX='g++ -arch x86_64';CFLAGS='-arch x86_64';export CXXFLAGS='-arch x86_64';export CPPFLAGS='-arch x

[Bug c++/40186] floating point comparision works wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread ich at az2000 dot de
--- Comment #3 from ich at az2000 dot de 2009-05-18 13:17 --- Some compiler information: a...@acompneu ~/Programmierung $ g++ -Os -v -ggdb test_order.cpp -o test_order && ./test_order Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.4.0/

[Bug c++/40186] floating point comparision works wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread ich at az2000 dot de
--- Comment #2 from ich at az2000 dot de 2009-05-18 13:16 --- This is a real problem, because in my real application, I tried to use a very similar order in a std::set, defined like this: struct CustomOrder { bool operator()(const Tmp* a, const Tmp* b) const { re

[Bug c++/40186] floating point comparision works wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread ich at az2000 dot de
--- Comment #1 from ich at az2000 dot de 2009-05-18 13:11 --- Created an attachment (id=17887) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17887&action=view) testcase (c++) This is the test code. I am hitting the "wrong ordering 2" code. -- http://gcc.gnu.org/bugzilla/show_

[Bug c++/40186] New: floating point comparision works wrong ( !(a < b) && (b > a) is true )

2009-05-18 Thread ich at az2000 dot de
When comparing the return value of two functions (which both return double and do always return the same value), I have the case that (a < b) && (b < a) (whereby they should be equal) in a real world application. I tried to reproduce it, though in the test case, I have a slightly different case, w

[Bug libstdc++/40184] locale(const char* std_name) can create invalid facets for nonuniform locale

2009-05-18 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-18 12:40 --- Ok. Then, what do you think, would it be at least an improvement, constructing on the fly a uniform locale corresponding to the LC_MONETARY category and switching to it instead, before calling mbsrtowcs? Perfor

[Bug ada/40185] New: Segmentation fault on legal program

2009-05-18 Thread ludovic at ludovic-brenta dot org
(Debian bug #519336) The following illegal program causes gnat1 to crash with a segmentation fault: with Ada.Unchecked_Conversion; package Essai is type Attributed_Character is record I : Integer; end record; type Video_Array is array (Integer range 0 .. 1) of Attributed_Character;

[Bug fortran/40176] Fortran 2003: Procedure pointers with array return value

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-05-18 12:28 --- This test case with 'dynamic' array size produces a gimplification error: PROGRAM test_prog ABSTRACT INTERFACE FUNCTION fn_template(n,x) RESULT(y) INTEGER, INTENT(in) :: n REAL, INTENT(in) :: x(n) REAL ::

[Bug fortran/40168] missing unrolling/scalarization/reassoc/free

2009-05-18 Thread jv244 at cam dot ac dot uk
--- Comment #14 from jv244 at cam dot ac dot uk 2009-05-18 12:19 --- Created an attachment (id=17886) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17886&action=view) simplified testcase for common subexpressions. Richard, thanks very much for the first patch. I tried to get a be

[Bug libstdc++/40184] New: locale(const char* std_name) can create invalid facets for nonuniform locale

2009-05-18 Thread tsyvarev at ispras dot ru
Constructor locale(const char* std_name), when called with name of nonuniform locale (like "LC_CTYPE=...;LC_COLLATE=...;..."), can create locale with incorrect content of some its facets: these facets differ from facets of locale, created via locale(const locale& other, const char* std_name, catego

[Bug fortran/40168] missing unrolling/scalarization/reassoc/free

2009-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #13 from rguenth at gcc dot gnu dot org 2009-05-18 10:24 --- Subject: Bug 40168 Author: rguenth Date: Mon May 18 10:24:34 2009 New Revision: 147659 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147659 Log: 2009-05-18 Richard Guenther PR fortran/40168

[Bug c++/40183] g++.dg/tls/static-1.C, execution abort

2009-05-18 Thread hailijuan at gmail dot com
--- Comment #1 from hailijuan at gmail dot com 2009-05-18 10:07 --- Created an attachment (id=17885) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17885&action=view) static-1.C and static-1a.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40183

[Bug tree-optimization/39999] [4.4 Regression] gcc 4.4.0 compiles in infinite loop

2009-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2009-05-18 10:14 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug tree-optimization/39999] [4.4 Regression] gcc 4.4.0 compiles in infinite loop

2009-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2009-05-18 10:13 --- Subject: Bug 3 Author: rguenth Date: Mon May 18 10:13:43 2009 New Revision: 147657 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147657 Log: 2009-05-18 Richard Guenther PR tree-optimizatio

[Bug c++/40183] New: g++.dg/tls/static-1.C, execution abort

2009-05-18 Thread hailijuan at gmail dot com
# g++ static-1.C static-1a.cc -O2 # export LD_LIBRARY_PATH=/import/dr3/s10/gcc-4.4.0/lib/ # ./a.out Abort (core dumped) The error would be gone if /usr/sfw/lib/libstdc++.so.6 is linked. so I assume the error lives in the library libstdc++.so.6 that gcc 4.4 provides. Any information that you need,

[Bug tree-optimization/39907] Aligned access to unaligned address

2009-05-18 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-18 10:03 --- The bug is that snapshot_ret: movq%rdi, rdi(%rip) call*callthis(%rip) does not preserve stack alignment. But we assume that correct alignment is preserved over the indirect function call(?)

[Bug libstdc++/40160] -fno-rtti vs _GLIBCXX_DEBUG

2009-05-18 Thread jay dot foad at gmail dot com
--- Comment #8 from jay dot foad at gmail dot com 2009-05-18 09:46 --- Thanks Paolo! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160

[Bug other/40159] [4.5 regression] "make all" ignores build failures

2009-05-18 Thread schwab at linux-m68k dot org
--- Comment #2 from schwab at linux-m68k dot org 2009-05-18 09:37 --- The last command in the "all" rule is : which is always successfull: # The target built for a native non-bootstrap build. .PHONY: all all: @if gcc-bootstrap [ -f stage_final ] || echo stage3 > stage_final

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-05-18 09:36 --- The commit in comment #6 implements the checking for intents. ToDo: * check for OPTIONAL * better error messages * recursive check (see comment #2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36947

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-05-18 09:28 --- The commit in comment #4 implements the basic checking of the intents. ToDo: * Improve the error message, which is currently just "Type/rank mismatch in argument ...". Should specify exactly what is not matching, and

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2009-05-18 09:19 --- Subject: Bug 40039 Author: janus Date: Mon May 18 09:19:20 2009 New Revision: 147655 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147655 Log: 2009-05-18 Janus Weil PR fortran/36947 PR for

[Bug fortran/36947] Attributes not fully checked comparing actual vs dummy procedure

2009-05-18 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-05-18 09:19 --- Subject: Bug 36947 Author: janus Date: Mon May 18 09:19:20 2009 New Revision: 147655 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147655 Log: 2009-05-18 Janus Weil PR fortran/36947 PR for

  1   2   >