Thread safe functions from the C standard library

2008-12-09 Thread David Livshin
Hi, What functions from the GNU's C standard library ( libc ) are thread safe? Of a particular interest are transcendental functions ( like 'exp', 'sin' etc. ) - are they thread safe? Are there any requirements/guidelines/assurances regarding thread safety of functions from the C library?

Re: TLS on darwin

2008-12-09 Thread IainS
On 8 Dec 2008, at 21:09, Andrew Pinski wrote: On Mon, Dec 8, 2008 at 1:04 PM, IainS [EMAIL PROTECTED] acoustics.co.uk wrote: following on from http://gcc.gnu.org/ml/gcc/2008-05/msg00202.html As I mentioned; it is emulated. So it works, by default, though it is hm. At the moment it

Re: [ARM] Implement __builtin_bswap32() via ARMv6 rev instruction

2008-12-09 Thread Alexandre Pereira Nunes
2008/12/8 Ian Lance Taylor [EMAIL PROTECTED]: Alexandre Pereira Nunes [EMAIL PROTECTED] writes: I can provide these, tough as for the copyright assignment, the document mentions I can declare the changes in public domain, and since I already published something (which may or may not be

Re: gcc -r

2008-12-09 Thread Ian Lance Taylor
Ralf Corsepius [EMAIL PROTECTED] writes: 1) Is gcc -r officially supported by gcc? It apparently works, but I can't find it documented anywhere in GCC's documentation. When invoking the linker, a -r option on the command line will be passed to the linker. The same is true of -A, -d, -eSYM,

Re: gcc -r

2008-12-09 Thread Ralf Corsepius
On Tue, 2008-12-09 at 07:19 -0800, Ian Lance Taylor wrote: Ralf Corsepius [EMAIL PROTECTED] writes: 1) Is gcc -r officially supported by gcc? It apparently works, but I can't find it documented anywhere in GCC's documentation. When invoking the linker, a -r option on the command line

Re: Thread safe functions from the C standard library

2008-12-09 Thread Ian Lance Taylor
David Livshin [EMAIL PROTECTED] writes: What functions from the GNU's C standard library ( libc ) are thread safe? Of a particular interest are transcendental functions ( like exp', 'sin' etc. ) - are they thread safe? Are there any requirements/guidelines/assurances regarding thread safety

Re: gcc -r

2008-12-09 Thread Ian Lance Taylor
Ralf Corsepius [EMAIL PROTECTED] writes: So what would you recommend: To use gcc -r or gcc -Wl,-r ? Ah, when you put the question like that, I would recommend ld -r. This is the one case where you get no advantage from using the gcc driver to invoke the linker, and it can actually mess you up

inlining a virtual function

2008-12-09 Thread Marco Correia
hi, The following is a simplification of my problem: struct Base { virtual void func() = 0; }; struct Derived : Base { inline void func() {...} }; Derived d = ...; d.func(); This last call is not being inlined. Is this normal? (As I said my example is more complex, I didn't check if the

Re: Thread safe functions from the C standard library

2008-12-09 Thread David Livshin
Ian Lance Taylor wrote: David Livshin [EMAIL PROTECTED] writes: What functions from the GNU's C standard library ( libc ) are thread safe? Of a particular interest are transcendental functions ( like exp', 'sin' etc. ) - are they thread safe? Are there any

Re: inlining a virtual function

