diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5c0d6ff5a5..8849b98a52d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-07-27 H.J. Lu + + PR driver/28437 + * opts-common.c (prune_options): Skip joined switches. + 2006-07-27 Jan Hubicka PR rtl-optimization/28071 diff --git a/gcc/opts-common.c b/gcc/opts-common.c index f3f6542095f..958e6677322 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -175,6 +175,10 @@ cont: if (option->neg_index < 0) goto cont; + /* Skip joined switches. */ + if ((option->flags & CL_JOINED)) + goto cont; + /* Reject negative form of switches that don't take negatives as unrecognized. */ if (!value && (option->flags & CL_REJECT_NEGATIVE))