OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [visibility-11.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/20297 */
2
/* The memcpy FUNCTION_DECL built in the middle-end for block moves got
3
   hidden visibility from the first push, so the call didn't use the PLT.  */
4
 
5
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
6
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
7
/* { dg-require-visibility "" } */
8
/* { dg-require-effective-target fpic } */
9
/* { dg-options "-Os -fpic -mstringop-strategy=libcall" } */
10
/* { dg-final { scan-assembler "memcpy@PLT" } } */
11
 
12
#pragma GCC visibility push(hidden)
13
#pragma GCC visibility push(default)
14
extern void* memcpy (void *, const void *, __SIZE_TYPE__);
15
#pragma GCC visibility pop
16
 
17
struct a { int a[4096]; };
18
 
19
extern void *bar (struct a *, struct a *, int);
20
 
21
void *
22
foo (struct a *a, struct a *b, int c)
23
{
24
  struct a cc = *b;
25
  return bar (a, &cc, 4 * c);
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.