From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bob Floyd" Newsgroups: gmane.emacs.bugs Subject: bug#48107: 27.2; tags-quiery-replace fails to find occurences Date: Thu, 29 Apr 2021 13:14:34 -0700 Message-ID: <000301d73d34$4b5a45c0$e20ed140$@net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0004_01D73CF9.9EFB6DC0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37717"; mail-complaints-to="usenet@ciao.gmane.io" To: 48107@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 29 22:15:29 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcD4L-0009eW-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 22:15:29 +0200 Original-Received: from localhost ([::1]:53984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcD4K-0002GW-Jw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 16:15:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcD3u-0002GL-V8 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 16:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcD3u-0001P2-Mm for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 16:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcD3u-0000WL-H0 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 16:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Apr 2021 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48107 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.16197272971972 (code B ref -1); Thu, 29 Apr 2021 20:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2021 20:14:57 +0000 Original-Received: from localhost ([127.0.0.1]:56860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcD3o-0000Vj-R2 for submit@debbugs.gnu.org; Thu, 29 Apr 2021 16:14:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcD3m-0000VZ-Sz for submit@debbugs.gnu.org; Thu, 29 Apr 2021 16:14:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcD3m-0002EY-Np for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 16:14:54 -0400 Original-Received: from resqmta-po-01v.sys.comcast.net ([2001:558:fe16:19:96:114:154:160]:58000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcD3h-0001Dk-Tt for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 16:14:53 -0400 Original-Received: from resomta-po-20v.sys.comcast.net ([96.114.154.244]) by resqmta-po-01v.sys.comcast.net with ESMTP id cCBVlSV9NKqmEcD3dlKTiN; Thu, 29 Apr 2021 20:14:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1619727285; bh=Lox5lXyps+OpmF8IkaawNKjkGnK6l99HYXeGfwg8lrY=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=ytFyYTWhE0nsWdQuffHwWrXSY0Z6x0lPLCpWplM52ThcoQ4njktvIbcycauRqyHs4 aRbL/BAP+oNitmtDE3LQ+1pniRJzF9vrwYkQKPhSufBMZcktjJFi9MbDwkr8x3sYrj sU+PMCTQ9E8FWItaqKgCOUNiMcu8HGD1WngXa+Fj0wmykA7NhgGVIS5yDMNSy4JgAd cutaAt59Pv7yTid5bgjW8/T2Cw2RUMH+zBF9Af5ro4GHDmhP5lS2CfNZNUjPl14a8w QIWG0SqAQqg9GJjjpA+yOufYOytkBT419gROWbAcnG0c7ZCu1pNh8+cpzEqBIhojUB wSR7OHRGOx5eA== Original-Received: from Cache ([IPv6:2601:647:6100:3b1c::87]) by resomta-po-20v.sys.comcast.net with ESMTPA id cD3Tl7XUO7KppcD3dlICk3; Thu, 29 Apr 2021 20:14:45 +0000 X-Xfinity-VMeta: sc=0.00;st=legit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Adc9NEWKcCAMWO8QSumz29hFCOGLgQ== Content-Language: en-us Received-SPF: pass client-ip=2001:558:fe16:19:96:114:154:160; envelope-from=bobfloyd@comcast.net; helo=resqmta-po-01v.sys.comcast.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205201 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01D73CF9.9EFB6DC0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0005_01D73CF9.9EFB6DC0" ------=_NextPart_001_0005_01D73CF9.9EFB6DC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Put the attached 3 files, `f1.cpp`, `f2.cpp` and `TAGS` into an empty folder. Do: 1) find-file f1.cpp (C-x C-f) 2) tags-query-replace ITracks JTracks There are 4 occurrences that are changed 3) tags-query-replace JTracks ITracks There are 2 occurrences that are changed, and it reports "Replaced 0 occurrences" It should have found the remaining 2 occurrences and the reported number of 0 is wrong. Hope you can reproduce this. In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19042.928) Recent messages: Replaced 2 occurrences Scanning file d:/Bob/Temp/emacs/f2.cpp... Mark set Replaced 2 occurrences user-error: All files processed Mark set Replaced 2 occurrences Scanning file d:/Bob/Temp/emacs/f2.cpp... Mark set Replaced 0 occurrences Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: C++//la Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: d:/Bob/.emacs.d/elpa/verilog-mode-2020.6.27.14326051/verilog-mode hides c:/Program Files/Emacs 27.2/x86_64/share/emacs/27.2/lisp/progmodes/verilog-mode Features: (shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt etags fileloop generator xref project dired dired-loaddefs pcmpl-unix time-date web-mode advice derived edmacro kmacro shell pcomplete comint ansi-color ring printing ps-print ps-print-loaddefs ps-def lpr paren cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs finder-inf tex-site info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 174942 7392) (symbols 48 13957 1) (strings 32 45787 2201) (string-bytes 1 1506192) (vectors 16 19753) (vector-slots 8 248280 10026) (floats 8 286 53) (intervals 56 676 10) (buffers 1000 18)) ------=_NextPart_001_0005_01D73CF9.9EFB6DC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Put the = attached 3 files, `f1.cpp`, `f2.cpp` and `TAGS` into an empty = folder.

 

Do:

1) find-file = f1.cpp (C-x C-f)

2) = tags-query-replace ITracks JTracks

=     There are 4 occurrences that are = changed

3) tags-query-replace JTracks = ITracks

     = There are 2 occurrences that are changed, and it reports “Replaced = 0 occurrences”

 

