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: PATCH: make eh_frame config test work on Darwin


Alexandre Oliva wrote:
> 
> On May 17, 2001, Stan Shebs <shebs@apple.com> wrote:
> 
> > the
> > assembler still expects to read from stdin even if you specify -v.
> > Andrew Reynolds came up with the following finesse that creates
> > conftest.s first then passes it in, and uses -v instead of --version.
> 
> I'd rather just append `< /dev/null', and then `rm -f a.out
> 2>/dev/null' because it may be created if the assembler fails to
> understand --version.  Consider this alternate change pre-approved for
> mainline and branch.

Much more elegant, thanks!  I just committed it.

2001-05-18  Stan Shebs  <shebs@apple.com>

        * configure.in (gcc_cv_as_eh_frame): Cope with old assemblers.
        * configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.523
diff -c -3 -p -r1.523 configure.in
*** configure.in        2001/05/15 01:45:10     1.523
--- configure.in        2001/05/18 18:58:05
*************** if test x$gcc_cv_gas_major_version != x 
*** 1418,1424 ****
    fi
  elif test x$gcc_cv_as != x; then
        # Check if this is GAS.
!       as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
        if echo "$as_ver" | grep GNU > /dev/null; then
                # Versions up to and including 2.11.0 may mis-optimize
                # .eh_frame data.  Try something.
--- 1418,1425 ----
    fi
  elif test x$gcc_cv_as != x; then
        # Check if this is GAS.
!       as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
!       rm -f a.out 2> /dev/null
        if echo "$as_ver" | grep GNU > /dev/null; then
                # Versions up to and including 2.11.0 may mis-optimize
                # .eh_frame data.  Try something.


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