public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23060] %VAL construct not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
@ 2005-12-07 15:28 ` martinol at nrlssc dot navy dot mil
  2006-09-28  7:58 ` fxcoudert at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: martinol at nrlssc dot navy dot mil @ 2005-12-07 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from martinol at nrlssc dot navy dot mil  2005-12-07 15:28 -------
Since g77 supported this construct, should this not be a regression rather than
an enhancement.


-- 


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


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

* [Bug fortran/23060] %VAL construct not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
  2005-12-07 15:28 ` [Bug fortran/23060] %VAL construct not implemented martinol at nrlssc dot navy dot mil
@ 2006-09-28  7:58 ` fxcoudert at gcc dot gnu dot org
  2006-10-12 12:43 ` pault at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-09-28  7:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from fxcoudert at gcc dot gnu dot org  2006-09-28 07:58 -------
Changing this into a bug, since it was implemented in g77. It might be working
soon, since we will soon have ISO_C_BINDING val attribute, which does the same
thing, so adding the %val construct will probably be very easy.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
           Severity|enhancement                 |normal
 GCC target triplet|i386-redhat-linux           |
   Last reconfirmed|2006-03-05 03:41:17         |2006-09-28 07:58:23
               date|                            |


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


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

* [Bug fortran/23060] %VAL construct not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
  2005-12-07 15:28 ` [Bug fortran/23060] %VAL construct not implemented martinol at nrlssc dot navy dot mil
  2006-09-28  7:58 ` fxcoudert at gcc dot gnu dot org
@ 2006-10-12 12:43 ` pault at gcc dot gnu dot org
  2006-10-12 13:19 ` fxcoudert at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-12 12:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Keywords|rejects-valid               |


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


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

* [Bug fortran/23060] %VAL construct not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-10-12 12:43 ` pault at gcc dot gnu dot org
@ 2006-10-12 13:19 ` fxcoudert at gcc dot gnu dot org
  2006-11-03 14:12 ` [Bug fortran/23060] %VAL, %REF and %DESCR constructs " fxcoudert at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-12 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from fxcoudert at gcc dot gnu dot org  2006-10-12 13:19 -------
[Paul changed this bug into enhancement]

I'm changing this back (again) into a bug, not an enhancement, because it was
supported by g77, and we're trying to make a drop-in replacement for g77 in
most cases.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-10-12 13:19 ` fxcoudert at gcc dot gnu dot org
@ 2006-11-03 14:12 ` fxcoudert at gcc dot gnu dot org
  2006-11-14 10:16 ` pault at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-11-03 14:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from fxcoudert at gcc dot gnu dot org  2006-11-03 14:11 -------
Adding %REF and %DESCR to the summary. Documentation available here:
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/Functions-and-Subroutines.html


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-09-28 07:58:23         |2006-11-03 14:11:48
               date|                            |
            Summary|%VAL construct not          |%VAL, %REF and %DESCR
                   |implemented                 |constructs not implemented


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-11-03 14:12 ` [Bug fortran/23060] %VAL, %REF and %DESCR constructs " fxcoudert at gcc dot gnu dot org
@ 2006-11-14 10:16 ` pault at gcc dot gnu dot org
  2006-12-29 17:25 ` patchapp at dberlin dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-11-14 10:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pault at gcc dot gnu dot org  2006-11-14 10:16 -------
A long overdue patch for this will be submitted in the next 24hours.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-11-03 14:11:48         |2006-11-14 10:16:44
               date|                            |


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2006-11-14 10:16 ` pault at gcc dot gnu dot org
@ 2006-12-29 17:25 ` patchapp at dberlin dot org
  2006-12-31  6:55 ` pault at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: patchapp at dberlin dot org @ 2006-12-29 17:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from patchapp at dberlin dot org  2006-12-29 17:25 -------
Subject: Bug number PR23060

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/2006-12/msg01834.html


-- 


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2006-12-29 17:25 ` patchapp at dberlin dot org
@ 2006-12-31  6:55 ` pault at gcc dot gnu dot org
  2007-01-06 14:14 ` pault at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-12-31  6:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pault at gcc dot gnu dot org  2006-12-31 06:55 -------
Subject: Bug 23060