It should = have found the remaining 2 occurrences and the reported number of 0 is = wrong.

 

Hope you can reproduce this.

 

In GNU Emacs = 27.2 (build 1, x86_64-w64-mingw32)

= of 2021-03-26 built on CIRROCUMULUS

Repository revision: = deef5efafb70f4b171265b896505b92b6eef24e6

Repository branch: HEAD

Windowing system distributor 'Microsoft Corp.', = version 10.0.19042

System = Description: Microsoft Windows 10 Enterprise = (v10.0.2009.19042.928)

 

Recent = messages:

Replaced 2 = occurrences

Scanning file = d:/Bob/Temp/emacs/f2.cpp...

Mark = set

Replaced 2 = occurrences

user-error: All files = processed

Mark set

Replaced 2 occurrences

Scanning file = d:/Bob/Temp/emacs/f2.cpp...

Mark = set

Replaced 0 = occurrences

 

Configured using:

= 'configure --without-dbus --host=3Dx86_64-w64-mingw32

--without-compress-install 'CFLAGS=3D-O2 = -static''

 

Configured features:

XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL = GNUTLS LIBXML2

HARFBUZZ ZLIB = TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 = GMP

 

Important settings:

  value of $LANG: ENU

  locale-coding-system: cp1252

 

Major mode: = C++//la

 

Minor modes in effect:

  shell-dirtrack-mode: t

  show-paren-mode: t

  tooltip-mode: t

  global-eldoc-mode: t

  electric-indent-mode: t

  mouse-wheel-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t

  abbrev-mode: t

 

Load-path = shadows:

d:/Bob/.emacs.d/elpa/verilog-mode-2020.6.27.14326051/ve= rilog-mode hides c:/Program Files/Emacs = 27.2/x86_64/share/emacs/27.2/lisp/progmodes/verilog-mode

 

Features:

(shadow = sort mail-extr emacsbug message rmc puny format-spec rfc822 = mml

mml-sec epa epg epg-config = gnus-util rmail rmail-loaddefs

text-property-search mm-decode mm-bodies mm-encode = mail-parse rfc2231

mailabbrev = gmm-utils mailheader sendmail rfc2047 rfc2045 = ietf-drums

mm-util mail-prsvr = mail-utils thingatpt etags fileloop generator xref

project dired dired-loaddefs pcmpl-unix time-date = web-mode advice

derived edmacro = kmacro shell pcomplete comint ansi-color ring printing

ps-print ps-print-loaddefs ps-def lpr paren cc-mode = cc-fonts cc-guess

cc-menus cc-cmds = cc-styles cc-align cc-engine cc-vars cc-defs finder-inf

tex-site info package easymenu browse-url url-handlers = url-parse

auth-source cl-seq eieio = eieio-core cl-macs eieio-loaddefs

password-cache json subr-x map url-vars seq byte-opt = gv bytecomp

byte-compile cconv = cl-loaddefs cl-lib tooltip eldoc electric uniquify

ediff-hook vc-hooks lisp-float-type mwheel dos-w32 = ls-lisp disp-table

term/w32-win = w32-win w32-vars term/common-win tool-bar dnd fontset = image

regexp-opt fringe = tabulated-list replace newcomment text-mode elisp-mode

lisp-mode prog-mode register page tab-bar menu-bar = rfn-eshadow isearch

timer select = scroll-bar mouse jit-lock font-lock syntax facemenu

font-core term/tty-colors frame minibuffer cl-generic = cham georgian

utf-8-lang misc-lang = vietnamese tibetan thai tai-viet lao korean

japanese eucjp-ms cp51932 hebrew greek romanian slovak = czech european

ethiopic indian = cyrillic chinese composite charscript charprop

case-table epa-hook jka-cmpr-hook help simple abbrev = obarray

cl-preloaded nadvice loaddefs = button faces cus-face macroexp files

text-properties overlay sha1 md5 base64 format env = code-pages mule

custom widget = hashtable-print-readable backquote threads w32notify = w32

lcms2 multi-tty = make-network-process emacs)

 

Memory = information:

((conses 16 174942 = 7392)

(symbols 48 13957 = 1)

(strings 32 45787 = 2201)

(string-bytes 1 = 1506192)

(vectors 16 = 19753)

(vector-slots 8 248280 = 10026)

(floats 8 286 = 53)

(intervals 56 676 = 10)

(buffers 1000 = 18))

