public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [vta/trunk?] add --preserve flag to contrib/compare-debug
@ 2007-11-12 19:10 Alexandre Oliva
  2007-11-26  9:54 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2007-11-12 19:10 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

It's sometimes useful to look at the stripped object files that
compare-debug creates, when you don't want to be distracted by changes
to the debug information.  This patch introduces a flag that permits
compare-debug to retain the stripped object files.

I'm installing it in the vta branch.  Does anyone oppose my installing
it in the trunk, when I return from a trip later this week?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gcc-compare-debug-preserve.patch --]
[-- Type: text/x-patch, Size: 785 bytes --]

for  contrib/ChangeLog.vta
from  Alexandre Oliva  <aoliva@redhat.com>

	* compare-debug: Introduce -p flag to preserve .stripped files.

Index: contrib/compare-debug
===================================================================
--- contrib/compare-debug.orig	2007-11-11 06:38:17.000000000 -0200
+++ contrib/compare-debug	2007-11-11 21:22:57.000000000 -0200
@@ -21,6 +21,15 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
+rm='rm -f'
+
+case $1 in
+-p | --preserve)
+  rm='echo preserving'
+  shift
+  ;;
+esac
+
 if test $# != 2; then
   echo 'usage: compare-debug file1.o file2.o' >&2
   exit 1
@@ -60,7 +69,7 @@ else
   status=1
 fi
 
-rm -f "$1.$suf1" "$2.$suf2"
+$rm "$1.$suf1" "$2.$suf2"
 
 trap "exit $status; exit" 0 1 2 15
 

[-- Attachment #3: Type: text/plain, Size: 249 bytes --]


-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [vta/trunk?] add --preserve flag to contrib/compare-debug
  2007-11-12 19:10 [vta/trunk?] add --preserve flag to contrib/compare-debug Alexandre Oliva
@ 2007-11-26  9:54 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2007-11-26  9:54 UTC (permalink / raw)
  To: gcc-patches

On Nov 12, 2007, Alexandre Oliva <aoliva@redhat.com> wrote:

> 	* compare-debug: Introduce -p flag to preserve .stripped files.

I'm going ahead and checking this in.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-26  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 19:10 [vta/trunk?] add --preserve flag to contrib/compare-debug Alexandre Oliva
2007-11-26  9:54 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).