public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function @ 2007-02-03 21:36 reichelt at gcc dot gnu dot org 2007-02-03 21:36 ` [Bug middle-end/30696] " reichelt at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: reichelt at gcc dot gnu dot org @ 2007-02-03 21:36 UTC (permalink / raw) To: gcc-bugs The following program causes a linker failure on mainline when compiled with "gcc -fopenmp -O -std=c99": ==================================== inline void foo() {} int main() { foo(); #pragma omp parallel for for ( int i=0; i<1; ++i ) foo(); return 0; } ==================================== /tmp/ccoKlB2q.o(.text+0x47): In function `main.omp_fn.0': : undefined reference to `foo' collect2: ld returned 1 exit status The 4.2 branch is not affected. -- Summary: [4.3 regression] Linker failure with OpenMP and inline function Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: link-failure, openmp Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/30696] [4.3 regression] Linker failure with OpenMP and inline function 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org @ 2007-02-03 21:36 ` reichelt at gcc dot gnu dot org 2007-02-03 21:39 ` reichelt at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: reichelt at gcc dot gnu dot org @ 2007-02-03 21:36 UTC (permalink / raw) To: gcc-bugs -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/30696] [4.3 regression] Linker failure with OpenMP and inline function 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org 2007-02-03 21:36 ` [Bug middle-end/30696] " reichelt at gcc dot gnu dot org @ 2007-02-03 21:39 ` reichelt at gcc dot gnu dot org 2007-02-03 23:33 ` rguenth at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: reichelt at gcc dot gnu dot org @ 2007-02-03 21:39 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from reichelt at gcc dot gnu dot org 2007-02-03 21:39 ------- Even shorter testcase: ==================================== inline void foo() {} int main() { #pragma omp parallel foo(); foo(); return 0; } ==================================== -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/30696] [4.3 regression] Linker failure with OpenMP and inline function 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org 2007-02-03 21:36 ` [Bug middle-end/30696] " reichelt at gcc dot gnu dot org 2007-02-03 21:39 ` reichelt at gcc dot gnu dot org @ 2007-02-03 23:33 ` rguenth at gcc dot gnu dot org 2007-02-04 23:41 ` hubicka at gcc dot gnu dot org 2007-02-08 23:35 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu dot org @ 2007-02-03 23:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-03 23:32 ------- Confirmed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-02-03 23:32:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/30696] [4.3 regression] Linker failure with OpenMP and inline function 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org ` (2 preceding siblings ...) 2007-02-03 23:33 ` rguenth at gcc dot gnu dot org @ 2007-02-04 23:41 ` hubicka at gcc dot gnu dot org 2007-02-08 23:35 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: hubicka at gcc dot gnu dot org @ 2007-02-04 23:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from hubicka at gcc dot gnu dot org 2007-02-04 23:41 ------- Subject: Bug 30696 Author: hubicka Date: Sun Feb 4 23:40:58 2007 New Revision: 121582 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121582 Log: PR middle-end/30696 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed nodes in cgraph, don't remove offline copy of the function. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-inline.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/30696] [4.3 regression] Linker failure with OpenMP and inline function 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org ` (3 preceding siblings ...) 2007-02-04 23:41 ` hubicka at gcc dot gnu dot org @ 2007-02-08 23:35 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2007-02-08 23:35 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jakub at gcc dot gnu dot org 2007-02-08 23:35 ------- Fixed on the trunk, thanks. -- 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=30696 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-08 23:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-02-03 21:36 [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function reichelt at gcc dot gnu dot org 2007-02-03 21:36 ` [Bug middle-end/30696] " reichelt at gcc dot gnu dot org 2007-02-03 21:39 ` reichelt at gcc dot gnu dot org 2007-02-03 23:33 ` rguenth at gcc dot gnu dot org 2007-02-04 23:41 ` hubicka at gcc dot gnu dot org 2007-02-08 23:35 ` 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).