[PATCH Commitred] Fix PR target/48767
Joseph S. Myers
joseph@codesourcery.com
Wed Apr 27 12:44:00 GMT 2011
On Wed, 27 Apr 2011, Kaz Kojima wrote:
> "Joseph S. Myers" <joseph@codesourcery.com> wrote:
> > I think you should add a testcase to gcc.c-torture/compile, unless there
> > is already one that this patch fixes.
>
> Ah, indeed. How about the attached testcase?
Yes, that testcase looks like what I had in mind, but you don't need the
dg-* directives (the defaults in gcc.c-torture/compile should be fine).
> BTW, is it valid C?
I think this should be considered the same as passing a type such as
"short" that can never be the promoted argument type: undefined behavior
at runtime if the call is executed.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list