public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32600]  New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
@ 2007-07-02 22:54 burnus at gcc dot gnu dot org
  2007-07-02 23:10 ` [Bug fortran/32600] " burnus at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-02 22:54 UTC (permalink / raw)
  To: gcc-bugs

The code

use iso_c_binding
integer, target :: i
type(c_ptr) :: bar
bar = c_loc(i)
end

produces:

  bar = c_loc (&i);

g95 produces:
  bar = &i;;
and NAG f95:
  bar_ = (char*) &i_;

Analogously for C_FUNPOINTER:
---------------
use iso_c_binding
interface
  subroutine bar() bind(c)
  end subroutine bar
end interface
type(c_funptr) :: fptr
fptr = c_funloc(bar)
end
---------------

gfortran:
  void * fptr;
  fptr = c_funloc (bar);
g95:
  void (*<T34>) (void) fptr;
  fptr = bar;;
NAG f95:
  typedef void * __NAGf90_MODULE_iso_c_binding_DT_c_ptr;
  typedef void (* __NAGf90_MODULE_iso_c_binding_DT_c_funptr)();
  auto __NAGf90_MODULE_iso_c_binding_DT_c_funptr fptr_;
  fptr_ = (void(*)())bar;


-- 
           Summary: [ISO Bind C] C_LOC/C_FUNLOC should not be library
                    functions
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
@ 2007-07-02 23:10 ` burnus at gcc dot gnu dot org
  2007-07-03  3:55 ` kargl at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-02 23:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2007-07-02 23:09 -------
Analogously for c_f_pointer (without SHAPE) and c_f_funpointer:

use iso_c_binding
implicit none
integer, target :: tgt
type(c_ptr) :: cptr
integer, pointer :: ptr
 cptr = c_loc(tgt)
 call c_f_pointer(cptr,ptr)
end


gfortran:
  c_f_pointer_i4 (cptr, &ptr, 0B);
g95:
  ptr = cptr;;
NAG f95:
  ptr_ = cptr_;


For shape, one can also consider generate the code directly.
gfortran and g95 call a library function but NAG f95 generates the C code
directly:

use iso_c_binding
implicit none
integer, target :: tgt(10)
type(c_ptr) :: cptr
integer, pointer :: ptr(:)
 cptr = c_loc(tgt)
 call c_f_pointer(cptr,ptr, (/ 10 /))
end


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
  2007-07-02 23:10 ` [Bug fortran/32600] " burnus at gcc dot gnu dot org
@ 2007-07-03  3:55 ` kargl at gcc dot gnu dot org
  2007-07-03  5:27 ` burnus at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-07-03  3:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2007-07-03 03:55 -------
This just an optimization request, right?  The functions calls work?


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
  2007-07-02 23:10 ` [Bug fortran/32600] " burnus at gcc dot gnu dot org
  2007-07-03  3:55 ` kargl at gcc dot gnu dot org
@ 2007-07-03  5:27 ` burnus at gcc dot gnu dot org
  2007-07-03 10:19 ` fxcoudert at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-03  5:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-07-03 05:27 -------
