This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: compiler options in testsuite..


thanks for the help.  i've put the -std=c99 into the fortran source, and 
the program will build and run successfully, but the testsuite still 
reports an error because of excessive errors.  f951 spits out a warning 
about the option -std=c99 not being valid for fortran.  is there a way to 
tell fortran to ignore all warnings?  would this be acceptable?

thanks.
Chris

On Fri, 23 Jun 2006, Janis Johnson wrote:

> On Thu, Jun 22, 2006 at 11:51:03AM -0700, Steve Kargl wrote:
> > On Wed, Jun 21, 2006 at 10:11:02AM -0600, Christopher D. Rickett wrote:
> > > gfortran.log gives:
> > > 
> > > /home/crickett/svnGcc/trunk/gcc/testsuite/gfortran.dg/c_kinds.c:11: error: 
> > > ISO C90 does not support 'long long'
> > > 
> > > the top few lines of the C file are:
> > > 
> > > /* { dg-do compile } */
> > > /* { dg-options "-std=c99" } */
> > > 
> > > the param_test is a Fortran routine, with bind(c), that i call from a C 
> > > main to test the pass-by-value of the above types.  this works just fine, 
> > > outside of the testsuite.  i copied this from my test dir, where it was 
> > > working just fine because gcc defaults to gnu99.  
> 
> The test directives in the C source file are ignored.  The problem is
> from DEFAULT_FFLAGS being "-pedantic-errors", which is used to compile
> both source files.  You can override DEFAULT_FFLAGS by using
> { dg-options "" } in the primary (Fortran) source file.
> 
> Janis
> 


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