------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2009-07-26 
19:09 -------
Subject: Re:  [4.5 Regression] Build failure in libgfortran

> Patch. As I cannot test all the combinations, I would be happy if someone 
> could
> test it or read the patch. (I will reread it and also do some testing, but by
> default I am not affect by this bug.)

Will do.

> The problem is that the C99 fall back functions are defined in c99_proto.h, 
> but
> it is not included in intrinsics/c99*.c. Thus there is no prototype and due to
> the -W* settings, there is an error.
> 
> I do not quite understand why this has not come up before. Only about 10% of
> the functions had prototypes - presumably the other 90% of the fall backs are
> not used...

The prototype warnings have been there foreever.  On hpux, the error
appears as a result of your change:

../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1433:11: error: 'I'
undeclared (first use in this function)

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40863

Reply via email to