From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17033 invoked by alias); 7 Aug 2007 20:55:27 -0000 Received: (qmail 16917 invoked by uid 22791); 7 Aug 2007 20:55:26 -0000 X-Spam-Check-By: sourceware.org Received: from palrel11.hp.com (HELO palrel11.hp.com) (156.153.255.246) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Aug 2007 20:55:17 +0000 Received: from smtp2.cup.hp.com (smtp2.cup.hp.com [15.4.32.118]) by palrel11.hp.com (Postfix) with ESMTP id 38FC237F59; Tue, 7 Aug 2007 13:54:50 -0700 (PDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [16.89.92.85]) by smtp2.cup.hp.com (Postfix) with ESMTP id 9B2F23151B8; Tue, 7 Aug 2007 20:43:37 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3 (PHNE_29774)/8.9.3) id NAA25988; Tue, 7 Aug 2007 13:54:49 -0700 (PDT) Date: Tue, 07 Aug 2007 20:55:00 -0000 From: Steve Ellcey Message-Id: <200708072054.NAA25988@hpsje.cup.hp.com> To: gcc-patches@gcc.gnu.org, janis187@us.ibm.com Subject: Patch to check for stdint.h in gfortran.dg/c_kind_params.f90 Reply-To: sje@cup.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00460.txt.bz2 This patch stops the gfortran.dg/c_kind_params.f90 from running on systems that don't have stdint.h. The test includes the C file c_kinds.c and that file includes , so if the system doesn't have that header (and the int32_t and int64_t types), the test should not be run. Tested on HPPA HP-UX, IA64 HP-UX, and IA64 Linux. OK for checkin? Steve Ellcey sje@cup.hp.com 2007-08-07 Steve Ellcey * gfortran.dg/c_kind_params.f90: Check for stdint.h. Index: gfortran.dg/c_kind_params.f90 =================================================================== --- gfortran.dg/c_kind_params.f90 (revision 127265) +++ gfortran.dg/c_kind_params.f90 (working copy) @@ -1,4 +1,5 @@ ! { dg-do run } +! { dg-require-effective-target stdint_types } ! { dg-additional-sources c_kinds.c } ! { dg-options "-w -std=c99" } ! the -w option is needed to make f951 not report a warning for