public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
@ 2010-04-27 0:44 wjp at usecode dot org
2010-04-27 0:48 ` [Bug c++/43905] " wjp at usecode dot org
` (11 more replies)
0 siblings, 12 replies; 14+ messages in thread
From: wjp at usecode dot org @ 2010-04-27 0:44 UTC (permalink / raw)
To: gcc-bugs
When compiling the attached lll.ii file (from lll.c from the gfan maths package
at http://www.math.tu-berlin.de/~jensen/software/gfan/gfan.html ) with g++
4.5.0, I get the following error message:
g++ -O2 lll.ii -c -o lll.o
/tmp/ccRt1FUj.s: Assembler messages:
/tmp/ccRt1FUj.s:5145: Error: symbol
`_ZZN6MatrixIiEixEPiPP6VektorIiEiE19__PRETTY_FUNCTION__' is already defined
The error is not triggered with -O1, but it is triggered with -O1 -fipa-sra.
Looking at the generated .s, the problem appears to be that the same
XXX__PRETTY_FUNCTION__ symbol is generated for both an operator[] and its const
version.
g++ -v:
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-4.5.0/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.5.0/src/gcc-4.5.0/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-gnu-as=/usr/local/binutils-2.20.1/bin/as --with-gnu-ld
--with-ld=/usr/local/binutils-2.20.1/bin/ld --with-gmp=/usr/local/mpir-1.2.2
--with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1
--prefix=/usr/local/gcc-4.5.0
Thread model: posix
gcc version 4.5.0 (GCC)
--
Summary: duplicate __PRETTY_FUNCTION__ symbol for functions
differing in const-ness
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wjp at usecode dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/43905] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
@ 2010-04-27 0:48 ` wjp at usecode dot org
2010-04-27 0:53 ` [Bug tree-optimization/43905] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: wjp at usecode dot org @ 2010-04-27 0:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from wjp at usecode dot org 2010-04-27 00:48 -------
Created an attachment (id=20498)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20498&action=view)
preprocessed source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
2010-04-27 0:48 ` [Bug c++/43905] " wjp at usecode dot org
@ 2010-04-27 0:53 ` pinskia at gcc dot gnu dot org
2010-04-27 2:09 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-27 0:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-04-27 00:52 -------
Matrix<int>::operator[](int*, Vektor<int>**, int)::__PRETTY_FUNCTION__
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
2010-04-27 0:48 ` [Bug c++/43905] " wjp at usecode dot org
2010-04-27 0:53 ` [Bug tree-optimization/43905] " pinskia at gcc dot gnu dot org
@ 2010-04-27 2:09 ` pinskia at gcc dot gnu dot org
2010-04-27 9:30 ` [Bug tree-optimization/43905] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-27 2:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-27 02:08 -------
Very reduced testcase:
extern void sf ( __const char *);
struct Matrix{
int operator[](int n){
sf ( __PRETTY_FUNCTION__);
}
int operator[](int n)const{
sf ( __PRETTY_FUNCTION__);
}
};
void calcmy(Matrix const &b, Matrix &c, int k){
b[k];
c[k];
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |assemble-failure, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2010-04-27 02:08:44
date| |
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5/4.6 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (2 preceding siblings ...)
2010-04-27 2:09 ` pinskia at gcc dot gnu dot org
@ 2010-04-27 9:30 ` rguenth at gcc dot gnu dot org
2010-05-19 12:53 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-27 9:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-27 09:30 -------
local statics need to be mangled before SRA changes the function signature.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamborm at gcc dot gnu dot
| |org
Summary|duplicate |[4.5/4.6 Regression]
|__PRETTY_FUNCTION__ symbol |duplicate
|for functions differing in |__PRETTY_FUNCTION__ symbol
|const-ness |for functions differing in
| |const-ness
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5/4.6 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (3 preceding siblings ...)
2010-04-27 9:30 ` [Bug tree-optimization/43905] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-05-19 12:53 ` rguenth at gcc dot gnu dot org
2010-06-10 21:39 ` jamborm at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:53 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5/4.6 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (4 preceding siblings ...)
2010-05-19 12:53 ` rguenth at gcc dot gnu dot org
@ 2010-06-10 21:39 ` jamborm at gcc dot gnu dot org
2010-06-14 12:44 ` jamborm at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-10 21:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jamborm at gcc dot gnu dot org 2010-06-10 21:39 -------
Mine
--
jamborm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jamborm at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-04-27 02:08:44 |2010-06-10 21:39:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5/4.6 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (5 preceding siblings ...)
2010-06-10 21:39 ` jamborm at gcc dot gnu dot org
@ 2010-06-14 12:44 ` jamborm at gcc dot gnu dot org
2010-06-16 12:22 ` jamborm at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-14 12:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jamborm at gcc dot gnu dot org 2010-06-14 12:44 -------
Patch submitted to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg01146.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5/4.6 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (6 preceding siblings ...)
2010-06-14 12:44 ` jamborm at gcc dot gnu dot org
@ 2010-06-16 12:22 ` jamborm at gcc dot gnu dot org
2010-06-24 11:58 ` [Bug tree-optimization/43905] [4.5 " jakub at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-16 12:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jamborm at gcc dot gnu dot org 2010-06-16 12:22 -------
Subject: Bug 43905
Author: jamborm
Date: Wed Jun 16 12:21:56 2010
New Revision: 160832
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160832
Log:
2010-06-16 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/43905
* tree-sra.c: Include tree-inline.h.
(create_abstract_origin): Removed.
(modify_function): Version the call graph node instead of creating
abstract origins and dealing with same_body aliases.
* tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
function is versionable.
* Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
* testsuite/g++.dg/torture/pr43905.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr43905.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-sra.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (7 preceding siblings ...)
2010-06-16 12:22 ` jamborm at gcc dot gnu dot org
@ 2010-06-24 11:58 ` jakub at gcc dot gnu dot org
2010-06-29 13:16 ` jamborm at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-24 11:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2010-06-24 11:58 -------
Fixed on the trunk.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.5/4.6 Regression] |[4.5 Regression] duplicate
|duplicate |__PRETTY_FUNCTION__ symbol
|__PRETTY_FUNCTION__ symbol |for functions differing in
|for functions differing in |const-ness
|const-ness |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (8 preceding siblings ...)
2010-06-24 11:58 ` [Bug tree-optimization/43905] [4.5 " jakub at gcc dot gnu dot org
@ 2010-06-29 13:16 ` jamborm at gcc dot gnu dot org
2010-06-30 13:27 ` jamborm at gcc dot gnu dot org
2010-07-02 13:28 ` jamborm at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-29 13:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jamborm at gcc dot gnu dot org 2010-06-29 13:16 -------
4.5 patch submitted to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg02896.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (9 preceding siblings ...)
2010-06-29 13:16 ` jamborm at gcc dot gnu dot org
@ 2010-06-30 13:27 ` jamborm at gcc dot gnu dot org
2010-07-02 13:28 ` jamborm at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-06-30 13:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jamborm at gcc dot gnu dot org 2010-06-30 13:27 -------
Subject: Bug 43905
Author: jamborm
Date: Wed Jun 30 13:26:17 2010
New Revision: 161604
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161604
Log:
2010-06-30 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/43905
* tree-sra.c (encountered_recursive_call): Removed with all its uses.
(convert_callers): Do not handle recursive calls specially.
(create_abstract_origin): Removed.
(modify_function): Version the call graph node instead of creating
abstract origins and dealing with same_body aliases.
(ipa_sra_preliminary_function_checks): Check whether the function
is versionable.
* Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
* testsuite/g++.dg/torture/pr43905.C: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/torture/pr43905.C
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/Makefile.in
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-sra.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
` (10 preceding siblings ...)
2010-06-30 13:27 ` jamborm at gcc dot gnu dot org
@ 2010-07-02 13:28 ` jamborm at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-07-02 13:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jamborm at gcc dot gnu dot org 2010-07-02 13:28 -------
This is now fixed on both the trunk and the 4.5 branch.
--
jamborm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/43905] [4.5 Regression] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
[not found] <bug-43905-4@http.gcc.gnu.org/bugzilla/>
@ 2014-02-16 10:01 ` jackie.rosen at hushmail dot com
0 siblings, 0 replies; 14+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 10:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #12 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Marked for reference. Resolved as fixed @bugzilla.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-02-16 10:01 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 0:44 [Bug c++/43905] New: duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness wjp at usecode dot org
2010-04-27 0:48 ` [Bug c++/43905] " wjp at usecode dot org
2010-04-27 0:53 ` [Bug tree-optimization/43905] " pinskia at gcc dot gnu dot org
2010-04-27 2:09 ` pinskia at gcc dot gnu dot org
2010-04-27 9:30 ` [Bug tree-optimization/43905] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-05-19 12:53 ` rguenth at gcc dot gnu dot org
2010-06-10 21:39 ` jamborm at gcc dot gnu dot org
2010-06-14 12:44 ` jamborm at gcc dot gnu dot org
2010-06-16 12:22 ` jamborm at gcc dot gnu dot org
2010-06-24 11:58 ` [Bug tree-optimization/43905] [4.5 " jakub at gcc dot gnu dot org
2010-06-29 13:16 ` jamborm at gcc dot gnu dot org
2010-06-30 13:27 ` jamborm at gcc dot gnu dot org
2010-07-02 13:28 ` jamborm at gcc dot gnu dot org
[not found] <bug-43905-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 10:01 ` jackie.rosen at hushmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).