public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "holler at ahsoftware dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/59420] New: arm: broken code generated (memset from newlib 2.0)
Date: Sat, 07 Dec 2013 23:31:00 -0000	[thread overview]
Message-ID: <bug-59420-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 59420
           Summary: arm: broken code generated (memset from newlib 2.0)
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: holler at ahsoftware dot de

Created attachment 31396
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31396&action=edit
memset.i

Using gcc (4.8.2) to compile newlib 2.0 broken code will be generated for
memset.

Target was an ARM cortex-m3.

I believe that happens for 4.7.3 too, but I'm totally sure if I'm not just had
another bug with 4.7.3 (would have to verify it).

Compiler was cross-gcc build on Gentoo with crossdev.

gcc -v:

Target: arm-cortexm3-eabi
Configured with:
/var/tmp/portage/cross-arm-cortexm3-eabi/gcc-4.8.2/work/gcc-4.8.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/arm-cortexm3-eabi/gcc-bin/4.8.2
--includedir=/usr/lib/gcc/arm-cortexm3-eabi/4.8.2/include
--datadir=/usr/share/gcc-data/arm-cortexm3-eabi/4.8.2
--mandir=/usr/share/gcc-data/arm-cortexm3-eabi/4.8.2/man
--infodir=/usr/share/gcc-data/arm-cortexm3-eabi/4.8.2/info
--with-gxx-include-dir=/usr/lib/gcc/arm-cortexm3-eabi/4.8.2/include/g++-v4
--host=x86_64-pc-linux-gnu --target=arm-cortexm3-eabi
--build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point
--without-cloog --disable-lto --disable-nls --with-system-zlib
--enable-obsolete --disable-werror --enable-secureplt --disable-multilib
--disable-libmudflap --disable-libssp --disable-libgomp
--with-python-dir=/share/gcc-data/arm-cortexm3-eabi/4.8.2/python
--enable-poison-system-directories --enable-checking=release --disable-libgcj
--enable-libstdcxx-time --disable-libquadmath --enable-languages=c,c++
--with-sysroot=/usr/arm-cortexm3-eabi --disable-bootstrap --with-newlib
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.0,
pie-0.5.8' --with-mode=thumb --with-cpu=cortex-m3 --with-float=soft
Thread model: single
gcc version 4.8.2 (Gentoo 4.8.2 p1.0, pie-0.5.8) 


The broken code was compiled with:

make[5]: Entering directory
`/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/build/arm-cortexm3-eabi/newlib/libc/string'
arm-cortexm3-eabi-gcc
-B/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/build/arm-cortexm3-eabi/newlib/
-isystem
/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/build/arm-cortexm3-eabi/newlib/targ-include
-isystem
/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/include
-B/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/build/arm-cortexm3-eabi/libgloss/arm
-L/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/build/arm-cortexm3-eabi/libgloss/libnosys
-L/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/newlib-2.0.0/libgloss/arm
   -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"newlib\ 2.0.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/string
-D__SINGLE_THREAD__ -DARM_RDI_MONITOR -fno-builtin      -g -O2 -O3 -pipe
-fomit-frame-pointer -std=gnu99 -save-temps -c -o lib_a-memset.o `test -f
'memset.c' || echo
'/var/tmp/portage/cross-arm-cortexm3-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/string/'`memset.c

If more information is necessary or helpful, please just notify me.


             reply	other threads:[~2013-12-07 23:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-07 23:31 holler at ahsoftware dot de [this message]
2013-12-07 23:32 ` [Bug c/59420] " holler at ahsoftware dot de
2013-12-08  0:30 ` rearnsha at gcc dot gnu.org
2013-12-08  0:56 ` [Bug middle-end/59420] " pinskia at gcc dot gnu.org
2013-12-08  2:29 ` holler at ahsoftware dot de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59420-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).