* fixed finish_copied_procdef() in case newstruct is nil after support for
    generics was added to it

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@28226 3ad0048d-3df7-0310-abae-a5850022a9f2
  * when creating a bare procdef copy, don't copy the funcret parameter.
    This is useful if you want to change the calling convention of the copy.
   o call insert_funcret_para() after creating a bare copy
  * don't copy aliasnames of copied procdefs either (can at best result
    in duplicate symbol errors)

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@28227 3ad0048d-3df7-0310-abae-a5850022a9f2
  * changed the "laststatement" parameter of internalstatements() from "var"
    to "out"

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@28228 3ad0048d-3df7-0310-abae-a5850022a9f2
  * call "message" rather than "cgmessage" when throwing fatal errors, because
    cgmessage won't do anything in case cgerror is already set (and in several
    places we assume that the compiler will immediately abort after throwing a
    fatal error)

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@28229 3ad0048d-3df7-0310-abae-a5850022a9f2