Author: pault
Date: Sun Dec 31 06:55:16 2006
New Revision: 120295

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120295
Log:
2006-12-31  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/23060
        * intrinsic.c (compare_actual_formal ): Distinguish argument
        list functions from keywords.
        * intrinsic.c (sort_actual): If formal is NULL, the presence of
        an argument list function actual is an error.
        * trans-expr.c (conv_arglist_function) : New function to
        implement argument list functions %VAL, %REF and %LOC.
        (gfc_conv_function_call): Call it.
        * resolve.c (resolve_actual_arglist): Add arg ptype and check
        argument list functions.
        (resolve_function, resolve_call): Set value of ptype before
        calls to resolve_actual_arglist.
        * primary.c (match_arg_list_function): New function.
        (gfc_match_actual_arglist): Call it before trying for a
        keyword argument.

2006-12-31  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/23060
        * gfortran.dg/c_by_val.c: Called by c_by_val_1.f.
        * gfortran.dg/c_by_val_1.f: New test.
        * gfortran.dg/c_by_val_2.f: New test.
        * gfortran.dg/c_by_val_3.f: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/c_by_val.c
    trunk/gcc/testsuite/gfortran.dg/c_by_val_1.f
    trunk/gcc/testsuite/gfortran.dg/c_by_val_2.f90
    trunk/gcc/testsuite/gfortran.dg/c_by_val_3.f90
    trunk/gcc/testsuite/gfortran.dg/char_length_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/interface.c
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2006-12-31  6:55 ` pault at gcc dot gnu dot org
@ 2007-01-06 14:14 ` pault at gcc dot gnu dot org
  2007-01-06 14:18 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-06 14:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pault at gcc dot gnu dot org  2007-01-06 14:13 -------
Subject: Bug 23060

Author: pault
Date: Sat Jan  6 14:13:20 2007
New Revision: 120525

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120525
Log:
2007-01-06  Paul Thomas  <pault@gcc.gnu.org>

        Bug fixes from trunk

        PR fortran/30034
        * resolve.c (resolve_formal_arglist): Exclude the test for
        pointers and procedures for subroutine arguments as well as
        functions.

        PR fortran/30237
        * intrinsic.c (remove_nullargs): Do not pass up arguments with
        a label. If the actual has a label and the formal has a type
        then emit an error.

        PR fortran/25135
        * module.c (load_generic_interfaces): If the symbol is present
        and is not generic it is ambiguous.

        PR fortran/23060
        * intrinsic.c (compare_actual_formal ): Distinguish argument
        list functions from keywords.
        * intrinsic.c (sort_actual): If formal is NULL, the presence of
        an argument list function actual is an error.
        * trans-expr.c (conv_arglist_function) : New function to
        implement argument list functions %VAL, %REF and %LOC.
        (gfc_conv_function_call): Call it.
        * resolve.c (resolve_actual_arglist): Add arg ptype and check
        argument list functions.
        (resolve_function, resolve_call): Set value of ptype before
        calls to resolve_actual_arglist.
        * primary.c (match_arg_list_function): New function.
        (gfc_match_actual_arglist): Call it before trying for a
        keyword argument.

        PR fortran/27900
        * resolve.c (resolve_actual_arglist): If all else fails and a
        procedure actual argument has no type, see if a specific
        intrinsic matches.

        PR fortran/24325
        * resolve.c (resolve_function): If the function reference is
        FL_VARIABLE this is an error.

2007-01-06  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/30034
        * gfortran.dg/pure_formal_proc_1.f90: New test.

        PR fortran/30237
        * gfortran.dg/intrinsic_actual_3.f90: New test.

        PR fortran/25135
        * gfortran.dg/generic_11.f90: New test.
        * gfortran.dg/interface_7.f90: Remove name clash between module
        name and procedure 'x' referenced in the interface.

        PR fortran/23060
        * gfortran.dg/c_by_val.c: Called by c_by_val_1.f.
        * gfortran.dg/c_by_val_1.f: New test.
        * gfortran.dg/c_by_val_2.f: New test.
        * gfortran.dg/c_by_val_3.f: New test.

        PR fortran/27900
        * gfortran.dg/intrinsic_actual_4.f90: New test.

        PR fortran/24325
        * gfortran.dg/func_decl_3.f90: New test.


Added:
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/c_by_val.c
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/c_by_val_1.f
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/c_by_val_2.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/c_by_val_3.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/func_decl_3.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/generic_11.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/intrinsic_actual_3.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/pure_formal_proc_1.f90
Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/interface.c
    branches/gcc-4_2-branch/gcc/fortran/intrinsic.c
    branches/gcc-4_2-branch/gcc/fortran/module.c
    branches/gcc-4_2-branch/gcc/fortran/primary.c
    branches/gcc-4_2-branch/gcc/fortran/resolve.c
    branches/gcc-4_2-branch/gcc/fortran/trans-expr.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/dummy_procedure_1.f90
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/interface_7.f90


-- 


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2007-01-06 14:14 ` pault at gcc dot gnu dot org
@ 2007-01-06 14:18 ` pault at gcc dot gnu dot org
  2007-01-10 19:12 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-06 14:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from pault at gcc dot gnu dot org  2007-01-06 14:17 -------
Fixed on trunk and 4.2

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2007-01-06 14:18 ` pault at gcc dot gnu dot org
@ 2007-01-10 19:12 ` pinskia at gcc dot gnu dot org
  2007-01-26  1:05 ` dmarkman at mac dot com
  2007-01-26  1:45 ` dmarkman at mac dot com
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-10 19:12 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2007-01-10 19:12 ` pinskia at gcc dot gnu dot org
@ 2007-01-26  1:05 ` dmarkman at mac dot com
  2007-01-26  1:45 ` dmarkman at mac dot com
  12 siblings, 0 replies; 14+ messages in thread
From: dmarkman at mac dot com @ 2007-01-26  1:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from dmarkman at mac dot com  2007-01-26 01:05 -------
it looks like that suggested code doesn't work for x86_64 platform. I changed
ADDR declaration to
INTEGER *8 and gfortran -m64 percentval.f returns the following errors:
CALL SUB1( %VAL( ADDR ), SIZE )                                   
                     1
Error: Kind of by-value argument at (1) is larger than default kind
I did it on Mac OS X 10.4.8 and with gcc 4.2
but I guess it could work on Leopard 10.5 but I didn't check it


-- 


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2007-01-26  1:05 ` dmarkman at mac dot com
@ 2007-01-26  1:45 ` dmarkman at mac dot com
  12 siblings, 0 replies; 14+ messages in thread
From: dmarkman at mac dot com @ 2007-01-26  1:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from dmarkman at mac dot com  2007-01-26 01:45 -------
after looking at the gcc/fortran/trans_types.c I tried to use
-fdefault-integer-8 switch
and everything was fine


-- 

dmarkman at mac dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmarkman at mac dot com


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


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

* [Bug fortran/23060] %VAL, %REF and %DESCR constructs not implemented
       [not found] <bug-23060-4@http.gcc.gnu.org/bugzilla/>
@ 2014-02-16 13:15 ` jackie.rosen at hushmail dot com
  0 siblings, 0 replies; 14+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 13:15 UTC (permalink / raw)
  To: gcc-bugs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #18 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.


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

end of thread, other threads:[~2014-02-16 13:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23060-11040@http.gcc.gnu.org/bugzilla/>
2005-12-07 15:28 ` [Bug fortran/23060] %VAL construct not implemented martinol at nrlssc dot navy dot mil
2006-09-28  7:58 ` fxcoudert at gcc dot gnu dot org
2006-10-12 12:43 ` pault at gcc dot gnu dot org
2006-10-12 13:19 ` fxcoudert at gcc dot gnu dot org
2006-11-03 14:12 ` [Bug fortran/23060] %VAL, %REF and %DESCR constructs " fxcoudert at gcc dot gnu dot org
2006-11-14 10:16 ` pault at gcc dot gnu dot org
2006-12-29 17:25 ` patchapp at dberlin dot org
2006-12-31  6:55 ` pault at gcc dot gnu dot org
2007-01-06 14:14 ` pault at gcc dot gnu dot org
2007-01-06 14:18 ` pault at gcc dot gnu dot org
2007-01-10 19:12 ` pinskia at gcc dot gnu dot org
2007-01-26  1:05 ` dmarkman at mac dot com
2007-01-26  1:45 ` dmarkman at mac dot com
     [not found] <bug-23060-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:15 ` jackie.rosen at hushmail dot com

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