From patchwork Sat Jul 23 11:06:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 106436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 73F6CB6F68 for ; Sat, 23 Jul 2011 21:06:53 +1000 (EST) Received: (qmail 28884 invoked by alias); 23 Jul 2011 11:06:48 -0000 Received: (qmail 28869 invoked by uid 22791); 23 Jul 2011 11:06:47 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 Jul 2011 11:06:30 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id B76AE188A184; Sat, 23 Jul 2011 13:06:28 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id E84771C00079; Sat, 23 Jul 2011 13:06:28 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id v-ra7VJ-uIMv; Sat, 23 Jul 2011 13:06:28 +0200 (CEST) Received: from igel.home (ppp-88-217-121-99.dynamic.mnet-online.de [88.217.121.99]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 23 Jul 2011 13:06:27 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 65CACCA293; Sat, 23 Jul 2011 13:06:27 +0200 (CEST) From: Andreas Schwab To: fortran@gcc.gnu.org Subject: Fix implicit declarations CC: gcc-patches@gcc.gnu.org X-Yow: Yow! I want my nose in lights! Date: Sat, 23 Jul 2011 13:06:27 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This fixes the implicit declarations of exit and free in libgfortran. Tested on ppc-linux and checked in as obvious. Andreas. 2011-07-23 Andreas Schwab * intrinsics/ctime.c: Include . * intrinsics/getlog.c: Likewise. * runtime/stop.c: Likewise. Index: libgfortran/intrinsics/ctime.c =================================================================== --- libgfortran/intrinsics/ctime.c (revision 176674) +++ libgfortran/intrinsics/ctime.c (working copy) @@ -27,6 +27,7 @@ see the files COPYING3 and COPYING.RUNTI #include "time_1.h" +#include #include Index: libgfortran/intrinsics/getlog.c =================================================================== --- libgfortran/intrinsics/getlog.c (revision 176674) +++ libgfortran/intrinsics/getlog.c (working copy) @@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTI #include "libgfortran.h" +#include #include #ifdef HAVE_UNISTD_H Index: libgfortran/runtime/stop.c =================================================================== --- libgfortran/runtime/stop.c (revision 176674) +++ libgfortran/runtime/stop.c (working copy) @@ -24,6 +24,7 @@ see the files COPYING3 and COPYING.RUNTI . */ #include "libgfortran.h" +#include #include #include