public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "chaselton at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/58939] Cannot Cross-Build Android Native GCC 4.8 libcpp build conversion errors Date: Sun, 03 Nov 2013 17:27:00 -0000 [thread overview] Message-ID: <bug-58939-4-Y7dlnoTYj0@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58939-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58939 --- Comment #1 from chaselton <chaselton at gmail dot com> --- UPDATE: Thanks to Jonathan Wakely and Ian Taylor for providing the codefixes. This bug is resolved by adding the following to files.c in lines 715-726: if (regular && total != size && STAT_SIZE_RELIABLE (file->st)) cpp_error (pfile, CPP_DL_WARNING, "%s is shorter than expected", file->path); ++ off_t ot = file->st.st_size; file->buffer = _cpp_convert_input (pfile, CPP_OPTION (pfile, input_charset), buf, size + 16, total, &file->buffer_start, ++ &ot /*&file->st.st_size*/); ++ file->st.st_size = ot; file->buffer_valid = true; NOTE: The following also must be added to macro.c in order for libcpp to build successfully in lines 248-253: if (st) { ++ time_t t = (time_t) st->st_mtime; ++ tb = localtime (&t); /* tb = localtime (&st->st_mtime); */ }
next prev parent reply other threads:[~2013-11-03 17:27 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-31 12:51 [Bug preprocessor/58939] New: " chaselton at gmail dot com 2013-11-02 22:28 ` [Bug preprocessor/58939] " redi at gcc dot gnu.org 2013-11-03 17:27 ` chaselton at gmail dot com [this message] 2021-09-02 2:37 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-58939-4-Y7dlnoTYj0@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).