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
79d82252
Commit
79d82252
authored
Feb 23, 2011
by
Nicola Pero
Committed by
Nicola Pero
Feb 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed conflict in usage of TYPE_LANG_SLOT_0 between Objective-C and C
From-SVN: r170436
parent
21e1e594
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
6 deletions
+44
-6
gcc/objc/ChangeLog
+7
-0
gcc/objc/objc-act.c
+0
-3
gcc/objc/objc-act.h
+1
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/objc.dg/attributes/objc-exception-1.m
+32
-0
No files found.
gcc/objc/ChangeLog
View file @
79d82252
2011
-
02
-
23
Nicola
Pero
<
nicola
.
pero
@meta
-
innovation
.
com
>
*
objc
-
act
.
c
(
build_private_template
)
:
Do
not
copy
the
CLASS_HAS_EXCEPTION_ATTR
from
the
class
to
the
struct
.
*
objc
-
act
.
h
(
CLASS_HAS_EXCEPTION_ATTR
)
:
Define
using
TYPE_LANG_SLOT_0
.
2011
-
02
-
22
Nicola
Pero
<
nicola
.
pero
@meta
-
innovation
.
com
>
PR
objc
/
47832
...
...
gcc/objc/objc-act.c
View file @
79d82252
...
...
@@ -4203,9 +4203,6 @@ build_private_template (tree klass)
/* Copy the attributes from the class to the type. */
if
(
TREE_DEPRECATED
(
klass
))
TREE_DEPRECATED
(
record
)
=
1
;
if
(
CLASS_HAS_EXCEPTION_ATTR
(
klass
))
CLASS_HAS_EXCEPTION_ATTR
(
record
)
=
1
;
}
}
...
...
gcc/objc/objc-act.h
View file @
79d82252
...
...
@@ -164,9 +164,7 @@ typedef enum objc_property_assign_semantics {
#define CLASS_CATEGORY_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 3)
#define CLASS_PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 4)
#define TOTAL_CLASS_RAW_IVARS(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 5)
/* FIXME */
#define CLASS_HAS_EXCEPTION_ATTR(CLASS) ((CLASS)->type.lang_flag_0)
#define CLASS_HAS_EXCEPTION_ATTR(CLASS) (TYPE_LANG_FLAG_0 (CLASS))
#define PROTOCOL_NAME(CLASS) ((CLASS)->type.name)
#define PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_LANG_SLOT_1 (CLASS), 0)
...
...
gcc/testsuite/ChangeLog
View file @
79d82252
2011-02-23 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/attributes/objc-exception-1.m: New.
2011-02-23 Jie Zhang <jie@codesourcery.com>
* gcc.dg/cpp/include7.c: New test.
...
...
gcc/testsuite/objc.dg/attributes/objc-exception-1.m
0 → 100644
View file @
79d82252
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, February 2011. */
/* { dg-do compile } */
/* Test that the 'objc_exception' attribute is accepted for
@interfaces, but not for anything else. */
#include <objc/objc.h>
/* Fine. */
__attribute__
((
objc_exception
))
@interface
MyClass
{
Class
isa
;
}
@end
/* Fine. */
__attribute__
((
__objc_exception__
))
@interface
MyClass2
{
Class
isa
;
}
@end
__attribute__
((
objc_exception
))
@protocol
MyProtocol
;
/* { dg-warning "ignored" } */
__attribute__
((
objc_exception
))
int
myVariable
;
/* { dg-warning "ignored" } */
__attribute__
((
objc_exception
))
int
myFunction
(
int
argument
);
/* { dg-warning "ignored" } */
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