public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/40863]  New: [4.5 Regression] Build failure in libgfortran
@ 2009-07-26 17:18 tkoenig at gcc dot gnu dot org
  2009-07-26 17:40 ` [Bug libfortran/40863] " danglin at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-07-26 17:18 UTC (permalink / raw)
  To: gcc-bugs

Just ran into this.

A forgotten commit, maybe?


../../../trunk/libgfortran/intrinsics/c99_functions.c: At top level:
../../../trunk/libgfortran/intrinsics/c99_functions.c:1520:1: warning: no
previo
us prototype for 'casinhf'
../../../trunk/libgfortran/intrinsics/c99_functions.c:1530:1: warning: no
previo
us prototype for 'casinh'
../../../trunk/libgfortran/intrinsics/c99_functions.c:1553:1: warning: no
previo
us prototype for 'cacoshf'
../../../trunk/libgfortran/intrinsics/c99_functions.c:1563:1: warning: no
previo
us prototype for 'cacosh'
../../../trunk/libgfortran/intrinsics/c99_functions.c:1586:1: warning: no
previo
us prototype for 'catanhf'
../../../trunk/libgfortran/intrinsics/c99_functions.c:1596:1: warning: no
previo
us prototype for 'catanh'
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'catan':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1500:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'catanf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1490:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacos':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1467:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacosf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1457:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1434:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casinf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1424:1: warning: control
r
eaches end of non-void function
make[3]: *** [c99_functions.lo] Error 1
make[3]: Leaving directory `/home/Thomas/trunk-bin/i686-pc-cygwin/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Thomas/trunk-bin/i686-pc-cygwin/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/home/Thomas/trunk-bin'
make: *** [bootstrap] Error 2


-- 
           Summary: [4.5 Regression] Build failure in libgfortran
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
@ 2009-07-26 17:40 ` danglin at gcc dot gnu dot org
  2009-07-26 18:42 ` burnus at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-07-26 17:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from danglin at gcc dot gnu dot org  2009-07-26 17:40 -------
On hppa2.0w-hp-hpux11.11,

libtool: compile:  /test/gnu/gcc/objdir/./gcc/xgcc
-B/test/gnu/gcc/objdir/./gcc/
 -B/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.5.0/hp
pa2.0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/i
nclude -isystem /opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/sys-include
-DHAVE_
CONFIG_H -I. -I../../../gcc/libgfortran -I. -iquote../../../gcc/libgfortran/io
-
I../../../gcc/libgfortran/../gcc -I../../../gcc/libgfortran/../gcc/config
-I../.
././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -MT
c99
_functions.lo -MD -MP -MF .deps/c99_functions.Tpo -c
../../../gcc/libgfortran/in
trinsics/c99_functions.c  -fPIC -DPIC -o .libs/c99_functions.o
../../../gcc/libgfortran/intrinsics/c99_functions.c:177:1: warning: no previous 
prototype for 'acoshf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:194:1: warning: no previous 
prototype for 'asinhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:220:1: warning: no previous 
prototype for 'atanhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:229:1: warning: no previous 
prototype for 'ceilf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:283:1: warning: no previous 
prototype for 'floorf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:301:1: warning: no previous 
prototype for 'frexpf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:310:1: warning: no previous 
prototype for 'hypotf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:350:1: warning: no previous 
prototype for 'scalbnf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:419:1: warning: no previous 
prototype for 'truncf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:536:1: warning: no previous 
prototype for 'roundl'
../../../gcc/libgfortran/intrinsics/c99_functions.c:590:1: warning: no previous 
prototype for 'roundf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:619:1: warning: no previous 
prototype for 'lroundf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:637:1: warning: no previous 
prototype for 'lroundl'
../../../gcc/libgfortran/intrinsics/c99_functions.c:646:1: warning: no previous 
prototype for 'llroundf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:664:1: warning: no previous 
prototype for 'llroundl'
../../../gcc/libgfortran/intrinsics/c99_functions.c:676:1: warning: no previous 
prototype for 'log10l'
../../../gcc/libgfortran/intrinsics/c99_functions.c:714:1: warning: no previous 
prototype for 'floorl'
../../../gcc/libgfortran/intrinsics/c99_functions.c:740:1: warning: no previous 
prototype for 'fmodl'
../../../gcc/libgfortran/intrinsics/c99_functions.c:812:1: warning: no previous 
prototype for 'cexpf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:827:1: warning: no previous 
prototype for 'cexp'
../../../gcc/libgfortran/intrinsics/c99_functions.c:859:1: warning: no previous 
prototype for 'clogf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:871:1: warning: no previous 
prototype for 'clog'
../../../gcc/libgfortran/intrinsics/c99_functions.c:935:1: warning: no previous 
prototype for 'cpowf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:944:1: warning: no previous 
prototype for 'cpow'
../../../gcc/libgfortran/intrinsics/c99_functions.c:964:1: warning: no previous 
prototype for 'csqrtf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1017:1: warning: no
previous
 prototype for 'csqrt'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1125:1: warning: no
