public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60974] New: bfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
@ 2014-04-26  8:51 atvreddy97 at gmail dot com
  2014-04-26  9:39 ` [Bug c/60974] " atvreddy97 at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: atvreddy97 at gmail dot com @ 2014-04-26  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60974
           Summary: bfdio.c:580:30: error: argument to ‘sizeof’ in
                    ‘memset’ call is the same expression as the
                    destination; did you mean to dereference it?
                    [-Werror=sizeof-pointer-memaccess]
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: atvreddy97 at gmail dot com

hi sir...
i tried with new version of gcc 4.8.2. i solved the previous problem[bug
60961].

when i am compiling gdb-7.3.1, i got following error.please help......!

make[4]: Entering directory '/home/ADMIN/cortex_m4/gdb-7.3.1/bfd'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I./../include  -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec
-DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec 
-DBINDIR='"/home/ADMIN/cortex_m4/bin"'  -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfdio.lo -MD -MP -MF
.deps/bfdio.Tpo -c -o bfdio.lo bfdio.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include
-DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec
-DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec
-DBINDIR=\"/home/ADMIN/cortex_m4/bin\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bfdio.lo -MD -MP -MF
.deps/bfdio.Tpo -c bfdio.c -o bfdio.o
bfdio.c: In function ‘memory_bstat’:
bfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same
expression as the destination; did you mean to dereference it?
[-Werror=sizeof-pointer-memaccess]
   memset (statbuf, 0, sizeof (statbuf));
                              ^
cc1: all warnings being treated as errors
Makefile:1513: recipe for target 'bfdio.lo' failed
make[4]: *** [bfdio.lo] Error 1
make[4]: Leaving directory '/home/ADMIN/cortex_m4/gdb-7.3.1/bfd'
Makefile:1555: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/ADMIN/cortex_m4/gdb-7.3.1/bfd'
Makefile:1066: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ADMIN/cortex_m4/gdb-7.3.1/bfd'
Makefile:3496: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/home/ADMIN/cortex_m4/gdb-7.3.1'
Makefile:857: recipe for target 'all' failed
make: *** [all] Error 2
>From gcc-bugs-return-449957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 26 09:00:56 2014
Return-Path: <gcc-bugs-return-449957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17947 invoked by alias); 26 Apr 2014 09:00:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17886 invoked by uid 48); 26 Apr 2014 09:00:47 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60974] bfdio.c:580:30: error:=?UTF-8?Q? argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination?=; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
Date: Sat, 26 Apr 2014 09:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-60974-4-ompI21OyFD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60974-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60974-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-04/txt/msg01977.txt.bz2
Content-length: 540

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`974

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Configure gdb with --disable-Werror or better yet use a newer gdb since a newer
is required anyways for dwarf4 support.


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

* [Bug c/60974] bfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
  2014-04-26  8:51 [Bug c/60974] New: bfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] atvreddy97 at gmail dot com
@ 2014-04-26  9:39 ` atvreddy97 at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: atvreddy97 at gmail dot com @ 2014-04-26  9:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from atvreddy <atvreddy97 at gmail dot com> ---
thank you so much......!,i will try with new gdb version..... thanks for
support..



On Sat, Apr 26, 2014 at 2:30 PM, pinskia at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60974
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|---                         |INVALID
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Configure gdb with --disable-Werror or better yet use a newer gdb since a
> newer
> is required anyways for dwarf4 support.
>
> --
> You are receiving this mail because:
> You reported the bug.
>


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

end of thread, other threads:[~2014-04-26  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-26  8:51 [Bug c/60974] New: bfdio.c:580:30: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] atvreddy97 at gmail dot com
2014-04-26  9:39 ` [Bug c/60974] " atvreddy97 at gmail 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).