public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/12201] New: Apostrophes in gcc -v output
@ 2003-09-07 17:06 v dot haisman at sh dot cvut dot cz
  2003-09-13 19:09 ` [Bug driver/12201] " drow at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2003-09-07 17:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12201

           Summary: Apostrophes in gcc -v output
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin

I am getting apostrophes in gcc -v output of GCC 3.4.

$ gcc-34 -v
Reading specs from /usr/local/lib/gcc/i686-pc-cygwin/3.4/specs
Configured with: '../srcdir/configure' '--enable-threads=posix '--enable-languag
es=c,c++ '--enable-dwarf2 '--program-suffix=-34 '--without-included-gettext '--e
nable-version-specific-runtime-libs '--enable-nls '--with-arch=athlon '--with-cp
u=athlon '--enable-intermodule
Thread model: posix
gcc version 3.4 20030904 (experimental)


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

* [Bug driver/12201] Apostrophes in gcc -v output
  2003-09-07 17:06 [Bug driver/12201] New: Apostrophes in gcc -v output v dot haisman at sh dot cvut dot cz
@ 2003-09-13 19:09 ` drow at gcc dot gnu dot org
  2003-09-15  1:45 ` geoffk at geoffk dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: drow at gcc dot gnu dot org @ 2003-09-13 19:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12201


drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |geoffk at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-13 17:42:09
               date|                            |


------- Additional Comments From drow at gcc dot gnu dot org  2003-09-13 17:42 -------
Geoff, this is caused by your patch to quote TOPLEVEL_CONFIGURE_ARGUMENTS.

First of all, you added an apostrophe at the beginning of every argument.  Did
you mean to add one at the end too?  Secondly, I'm pretty sure the arguments
aren't expanded by the shell.  I believe you took the backslash-doubling from
autoconf's handling of program_transform_name; there, the backslashes are
expanded by the surrounding backticks (echo `echo gcc | sed '$(transform)'`)
parses one more layer of backslashes than echo gcc | sed '$(transform)' does).

I've attached a patch which should fix the extra apostrophes without breaking
--program-transform-name, I'd appreciate it if you could try it.  I tested with:
 ../gcc/configure '--program-transform-name=/^[cg][^.-]*$/s/\(.*\)$/\1-3.4/'
which is really as pathalogical as you can get.  It works with bash, but not
with ash (due to a bug in autoconf!).

Reading specs from
/nevyn/big/fsf/projects/autoconf/oo/foo/bin/../lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: ../gcc/configure
--program-transform-name=/^[cg][^.-]*$/s/\(.*\)$/\1-3.4/ --prefix=/foo
--enable-languages=c

i.e. not quoted well enough to just paste into the shell, but I think that's
OK.


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

* [Bug driver/12201] Apostrophes in gcc -v output
  2003-09-07 17:06 [Bug driver/12201] New: Apostrophes in gcc -v output v dot haisman at sh dot cvut dot cz
  2003-09-13 19:09 ` [Bug driver/12201] " drow at gcc dot gnu dot org
@ 2003-09-15  1:45 ` geoffk at geoffk dot org
  2003-09-17 20:56 ` drow at gcc dot gnu dot org
  2003-10-17 17:51 ` [Bug driver/12201] [3.4 Regression] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: geoffk at geoffk dot org @ 2003-09-15  1:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12201



------- Additional Comments From geoffk at geoffk dot org  2003-09-15 01:28 -------
Subject: Re:  Apostrophes in gcc -v output

> Date: 13 Sep 2003 17:42:10 -0000
> From: "drow at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>

> Geoff, this is caused by your patch to quote
> TOPLEVEL_CONFIGURE_ARGUMENTS.
> 
> First of all, you added an apostrophe at the beginning of every
> argument.  Did you mean to add one at the end too?

Yes, I wanted to put each argument in quotes.

>  Secondly, I'm pretty sure the arguments
> aren't expanded by the shell.

They are expanded once by Make, and then again by the shell inside
double-quotes.

>  I believe you took the backslash-doubling from autoconf's handling
> of program_transform_name; there, the backslashes are expanded by
> the surrounding backticks (echo `echo gcc | sed '$(transform)'`)
> parses one more layer of backslashes than echo gcc | sed
> '$(transform)' does).
> 
> I've attached a patch which should fix the extra apostrophes without breaking
> --program-transform-name, I'd appreciate it if you could try it.  I
> tested with:
>  ../gcc/configure '--program-transform-name=/^[cg][^.-]*$/s/\(.*\)$/\1-3.4/'
> which is really as pathalogical as you can get.  It works with bash, but not
> with ash (due to a bug in autoconf!).
> 
> Reading specs from
> /nevyn/big/fsf/projects/autoconf/oo/foo/bin/../lib/gcc/i686-pc-linux-gnu/3.4/specs
> Configured with: ../gcc/configure
> --program-transform-name=/^[cg][^.-]*$/s/\(.*\)$/\1-3.4/ --prefix=/foo
> --enable-languages=c
> 
> i.e. not quoted well enough to just paste into the shell, but I think that's
> OK.

I'm afraid I didn't get a copy of the patch, could you send it to me
privately?

I'm not sure that's quite enough of a pathological test case.  Try
adding --manpath=$(prefix)/share/man or --manpath=${prefix}/share/man ...


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

* [Bug driver/12201] Apostrophes in gcc -v output
  2003-09-07 17:06 [Bug driver/12201] New: Apostrophes in gcc -v output v dot haisman at sh dot cvut dot cz
  2003-09-13 19:09 ` [Bug driver/12201] " drow at gcc dot gnu dot org
  2003-09-15  1:45 ` geoffk at geoffk dot org
@ 2003-09-17 20:56 ` drow at gcc dot gnu dot org
  2003-10-17 17:51 ` [Bug driver/12201] [3.4 Regression] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: drow at gcc dot gnu dot org @ 2003-09-17 20:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12201


drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From drow at gcc dot gnu dot org  2003-09-17 20:21 -------
Patch checked in.


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

* [Bug driver/12201] [3.4 Regression] Apostrophes in gcc -v output
  2003-09-07 17:06 [Bug driver/12201] New: Apostrophes in gcc -v output v dot haisman at sh dot cvut dot cz
                   ` (2 preceding siblings ...)
  2003-09-17 20:56 ` drow at gcc dot gnu dot org
@ 2003-10-17 17:51 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 17:51 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12201


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Apostrophes in gcc -v output|[3.4 Regression] Apostrophes
                   |                            |in gcc -v output
   Target Milestone|---                         |3.4


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

end of thread, other threads:[~2003-10-17 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-07 17:06 [Bug driver/12201] New: Apostrophes in gcc -v output v dot haisman at sh dot cvut dot cz
2003-09-13 19:09 ` [Bug driver/12201] " drow at gcc dot gnu dot org
2003-09-15  1:45 ` geoffk at geoffk dot org
2003-09-17 20:56 ` drow at gcc dot gnu dot org
2003-10-17 17:51 ` [Bug driver/12201] [3.4 Regression] " pinskia at gcc dot gnu dot org

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).