comparison gcc/input.h @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents 77e2b8dfacca
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Declarations for variables relating to reading the source file. 1 /* Declarations for variables relating to reading the source file.
2 Used by parsers, lexical analyzers, and error message routines. 2 Used by parsers, lexical analyzers, and error message routines.
3 Copyright (C) 1993, 1997, 1998, 2000, 2003, 2004, 2007, 2008, 2009 3 Copyright (C) 1993, 1997, 1998, 2000, 2003, 2004, 2007, 2008, 2009, 2010
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6 This file is part of GCC. 6 This file is part of GCC.
7 7
8 GCC is free software; you can redistribute it and/or modify it under 8 GCC is free software; you can redistribute it and/or modify it under
35 /* line-map.c reserves RESERVED_LOCATION_COUNT to the user. Ensure 35 /* line-map.c reserves RESERVED_LOCATION_COUNT to the user. Ensure
36 both UNKNOWN_LOCATION and BUILTINS_LOCATION fit into that. */ 36 both UNKNOWN_LOCATION and BUILTINS_LOCATION fit into that. */
37 extern char builtins_location_check[(BUILTINS_LOCATION 37 extern char builtins_location_check[(BUILTINS_LOCATION
38 < RESERVED_LOCATION_COUNT) ? 1 : -1]; 38 < RESERVED_LOCATION_COUNT) ? 1 : -1];
39 39
40 typedef struct GTY (()) 40 typedef struct
41 { 41 {
42 /* The name of the source file involved. */ 42 /* The name of the source file involved. */
43 const char *file; 43 const char *file;
44 44
45 /* The line-location in the source file. */ 45 /* The line-location in the source file. */
55 55
56 /* Historically GCC used location_t, while cpp used source_location. 56 /* Historically GCC used location_t, while cpp used source_location.
57 This could be removed but it hardly seems worth the effort. */ 57 This could be removed but it hardly seems worth the effort. */
58 typedef source_location location_t; 58 typedef source_location location_t;
59 59
60 /* Top-level source file. */
61 extern const char *main_input_filename;
62
63 extern location_t input_location; 60 extern location_t input_location;
64 61
65 #define LOCATION_FILE(LOC) ((expand_location (LOC)).file) 62 #define LOCATION_FILE(LOC) ((expand_location (LOC)).file)
66 #define LOCATION_LINE(LOC) ((expand_location (LOC)).line) 63 #define LOCATION_LINE(LOC) ((expand_location (LOC)).line)
67 64