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: [3.0.1 and mainline] PATCH for libstdc++/3284


In article <ork81r54a6.fsf@guarana.lsd.ic.unicamp.br>,
Alexandre Oliva <aoliva@redhat.com> writes:

> I'm afraid this is not good enough.  The presence of an unquoted
> [ABCDE..._] will cause the shell to look for files named /^#/s/\(
[...]
> Thanks for taking care of the problem!

Done, checked and installed. Tested by reconfiguration of libstdc++-v3
and byte-for-byte comparison of configure-generated files related to
this patch.

Thanks for spotting the error so quickly.

2001-07-02  Loren J. Rittle  <ljrittle@acm.org>

	* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Protect variable from shell
	expansion (thanks to Alexandre Oliva).
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

Index: libstdc++-v3/acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.163
diff -c -r1.163 acinclude.m4
*** acinclude.m4	2001/07/02 22:24:57	1.163
--- acinclude.m4	2001/07/02 23:15:29
***************
*** 1161,1173 ****
    fi
    AC_OUTPUT_COMMANDS([d=include/bits; a='[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]'
      rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
!     sed '/^#/s/\('$a$a'*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \
        | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h
      sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
!       | sed 's/\(GCC'$a'*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
      sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
!       | sed 's/\(GCC'$a'*_H\)/_GLIBCPP_\1/g' \
!       | sed 's/\('$a'*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h])
  ])
  
  
--- 1161,1173 ----
    fi
    AC_OUTPUT_COMMANDS([d=include/bits; a='[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]'
      rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
!     sed '/^#/s/\('"$a$a"'*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \
        | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h
      sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
!       | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
      sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
!       | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' \
!       | sed 's/\('"$a"'*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h])
  ])
  
  


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