This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Allow the suppression of expensive linker and gas tests

On Thu, Nov 08, 2007 at 11:00:57AM +0000, Nick Clifton wrote:
> 	* gas/macros/macros.exp: Suppress the execution of the purge
> 	test if the environment variable NO_EXPENSIVE_GAS_TESTS
> 	exists.

I'll admit to having this one commented out in my local trees.  How
about we remove the irpc loops at the end, presumably there to test
that memory is reclaimed?

a) It doesn't make sense to invoke a little used feature of the gas
macro processor almost half a million times.
b) We are unlikely to regress this feature.
c) "Out of memory" might not occur on a large system even if macro
memory was not reclaimed.

	* gas/macros/purge.s: Delete irpc loops.

Index: gas/testsuite/gas/macros/purge.s
RCS file: /cvs/src/src/gas/testsuite/gas/macros/purge.s,v
retrieving revision 1.3
diff -u -p -r1.3 purge.s
--- gas/testsuite/gas/macros/purge.s	25 Nov 2005 02:11:40 -0000	1.3
+++ gas/testsuite/gas/macros/purge.s	11 Nov 2007 22:53:06 -0000
@@ -25,18 +25,3 @@
  .purgem MACRO1
  .purgem macro2
-     .macro _\a\b\c\d arg1=0, arg2=0
-      .if \arg1 + \arg2
-       .purgem _\a\b\c\d
-      .endif
-     .endm
-	_\a\b\c\d 1, 2
-    .endr
-   .endr
-  .endr
- .endr

Alan Modra
Australia Development Lab, IBM

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