From: Alexandre Oliva <aoliva@redhat.com>
To: Kaoru Fukui <k_fukui@highway.ne.jp>
Cc: <linuxppc-dev@lists.linuxppc.org>, <gcc@gcc.gnu.org>
Subject: Re: kerne-2.4.0-test13pre3 with gcc-2.97
Date: 24 Dec 2000 01:29:32 -0200 [thread overview]
Message-ID: <or66kazecj.fsf@guarana.lsd.ic.unicamp.br> (raw)
In-Reply-To: Kaoru Fukui's message of "Sat, 23 Dec 2000 14:52:58 +0900"
On Dec 23, 2000, Kaoru Fukui <k_fukui@highway.ne.jp> wrote:
> - unsigned char b[0];
> + unsigned char *b;
This change (and apparently all other changes you've made) are
definitely wrong. Zero-sized arrays as the last element of a
structure used to be an extension in GCC 2.95.2, that has been adopted
by C99 with a slightly different syntax, that GCC CVS supports: just
remove the `0' from between the braces.
With your change, you're changing what is supposed to be a structure
whose last element is a flexible array with a structure that ends with
a pointer to such an array, which means the array should be allocated
separately, and any access to it must de-reference an additional
pointer. You'd have to adjust all uses of such a pointer to make this
change. Could this be the reason why your modified kernel doesn't
work?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-12-24 3:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-23 5:52 kerne-2.4.0-test13pre3 with gcc-2.97 Kaoru Fukui
[not found] ` <20001223142145.T5858@coruscant.gnumonks.org>
2000-12-23 13:30 ` Kaoru Fukui
2000-12-24 3:29 ` Alexandre Oliva [this message]
2000-12-24 13:53 ` Kaoru Fukui
2000-12-24 15:20 ` Thomas Sailer
2000-12-24 15:19 ` Thomas Sailer
2000-12-24 18:08 ` Alexandre Oliva
2000-12-26 1:41 ` how to use macro in assemble language embedded in C? kerler
[not found] ` <20001226221757.Postino-028251@smtp01.highway.ne.jp>
2000-12-27 3:33 ` kerler
2000-12-27 15:50 ` Alexandre Oliva
2000-12-27 23:37 ` kerne-2.4.0-test13pre3 with gcc-2.97 Richard Henderson
2000-12-24 15:16 ` Thomas Sailer
-- strict thread matches above, loose matches on Subject: below --
2000-12-25 0:04 Kaoru Fukui
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=or66kazecj.fsf@guarana.lsd.ic.unicamp.br \
--to=aoliva@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=k_fukui@highway.ne.jp \
--cc=linuxppc-dev@lists.linuxppc.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: link
Be 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 NNTP newsgroup(s).