2008-12-09 Thread Ian Lance Taylor
Marco Correia [EMAIL PROTECTED] writes: The following is a simplification of my problem: struct Base { virtual void func() = 0; }; struct Derived : Base { inline void func() {...} }; Derived d = ...; d.func(); This last call is not being inlined. Is this normal? (As I said my example is

Re: inlining a virtual function

2008-12-09 Thread Sebastian Redl
Marco Correia wrote: hi, The following is a simplification of my problem: struct Base { virtual void func() = 0; }; struct Derived : Base { inline void func() {...} }; Derived d = ...; d.func(); This last call is not being inlined. Is this normal? Yes. The compiler cannot know that d

Re: gcc -r

2008-12-09 Thread Adam Nemet
Ian Lance Taylor [EMAIL PROTECTED] writes: Ralf Corsepius [EMAIL PROTECTED] writes: So what would you recommend: To use gcc -r or gcc -Wl,-r ? Ah, when you put the question like that, I would recommend ld -r. This is the one case where you get no advantage from using the gcc driver to

Re: gcc -r

2008-12-09 Thread Ralf Corsepius
On Tue, 2008-12-09 at 08:10 -0800, Adam Nemet wrote: Ian Lance Taylor [EMAIL PROTECTED] writes: Ralf Corsepius [EMAIL PROTECTED] writes: So what would you recommend: To use gcc -r or gcc -Wl,-r ? Ah, when you put the question like that, I would recommend ld -r. This is the one case

Re: gcc -r

2008-12-09 Thread Adam Nemet
Ralf Corsepius writes: So, my questions actually were aiming at * whether gcc ... -nostdlib -r and gcc ... -nostdlib -Wl,-r are equivalent * if the fact that gcc -r appears to work, can be exploited or whether this is a random accident and/or intentionally undocumented feature,

Re: Thread safe functions from the C standard library

2008-12-09 Thread Ian Lance Taylor
David Livshin [EMAIL PROTECTED] writes: I thought that gcc mailing list is appropriate as I need this information in order to implement auto-parallelizer for the gcc-generated code. How the gcc-supported parallelizer ( -ftree-parallelize-loops=n ) treats the calls to library routines? Sorry,

Re: TLS on darwin

2008-12-09 Thread Richard Henderson
... is the problem one of SPECs ? I don't think so, unless we can key off -pthread or something. .. or does every single TLS case need a darwin-specific addition to reference -lgcc_eh ? We can add that via tls.exp. .. I guess also that target-supports.exp would need some modification to

GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Mark Mitchell
Status == The trunk remains Stage 4, so only fixes for regressions (and changes to documentation) are allowed. As stated previously, the GCC 4.4 branch will be created when there are no open P1s and the total number of P1, P2, and P3 regressions is under 100. We're close -- there are 5

Re: TLS on darwin

2008-12-09 Thread IainS
A little additional info: PPC darwin8 (if configured --enable-tls --enable-threads) fails the check_effective_target_{tls, tls_runtime, tls_native} with a compiler ICE viz, for example: tls_native7888.c:3: internal compiler error: in rs6000_legitimize_tls_address, at

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Joel Sherrill
Hi, Is this one in the list? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37440 Can Ada build on any Arm platform? arm-rtems had good test results for 4.3.2 but broke a few months ago. I suspect it doesn't build targeting any Arm. And I doubt this one is on the list but I am convinced

�dv

2008-12-09 Thread Anita
Szia Pár napja kérdezted hogy nem e tudok egy jó letölt#337;s oldalt. És én most találtam egyet. Tele van jobbnál jobb filmekkel, és olcsó! 1 db sms elküldése után 500 kb/sec-el töltöttem napokig a legújabb premier filmeket és meséket! Küldj most SMS-t,és 5 nap helyet,25-öt adunk,ez

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Richard Guenther
On Tue, Dec 9, 2008 at 9:12 PM, Joel Sherrill [EMAIL PROTECTED] wrote: Hi, Is this one in the list? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37440 Can Ada build on any Arm platform? arm-rtems had good test results for 4.3.2 but broke a few months ago. I suspect it doesn't build

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Joel Sherrill
Richard Guenther wrote: On Tue, Dec 9, 2008 at 9:12 PM, Joel Sherrill [EMAIL PROTECTED] wrote: Hi, Is this one in the list? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37440 Can Ada build on any Arm platform? arm-rtems had good test results for 4.3.2 but broke a few months ago. I suspect

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Martin Guy
On 12/9/08, Joel Sherrill [EMAIL PROTECTED] wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37440 Can Ada build on any Arm platform? The only existing GNAT Ada compiler I could find for ARM (while thinking about doing it for the new Debian eabi port) is Adacore's Windows-Nucleus OS

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Joel Sherrill
Martin Guy wrote: On 12/9/08, Joel Sherrill [EMAIL PROTECTED] wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37440 Can Ada build on any Arm platform? The only existing GNAT Ada compiler I could find for ARM (while thinking about doing it for the new Debian eabi port) is

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Vladimir Makarov
Mark Mitchell wrote: Status == The trunk remains Stage 4, so only fixes for regressions (and changes to documentation) are allowed. As stated previously, the GCC 4.4 branch will be created when there are no open P1s and the total number of P1, P2, and P3 regressions is under 100. We're

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Hans-Peter Nilsson
On Tue, 9 Dec 2008, Vladimir Makarov wrote: Today Jeff Law (many thanks to him!) approved a big patch I wanted to commit before submitting patch removing the old register allocator. So nothing prevents to remove the old RA. I am going to submit the patch removing the old RA for review today.

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Vladimir Makarov
Hans-Peter Nilsson wrote: On Tue, 9 Dec 2008, Vladimir Makarov wrote: Today Jeff Law (many thanks to him!) approved a big patch I wanted to commit before submitting patch removing the old register allocator. So nothing prevents to remove the old RA. I am going to submit the patch removing

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Hans-Peter Nilsson
On Tue, 9 Dec 2008, Vladimir Makarov wrote: Hans-Peter Nilsson wrote: Vladimir, have you had chance to look at supporting LOAD_EXTEND_OP (implicit sign-extension) in IRA? http://gcc.gnu.org/ml/gcc/2008-10/msg00458.html I'm guessing no, but hope it's not forgotten. It seems I missed that,

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Steven Bosscher
On Tue, Dec 9, 2008 at 8:39 PM, Mark Mitchell [EMAIL PROTECTED] wrote: The other issue that remains is removing the old register allocator. Vladimir, it's time to do this. What -- if anything -- is preventing that? What about sched-ebb? Wasn't that supposed to be removed after the selective

Re: GCC 4.4.0 Status Report (2008-11-27)

2008-12-09 Thread Jeff Law
Hans-Peter Nilsson wrote: On Tue, 9 Dec 2008, Vladimir Makarov wrote: Today Jeff Law (many thanks to him!) approved a big patch I wanted to commit before submitting patch removing the old register allocator. So nothing prevents to remove the old RA. I am going to submit the patch removing

[Bug fortran/37829] ICE in resolve_symbol

2008-12-09 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2008-12-09 08:41 --- The patch in comment #2 fixes the ICE without regression on i686-apple-darwin9. Is not the obvious rule applying here? Thanks -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37829

[Bug middle-end/38431] [graphite] several ICEs with CP2K

2008-12-09 Thread jv244 at cam dot ac dot uk
--- Comment #1 from jv244 at cam dot ac dot uk 2008-12-09 08:42 --- Tobias, you might be interested to check if your recent patch also fixed these bugs. Otherwise I should be able to give it a round of testing before the weekend. -- jv244 at cam dot ac dot uk changed:

[Bug ada/38450] [4.4 Regression] ada bootstrap is broken

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-12-09 08:56 --- Testing a fix. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug web/12821] dead link on onlinedocs/gccint/Top-Level.html

