public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100316] New: Regression: __clear_cache() does not support NULL-pointer arguments
@ 2021-04-28 12:35 christophm30 at gmail dot com
  2021-04-28 21:23 ` [Bug target/100316] " wilson at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: christophm30 at gmail dot com @ 2021-04-28 12:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100316
           Summary: Regression: __clear_cache() does not support
                    NULL-pointer arguments
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christophm30 at gmail dot com
  Target Milestone: ---

Commit c05ece9 changed __clear_cache () such, that it no longer accepts numeric
values as arguments.

In riscv-pk the following code is used to clear the instruction cache:

  __clear_cache(0, 0);

However, this no longer compiles:

      ../pk/pk.c: In function 'run_loaded_program.constprop':
      ../pk/pk.c:177:3: error: both arguments to '__builtin___clear_cache'
      must be pointers
        177 |   __clear_cache(0, 0);
            |   ^~~~~~~~~~~~~~~~~~~


Also using "NULL" or "(void*)0" does not help.

The corresponding bug ticket for PK can be found here:
  https://github.com/riscv/riscv-pk/issues/239

Is there a chance to loosen the restrictions for the arguments?

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

end of thread, other threads:[~2021-10-18 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 12:35 [Bug target/100316] New: Regression: __clear_cache() does not support NULL-pointer arguments christophm30 at gmail dot com
2021-04-28 21:23 ` [Bug target/100316] " wilson at gcc dot gnu.org
2021-10-07 10:31 ` [Bug middle-end/100316] [11/12 Regression] " pinskia at gcc dot gnu.org
2021-10-11  6:15 ` cvs-commit at gcc dot gnu.org
2021-10-11  6:28 ` kito at gcc dot gnu.org
2021-10-18 16:05 ` cvs-commit at gcc dot gnu.org
2021-10-18 16:06 ` kito 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).