From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27237 invoked by alias); 3 Feb 2007 21:36:35 -0000 Received: (qmail 27220 invoked by uid 48); 3 Feb 2007 21:36:26 -0000 Date: Sat, 03 Feb 2007 21:36:00 -0000 Subject: [Bug middle-end/30696] New: [4.3 regression] Linker failure with OpenMP and inline function X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg00576.txt.bz2 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