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]
Other format: [Raw text]

Re: [arm] Automate --with-cpu


I like the concept, but:

+                       # See if it matches any of the entries in arm-cores.def
                        eval "val=\$with_$which"
!                       [ x"$val" = x ] && val=unset
!                       for opt in `sed -e '/ARM_CORE/!d' \
!                         -e 's/ARM_CORE(\([^,]*\),.*$/\1/' \
!                         ${srcdir}/config/arm/arm-cores.def` unset .
!                       do
!                               [ x$opt = x"$val" ] && break
!                       done

Isn't there a clearer way to write this logic?  It's hideously unreadable.


-- 
There are none so blind as those who will not see.


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