2008-12-09 Thread steven at gcc dot gnu dot org
--- Comment #9 from steven at gcc dot gnu dot org 2008-12-09 09:00 --- Something as simple as this would already fix the broken link. Index: gcc/doc/sourcebuild.texi === --- gcc/doc/sourcebuild.texi(revision 142582)

[Bug fortran/38430] [4.4 Regression]: gfortran.dg/streamio_1.f90, 10, 14, 2, 6 now fails

2008-12-09 Thread hp at gcc dot gnu dot org
--- Comment #12 from hp at gcc dot gnu dot org 2008-12-09 09:17 --- . -- hp at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/38445] [4.4 Regression] ICE in tree-ssa-struct-alias when compiling grub-0.97

2008-12-09 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-12-09 11:06 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug ada/38450] [4.4 Regression] ada bootstrap is broken

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-12-09 13:44 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/37829] ICE in resolve_symbol

2008-12-09 Thread mikael at gcc dot gnu dot org
--- Comment #4 from mikael at gcc dot gnu dot org 2008-12-09 13:53 --- (In reply to comment #3) The patch in comment #2 fixes the ICE without regression on i686-apple-darwin9. I didn't expect any regression with that patch. However, I wonder whether we are not missing something.

[Bug tree-optimization/38445] [4.4 Regression] ICE in tree-ssa-struct-alias when compiling grub-0.97

