Revert unintended commit.


git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28869 3ad0048d-3df7-0310-abae-a5850022a9f2
Don't return class instances in parameters even if they are reference counted (might lead to potential problems, but otherwise some of the compiler's expectations regarding class instances fail).

paramgr.pas, tparamanager:
  * handle_common_ret_in_param: even if is_managed_type returns True, don't return a class instance in a parameter


git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28870 3ad0048d-3df7-0310-abae-a5850022a9f2
Avoid an internal error for accessing fields of a reference counted class.

ncgmem.pas, tcgsubscriptnode:
  * pass_generate_code: classes can now be managed types as well, so don't generate an internal error in case such a class is subscripted


git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28871 3ad0048d-3df7-0310-abae-a5850022a9f2
Various checks for "weak" variables/parameters/fields.

psub.pas:
  * check_finalize_locals: don't finalize locals declared as "weak"
symsym.pas, tparavarsym:
  * needs_finalization: don't finalize parameters declared as "weak"
ncgcal.pas, tcgcallparanode:
  * secondcallparan: don't release out parameters declared as "weak"
ncgutil.pas:
  * init_paras: don't increase the reference count of parameters declared as "weak"
hlcgobj.pas, thlcgobj:
  * final_paras: don't finalize parameters declared as "weak"
  * init_paras: don't increase the reference count of parameters declared as "weak"


git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28872 3ad0048d-3df7-0310-abae-a5850022a9f2