This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
objc - missing current_function_returns_abnormally global variable initialization?
- From: Marcin Dalecki <martin at dalecki dot de>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Sat, 31 Dec 2005 09:35:56 +0100
- Subject: objc - missing current_function_returns_abnormally global variable initialization?
I have been looking closer at the following C front-end global
variables:
current_function_returns_value
current_function_returns_null
current_function_returns_abnormally
Which are declared in c-decl.c. They are basically used as a way to
communicate with c-typeck.c.
All have to be initialized there to some default values.
Analogously for objc it appears that the same initialization have to
be done
in objc-act.c. However as it is the initialization of
current_function_returns_abnormaly
seems to be missing. If the reinitialization isn't necessary at all
it could be deleted.
However if it's really missing - it will result in at least
inconsistent error reporting for objc.
The attached patch basically just illustrates the places where the
issue arias in the most precise way possible. It's changing in
addition the data types used to a proper bool, since this is
reflecting the usage of those variables more properly.
Could someone with are more thorough understanding of the interaction
between the c and objc parser take a closer look at this? Thanks.
Attachment:
gcc-abnormal.diff
Description: Binary data