From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23518 invoked by alias); 15 Mar 2011 17:04:52 -0000 Received: (qmail 23504 invoked by uid 22791); 15 Mar 2011 17:04:52 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Mar 2011 17:04:48 +0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47571] [4.6/4.7 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: jb at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Attachment #23648 is obsolete Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 15 Mar 2011 17:05:00 -0000 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: 2011-03/txt/msg01586.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571 Janne Blomqvist changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23648|0 |1 is obsolete| | --- Comment #38 from Janne Blomqvist 2011-03-15 17:04:41 UTC --- Created attachment 23669 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23669 Updated patch This patch takes into account the comments by Jakub, and unconditionally sets GF_CLOCK_MONOTONIC if clock_gettime is available; this should fix a bug if CLOCK_* are not preprocessor macros. Also, paths should be correct now, if the patch is applied in libgfortran/