Update handling of advices during preload

* lisp/emacs-lisp/comp-common.el
(native-comp-never-optimize-functions): Remove macroexpand and
rename-buffer from default value.
* lisp/emacs-lisp/comp.el (comp-call-optim-form-call): Document call
optimization for advised primitives.
* lisp/emacs-lisp/nadvice.el (advice-add): Remove references to TODOs
that were completed already earlier.
* lisp/loadup.el: Disallow advices during preload.  (Bug#67005)
10 jobs for master in 230 minutes and 53 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Build Images
failed #77968
build-image-inotify

02:35:09

 
  Normal
skipped #77969
test-all-inotify
 
  Platform Images
failed #77970
build-image-eglot

02:22:26

failed #77972
build-image-gnustep

00:03:15

failed #77971
build-image-tree-sitter

02:34:59

 
  Platforms
skipped #77973
test-eglot
skipped #77975
test-gnustep
skipped #77974
test-tree-sitter
 
  Native Comp Images
passed #77976
build-native-comp-speed2

02:45:14

 
  Native Comp
failed #77977
test-native-comp-speed2

01:05:31

 
Name Stage Failure
failed
test-native-comp-speed2 Native Comp
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
$ find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null
Uploading artifacts...
test-native-comp-speed2-e670412a/: found 538 matching files
Uploading artifacts to coordinator... ok
id=77977 responseStatus=201 Created token=qe4nQ43A
Uploading artifacts...
test-native-comp-speed2-e670412a/junit-test-report.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=77977 responseStatus=201 Created token=qe4nQ43A
ERROR: Job failed: exit code 2
failed
build-image-inotify Build Images
context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Running after_script
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-inotify-e670412a: No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
build-image-tree-sitter Platform Images
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after_script
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-tree-sitter-e670412a: No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
build-image-eglot Platform Images
5f70bf18a086: Retrying in 2 seconds
5f70bf18a086: Retrying in 1 second
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-eglot-e670412a: No such file or directory
ERROR: Job failed: exit code 1
failed
build-image-gnustep Platform Images
 > [internal] load build context:
------
rpc error: code = Canceled desc = grpc: the client connection is closing
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-gnustep-e670412a: No such file or directory
ERROR: Job failed: exit code 1