Rev 5222 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5222 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* cond.c - conditional assembly pseudo-ops, and .include |
1 | /* cond.c - conditional assembly pseudo-ops, and .include |
2 | Copyright 1990, 1991, 1992, 1993, 1995, 1997, 1998, 2000, 2001, 2002, |
- | |
3 | 2003, 2005, 2006, 2007 Free Software Foundation, Inc. |
2 | Copyright (C) 1990-2015 Free Software Foundation, Inc. |
Line 4... | Line 3... | ||
4 | 3 | ||
Line 5... | Line 4... | ||
5 | This file is part of GAS, the GNU Assembler. |
4 | This file is part of GAS, the GNU Assembler. |
6 | 5 | ||
Line 76... | Line 75... | ||
76 | 75 | ||
77 | /* Leading whitespace is part of operand. */ |
76 | /* Leading whitespace is part of operand. */ |
78 | SKIP_WHITESPACE (); |
77 | SKIP_WHITESPACE (); |
Line 79... | Line 78... | ||
79 | name = input_line_pointer; |
78 | name = input_line_pointer; |
80 | 79 | ||
81 | if (!is_name_beginner (*name)) |
80 | if (!is_name_beginner (*name) && *name != '"') |
82 | { |
81 | { |
83 | as_bad (_("invalid identifier for \".ifdef\"")); |
82 | as_bad (_("invalid identifier for \".ifdef\"")); |
84 | obstack_1grow (&cond_obstack, 0); |
83 | obstack_1grow (&cond_obstack, 0); |
85 | ignore_rest_of_line (); |
84 | ignore_rest_of_line (); |
Line 86... | Line 85... | ||
86 | return; |
85 | return; |
87 | } |
86 | } |
88 | 87 | ||
Line 89... | Line 88... | ||
89 | c = get_symbol_end (); |
88 | c = get_symbol_name (& name); |
Line 90... | Line 89... | ||
90 | symbolP = symbol_find (name); |
89 | symbolP = symbol_find (name); |
91 | *input_line_pointer = c; |
90 | (void) restore_line_pointer (c); |
Line 127... | Line 126... | ||
127 | { |
126 | { |
128 | expressionS operand; |
127 | expressionS operand; |
129 | struct conditional_frame cframe; |
128 | struct conditional_frame cframe; |
130 | int t; |
129 | int t; |
131 | char *stop = NULL; |
130 | char *stop = NULL; |
132 | char stopc; |
131 | char stopc = 0; |
Line 133... | Line 132... | ||
133 | 132 | ||
134 | if (flag_mri) |
133 | if (flag_mri) |
Line 135... | Line 134... | ||
135 | stop = mri_comment_field (&stopc); |
134 | stop = mri_comment_field (&stopc); |
Line 260... | Line 259... | ||
260 | 259 | ||
261 | void |
260 | void |
262 | s_ifc (int arg) |
261 | s_ifc (int arg) |
263 | { |
262 | { |
264 | char *stop = NULL; |
263 | char *stop = NULL; |
265 | char stopc; |
264 | char stopc = 0; |
266 | char *s1, *s2; |
265 | char *s1, *s2; |
267 | int len1, len2; |
266 | int len1, len2; |
268 | int res; |
267 | int res; |