public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29313]  New: [middle-end]Possible bogus warning: argument 'type' might be clobbered
@ 2006-10-01 23:46 jvdelisle at gcc dot gnu dot org
  2006-10-01 23:50 ` [Bug c/29313] " jvdelisle at gcc dot gnu dot org
  2009-12-29 15:49 ` [Bug middle-end/29313] " fxcoudert at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-01 23:46 UTC (permalink / raw)
  To: gcc-bugs

This warning occurs for libgfortran/io/list_read.c (list_formatted_read_scalar)

It can be cleared up using the 'volatile' on the argument 'type' shown here. 
'type' is never changed anywhere.

static void
list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p,
int kind,
                            size_t size)
{
  char c;
  int m;
  jmp_buf eof_jump;

  dtp->u.p.namelist_mode = 0;

  dtp->u.p.eof_jump = &eof_jump;
  if (setjmp (eof_jump))
    {
      generate_error (&dtp->common, ERROR_END, NULL);
      goto cleanup;
    }

 --- snip ---


-- 
           Summary: [middle-end]Possible bogus warning: argument 'type'
                    might be clobbered
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org
  GCC host triplet: linux-ppc, darwin-ppc, linux-x86-64


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


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

* [Bug c/29313] [middle-end]Possible bogus warning: argument 'type' might be clobbered
  2006-10-01 23:46 [Bug c/29313] New: [middle-end]Possible bogus warning: argument 'type' might be clobbered jvdelisle at gcc dot gnu dot org
@ 2006-10-01 23:50 ` jvdelisle at gcc dot gnu dot org
  2009-12-29 15:49 ` [Bug middle-end/29313] " fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-01 23:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2006-10-01 23:50 -------
>From the gfortran list:

         Reviewing my buildlog of gcc trunk on Darwin PPC, I noticed
we have the warning...

/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc/xgcc
-B/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc/
-B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/li
b/gcc4/powerpc-apple-darwin8/lib/ -isystem
/sw/lib/gcc4/powerpc-apple-darwin8/include -isystem
/sw/lib/gcc4/powerpc-apple-darwin8/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-4.2-2
0060928/libgfortran -I. -iquote../../../gcc-4.2-20060928/libgfortran/io
-I../../../gcc-4.2-20060928/libgfortran/../gcc
-I../../../gcc-4.2-20060928/libgfortran/../gcc/config -I../../.
/gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c
../../../gcc-4.2-20060928/libgfortran/io/lis
t_read.c  -fno-common -DPIC -o .libs/list_read.o
../../../gcc-4.2-20060928/libgfortran/io/list_read.c: In function
'list_formatted_read_scalar':
../../../gcc-4.2-20060928/libgfortran/io/list_read.c:1460: warning: argument
'type' might be clobbered by 'longjmp' or 'vfork'


-- 


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


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

* [Bug middle-end/29313] [middle-end]Possible bogus warning: argument 'type' might be clobbered
  2006-10-01 23:46 [Bug c/29313] New: [middle-end]Possible bogus warning: argument 'type' might be clobbered jvdelisle at gcc dot gnu dot org
  2006-10-01 23:50 ` [Bug c/29313] " jvdelisle at gcc dot gnu dot org
@ 2009-12-29 15:49 ` fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-12-29 15:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2009-12-29 15:48 -------


*** This bug has been marked as a duplicate of 41219 ***


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2009-12-29 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-01 23:46 [Bug c/29313] New: [middle-end]Possible bogus warning: argument 'type' might be clobbered jvdelisle at gcc dot gnu dot org
2006-10-01 23:50 ` [Bug c/29313] " jvdelisle at gcc dot gnu dot org
2009-12-29 15:49 ` [Bug middle-end/29313] " fxcoudert 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).