Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error:

看板FB_current作者時間12年前 (2013/04/27 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/9 (看更多)
On Apr 16, 2013, at 00:42, Jan Beich <jbeich@tormail.org> wrote: > "O. Hartmann" <ohartman@zedat.fu-berlin.de> writes: >> ./unistd.h:694:5: error: invalid token at start of a preprocessor >> expression >> #if @GNULIB_EUIDACCESS@ >> ^ >> 1 error generated. > > Maybe -O3 overoptimizes regex in libc e.g., > > $ echo '#if @GNULIB_EUIDACCESS@' | sed 's/@GNULIB_EUIDACCESS@/0/' > #if @GNULIB_EUIDACCESS@ > > $ echo 'aaaaaaaaaaaaaaaaxxxaaaa' | sed 's/aaaaaaaaaaaaxxxaaaa//' > aaaaaaaaaaaaaaaaxxxaaaa How did you arrive at this result? I have recompiled both libc and sed with -O3, but it works just fine here. Maybe -march=native is the clue, so which kind of CPU do you have? To see what CPU llvm detects, try: tblgen -version | grep CPU Note that -O3 turns on clang's vectorizer, so you might have run into an optimizer bug, or some kind of undefined behavior which now falls over. -Dimitry _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUschf4 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUschf4 (FB_current)