public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/31373] New: [4.2 Regression] -fsection-anchors causes multiple definitions
@ 2007-03-27 10:27 rguenth at gcc dot gnu dot org
2007-03-27 15:40 ` [Bug c++/31373] " pinskia at gcc dot gnu dot org
2007-03-27 15:51 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-27 10:27 UTC (permalink / raw)
To: gcc-bugs
The testcase below causes multiple definitions if current_namespace with
compiling with -O on ppc and ppc64:
.LFE2:
.size _Z24add_defined_foreign_typev,.-_Z24add_defined_foreign_typev
.section ".bss"
.align 2
.set .LANCHOR0,. + 0
.type current_namespace, @object
.size current_namespace, 4
current_namespace:
.zero 4
.type current_namespace, @object
.size current_namespace, 4
current_namespace:
.zero 4
.section .eh_frame,"a",@progbits
-fno-section-anchors fixes it.
void *f1();
void f2(void *);
static void *current_namespace = f1();
void *namespaced_name(void *ns = current_namespace);
void add_defined_foreign_type() {
void *k;
k = namespaced_name();
f2(k); // make sure k isn't optimized out
}
--
Summary: [4.2 Regression] -fsection-anchors causes multiple
definitions
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: blocker
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: powerpc*-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31373
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31373] [4.2 Regression] -fsection-anchors causes multiple definitions
2007-03-27 10:27 [Bug rtl-optimization/31373] New: [4.2 Regression] -fsection-anchors causes multiple definitions rguenth at gcc dot gnu dot org
@ 2007-03-27 15:40 ` pinskia at gcc dot gnu dot org
2007-03-27 15:51 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-27 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-27 16:40 -------
I thought I fixed this already. See PR 31165.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|rtl-optimization |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31373
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31373] [4.2 Regression] -fsection-anchors causes multiple definitions
2007-03-27 10:27 [Bug rtl-optimization/31373] New: [4.2 Regression] -fsection-anchors causes multiple definitions rguenth at gcc dot gnu dot org
2007-03-27 15:40 ` [Bug c++/31373] " pinskia at gcc dot gnu dot org
@ 2007-03-27 15:51 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-27 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-27 16:51 -------
Next time show the revision or the date and do what the bugs.html says to do
and test a newer compiler :).
*** This bug has been marked as a duplicate of 31165 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31373
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-27 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-27 10:27 [Bug rtl-optimization/31373] New: [4.2 Regression] -fsection-anchors causes multiple definitions rguenth at gcc dot gnu dot org
2007-03-27 15:40 ` [Bug c++/31373] " pinskia at gcc dot gnu dot org
2007-03-27 15:51 ` pinskia 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).