This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to check for stdint.h in gfortran.dg/c_kind_params.f90


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]