Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 2a24ab628aa7b190be32f63dfb6d96f3fb61580a authored by Linus Torvalds on 25 May 2005, 03:31:20 UTC
Linux 2.6.12-rc5
Tip revision: 2a24ab6
compiler-gcc.h
/* Never include this file directly.  Include <linux/compiler.h> instead.  */

/*
 * Common definitions for all gcc versions go here.
 */


/* Optimization barrier */
/* The "volatile" is due to gcc bugs */
#define barrier() __asm__ __volatile__("": : :"memory")

/* This macro obfuscates arithmetic on a variable address so that gcc
   shouldn't recognize the original var, and make assumptions about it */
#define RELOC_HIDE(ptr, off)					\
  ({ unsigned long __ptr;					\
    __asm__ ("" : "=g"(__ptr) : "0"(ptr));		\
    (typeof(ptr)) (__ptr + (off)); })
back to top