Skip to content

Commit

Permalink
gcc/ChangeLog:
Browse files Browse the repository at this point in the history
	* doc/extend.texi (__clear_cache): Correct signature.

libgcc/ChangeLog:

	* libgcc2.h (__clear_cache): Correct signature.
	* libgcc2.c (__clear_cache): Same.

gcc/testsuite/ChangeLog:

	* gcc.dg/Wbuiltin-declaration-mismatch-12.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269082 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
msebor committed Feb 21, 2019
1 parent b6700c1 commit 5d87236
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2019-02-21 Martin Sebor <msebor@redhat.com>

* doc/extend.texi (__clear_cache): Correct signature.

2019-02-21 Ian Lance Taylor <iant@golang.org>

PR go/89170
Expand Down
2 changes: 1 addition & 1 deletion gcc/doc/extend.texi
Original file line number Diff line number Diff line change
Expand Up @@ -13073,7 +13073,7 @@ void foo (void)

@end deftypefn

@deftypefn {Built-in Function} void __builtin___clear_cache (char *@var{begin}, char *@var{end})
@deftypefn {Built-in Function} void __builtin___clear_cache (void *@var{begin}, void *@var{end})
This function is used to flush the processor's instruction cache for
the region of memory between @var{begin} inclusive and @var{end}
exclusive. Some targets require that the instruction cache be
Expand Down
5 changes: 5 additions & 0 deletions libgcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2019-02-21 Martin Sebor <msebor@redhat.com>

* libgcc2.h (__clear_cache): Correct signature.
* libgcc2.c (__clear_cache): Same.

2019-02-20 Uroš Bizjak <ubizjak@gmail.com>

* config/alpha/linux-unwind.h (alpha_fallback_frame_state):
Expand Down
9 changes: 6 additions & 3 deletions libgcc/libgcc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,11 +2162,14 @@ __eprintf (const char *string, const char *expression,
/* Clear part of an instruction cache. */

void
__clear_cache (char *beg __attribute__((__unused__)),
char *end __attribute__((__unused__)))
__clear_cache (void *beg __attribute__((__unused__)),
void *end __attribute__((__unused__)))
{
#ifdef CLEAR_INSN_CACHE
CLEAR_INSN_CACHE (beg, end);
/* Cast the void* pointers to char* as some implementations
of the macro assume the pointers can be subtracted from
one another. */
CLEAR_INSN_CACHE ((char *) beg, (char *) end);
#endif /* CLEAR_INSN_CACHE */
}

Expand Down
2 changes: 1 addition & 1 deletion libgcc/libgcc2.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#endif

extern int __gcc_bcmp (const unsigned char *, const unsigned char *, size_t);
extern void __clear_cache (char *, char *);
extern void __clear_cache (void *, void *);
extern void __eprintf (const char *, const char *, unsigned int, const char *)
__attribute__ ((__noreturn__));

Expand Down

0 comments on commit 5d87236

Please sign in to comment.