This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Failure of test g++.dg/mangle.C on cygwin.


Attached is a patch to fix this.  tested on i686-pc-cygwin and
mips-sgi-irix6.5.  Please apply if OK.

> -----Original Message-----
> From:	Zack Weinberg [SMTP:zackw@stanford.edu]
> Sent:	Wednesday, 30 May 2001 15:30
> To:	Billinghurst, David (CRTS)
> Cc:	'gcc-bugs@gcc.gnu.org'
> Subject:	Re: Failure of test g++.dg/mangle.C on cygwin.
> 
> On Wed, May 30, 2001 at 04:22:36AM -0000, Billinghurst, David (CRTS)
> wrote:
> > The test  g++.dg/mangle1.C fails with 3.0 and 3.1 on cygwin, with
> > 
> > FAIL: g++.dg/mangle1.C scan-assembler _ZN1A1fEv:
> ....
> > The symbols in mangle1.s have two leading underscores, while the test
> > requires one leading underscore.  Which is correct?
> 
> The symbols are correct, the test fails to take USER_LABEL_PREFIX into
> account.  dejagnu doesn't know anything about that, so your best bet
> is to insert _? at the beginning of each regular expression.
> (USER_LABEL_PREFIX is always either a single underscore, or nothing.)
> 
2001-05-30	David Billinghurst  <David.Billinghurst@riotinto.com>

	* g++.dg/mangle1.C: Change regex to allow USER_LABEL_PREFIX =="_"
names

 Index: mangle1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/mangle1.C,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 mangle1.C
--- mangle1.C	2001/05/21 15:57:57	1.1.2.1
+++ mangle1.C	2001/05/30 06:19:14
@@ -11,18 +11,18 @@
 
 C c;
 
-// { dg-final { scan-assembler mangle1.C "\n_ZN1A1fEv:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZN1AC2Ev:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZN1BC2Ev:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZN1CC1Ev:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTC1C0_1B:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTI1A:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTI1B:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTI1C:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTS1A:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTS1B:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTS1C:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTT1C:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTV1A:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTV1C:" } }
-// { dg-final { scan-assembler mangle1.C "\n_ZTv0_n12_N1A1fEv:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZN1A1fEv:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZN1AC2Ev:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZN1BC2Ev:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZN1CC1Ev:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTC1C0_1B:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTI1A:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTI1B:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTI1C:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTS1A:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTS1B:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTS1C:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTT1C:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTV1A:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTV1C:" } }
+// { dg-final { scan-assembler mangle1.C "\n_?_ZTv0_n12_N1A1fEv:" } }
>    
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]