public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/99157] New: [ARM] libgcc -mcmse check always fail
@ 2021-02-19  7:47 hsuhau617 at gmail dot com
  2021-02-19  9:46 ` [Bug libgcc/99157] " gcc-bugzilla at garstig dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hsuhau617 at gmail dot com @ 2021-02-19  7:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99157

            Bug ID: 99157
           Summary: [ARM] libgcc -mcmse check always fail
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hsuhau617 at gmail dot com
  Target Milestone: ---

When checking -mcmse support, it will always fail.
Because it checks the return value with "$?", but in makefile it should be
"$$?".

I have a simple patch for the bug:

--- a/libgcc/config/arm/t-arm
+++ b/libgcc/config/arm/t-arm
@@ -4,7 +4,7 @@ LIB1ASMFUNCS = _thumb1_case_sqi _thumb1_case_uqi
_thumb1_case_shi \

 HAVE_CMSE:=$(findstring __ARM_FEATURE_CMSE,$(shell $(gcc_compile_bare) -dM -E
- </dev/null))
 HAVE_V81M:=$(findstring armv8.1-m.main,$(gcc_compile_bare))
-ifeq ($(shell $(gcc_compile_bare) -E -mcmse - </dev/null >/dev/null
2>/dev/null; echo $?),0)
+ifeq ($(shell $(gcc_compile_bare) -E -mcmse - </dev/null >/dev/null
2>/dev/null; echo $$?),0)
 CMSE_OPTS:=-mcmse
 endif

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

end of thread, other threads:[~2021-02-24 16:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19  7:47 [Bug libgcc/99157] New: [ARM] libgcc -mcmse check always fail hsuhau617 at gmail dot com
2021-02-19  9:46 ` [Bug libgcc/99157] " gcc-bugzilla at garstig dot org
2021-02-19 16:02 ` hsuhau617 at gmail dot com
2021-02-19 16:06 ` hsuhau617 at gmail dot com
2021-02-23 17:30 ` clyon at gcc dot gnu.org
2021-02-24  2:01 ` hsuhau617 at gmail dot com
2021-02-24 16:00 ` cvs-commit at gcc dot gnu.org
2021-02-24 16:03 ` cvs-commit at gcc dot gnu.org
2021-02-24 16:04 ` clyon at gcc dot gnu.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).