This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to check for stdint.h in gfortran.dg/c_kind_params.f90
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org, janis187 at us dot ibm dot com
- Date: Tue, 7 Aug 2007 13:54:49 -0700 (PDT)
- Subject: Patch to check for stdint.h in gfortran.dg/c_kind_params.f90
- Reply-to: sje at cup dot hp dot com
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 <stdint.h>, 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 <sje@cup.hp.com>
* 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