This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Two testcases added this year assume that argc != 0. Unfortunately, the standard specifically allows it to be zero, and MIPS libgloss takes advantage of this.
As always there are too many options ;) We could:
(1) Skip the tests on targets where argc might be zero.
(2) Change libgloss.
(3) Pass a nonzero value in some other way that is too complicated for the optimisers to propagate as a constant.
(4) Make the test pass if argc == 0.
(1) means building up a list of targets, which seems a lot of effort for such a small thing.
doing is sensible when no executable name or command line arguments are
available. (The simulator could make them available through semihosting,
but they aren't necessarily available on real boards.)
to the test itself, including (4), but I thought (4) was safer and was probably the way to go.
-- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |