* cp-tree.h (check_return_expr): New function. * decl.c (finish_constructor_body): New function. (pushdecl): Put global friend functions in namespace binding level, not the class binding level. (finish_destructor_body): Make sure the dtor_label is always defined. Fix typo in comment. (finish_function): Move generation of constructor-termination code to semantic-analysis time. Move generation of implicit `main' return value to semantic-analysis time. * semantics.c (finish_return_stmt): Generate goto's to ctor_label/dtor_label here. Use check_return_expr to do semantic analysis on the returned expression. * typeck.c (maybe_warn_about_returning_address_of_local): New function split out from c_expand_return. (check_return_expr): Likewise. (c_expand_return): Just generate the RTL for the return. From-SVN: r29663
Name |
Last commit
|
Last update |
---|---|---|
INSTALL | Loading commit data... | |
boehm-gc | Loading commit data... | |
config | Loading commit data... | |
contrib | Loading commit data... | |
etc | Loading commit data... | |
gcc | Loading commit data... | |
include | Loading commit data... | |
libchill | Loading commit data... | |
libf2c | Loading commit data... | |
libffi | Loading commit data... | |
libiberty | Loading commit data... | |
libio | Loading commit data... | |
libjava | Loading commit data... | |
libobjc | Loading commit data... | |
libstdc++ | Loading commit data... | |
texinfo | Loading commit data... | |
zlib | Loading commit data... | |
.cvsignore | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
MAINTAINERS | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
config-ml.in | Loading commit data... | |
config.guess | Loading commit data... | |
config.if | Loading commit data... | |
config.sub | Loading commit data... | |
configure | Loading commit data... | |
configure.in | Loading commit data... | |
install-sh | Loading commit data... | |
ltconfig | Loading commit data... | |
ltmain.sh | Loading commit data... | |
missing | Loading commit data... | |
mkinstalldirs | Loading commit data... | |
move-if-change | Loading commit data... | |
symlink-tree | Loading commit data... | |
ylwrap | Loading commit data... |