(In reply to comment #2)
> This just an optimization request, right?  The functions calls work?
Yes - at least all my test programs work.

Though there might be some combinations of c_f_pointer which don't work; at
least I don't remember seeing a patch after Chris wrote 
TODO: "1) add versions of c_f_pointer for complex type/kind combos"
http://gcc.gnu.org/ml/fortran/2007-02/msg00558.html

But I might have simply missed the patch.


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-07-03  5:27 ` burnus at gcc dot gnu dot org
@ 2007-07-03 10:19 ` fxcoudert at gcc dot gnu dot org
  2007-07-18 23:30 ` patchapp at dberlin dot org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-07-03 10:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-03 10:19:13
               date|                            |


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-07-03 10:19 ` fxcoudert at gcc dot gnu dot org
@ 2007-07-18 23:30 ` patchapp at dberlin dot org
  2007-07-19  6:14 ` burnus at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: patchapp at dberlin dot org @ 2007-07-18 23:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from patchapp at dberlin dot org  2007-07-18 23:30 -------
Subject: Bug number PR 32600

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01565.html


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-07-18 23:30 ` patchapp at dberlin dot org
@ 2007-07-19  6:14 ` burnus at gcc dot gnu dot org
  2007-07-21  8:04 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-19  6:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from burnus at gcc dot gnu dot org  2007-07-19 06:14 -------
Subject: Bug 32600

Author: burnus
Date: Thu Jul 19 06:14:19 2007
New Revision: 126744

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126744
Log:
2007-07-19  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32600
        * trans-expr.c (gfc_conv_function_call): Inline C_LOC.


2007-07-19  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32600
        * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
        * libgfortran/intrinsics/iso_c_binding.h: Ditto.
        * libgfortran/gfortran.map: Ditto.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/iso_c_binding.c
    trunk/libgfortran/intrinsics/iso_c_binding.h


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-07-19  6:14 ` burnus at gcc dot gnu dot org
@ 2007-07-21  8:04 ` pinskia at gcc dot gnu dot org
  2007-07-21  8:05 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-21  8:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-07-21 08:04 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-07-21  8:04 ` pinskia at gcc dot gnu dot org
@ 2007-07-21  8:05 ` pinskia at gcc dot gnu dot org
  2007-07-21 20:18 ` burnus at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-21  8:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-07-21 08:04 -------
Wait only C_LOC was fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-07-21  8:05 ` pinskia at gcc dot gnu dot org
@ 2007-07-21 20:18 ` burnus at gcc dot gnu dot org
  2007-07-22  6:10 ` patchapp at dberlin dot org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-21 20:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from burnus at gcc dot gnu dot org  2007-07-21 20:17 -------
Besides c_funloc (patch submitted) and c_f_pointer (scalar case, i.e. no SHAPE)
also c_associated (c_associated_1/c_associated_2) can be moved into trans*.c

The code for c_associated is essentially the same as for Fortran's ASSOCIATED,
except there is no need for checking the array case. (Cf. trans-intrinsic.c's
gfc_conv_associated.)

(Side note: I miss a __iso_c_binding_ prefix for these library routines,
currently one gets in the dump, e.g., "c_f_pointer_i4" instead of the expected
"__iso_c_binding_c_f_pointer_i4"; but libgfortran only exports the latter?!?)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crickett at lanl dot gov


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-07-21 20:18 ` burnus at gcc dot gnu dot org
@ 2007-07-22  6:10 ` patchapp at dberlin dot org
  2007-07-23  6:03 ` burnus at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: patchapp at dberlin dot org @ 2007-07-22  6:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from patchapp at dberlin dot org  2007-07-22 06:10 -------
Subject: Bug number PR 32600

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01540.html


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2007-07-22  6:10 ` patchapp at dberlin dot org
@ 2007-07-23  6:03 ` burnus at gcc dot gnu dot org
  2007-10-15  1:07 ` [Bug fortran/32600] [ISO Bind C] C_ASSOCIATED/C_F_POINTER w/o SHAPE " patchapp at dberlin dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-23  6:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from burnus at gcc dot gnu dot org  2007-07-23 06:03 -------
Subject: Bug 32600

Author: burnus
Date: Mon Jul 23 06:03:33 2007
New Revision: 126835

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126835
Log:
2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/32600
        * trans-expr.c (gfc_conv_function_call): Handle c_funloc.
        * trans-types.c: Add pfunc_type_node.
        (gfc_init_types,gfc_typenode_for_spec): Use it.
        * resolve.c (gfc_iso_c_func_interface): Fix whitespace and
        improve error message.

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32600
        * intrinsics/iso_c_binding.c (c_funloc): Remove.
        * intrinsics/iso_c_binding.h: Remove c_funloc.
        * gfortran.map: Ditto.

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32600
        * gfortran.dg/c_funloc_tests_5.f03: New.
        * gfortran.dg/c_funloc_tests_5.f04: New.
        * gfortran.dg/c_funloc_tests_4_driver.c: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/c_funloc_tests_4.f03
    trunk/gcc/testsuite/gfortran.dg/c_funloc_tests_4_driver.c
    trunk/gcc/testsuite/gfortran.dg/c_funloc_tests_5.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/iso_c_binding.c
    trunk/libgfortran/intrinsics/iso_c_binding.h


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_ASSOCIATED/C_F_POINTER w/o SHAPE should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-07-23  6:03 ` burnus at gcc dot gnu dot org
@ 2007-10-15  1:07 ` patchapp at dberlin dot org
  2007-10-15 19:59 ` burnus at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: patchapp at dberlin dot org @ 2007-10-15  1:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from patchapp at dberlin dot org  2007-10-15 01:07 -------
Subject: Bug number PR 32600

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00775.html


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_ASSOCIATED/C_F_POINTER w/o SHAPE should not be library functions
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2007-10-15  1:07 ` [Bug fortran/32600] [ISO Bind C] C_ASSOCIATED/C_F_POINTER w/o SHAPE " patchapp at dberlin dot org
@ 2007-10-15 19:59 ` burnus at gcc dot gnu dot org
  2007-10-15 20:00 ` [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-15 19:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from burnus at gcc dot gnu dot org  2007-10-15 19:59 -------
Subject: Bug 32600

Author: burnus
Date: Mon Oct 15 19:58:55 2007
New Revision: 129367

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129367
Log:
2007-10-15 Christopher D. Rickett <crickett@lanl.gov>

        PR fortran/32600
        * trans-expr.c (gfc_conv_function_call): Generate code to inline
        c_associated.
        * symbol.c (get_iso_c_sym): Preserve from_intmod and
        * intmod_sym_id
        attributes in the resolved symbol.
        * resolve.c (gfc_iso_c_sub_interface): Remove dead code.


2007-10-15 Christopher D. Rickett <crickett@lanl.gov>

        PR fortran/32600
        * libgfortran/intrinsics/iso_c_binding.c: Remove c_associated_1
        and c_associated_2.
        * libgfortran/intrinsics/iso_c_binding.h: Ditto.
        * libgfortran/gfortran.map: Ditto.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-expr.c
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/iso_c_binding.c
    trunk/libgfortran/intrinsics/iso_c_binding.h


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2007-10-15 19:59 ` burnus at gcc dot gnu dot org
@ 2007-10-15 20:00 ` burnus at gcc dot gnu dot org
  2008-03-13 14:37 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-15 20:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from burnus at gcc dot gnu dot org  2007-10-15 20:00 -------
Last missing part: C_F_POINTER() in the absence of SHAPE should be in the front
end and not a library call.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[ISO Bind C]                |[ISO Bind C] C_F_POINTER w/o
                   |C_ASSOCIATED/C_F_POINTER w/o|SHAPE should not be a
                   |SHAPE should not be library |library function
                   |functions                   |


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


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

* [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2007-10-15 20:00 ` [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function burnus at gcc dot gnu dot org
@ 2008-03-13 14:37 ` fxcoudert at gcc dot gnu dot org
  2008-05-25 17:53 ` burnus at gcc dot gnu dot org
  2008-05-25 17:56 ` burnus at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-03-13 14:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
             Status|REOPENED                    |ASSIGNED
   Last reconfirmed|2007-07-03 10:19:13         |2008-03-13 14:37:10
               date|                            |
   Target Milestone|4.3.0                       |---


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


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

* [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2008-03-13 14:37 ` fxcoudert at gcc dot gnu dot org
@ 2008-05-25 17:53 ` burnus at gcc dot gnu dot org
  2008-05-25 17:56 ` burnus at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-05-25 17:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from burnus at gcc dot gnu dot org  2008-05-25 17:52 -------
Subject: Bug 32600

Author: burnus
Date: Sun May 25 17:52:03 2008
New Revision: 135877

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135877
Log:
2008-05-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/32600
        * trans-expr.c (gfc_conv_function_call): Remove library
        call for c_f_pointer with scalar Fortran pointers and for
        c_f_procpointer.

2008-05-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/32600
        * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
        * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
        * gfortran.map (c_f_procpointer): Remove.

2008-05-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/32600
        * gfortran.dg/c_f_pointer_tests_3.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/c_f_pointer_tests_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/iso_c_binding.c
    trunk/libgfortran/intrinsics/iso_c_binding.h


-- 


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


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

* [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function
  2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2008-05-25 17:53 ` burnus at gcc dot gnu dot org
@ 2008-05-25 17:56 ` burnus at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-05-25 17:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from burnus at gcc dot gnu dot org  2008-05-25 17:55 -------
FIXED on the trunk (4.4).


-- 

burnus at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-05-25 17:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 22:54 [Bug fortran/32600] New: [ISO Bind C] C_LOC/C_FUNLOC should not be library functions burnus at gcc dot gnu dot org
2007-07-02 23:10 ` [Bug fortran/32600] " burnus at gcc dot gnu dot org
2007-07-03  3:55 ` kargl at gcc dot gnu dot org
2007-07-03  5:27 ` burnus at gcc dot gnu dot org
2007-07-03 10:19 ` fxcoudert at gcc dot gnu dot org
2007-07-18 23:30 ` patchapp at dberlin dot org
2007-07-19  6:14 ` burnus at gcc dot gnu dot org
2007-07-21  8:04 ` pinskia at gcc dot gnu dot org
2007-07-21  8:05 ` pinskia at gcc dot gnu dot org
2007-07-21 20:18 ` burnus at gcc dot gnu dot org
2007-07-22  6:10 ` patchapp at dberlin dot org
2007-07-23  6:03 ` burnus at gcc dot gnu dot org
2007-10-15  1:07 ` [Bug fortran/32600] [ISO Bind C] C_ASSOCIATED/C_F_POINTER w/o SHAPE " patchapp at dberlin dot org
2007-10-15 19:59 ` burnus at gcc dot gnu dot org
2007-10-15 20:00 ` [Bug fortran/32600] [ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function burnus at gcc dot gnu dot org
2008-03-13 14:37 ` fxcoudert at gcc dot gnu dot org
2008-05-25 17:53 ` burnus at gcc dot gnu dot org
2008-05-25 17:56 ` burnus 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).