> On 09-Sept-2022 04:53, Bram Moolenaar wrote:
> > Patch 9.0.0419
> > Problem:    The :defer command does not check the function argument count 
> > and
> >              types.
> > Solution:   Check the function arguments when adding a deferred function.
> > Files:      src/userfunc.c, src/vim9instr.c, src/proto/vim9instr.pro,
> >              src/vim9cmds.c, src/testdir/test_user_func.vim
> >
> After this patch mingw64 (gcc 12.2.0) spits out this linker error:
> <snip>
> gcc -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO 
> -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return 
> -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD -Wl,-nxcompat,-dynamicbase 
> -municode -s -mwindows -o gvim.exe gobjnative/alloc.o 
> gobjnative/arabic.o gobjnative/arglist.o gobjnative/autocmd.o 

[...]

> d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>  
> gobjnative/vim9cmds.o:vim9cmds.c:(.text+0x2628): undefined reference to 
> `get_defer_var_idx'
> d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>  
> gobjnative/vim9expr.o:vim9expr.c:(.text+0x5a9d): undefined reference to 
> `get_defer_var_idx'
> collect2.exe: error: ld returned 1 exit status
> make: *** [Make_cyg_ming.mak:1137: gvim.exe] Error 1
> </snip>
> 
> This patch removed the function but not all of the calls.

Weird, that function should not have been removed.  And it wasn't in my
main directory and a shadow directory (all tests passed locally).  But
it delete in the diff and in the git repo.  Can't explain it.

> Also, it looks like the contents of patch 9.0.0418 are the same as 9.0.0419.

Wrong diff in the email...  I'll reply.

-- 
"Space is big.  Really big.  You just won't believe how vastly hugely mind-
bogglingly big it is.  I mean, you may think it's a long way down the
road to the chemist, but that's just peanuts to space."
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220908195745.8BE001C0B04%40moolenaar.net.

Raspunde prin e-mail lui