From: Amol <suratiamol@gmail.com>
To: gcc-help <gcc-help@gcc.gnu.org>
Cc: suratiamol <suratiamol@gmail.com>
Subject: False warnings on arm-gcc?
Date: Fri, 29 Jul 2022 14:26:32 +0530 [thread overview]
Message-ID: <CA+nuEB8O1qUt2gWrGwSVk-TvEvCxNwFr8kufaUWiD+vVBqRATQ@mail.gmail.com> (raw)
Hello,
The compilation of a program at [1] raises warnings which say that it
attempted to write beyond the buffer when it did not.
Cmdline given to godbolt's arm-gcc-trunk(Linux) compiler:
-O3 -mno-unaligned-access -ffreestanding -mfloat-abi=soft
Changing O3 to O2, or defaulting to hard float-abi, or removing
-mno-unaligned-access, or removing -ffreestanding - any one these
four steps result in a compilatoin with no warnings at all.
Is it because of any alignment or other issues that the program has
neglected?
Thanks,
Amol
[1] https://godbolt.org/z/rGvxP5qsr
next reply other threads:[~2022-07-29 8:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 8:56 Amol [this message]
2022-07-29 22:54 ` Martin Sebor
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=CA+nuEB8O1qUt2gWrGwSVk-TvEvCxNwFr8kufaUWiD+vVBqRATQ@mail.gmail.com \
--to=suratiamol@gmail.com \
--cc=gcc-help@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).