* [PATCH] obvious (I think) correction to compiler.c and compiler.cc
@ 2005-03-07 18:43 Paul Gilliam
2005-03-07 18:50 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gilliam @ 2005-03-07 18:43 UTC (permalink / raw)
To: gdb-patches; +Cc: Daniel Jacobowitz
This fixes a problem with this committed patch:
http://sources.redhat.com/ml/gdb-patches/2005-03/msg00050.htm
'compiler.c' and 'compiler.cc' where doing the right thing, but
get_compiler_info was not evaluating the key line because it did not begin
with 'set'. Rather then add another case to get_compiler_info, I changed
the the line in compiler.c and compiler.cc to be 'set need_a_set
[regsub....]'
At first I thought this was obvious, but because it could be fixed in
compiler.c and compiler.cc or fixed in get_compiler_info, I thought maybe it
wasn't so obvious. I fixed it here in compiler.c and compiler.cc because
those are compiler dependent and get_compiler_info is more generic.
OK to commit?
-=# Paul #=-
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.c,v
retrieving revision 1.9
diff -c -3 -p -r1.9 compiler.c
*** compiler.c 4 Mar 2005 17:35:46 -0000 1.9
--- compiler.c 7 Mar 2005 18:20:38 -0000
*************** set compiler_info [join {hpacc __HP_aCC}
*** 68,72 ****
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of
four
numbers seperated by '.'s: currently "7.0.0.0" */
! regsub -all {\.} [join {xlc __xlc__} -] - compiler_info
#endif
--- 68,72 ----
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of
four
numbers seperated by '.'s: currently "7.0.0.0" */
! set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
Index: compiler.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.cc,v
retrieving revision 1.11
diff -c -3 -p -r1.11 compiler.cc
*** compiler.cc 4 Mar 2005 17:35:46 -0000 1.11
--- compiler.cc 7 Mar 2005 18:20:39 -0000
*************** set compiler_info [join {hpacc __HP_aCC}
*** 56,60 ****
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of
four
numbers seperated by '.'s: currently "7.0.0.0" */
! regsub -all {\.} [join {xlc __xlc__} -] - compiler_info
#endif
--- 56,60 ----
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of
four
numbers seperated by '.'s: currently "7.0.0.0" */
! set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] obvious (I think) correction to compiler.c and compiler.cc
2005-03-07 18:43 [PATCH] obvious (I think) correction to compiler.c and compiler.cc Paul Gilliam
@ 2005-03-07 18:50 ` Daniel Jacobowitz
2005-03-07 19:00 ` [COMMIT] " Paul Gilliam
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-03-07 18:50 UTC (permalink / raw)
To: Paul Gilliam; +Cc: gdb-patches
On Mon, Mar 07, 2005 at 10:39:16AM -0800, Paul Gilliam wrote:
> This fixes a problem with this committed patch:
>
> http://sources.redhat.com/ml/gdb-patches/2005-03/msg00050.htm
>
> 'compiler.c' and 'compiler.cc' where doing the right thing, but
> get_compiler_info was not evaluating the key line because it did not begin
> with 'set'. Rather then add another case to get_compiler_info, I changed
> the the line in compiler.c and compiler.cc to be 'set need_a_set
> [regsub....]'
>
> At first I thought this was obvious, but because it could be fixed in
> compiler.c and compiler.cc or fixed in get_compiler_info, I thought maybe it
> wasn't so obvious. I fixed it here in compiler.c and compiler.cc because
> those are compiler dependent and get_compiler_info is more generic.
>
> OK to commit?
OK.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
* [COMMIT] Re: [PATCH] obvious (I think) correction to compiler.c and compiler.cc
2005-03-07 18:50 ` Daniel Jacobowitz
@ 2005-03-07 19:00 ` Paul Gilliam
2005-03-07 19:38 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gilliam @ 2005-03-07 19:00 UTC (permalink / raw)
To: gdb-patches; +Cc: Daniel Jacobowitz
Done.
Was this obvious and I was too cautious?
-=# Paul #=-
PS. should I have copied the patch here or is the reference enough?
On Monday 07 March 2005 10:50, Daniel Jacobowitz wrote:
> On Mon, Mar 07, 2005 at 10:39:16AM -0800, Paul Gilliam wrote:
> > This fixes a problem with this committed patch:
> >
> > http://sources.redhat.com/ml/gdb-patches/2005-03/msg00050.htm
> >
> > 'compiler.c' and 'compiler.cc' where doing the right thing, but
> > get_compiler_info was not evaluating the key line because it did not
> > begin with 'set'. Rather then add another case to get_compiler_info, I
> > changed the the line in compiler.c and compiler.cc to be 'set need_a_set
> > [regsub....]'
> >
> > At first I thought this was obvious, but because it could be fixed in
> > compiler.c and compiler.cc or fixed in get_compiler_info, I thought maybe
> > it wasn't so obvious. I fixed it here in compiler.c and compiler.cc
> > because those are compiler dependent and get_compiler_info is more
> > generic.
> >
> > OK to commit?
>
> OK.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [COMMIT] Re: [PATCH] obvious (I think) correction to compiler.c and compiler.cc
2005-03-07 19:00 ` [COMMIT] " Paul Gilliam
@ 2005-03-07 19:38 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-03-07 19:38 UTC (permalink / raw)
To: Paul Gilliam; +Cc: gdb-patches
On Mon, Mar 07, 2005 at 10:56:50AM -0800, Paul Gilliam wrote:
> Done.
>
> Was this obvious and I was too cautious?
Dunno.
> PS. should I have copied the patch here or is the reference enough?
Is fine. Please just reply to the approval without changing the
subject, though.
>
>
> On Monday 07 March 2005 10:50, Daniel Jacobowitz wrote:
> > On Mon, Mar 07, 2005 at 10:39:16AM -0800, Paul Gilliam wrote:
> > > This fixes a problem with this committed patch:
> > >
> > > http://sources.redhat.com/ml/gdb-patches/2005-03/msg00050.htm
> > >
> > > 'compiler.c' and 'compiler.cc' where doing the right thing, but
> > > get_compiler_info was not evaluating the key line because it did not
> > > begin with 'set'. Rather then add another case to get_compiler_info, I
> > > changed the the line in compiler.c and compiler.cc to be 'set need_a_set
> > > [regsub....]'
> > >
> > > At first I thought this was obvious, but because it could be fixed in
> > > compiler.c and compiler.cc or fixed in get_compiler_info, I thought maybe
> > > it wasn't so obvious. I fixed it here in compiler.c and compiler.cc
> > > because those are compiler dependent and get_compiler_info is more
> > > generic.
> > >
> > > OK to commit?
> >
> > OK.
>
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-07 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 18:43 [PATCH] obvious (I think) correction to compiler.c and compiler.cc Paul Gilliam
2005-03-07 18:50 ` Daniel Jacobowitz
2005-03-07 19:00 ` [COMMIT] " Paul Gilliam
2005-03-07 19:38 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox