This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/10719] invalid code generated (x86, "int $5") with __builtin_va_arg(va, char);
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2005 04:52:37 -0000
- Subject: [Bug c/10719] invalid code generated (x86, "int $5") with __builtin_va_arg(va, char);
- References: <20030509203601.10719.sb@biallas.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-09-15 04:52 -------
> Yes well I don't think you should have to go out of your way to ask the
> compiler to not generate invalid code. Not generating invalid code should be
> the default behavior.
Again the compiler violates the ISO C standard if it stops. I agree that this
is counter-intuitive, but you have an unconditional warning. Simply ban -w.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10719