previous
 prototype for 'csinhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1140:1: warning: no
previous
 prototype for 'csinh'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1172:1: warning: no
previous
 prototype for 'ccoshf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1187:1: warning: no
previous
 prototype for 'ccosh'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1219:1: warning: no
previous
 prototype for 'ctanhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1236:1: warning: no
previous
 prototype for 'ctanh'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1272:1: warning: no
previous
 prototype for 'csinf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1287:1: warning: no
previous
 prototype for 'csin'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1319:1: warning: no
previous
 prototype for 'ccosf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1334:1: warning: no
previous
 prototype for 'ccos'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1366:1: warning: no
previous
 prototype for 'ctanf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1383:1: warning: no
previous
 prototype for 'ctan'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1421:1: warning: no
previous
 prototype for 'casinf'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'casinf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1423:11: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c:1423:11: error: (Each
undecl
ared identifier is reported only once
../../../gcc/libgfortran/intrinsics/c99_functions.c:1423:11: error: for each
fun
ction it appears in.)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1431:1: warning: no
previous
 prototype for 'casin'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1433:11: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1454:1: warning: no
previous
 prototype for 'cacosf'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'cacosf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1456:11: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1464:1: warning: no
previous
 prototype for 'cacos'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'cacos':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1466:11: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1487:1: warning: no
previous
 prototype for 'catanf'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'catanf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1489:10: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1497:1: warning: no
previous
 prototype for 'catan'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'catan':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1499:10: error: 'I'
undeclar
ed (first use in this function)
../../../gcc/libgfortran/intrinsics/c99_functions.c: At top level:
../../../gcc/libgfortran/intrinsics/c99_functions.c:1520:1: warning: no
previous
 prototype for 'casinhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1530:1: warning: no
previous
 prototype for 'casinh'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1553:1: warning: no
previous
 prototype for 'cacoshf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1563:1: warning: no
previous
 prototype for 'cacosh'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1586:1: warning: no
previous
 prototype for 'catanhf'
../../../gcc/libgfortran/intrinsics/c99_functions.c:1596:1: warning: no
previous
 prototype for 'catanh'
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'catan':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1500:1: warning: control
rea
ches end of non-void function
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'catanf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1490:1: warning: control
rea
ches end of non-void function
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'cacos':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1467:1: warning: control
rea
ches end of non-void function
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'cacosf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1457:1: warning: control
rea
ches end of non-void function
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1434:1: warning: control
rea
ches end of non-void function
../../../gcc/libgfortran/intrinsics/c99_functions.c: In function 'casinf':
../../../gcc/libgfortran/intrinsics/c99_functions.c:1424:1: warning: control
rea
ches end of non-void function
make[3]: *** [c99_functions.lo] Error 1


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-26 17:40:25
               date|                            |


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
  2009-07-26 17:40 ` [Bug libfortran/40863] " danglin at gcc dot gnu dot org
@ 2009-07-26 18:42 ` burnus at gcc dot gnu dot org
  2009-07-26 18:51 ` tkoenig at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-26 18:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2009-07-26 18:42 -------
Created an attachment (id=18255)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18255&action=view)
Draft patch

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.)

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...


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
  2009-07-26 17:40 ` [Bug libfortran/40863] " danglin at gcc dot gnu dot org
  2009-07-26 18:42 ` burnus at gcc dot gnu dot org
@ 2009-07-26 18:51 ` tkoenig at gcc dot gnu dot org
  2009-07-26 19:09 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-07-26 18:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2009-07-26 18:50 -------
