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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [tilegx/] [tilegx-c.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions of C specific functions for TILE-Gx.
2
   Copyright (C) 2011, 2012
3
   Free Software Foundation, Inc.
4
   Contributed by Walter Lee (walt@tilera.com)
5
 
6
   This file is part of GCC.
7
 
8
   GCC is free software; you can redistribute it and/or modify it
9
   under the terms of the GNU General Public License as published
10
   by the Free Software Foundation; either version 3, or (at your
11
   option) any later version.
12
 
13
   GCC is distributed in the hope that it will be useful, but WITHOUT
14
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16
   License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GCC; see the file COPYING3.  If not see
20
   <http://www.gnu.org/licenses/>.  */
21
 
22
#include "config.h"
23
#include "system.h"
24
#include "coretypes.h"
25
#include "machmode.h"
26
#include "tm.h"
27
#include "tm_p.h"
28
#include "cpplib.h"
29
#include "tree.h"
30
#include "c-family/c-common.h"
31
 
32
/* copy defines in c-cppbuiltin.c */
33
# define builtin_define(TXT) cpp_define (pfile, TXT)
34
# define builtin_assert(TXT) cpp_assert (pfile, TXT)
35
 
36
 
37
/* Implement TARGET_CPU_CPP_BUILTINS.  */
38
void
39
tilegx_cpu_cpp_builtins (struct cpp_reader *pfile)
40
{
41
  builtin_define ("__tile__");
42
  builtin_define ("__tilegx__");
43
  builtin_define ("__tile_chip__=10");
44
  builtin_define ("__tile_chip_rev__=0");
45
  builtin_assert ("cpu=tilegx");
46
  builtin_assert ("machine=tilegx");
47
 
48
  if (TARGET_32BIT)
49
    builtin_define ("__tilegx32__");
50
 
51
  TILEGX_CPU_CPP_ENDIAN_BUILTINS ();
52
  GNU_USER_TARGET_OS_CPP_BUILTINS ();
53
}
54
 
55
 

powered by: WebSVN 2.1.0

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