2008-12-09 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-12-09 11:07 --- Subject: Bug 38445 Author: rguenth Date: Tue Dec 9 11:06:34 2008 New Revision: 142590 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142590 Log: 2008-12-09 Richard Guenther [EMAIL PROTECTED] PR

[Bug ada/38450] [4.4 Regression] ada bootstrap is broken

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-12-09 10:36 --- Subject: Bug 38450 Author: jakub Date: Tue Dec 9 10:35:15 2008 New Revision: 142588 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142588 Log: PR ada/38450 * gcc-interface/utils.c

[Bug web/12821] dead link on onlinedocs/gccint/Top-Level.html

2008-12-09 Thread joseph at codesourcery dot com
--- Comment #10 from joseph at codesourcery dot com 2008-12-09 13:40 --- Subject: Re: dead link on onlinedocs/gccint/Top-Level.html On Tue, 9 Dec 2008, steven at gcc dot gnu dot org wrote: [EMAIL PROTECTED] ??? This manual is apparently not available online. Keep the cross But

[Bug rtl-optimization/38452] New: delared branch scheduling doesn't fully take return into account

2008-12-09 Thread amylaar at gcc dot gnu dot org
Due to a backend bug, dbr had picked a delay slot insn for annul-true which was not actually elegible for annul-true. When I fixed the bug, I found that instead an insn from the target path was chosen, the restore of the return address, as the target is an epilogue. The original instruction, mov

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #11 from ebotcazou at gcc dot gnu dot org 2008-12-09 10:58 --- a current snapshot from the branch, exluding r142149 works for me. I'll try to reduce the applied patches until the builds succeeds again with r142149, but again, this may take a while. The only possibility

[Bug tree-optimization/35468] [4.2/4.3/4.4 Regression] LHS of assignment can be folded to a constant causing ICE

2008-12-09 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug c++/38410] [4.4 regression] g++.dg/eh/crossjump1.C (internal compiler error)

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-12-09 14:12 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c/38453] New: Output code optimisation excessive use of builtins

