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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr50763-5.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
/* { dg-do compile } */
2
/* { dg-options "-O2 -ftree-tail-merge" } */
3
 
4
struct inode
5
{
6
  unsigned short i_mode;
7
  unsigned int i_flags;
8
};
9
 
10
static inline int
11
is_sxid (unsigned int mode)
12
{
13
  return (mode & 0004000) || ((mode & 0002000) && (mode & 00010));
14
};
15
 
16
void
17
gfs2_set_inode_flags (int ip, struct inode *inode)
18
{
19
  unsigned int flags = inode->i_flags;
20
  if ((ip == 0) && !is_sxid (inode->i_mode))
21
    inode->i_flags |= 4096;
22
  inode->i_flags = flags;
23
}

powered by: WebSVN 2.1.0

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