------=_NextPart_001_0005_01D73CF9.9EFB6DC0-- ------=_NextPart_000_0004_01D73CF9.9EFB6DC0 Content-Type: text/plain; name="f1.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="f1.cpp" namespace PT { ConstFP::Fcn ConstFP::PrecisionsOfOneFcn:: CreateFcn( TyAcc const& _ty ) const { CompilationUnit& _cu ( G->CU() ); TpSgmtCntnr _pSC ( new SgmtCntnrSC ); IObj _iDolRootScope ( G->GetHierarchy().DolRootScope() ); ILexObj _iLexDolRootScope( _iDolRootScope->GetLexScope() = ); typedef TypeList::Result TMods; std::vector _myArgs( nArgs() ); VariableSymbol _arg( TMods(), _ty ); for ( int _i( 0 ); _i < nArgs(); ++_i ) { std::stringstream _nmArg; _nmArg << "_arg" << _i; ITracks _iArg ( = _iDolRootScope.TrackFactory(_nmArg.str(),_arg,(*_pSC),_cu= ) ); _myArgs[ _i ] =3D _iArg; } std::stringstream _nmFcn; _nmFcn << "!" << ECall::DPI(myDpiId).Id(); switch ( myDpiId ) { case ECall::DPI::_pow_: _nmFcn << "Wrapr"; default: break; } _nmFcn << R()->GetNextDLLid(); IT::FcnDclHlpr _theFunction( (*_pSC), _ty, _nmFcn, = IT::TFcn::_dllExport_ ); for ( int _i( 0 ); _i < nArgs(); ++_i ) _theFunction << IT::IAcc( Expr( _myArgs[ _i ], NuVloc() ) ); IT::List _body; switch ( myDpiId ) { case ECall::DPI::_pow_: { IT::IAcc _one ( R()->c1.CastTo( _ty ) ); IT::IAcc _zero( R()->c0.CastTo( _ty ) ); IT::IAcc _condBase ( _theFunction.Arg(0) .EqEq( IT::FlagsOfIKind(), _zero ) ); IT::IAcc _condExp ( _theFunction.Arg(1) .LT( IT::FlagsOfIKind(), _zero ) ); // Specialize to capture `0 ** 0` and return 1. IT::IfHlpr _testSpcl ( _cu, _condBase .AndAnd (IT::FlagsOfIKind(), _condExp), IT::List() ); _testSpcl.True() << _one.Return(); _body << _testSpcl; break; } default: break; } IT::List _itActualList; for ( int _i( 0 ); _i < nArgs(); ++_i ) _itActualList << IT::IAcc( Expr( _myArgs[ _i ], NuVloc() ) = ).FcnArg(); IT::IAcc _theLibmCall( _itActualList.Head() .CallDpi( _ty, DpiProto(), myDpiId, IT::FlagsOfIKind() ) ); _body << _theLibmCall.Return(); _theFunction << _body.Head(); typedef SgmtCntnr::IBrndToSmblsWthLval IBrndToSmblsWthLval; typedef SgmtCntnr::BtoSwLkey BtoSwLkey; TpSignature _noSig ( new Signature ); TBranding* _branding ( new TBranding ); TIBranding _iBranding ( _branding->Insert( _iLexDolRootScope,Brands() ).first ); TpBrand _pBrand ( new Brand( _iBranding ) ); RefPtr_oneBrand( new Brands( _noSig, _pBrand ) ); IBrands _iBrands = (IPair((*_oneBrand).begin(),true)); IBrndToSmblsWthLval _iBtoWsl( (*_pSC)->Get( BtoSwLkey( _iBrands ) ) = ); OneGeste _theGeste ( R()->terminusStmt, _iLexDolRootScope, _iDolRootScope, DLLobject() = ); IT::TpLlVmGenerator _pLlVm ( _cu.LlVmGeneratorFactory( true/*isCommonToAllCUs*/ ) ); _theGeste.SetClosure( _theFunction ); _pSC->AllocLvalToGeste( _iBrands, _theGeste ); _pLlVm->AtFunction( (*_pSC), _iBrands, _iBtoWsl, _theGeste ); switch ( myDpiId ) { # ifdef C_FILE_GENERATOR case ECall::DPI::_pow_: _pSC->AddRef(); _pBrand->AddRef(); _oneBrand->AddRef(); _noSig->AddRef();=09 _cu.GetCfileGenerator()->AtFunction( *_pSC, _iBrands, _theGeste ); break; # endif C_FILE_GENERATOR default: delete _branding; break; } TyFloat const& _tyFloat( *(TyFloat const*)_ty ); Fcn _rslt; if ( _tyFloat.GetnBits() <=3D TyFloat::_IEEEdouble_ || ConstFP::LongDoubleIs128Bits() ) { try { _rslt =3D Fcn( _ty, _pLlVm->JIT(), _nmFcn.str() ); } catch ( Message& _msg ) { _rslt =3D LowerPrecision( _tyFloat, _msg ); } } return _rslt; } } ------=_NextPart_000_0004_01D73CF9.9EFB6DC0 Content-Type: text/plain; name="f2.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="f2.cpp" namespace PT { ConstFP::Fcn ConstFP::PrecisionsOfOneFcn:: CreateFcn( TyAcc const& _ty ) const { CompilationUnit& _cu ( G->CU() ); TpSgmtCntnr _pSC ( new SgmtCntnrSC ); IObj _iDolRootScope ( G->GetHierarchy().DolRootScope() ); ILexObj _iLexDolRootScope( _iDolRootScope->GetLexScope() = ); typedef TypeList::Result TMods; std::vector _myArgs( nArgs() ); VariableSymbol _arg( TMods(), _ty ); for ( int _i( 0 ); _i < nArgs(); ++_i ) { std::stringstream _nmArg; _nmArg << "_arg" << _i; ITracks _iArg ( = _iDolRootScope.TrackFactory(_nmArg.str(),_arg,(*_pSC),_cu= ) ); _myArgs[ _i ] =3D _iArg; } std::stringstream _nmFcn; _nmFcn << "!" << ECall::DPI(myDpiId).Id(); switch ( myDpiId ) { case ECall::DPI::_pow_: _nmFcn << "Wrapr"; default: break; } _nmFcn << R()->GetNextDLLid(); IT::FcnDclHlpr _theFunction( (*_pSC), _ty, _nmFcn, = IT::TFcn::_dllExport_ ); for ( int _i( 0 ); _i < nArgs(); ++_i ) _theFunction << IT::IAcc( Expr( _myArgs[ _i ], NuVloc() ) ); IT::List _body; switch ( myDpiId ) { case ECall::DPI::_pow_: { IT::IAcc _one ( R()->c1.CastTo( _ty ) ); IT::IAcc _zero( R()->c0.CastTo( _ty ) ); IT::IAcc _condBase ( _theFunction.Arg(0) .EqEq( IT::FlagsOfIKind(), _zero ) ); IT::IAcc _condExp ( _theFunction.Arg(1) .LT( IT::FlagsOfIKind(), _zero ) ); // Specialize to capture `0 ** 0` and return 1. IT::IfHlpr _testSpcl ( _cu, _condBase .AndAnd (IT::FlagsOfIKind(), _condExp), IT::List() ); _testSpcl.True() << _one.Return(); _body << _testSpcl; break; } default: break; } IT::List _itActualList; for ( int _i( 0 ); _i < nArgs(); ++_i ) _itActualList << IT::IAcc( Expr( _myArgs[ _i ], NuVloc() ) = ).FcnArg(); IT::IAcc _theLibmCall( _itActualList.Head() .CallDpi( _ty, DpiProto(), myDpiId, IT::FlagsOfIKind() ) ); _body << _theLibmCall.Return(); _theFunction << _body.Head(); typedef SgmtCntnr::IBrndToSmblsWthLval IBrndToSmblsWthLval; typedef SgmtCntnr::BtoSwLkey BtoSwLkey; TpSignature _noSig ( new Signature ); TBranding* _branding ( new TBranding ); TIBranding _iBranding ( _branding->Insert( _iLexDolRootScope,Brands() ).first ); TpBrand _pBrand ( new Brand( _iBranding ) ); RefPtr_oneBrand( new Brands( _noSig, _pBrand ) ); IBrands _iBrands = (IPair((*_oneBrand).begin(),true)); IBrndToSmblsWthLval _iBtoWsl( (*_pSC)->Get( BtoSwLkey( _iBrands ) ) = ); OneGeste _theGeste ( R()->terminusStmt, _iLexDolRootScope, _iDolRootScope, DLLobject() = ); IT::TpLlVmGenerator _pLlVm ( _cu.LlVmGeneratorFactory( true/*isCommonToAllCUs*/ ) ); _theGeste.SetClosure( _theFunction ); _pSC->AllocLvalToGeste( _iBrands, _theGeste ); _pLlVm->AtFunction( (*_pSC), _iBrands, _iBtoWsl, _theGeste ); switch ( myDpiId ) { # ifdef C_FILE_GENERATOR case ECall::DPI::_pow_: _pSC->AddRef(); _pBrand->AddRef(); _oneBrand->AddRef(); _noSig->AddRef();=09 _cu.GetCfileGenerator()->AtFunction( *_pSC, _iBrands, _theGeste ); break; # endif C_FILE_GENERATOR default: delete _branding; break; } TyFloat const& _tyFloat( *(TyFloat const*)_ty ); Fcn _rslt; if ( _tyFloat.GetnBits() <=3D TyFloat::_IEEEdouble_ || ConstFP::LongDoubleIs128Bits() ) { try { _rslt =3D Fcn( _ty, _pLlVm->JIT(), _nmFcn.str() ); } catch ( Message& _msg ) { _rslt =3D LowerPrecision( _tyFloat, _msg ); } } return _rslt; } } ------=_NextPart_000_0004_01D73CF9.9EFB6DC0 Content-Type: application/octet-stream; name="TAGS" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="TAGS" =0C=0A= f1.cpp,213=0A= namespace PT=7F1,0=0A= CreateFcn(=7F5,66=0A= typedef TypeList::Result =7FResult=0112,369=0A= typedef SgmtCntnr::IBrndToSmblsWthLval IBrndToSmblsWthLval;=7F89,2190=0A= typedef SgmtCntnr::BtoSwLkey BtoSwLkey;=7F90,2255=0A= =0C=0A= f2.cpp,213=0A= namespace PT=7F1,0=0A= CreateFcn(=7F5,66=0A= typedef TypeList::Result =7FResult=0112,369=0A= typedef SgmtCntnr::IBrndToSmblsWthLval IBrndToSmblsWthLval;=7F89,2190=0A= typedef SgmtCntnr::BtoSwLkey BtoSwLkey;=7F90,2255=0A= ------=_NextPart_000_0004_01D73CF9.9EFB6DC0--