------- Comment #17 from hjl dot tools at gmail dot com 2009-05-18 23:03
-------
(In reply to comment #16)
> Just to chime in, the warning is a useful warning, but the way rs6000 and mips
> define FRAME_GROWS_DOWNWARD, the test in toplev.c will never succeed.
>
> 5) Move FRAME_GROWS_DOWNWARD (and STACK_GROWS_DOWNWARD, etc.) into the target
> structure, and set the field in the target structure from the macro. I tend
> to
Can't we change it to
if (!FRAME_GROWS_DOWNWARD)
{
if (flag_stack_protect)
{
warning (0, "-fstack-protector not supported for this target");
flag_stack_protect = 0;
}
}
with a comment?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40172