Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b9b58168
Commit
b9b58168
authored
Jan 05, 2006
by
Richard Henderson
Committed by
Richard Henderson
Jan 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
From-SVN: r109388
parent
068e6bb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
21 deletions
+12
-21
gcc/ChangeLog
+4
-0
gcc/c-parser.c
+3
-0
gcc/testsuite/objc.dg/pragma-1.m
+5
-21
No files found.
gcc/ChangeLog
View file @
b9b58168
2006-01-05 Richard Henderson <rth@redhat.com>
* c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
* c-typeck.c: Update copyright date.
* c-typeck.c: Update copyright date.
...
...
gcc/c-parser.c
View file @
b9b58168
...
@@ -5866,6 +5866,9 @@ c_parser_objc_methodprotolist (c_parser *parser)
...
@@ -5866,6 +5866,9 @@ c_parser_objc_methodprotolist (c_parser *parser)
case
CPP_MINUS
:
case
CPP_MINUS
:
c_parser_objc_methodproto
(
parser
);
c_parser_objc_methodproto
(
parser
);
break
;
break
;
case
CPP_PRAGMA
:
c_parser_pragma
(
parser
,
pragma_external
);
break
;
case
CPP_EOF
:
case
CPP_EOF
:
return
;
return
;
default
:
default
:
...
...
gcc/testsuite/objc.dg/pragma-1.m
View file @
b9b58168
/* It is OK to use #pragma inside @implementation body. This test checks that. */
/* { dg-do compile { target *-*-darwin* } } */
/* Ziemowit Laski <zlaski@apple.com>. */
/* ??? Is there a better pragma that is handled for all targets, not
handled by the preprocessor, that would be better for testing here? */
@interface
A
@interface
a
{}
{
#pragma mark --- Output ---
int
p
;
}
+
(
int
)
foo
;
-
(
int
)
bar
;
@end
@implementation
A
#pragma mark -
#pragma mark init / dealloc
+
(
int
)
foo
{
return
1
;
}
#pragma mark -
#pragma mark Private Functions
-
(
int
)
bar
{
return
2
;
}
@end
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment