From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12966 invoked by alias); 26 Apr 2014 08:51:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12945 invoked by uid 48); 26 Apr 2014 08:51:33 -0000 From: "atvreddy97 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60974] New: bfdio.c:580:30: error:=?UTF-8?Q?=20argument=20to=20=E2=80=98sizeof=E2=80=99=20in=20=E2=80=98memset=E2=80=99=20call=20is=20the=20same=20expression=20as=20the=20destination?=; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] Date: Sat, 26 Apr 2014 08:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: atvreddy97 at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01976.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60974 Bug ID: 60974 Summary: bfdio.c:580:30: error: argument to =E2=80=98sizeof=E2= =80=99 in =E2=80=98memset=E2=80=99 call is the same expression as= the destination; did you mean to dereference it? [-Werror=3Dsizeof-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=3DCC --mode=3Dcompile 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=20 -DBINDIR=3D'"/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=3D\"/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 =E2=80=98memory_bstat=E2=80=99: bfdio.c:580:30: error: argument to =E2=80=98sizeof=E2=80=99 in =E2=80=98mem= set=E2=80=99 call is the same expression as the destination; did you mean to dereference it? [-Werror=3Dsizeof-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: 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: List-Archive: List-Post: List-Help: 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" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60974] bfdio.c:580:30: error:=?UTF-8?Q?=20argument=20to=20=E2=80=98sizeof=E2=80=99=20in=20=E2=80=98memset=E2=80=99=20call=20is=20the=20same=20expression=20as=20the=20destination?=; 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: In-Reply-To: References: 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=60974 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- Configure gdb with --disable-Werror or better yet use a newer gdb since a newer is required anyways for dwarf4 support.