2008-12-09 Thread vince at simtec dot co dot uk
While compiling compression code for LZMA for use with an embedded ARM target I have discovered a regression from previous editions of GCC. I have pared this down to a trivial example (attached) which boils down to a application specific modulus operation (please note this is the *minimal* test

[Bug c/38453] Output code optimisation excessive use of builtins

2008-12-09 Thread vince at simtec dot co dot uk
--- Comment #1 from vince at simtec dot co dot uk 2008-12-09 14:51 --- Created an attachment (id=16854) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16854action=view) Trivial test code to show behaviour -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38453

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-09 Thread doko at ubuntu dot com
--- Comment #12 from doko at ubuntu dot com 2008-12-09 15:28 --- sorry for not noticing earlier; indeded, this is a patch by CodeSourcery to enable to build libobjc. see http://lists.debian.org/debian-gcc/2008/04/msg00240.html I don't see this defined on the trunk. I suppose this

[Bug middle-end/38454] New: [4.4 Regression] memcpy folding breaks -D_FORTIFY_SOURCE=2 protection

2008-12-09 Thread jakub at gcc dot gnu dot org
/* { dg-do compile } */ /* { dg-options -O2 } */ typedef __SIZE_TYPE__ size_t; extern inline __attribute__((gnu_inline, always_inline, artificial)) void * memcpy (void *__restrict dest, const void *__restrict src, size_t len) { return __builtin___memcpy_chk (dest, /* { dg-warning will always

[Bug middle-end/38454] [4.4 Regression] memcpy folding breaks -D_FORTIFY_SOURCE=2 protection

2008-12-09 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2008-12-09 16:06 --- Works with upstream 4.3 and on the trunk. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #14 from ebotcazou at gcc dot gnu dot org 2008-12-09 16:35 --- sorry for not noticing earlier; indeded, this is a patch by CodeSourcery to enable to build libobjc. see http://lists.debian.org/debian-gcc/2008/04/msg00240.html Thanks. The definition of EH_USES looks

[Bug tree-optimization/35468] [4.2/4.3/4.4 Regression] LHS of assignment can be folded to a constant causing ICE

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2008-12-09 16:57 --- Subject: Bug 35468 Author: jakub Date: Tue Dec 9 16:55:35 2008 New Revision: 142598 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142598 Log: PR tree-optimization/35468 * tree-ssa-ccp.c

[Bug testsuite/37326] gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized conststaticvariable 1

2008-12-09 Thread sje at gcc dot gnu dot org
--- Comment #8 from sje at gcc dot gnu dot org 2008-12-09 16:59 --- Subject: Bug 37326 Author: sje Date: Tue Dec 9 16:57:49 2008 New Revision: 142599 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142599 Log: PR testsuite/37326 *

[Bug c++/38455] New: aligned struct members in heap-allocated code

2008-12-09 Thread tim at klingt dot org
the following code works on x86_64 as 64-bit binary, but the alignment constraints of heap-allocated structs are not matched, when compiling 32-bit code: #include assert.h template int size = 4 struct aligned_buffer { char padding; float data[size] __attribute__((aligned((16; };

[Bug testsuite/37326] gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized conststaticvariable 1

2008-12-09 Thread sje at cup dot hp dot com
--- Comment #9 from sje at cup dot hp dot com 2008-12-09 17:05 --- Fixed by skipping the test on hppa64. -- sje at cup dot hp dot com changed: What|Removed |Added

[Bug tree-optimization/35468] [4.2/4.3 Regression] LHS of assignment can be folded to a constant causing ICE

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2008-12-09 17:09 --- Fixed on the trunk. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Known to

[Bug tree-optimization/37416] [4.4 Regression] Failure to return number of loop iterations

2008-12-09 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-12-09 17:14 --- I have not yet tracked this down to the patch that produced this regression. I have tracked this down to r138207 AKA tuples branch merge. *.ifcvt dump looks the same (the only difference is: - # SMT.10D.1968_19 =

[Bug c++/38455] aligned struct members in heap-allocated code

2008-12-09 Thread brian at dessent dot net
--- Comment #1 from brian at dessent dot net 2008-12-09 17:14 --- Subject: Re: New: aligned struct members in heap-allocated code This is a dup of pr15795. Basically, operator new is just a wrapper around malloc from the libc, and malloc returns an allocation with a fixed alignment

[Bug c++/38455] aligned struct members in heap-allocated code

2008-12-09 Thread tim at klingt dot org
--- Comment #2 from tim at klingt dot org 2008-12-09 17:23 --- well, would be nice to read something like that in the attribute documentation ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38455

[Bug fortran/37829] ICE in resolve_symbol

2008-12-09 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-12-09 17:28 --- (In reply to comment #4) For example, I tried to adapt the testcase in PR 33295 to the c_funloc case. The resulting program is rejected with the following error: Error: Can't convert

[Bug testsuite/38420] gcc.target/i386/pr37248-2.c doesn't work on ia32

2008-12-09 Thread hjl at gcc dot gnu dot org
--- Comment #1 from hjl at gcc dot gnu dot org 2008-12-09 17:39 --- Subject: Bug 38420 Author: hjl Date: Tue Dec 9 17:38:09 2008 New Revision: 142601 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142601 Log: 2008-12-09 H.J. Lu [EMAIL PROTECTED] PR testsuite/38420

[Bug c++/15795] No way to teach operator new anything about alignment requirements

2008-12-09 Thread rguenth at gcc dot gnu dot org
--- Comment #42 from rguenth at gcc dot gnu dot org 2008-12-09 17:43 --- *** Bug 38455 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/38455] aligned struct members in heap-allocated code

2008-12-09 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-09 17:43 --- *** This bug has been marked as a duplicate of 15795 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36355] matmul argument-check: wrong error messages

2008-12-09 Thread dfranke at gcc dot gnu dot org
-- dfranke at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dfranke at gcc dot gnu dot |dot org

[Bug c/38456] New: Suggestion: slight improvement of scoping rules

2008-12-09 Thread lc235951 at students dot mimuw dot edu dot pl
I would like to make a suggestion regarding the problem I posed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38443 (sorry I didn't check with the trunk). To repeat it: the scope of a variable begins in its initializer instead of after it, making e.g. the following program output some random

[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-12-09 Thread amylaar at gcc dot gnu dot org
--- Comment #30 from amylaar at gcc dot gnu dot org 2008-12-09 18:22 --- I think the testcase pr27574.C should be added to the testsuite before closing this bug. -- amylaar at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38326] [4.3/4.4 regression] libjava build failure on ia64-linux-gnu

2008-12-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #3 from ebotcazou at gcc dot gnu dot org 2008-12-09 18:32 --- Now on to this one. :-) Is 20081115 the date of the first failure? 08 was fine? There are test results for IA-64/Linux (suse-linux and unknown-linux) both 4.3.3 and 4.4.0 posted on the gcc-testresults on a

[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-12-09 Thread amylaar at gcc dot gnu dot org
--- Comment #31 from amylaar at gcc dot gnu dot org 2008-12-09 18:48 --- Sorry, I only checked for the presence of the original testcase name in the testsuite, and thus missed the fact that there is a new test called local-var-in-contructor.C [sic] . -- amylaar at gcc dot gnu dot

[Bug c/38456] Suggestion: slight improvement of scoping rules

2008-12-09 Thread brian at dessent dot net
--- Comment #1 from brian at dessent dot net 2008-12-09 18:53 --- Subject: Re: New: Suggestion: slight improvement of scoping rules I seriously don't think you will ever convince anyone to change a facet of gcc which is currently following the standard to something that is

[Bug target/38326] [4.3/4.4 regression] libjava build failure on ia64-linux-gnu

2008-12-09 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2008-12-09 18:53 --- I have had no trouble bootstrapping 4.4 on ia64-unknown-linux-gnu (Debian) in the last two weeks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38326

[Bug c/38456] Suggestion: slight improvement of scoping rules

2008-12-09 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2008-12-09 18:59 --- This is what -Wshadow is for. We can't invent a new C dialect or fix the standard. -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/38456] Suggestion: slight improvement of scoping rules

2008-12-09 Thread lc235951 at students dot mimuw dot edu dot pl
--- Comment #3 from lc235951 at students dot mimuw dot edu dot pl 2008-12-09 19:09 --- I know I can turn on warnings or use some tricks like UNIQUIFY(), but it's just cumbersome with large macros. I also know that changing the standard is considered not done, but in this case it

[Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING and TYPEs

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2008-12-09 19:12 --- Confirmed. As is, the testcase hangs for me and does not ICE. However, valgrind shows ==3159== pr37744.f90:22.19:

[Bug fortran/35983] C_LOC in derived type constructor gives weird result

2008-12-09 Thread mikael at gcc dot gnu dot org
--- Comment #3 from mikael at gcc dot gnu dot org 2008-12-09 19:13 --- Subject: Bug 35983 Author: mikael Date: Tue Dec 9 19:12:27 2008 New Revision: 142605 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142605 Log: 2008-12-09 Mikael Morin [EMAIL PROTECTED] PR

[Bug c++/36912] [4.2/4.3/4.4 regression] ICE with -frounding-math -g

2008-12-09 Thread mmitchel at gcc dot gnu dot org
--- Comment #8 from mmitchel at gcc dot gnu dot org 2008-12-09 19:20 --- With respect to Comment #4: I see no reason for C++ to be different than C in this respect, and thus I see no reason not to perform the computation at compile-time. In general, although some in the committees do

[Bug fortran/37469] invalid GMP usage on gfortran.dg/parameter_array_init_3.f90

2008-12-09 Thread mikael at gcc dot gnu dot org
--- Comment #6 from mikael at gcc dot gnu dot org 2008-12-09 19:22 --- Subject: Bug 37469 Author: mikael Date: Tue Dec 9 19:20:18 2008 New Revision: 142606 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142606 Log: 2008-12-09 Mikael Morin [EMAIL PROTECTED] PR

[Bug fortran/36457] preprocessing: option -idirafter undefined for fortran

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2008-12-09 19:27 --- Subject: Bug 36457 Author: dfranke Date: Tue Dec 9 19:25:55 2008 New Revision: 142607 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142607 Log: 2008-12-09 Daniel Franke [EMAIL PROTECTED] PR

[Bug rtl-optimization/38434] [4.4 Regression] speed regression with hand-unrolled matmul

2008-12-09 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38434

[Bug middle-end/37843] [4.4 Regression] unaligned stack in main due to tail call optimization

2008-12-09 Thread mmitchel at gcc dot gnu dot org
--- Comment #20 from mmitchel at gcc dot gnu dot org 2008-12-09 19:34 --- HJ -- As Richard says, you should not have checked in the new testcases without XFAILs and without having fixed the bug. Furthermore, your patch to the middle-end is without explanation. What is the problem?

[Bug middle-end/38271] [4.4 Regression] Spurious / missing ... used uninitialized in this function warning

2008-12-09 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38271

[Bug c++/38427] [4.4 Regression] crash for reference init code

2008-12-09 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38427

[Bug middle-end/38454] [4.4 Regression] memcpy folding breaks -D_FORTIFY_SOURCE=2 protection

2008-12-09 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38454

[Bug fortran/36457] preprocessing: option -idirafter undefined for fortran

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #6 from dfranke at gcc dot gnu dot org 2008-12-09 19:29 --- Fixed in trunk. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/38457] New: -Wattributes gives warnings for portable code for default-packed architectures.

2008-12-09 Thread hp at gcc dot gnu dot org
c-common.c:handle_packed_attribute about line 5117 gives a warning for types where __attribute__ ((__packed__)) is applied but has no effect. That particular warning should be removed or perhaps moved to a separate flag, because it emits warnings for code such as: struct x { char c; int x

[Bug fortran/37469] invalid GMP usage on gfortran.dg/parameter_array_init_3.f90

2008-12-09 Thread mikael at gcc dot gnu dot org
-- mikael at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mikael at gcc dot gnu dot |dot org

[Bug middle-end/38431] [graphite] several ICEs with CP2K

2008-12-09 Thread jv244 at cam dot ac dot uk
--- Comment #2 from jv244 at cam dot ac dot uk 2008-12-09 19:41 --- This is a simple testcase for one of the first segfaults, observed with current graphite branch: gfortran -c -O2 -ffree-form -fgraphite -fgraphite-identity test.f90 test.f90: In function ‘matmov’: test.f90:1: internal

[Bug fortran/35983] C_LOC in derived type constructor gives weird result

2008-12-09 Thread mikael at gcc dot gnu dot org
-- mikael at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mikael at gcc dot gnu dot |dot org

[Bug testsuite/38420] gcc.target/i386/pr37248-2.c doesn't work on ia32

2008-12-09 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-12-09 19:33 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug target/38326] [4.3/4.4 regression] libjava build failure on ia64-linux-gnu

2008-12-09 Thread doko at ubuntu dot com
--- Comment #5 from doko at ubuntu dot com 2008-12-09 19:50 --- which versions of binutils/glibc are used? for debian these are binutils-2.18.1 and glibc-2.7. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38326

[Bug tree-optimization/38458] New: copy-propagation doesn't handle cycles

2008-12-09 Thread rguenth at gcc dot gnu dot org
For # a_1 = PHI b_1, c_1 b_1 = a_1; copy-propagation propagates a_1 into b_1 instead of c_1 into a_1 and b_1. This is because handling of PHI and copy nodes is different. Either Index: tree-ssa-copy.c === --- tree-ssa-copy.c

[Bug fortran/37468] unknown option -isomething not recognized by gfortran driver

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #9 from dfranke at gcc dot gnu dot org 2008-12-09 19:54 --- Subject: Bug 37468 Author: dfranke Date: Tue Dec 9 19:53:02 2008 New Revision: 142608 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142608 Log: 2008-12-09 Daniel Franke [EMAIL PROTECTED] PR

[Bug fortran/36376] -cpp -save-temps passes unknown options to f951

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2008-12-09 19:54 --- Subject: Bug 36376 Author: dfranke Date: Tue Dec 9 19:53:02 2008 New Revision: 142608 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142608 Log: 2008-12-09 Daniel Franke [EMAIL PROTECTED] PR

[Bug fortran/36376] -cpp -save-temps passes unknown options to f951

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2008-12-09 19:55 --- Fixed in trunk. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/37468] unknown option -isomething not recognized by gfortran driver

2008-12-09 Thread dfranke at gcc dot gnu dot org
--- Comment #10 from dfranke at gcc dot gnu dot org 2008-12-09 19:56 --- Fixed in trunk. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/36912] [4.2/4.3/4.4 regression] ICE with -frounding-math -g

2008-12-09 Thread sylvain dot pion at sophia dot inria dot fr
--- Comment #9 from sylvain dot pion at sophia dot inria dot fr 2008-12-09 20:03 --- Incidentally, I submitted to WG21 a few days ago a proposal which will appear in the coming mid-term mailing as N2811, named Directed Rounding Arithmetic Operations. In the meantime, you can find it

[Bug tree-optimization/37894] [graphite] Polyhedron is not compiling (Summary)

2008-12-09 Thread grosser at gcc dot gnu dot org
--- Comment #3 from grosser at gcc dot gnu dot org 2008-12-09 20:08 --- The graphite branch should now be able to compile polyhedron. -- grosser at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/38431] [graphite] several ICEs with CP2K (summery)

2008-12-09 Thread grosser at gcc dot gnu dot org
--- Comment #3 from grosser at gcc dot gnu dot org 2008-12-09 20:10 --- Thanks for these test cases. My commit fixed at least one failure, but there are more. To help us it would be great to get a little bit structure in the failures. Just get for every failing test a backtrace and

[Bug c/38387] psim miscompiled [regression]

2008-12-09 Thread joel at gcc dot gnu dot org
--- Comment #11 from joel at gcc dot gnu dot org 2008-12-09 20:11 --- I wondered if I had a mistake in my testing since some of the later results didn't make sense as I thought about them. I am pretty convinced now this is NOT a strict aliasing problem in psim. Broken when

[Bug middle-end/38459] New: [graphite] SEGFAULT in cloog_clast_create

2008-12-09 Thread grosser at gcc dot gnu dot org
In the current graphite branch we fail with a SEGFAULT. #0 0x28ed1fb1 in _malloc_prefork () from /lib/libc.so.7 #1 0x28ed6f45 in realloc () from /lib/libc.so.7 #2 0x28c9d019 in __gmp_default_reallocate () from /usr/local/lib/libgmp.so.7 #3 0x28cb0a4e in __gmpz_realloc () from

  1   2   >