diff mbox

[ppc/darwin] fix PR bootstrap/45381

Message ID E2A248C3-9578-493B-8615-596645376831@sandoe-acoustics.co.uk
State New
Headers show

Commit Message

Iain Sandoe Feb. 14, 2011, 3:48 p.m. UTC
As discussed in the PR audit trail, this is the fix proposed for 4.6

OK for trunk?
Iain

compares.  */
  /* ??? Unfortunately, attribute(target("altivec")) is not yet  
supported,

Comments

Richard Henderson Feb. 14, 2011, 5:03 p.m. UTC | #1
On 02/14/2011 07:48 AM, IainS wrote:
> -#elif defined(__GNUC__) && defined(__ALTIVEC__)
> +#elif defined(__GNUC__) && (GCC_VERSION >= 4005) && defined(__ALTIVEC__)

Ok.


r~
diff mbox

Patch

Index: libcpp/lex.c
===================================================================
--- libcpp/lex.c        (revision 170104)
+++ libcpp/lex.c        (working copy)
@@ -512,7 +512,7 @@ 
    search_line_fast = impl;
  }

-#elif defined(__GNUC__) && defined(__ALTIVEC__)
+#elif defined(__GNUC__) && (GCC_VERSION >= 4005) &&  
defined(__ALTIVEC__)

  /* A vection of the fast scanner using AltiVec vectorized byte