[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #10 from Andrew Pinski --- (In reply to shiyan from comment #7) > (In reply to Marc Glisse from comment #4) > > -fno-builtin (or some better such option)? > > strncmp is a standard function, your code redefining it has undefined > > be

[Bug target/58208] deque 32-bit "-O3" bug

2013-08-25 Thread tammy at Cadence dot COM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #8 from Tammy Hsu --- Thanks a lot for trying rebuilding twice!! you don't think it is caused by optimization code? if we use "-O2" or "-O3 -fno-tree-vectorize" then it won't seg fault

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread shiyan2016 at 126 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #9 from shiyan --- (In reply to Paolo Carlini from comment #5) > Closing then. Hi Carlini, I still think it is a bug. I know the test case is not practical. In fact, I will not use such code in real case. But from compiler's side, th

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread shiyan2016 at 126 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #8 from shiyan --- (In reply to Jakub Jelinek from comment #6) > The testcase is clearly bogus. You are not using the result of either of > the strncmp calls, strncmp is a pure function, so it is fine not to call it > at all. Hi Jeli

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread shiyan2016 at 126 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #7 from shiyan --- (In reply to Marc Glisse from comment #4) > -fno-builtin (or some better such option)? > strncmp is a standard function, your code redefining it has undefined > behavior. gcc optimizes based on the standard behavior

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread currojerez at riseup dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 --- Comment #7 from Francisco Jerez --- (In reply to Andrew Pinski from comment #6) > (In reply to Francisco Jerez from comment #5) > > (In reply to Andrew Pinski from comment #3) > > > You need to use -std=g++11 or undefine bool after the include

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #7 from Gabriel Dos Reis --- (In reply to Eric Botcazou from comment #4) > > OK, I see the emitted reference to 'operator delete', and I suspect I > > have an idea of why the compiler generated this reference even though > > it isn't u

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 --- Comment #6 from Andrew Pinski --- (In reply to Francisco Jerez from comment #5) > (In reply to Andrew Pinski from comment #3) > > You need to use -std=g++11 or undefine bool after the include of altivec.h > > as context sensitive keywords is n

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread currojerez at riseup dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 Francisco Jerez changed: What|Removed |Added CC||currojerez at riseup dot net --- Commen

[Bug tree-optimization/58143] [4.8/4.9 regression] wrong code at -O3

2013-08-25 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 Bernd Edlinger changed: What|Removed |Added Attachment #30693|0 |1 is obsolete|

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #6 from Gabriel Dos Reis --- (In reply to Eric Botcazou from comment #4) > > OK, I see the emitted reference to 'operator delete', and I suspect I > > have an idea of why the compiler generated this reference even though > > it isn't u

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #5 from Gabriel Dos Reis --- (In reply to Andrew Pinski from comment #3) > (In reply to Gabriel Dos Reis from comment #2) > > OK, I see the emitted reference to 'operator delete', and I suspect I > > have an idea of why the compiler ge

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread chithanh at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 --- Comment #4 from Chí-Thanh Christopher Nguyễn --- The testcase was based on http://cgit.freedesktop.org/mesa/mesa/plain/src/gallium/state_trackers/clover/core/base.hpp?id=f0cb66b69904b0a3e4083aa8874af63cf1c14321 That header file still fails t

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread chithanh at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 --- Comment #1 from Chí-Thanh Christopher Nguyễn --- Created attachment 30697 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30697&action=edit preprocessed source with -std=c++11

[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread chithanh at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 --- Comment #2 from Chí-Thanh Christopher Nguyễn --- Created attachment 30698 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30698&action=edit preprocessed source with -std=gnu++11

[Bug other/58241] New: [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

2013-08-25 Thread chithanh at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 Bug ID: 58241 Summary: [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity:

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/58208] deque 32-bit "-O3" bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #7 from Mikael Pettersson --- CentOS 5.8 has an old binutils-2.17.50.0.6-20.el5_8.3. Building and installing binutils-2.23.2 and rebuilding gcc-4.8.1 against that makes no difference, ./import still SEGVs. I'm beginning to suspect a

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #6 from Jakub Jelinek --- The testcase is clearly bogus. You are not using the result of either of the strncmp calls, strncmp is a pure function, so it is fine not to call it at all.

[Bug target/58208] deque 32-bit "-O3" bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #6 from Mikael Pettersson --- I've just bootstrapped gcc-4.8.1 on CentOS 5.8 (the closest I have to the OP's RHEL 5.5), and LD_LIBRARY_PATH=. ./import does indeed SEGV there.

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #3 from Andrew Pinski --- (In reply to Gabriel Dos Reis from comment #2) > OK, I see the emitted reference to 'operator delete', and I suspect I > have an idea of why the compiler generated this reference even though > it isn't used an

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #4 from Marc Glisse --- -fno-builtin (or some better such option)? strncmp is a standard function, your code redefining it has undefined behavior. gcc optimizes based on the standard behavior of the function.

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #2 from Gabriel Dos Reis --- OK, I see the emitted reference to 'operator delete', and I suspect I have an idea of why the compiler generated this reference even though it isn't used anywhere in the input source code. Why are we linki

[Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)'

2013-08-25 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #1 from Gabriel Dos Reis --- Here is the definition of pretty_printer::~pretty_printer () at the location indicated: pretty_printer::~pretty_printer () { buffer->~output_buffer (); XDELETE (buffer); } The macro XDELETE is define

[Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid

2013-08-25 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547 Mikael Morin changed: What|Removed |Added CC||mikael at gcc dot gnu.org Summa

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 Paolo Carlini changed: What|Removed |Added CC|shiyan2016 at 126 dot com | --- Comment #3 from Paolo Carlini

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread shiyan2016 at 126 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 --- Comment #2 from shiyan --- (In reply to Paolo Carlini from comment #1) > I can't reproduce this. Hi, What is your GCC version? I am using gcc4.7.2. My OS information are as below: $lsb_release -a No LSB modules are available. Distributor ID:

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 Paolo Carlini changed: What|Removed |Added CC|shiyan2016 at 126 dot com | --- Comment #1 from Paolo Carlini

[Bug fortran/46487] Missing memory freeing for functions returning allocatable scalars (allocatable_scalar_5.f90)

2013-08-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46487 Tobias Burnus changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/46485] gfortran.dg/allocatable_scalar_5.f90 fails on s390-ibm-linux-gnu

2013-08-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46485 Bug 46485 depends on bug 46487, which changed state. Bug 46487 Summary: Missing memory freeing for functions returning allocatable scalars (allocatable_scalar_5.f90) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46487 What|Removed

[Bug fortran/55603] Memory leak in intrinsic assignment of a scalar allocatable function result

2013-08-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55603 --- Comment #7 from Tobias Burnus --- *** Bug 46487 has been marked as a duplicate of this bug. ***

[Bug fortran/55603] Memory leak in intrinsic assignment of a scalar allocatable function result

2013-08-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55603 Tobias Burnus changed: What|Removed |Added CC||jwmwalrus at gmail dot com --- Comment #6

[Bug fortran/58229] [F03] Memory leak with allocatable scalar function result

2013-08-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58229 Tobias Burnus changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c/58240] New: GCC optimize strncmp when N=1 incorrectly

2013-08-25 Thread shiyan2016 at 126 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240 Bug ID: 58240 Summary: GCC optimize strncmp when N=1 incorrectly Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/58166] ARMv5: poor register allocation in function containing smull instruction

2013-08-25 Thread vmakarov at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58166 --- Comment #6 from Vladimir Makarov --- On 13-08-22 10:11 AM, rearnsha at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58166 > > --- Comment #5 from Richard Earnshaw --- > (In reply to Jay Foad from comment #3) >> I've bi

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2013-08-25 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 13615, which changed state. Bug 13615 Summary: -Wuninitialized produces wrong error message for characters http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615 What|Removed |Added -

[Bug fortran/13615] -Wuninitialized produces wrong error message for characters

2013-08-25 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615 Mikael Morin changed: What|Removed |Added Status|WAITING |RESOLVED CC|

[Bug fortran/19276] [meta-bug] CHARACTER related bugs in gfortran

2013-08-25 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19276 Bug 19276 depends on bug 13615, which changed state. Bug 13615 Summary: -Wuninitialized produces wrong error message for characters http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615 What|Removed |Added -

[Bug libstdc++/58148] [4.9 Regression] Fails to insert iterator range into sequence container with -D_GLIBCXX_DEBUG when conversion is needed

2013-08-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58148 --- Comment #2 from Paolo Carlini --- -std=c++11 / gnu++11 required

[Bug target/58208] deque 32-bit "-O3" bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #5 from Mikael Pettersson --- Unmodified FSF gcc-4.8.1 configured as follows: /tmp/gcc-4.8.1/configure --prefix=/tmp/install --with-gmp=/path/to/my/gmp-5.1.2 --with-mpfr=/path/to/my/mpfr-3.1.2 --with-mpc=/path/to/my/mpc-1.0.1 --enable

[Bug libstdc++/58148] [4.9 Regression] Fails to insert iterator range into sequence container with -D_GLIBCXX_DEBUG when conversion is needed

2013-08-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58148 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/53025] [C++11] noexcept operator depends on copy-elision

2013-08-25 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53025 --- Comment #4 from Marc Glisse --- (In reply to Daniel Krügler from comment #3) > IMO it is important to fix at, because otherwise > it does have the potential to subtly change overload selection (if noexcept > is used as part of sfinae) and othe