(In reply to comment #2)

Still fails for me on Cygwin with

libtool: compile:  /home/Thomas/trunk-bin/./gcc/xgcc
-B/home/Thomas/trunk-bin/./
gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem
/usr/local/i686-pc-cygwin/include -isystem
/usr/local/i686-pc-cygwin/sys-include
 -DHAVE_CONFIG_H -I. -I../../../trunk/libgfortran -I.
-iquote../../../trunk/libg
fortran/io -I../../../trunk/libgfortran/../gcc
-I../../../trunk/libgfortran/../g
cc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes
-Wmis
sing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-fcx-fortran-rule
s -ffunction-sections -fdata-sections -g -O2 -MT c99_functions.lo -MD -MP -MF
.d
eps/c99_functions.Tpo -c ../../../trunk/libgfortran/intrinsics/c99_functions.c
-DDLL_EXPORT -DPIC -o .libs/c99_functions.o
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casinf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1573:11: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c:1573:11: error: (Each
unde
clared identifier is reported only once
../../../trunk/libgfortran/intrinsics/c99_functions.c:1573:11: error: for each
f
unction it appears in.)
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1585:11: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacosf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1612:11: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacos':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1624:11: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'catanf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1651:10: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'catan':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1663:10: error: 'I'
undecl
ared (first use in this function)
../../../trunk/libgfortran/intrinsics/c99_functions.c:1664:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'catanf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1652:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacos':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1625:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'cacosf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1613:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casin':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1586:1: warning: control
r
eaches end of non-void function
../../../trunk/libgfortran/intrinsics/c99_functions.c: In function 'casinf':
../../../trunk/libgfortran/intrinsics/c99_functions.c:1574:1: warning: control
r
eaches end of non-void function
make[3]: *** [c99_functions.lo] Error 1
make[3]: Leaving directory `/home/Thomas/trunk-bin/i686-pc-cygwin/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Thomas/trunk-bin/i686-pc-cygwin/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/home/Thomas/trunk-bin'
make: *** [bootstrap] Error 2


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-07-26 18:51 ` tkoenig at gcc dot gnu dot org
@ 2009-07-26 19:09 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-07-26 20:11 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-07-26 19:09 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-07-26 19:09 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-07-26 20:11 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-07-26 20:28 ` burnus at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-07-26 20:11 UTC (permalink / raw)
  To: gcc-bugs



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

On Sun, 26 Jul 2009, John David Anglin wrote:

> > 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.

With the patch, I see the same errors and warnings on hppa2.0w-hp-hpux11.11
as reported for cygwin in comment #3.

Dave


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-07-26 20:11 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-07-26 20:28 ` burnus at gcc dot gnu dot org
  2009-07-26 20:32 ` burnus at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-26 20:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from burnus at gcc dot gnu dot org  2009-07-26 20:28 -------
(In reply to comment #4)
> The prototype warnings have been there foreever.

They should be fixed with the patch ... Do they still appear?


> 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)

Hmm. Do you know how the macro is called which provides "I", where I*I = -1?

On a POSIX/C99 system one has:

       The <complex.h> header shall define the following macros:
       complex
              Expands to _Complex.
       _Complex_I
              Expands  to a constant expression of type const float _Complex,
              with the value of the imaginary unit (that is, a number i such
              that i**2=-1).
       imaginary
              Expands to _Imaginary.
       _Imaginary_I
              Expands to a constant expression of type const float _Imaginary
              with the value of the imaginary unit.
       I      Expands to either _Imaginary_I or _Complex_I. If _Imaginary_I
              is not defined, I expands to _Complex_I.

Which of those macros are defined on hppa2.0w-hp-hpux11.11 and on Cygwin ?
Seemingly not the last one ...

Can you try whether the following works (place somewhere in
intrinsics/c99_functions.c):

#ifndef I
# if defined(_Imaginary_I)
#   define I _Imaginary_I
# elif defined(_Complex_I)
#   define I _Complex_I
# endif
#endif


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-07-26 20:28 ` burnus at gcc dot gnu dot org
@ 2009-07-26 20:32 ` burnus at gcc dot gnu dot org
  2009-07-26 21:22 ` tkoenig at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-26 20:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from burnus at gcc dot gnu dot org  2009-07-26 20:32 -------
(In reply to comment #6)
> Can you try whether the following works (place somewhere in
> intrinsics/c99_functions.c):

Enhanced version with yet another version for I:

#ifndef I
# if defined(_Imaginary_I)
#   define I _Imaginary_I
# elif defined(_Complex_I)
#   define I _Complex_I
# else
#   define I (1.0fi)
# endif
#endif


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-07-26 20:32 ` burnus at gcc dot gnu dot org
@ 2009-07-26 21:22 ` tkoenig at gcc dot gnu dot org
  2009-07-26 21:37 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-07-26 21:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from tkoenig at gcc dot gnu dot org  2009-07-26 21:22 -------
(In reply to comment #7)
> (In reply to comment #6)
> > Can you try whether the following works (place somewhere in
> > intrinsics/c99_functions.c):
> 
> Enhanced version with yet another version for I:
> 
> #ifndef I
> # if defined(_Imaginary_I)
> #   define I _Imaginary_I
> # elif defined(_Complex_I)
> #   define I _Complex_I
> # else
> #   define I (1.0fi)
> # endif
> #endif

This compiles on Cygwin, when applied on top of your other patch.

Good work!


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-07-26 21:22 ` tkoenig at gcc dot gnu dot org
@ 2009-07-26 21:37 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-07-27  9:25 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-07-26 21:37 UTC (permalink / raw)
  To: gcc-bugs



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

> (In reply to comment #7)
> > (In reply to comment #6)
> > > Can you try whether the following works (place somewhere in
> > > intrinsics/c99_functions.c):
> > 
> > Enhanced version with yet another version for I:
> > 
> > #ifndef I
> > # if defined(_Imaginary_I)
> > #   define I _Imaginary_I
> > # elif defined(_Complex_I)
> > #   define I _Complex_I
> > # else
> > #   define I (1.0fi)
> > # endif
> > #endif
> 
> This compiles on Cygwin, when applied on top of your other patch.

Same on hppa2.0w-hp-hpux11.11.  There are no warnings.

Thanks,
Dave


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-07-26 21:37 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-07-27  9:25 ` burnus at gcc dot gnu dot org
  2009-07-27  9:27 ` burnus at gcc dot gnu dot org
  2009-08-14 17:45 ` jb at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-27  9:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from burnus at gcc dot gnu dot org  2009-07-27 09:24 -------
Subject: Bug 40863

Author: burnus
Date: Mon Jul 27 09:24:41 2009
New Revision: 150107

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150107
Log:
2009-07-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40863
        * c99_functions.c: Define complex I, if not defined.
        Create prototypes for C99 functions to silence warnings.
        * gfortran.map: Add missing functions to GFORTRAN_C99_1.0
        and new GFORTRAN_C99_1.1.


Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/c99_functions.c


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-07-27  9:25 ` burnus at gcc dot gnu dot org
@ 2009-07-27  9:27 ` burnus at gcc dot gnu dot org
  2009-08-14 17:45 ` jb at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-27  9:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from burnus at gcc dot gnu dot org  2009-07-27 09:27 -------
FIXED on the trunk (4.5). Thanks for the bug report and sorry for the breakage. 

Feel free to open a PR if build warnings show up in libgfortran. In principle,
there should be none. (I have forgotten why we cannot use -Werror.)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug libfortran/40863] [4.5 Regression] Build failure in libgfortran
  2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-07-27  9:27 ` burnus at gcc dot gnu dot org
@ 2009-08-14 17:45 ` jb at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: jb at gcc dot gnu dot org @ 2009-08-14 17:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jb at gcc dot gnu dot org  2009-08-14 17:45 -------
Subject: Bug 40863

Author: jb
Date: Fri Aug 14 17:44:50 2009
New Revision: 150765

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150765
Log:
PR libfortran/40863 Fix r150107 moving new symbols to C99_1.1 node

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-08-14 17:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-26 17:18 [Bug libfortran/40863] New: [4.5 Regression] Build failure in libgfortran tkoenig at gcc dot gnu dot org
2009-07-26 17:40 ` [Bug libfortran/40863] " danglin at gcc dot gnu dot org
2009-07-26 18:42 ` burnus at gcc dot gnu dot org
2009-07-26 18:51 ` tkoenig at gcc dot gnu dot org
2009-07-26 19:09 ` dave at hiauly1 dot hia dot nrc dot ca
2009-07-26 20:11 ` dave at hiauly1 dot hia dot nrc dot ca
2009-07-26 20:28 ` burnus at gcc dot gnu dot org
2009-07-26 20:32 ` burnus at gcc dot gnu dot org
2009-07-26 21:22 ` tkoenig at gcc dot gnu dot org
2009-07-26 21:37 ` dave at hiauly1 dot hia dot nrc dot ca
2009-07-27  9:25 ` burnus at gcc dot gnu dot org
2009-07-27  9:27 ` burnus at gcc dot gnu dot org
2009-08-14 17:45 ` jb at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).