public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
@ 2010-04-19 15:43 zsojka at seznam dot cz
2010-04-19 15:45 ` [Bug target/43801] " zsojka at seznam dot cz
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-04-19 15:43 UTC (permalink / raw)
To: gcc-bugs
Command line:
g++ -fipa-cp -fipa-cp-clone testcase.C
Tested revisions:
r158486 - fail
r153685 - fail
4.4 r158133 - OK
Compiler output:
$ g++ -fipa-cp -fipa-cp-clone -c testcase.C
testcase.C: In member function 'virtual void B::_ZN1B1fEi.clone.0()':
testcase.C:5:16: error: virtual void B::_ZN1B1fEi.clone.0() causes a section
type conflict
testcase.C:5:16: error: virtual void B::_ZN1B1fEi.clone.0() causes a section
type conflict
--
Summary: [4.5/4.6 Regression] error: function causes a section
type conflict with -fipa-cp -fipa-cp-clone
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
@ 2010-04-19 15:45 ` zsojka at seznam dot cz
2010-04-19 16:03 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-04-19 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-04-19 15:44 -------
Created an attachment (id=20420)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20420&action=view)
reduced testcase (from g++.old-deja/g++.mike/p3708.C)
Command line:
g++ -fipa-cp -fipa-cp-clone pr43801.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
2010-04-19 15:45 ` [Bug target/43801] " zsojka at seznam dot cz
@ 2010-04-19 16:03 ` rguenth at gcc dot gnu dot org
2010-04-20 3:07 ` [Bug tree-optimization/43801] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-19 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-19 16:02 -------
Another -O0 -fipa-* bug.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
2010-04-19 15:45 ` [Bug target/43801] " zsojka at seznam dot cz
2010-04-19 16:03 ` rguenth at gcc dot gnu dot org
@ 2010-04-20 3:07 ` pinskia at gcc dot gnu dot org
2010-04-20 3:08 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-20 3:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-20 03:07 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2010-04-20 03:07:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-04-20 3:07 ` [Bug tree-optimization/43801] " pinskia at gcc dot gnu dot org
@ 2010-04-20 3:08 ` pinskia at gcc dot gnu dot org
2010-05-19 12:32 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-20 3:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2010-04-20 03:08 -------
(In reply to comment #2)
> Another -O0 -fipa-* bug.
Actually it also fails with "-fipa-cp -fipa-cp-clone -O2 -fno-inline" so this
is not just a -O0 issue but something going funny with the ipa-cp cloner.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-04-20 3:08 ` pinskia at gcc dot gnu dot org
@ 2010-05-19 12:32 ` rguenth at gcc dot gnu dot org
2010-06-29 16:27 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-05-19 12:32 -------
Re-confirmed. Honza - you fixed sth like that for LTO, can you look at this
please?
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Last reconfirmed|2010-04-20 03:07:02 |2010-05-19 12:32:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (4 preceding siblings ...)
2010-05-19 12:32 ` rguenth at gcc dot gnu dot org
@ 2010-06-29 16:27 ` jakub at gcc dot gnu dot org
2010-06-29 19:46 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-29 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2010-06-29 16:27 -------
Created an attachment (id=21040)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21040&action=view)
gcc46-pr43801.patch
Untested fix.
I think for !DECL_ONE_ONLY decls we can put the virtual clone in the same
section, but for comdat groups we obviously can't do that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (5 preceding siblings ...)
2010-06-29 16:27 ` jakub at gcc dot gnu dot org
@ 2010-06-29 19:46 ` jakub at gcc dot gnu dot org
2010-07-01 11:03 ` jakub at gcc dot gnu dot org
2010-07-01 11:07 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-29 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2010-06-29 19:46 -------
Subject: Bug 43801
Author: jakub
Date: Tue Jun 29 19:46:05 2010
New Revision: 161564
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161564
Log:
PR tree-optimization/43801
* cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
if old_decl was DECL_ONE_ONLY.
* g++.dg/torture/pr43801.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr43801.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (6 preceding siblings ...)
2010-06-29 19:46 ` jakub at gcc dot gnu dot org
@ 2010-07-01 11:03 ` jakub at gcc dot gnu dot org
2010-07-01 11:07 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-01 11:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2010-07-01 11:03 -------
Subject: Bug 43801
Author: jakub
Date: Thu Jul 1 11:03:31 2010
New Revision: 161661
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161661
Log:
Backport from mainline
2010-06-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/43801
* cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
if old_decl was DECL_ONE_ONLY.
* g++.dg/torture/pr43801.C: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/torture/pr43801.C
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cgraph.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/43801] [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
` (7 preceding siblings ...)
2010-07-01 11:03 ` jakub at gcc dot gnu dot org
@ 2010-07-01 11:07 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-01 11:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2010-07-01 11:07 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43801
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-07-01 11:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-19 15:43 [Bug target/43801] New: [4.5/4.6 Regression] error: function causes a section type conflict with -fipa-cp -fipa-cp-clone zsojka at seznam dot cz
2010-04-19 15:45 ` [Bug target/43801] " zsojka at seznam dot cz
2010-04-19 16:03 ` rguenth at gcc dot gnu dot org
2010-04-20 3:07 ` [Bug tree-optimization/43801] " pinskia at gcc dot gnu dot org
2010-04-20 3:08 ` pinskia at gcc dot gnu dot org
2010-05-19 12:32 ` rguenth at gcc dot gnu dot org
2010-06-29 16:27 ` jakub at gcc dot gnu dot org
2010-06-29 19:46 ` jakub at gcc dot gnu dot org
2010-07-01 11:03 ` jakub at gcc dot gnu dot org
2010-07-01 11:07 ` jakub at gcc dot gnu dot org
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).