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]

Re: [PATCH] Fix a fallout of PR14179 fix (3.3/3.4/4.0 regression)


    One simply kills all special handling of sizetype in force_fit_type
    (thus effectively undoing part of the
    http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00663.html
    change).  There were no testcases for that though, so I can't guess
    what was the reason for the patch.

It's kind of hard to have a testcase in C, since it's well into
undefined territory there.  In Ada, there's a desire to more rigourously
detect overflows, which was the immediate motivation, but even there
it's sort of a gray area because we don't detect size computations that
overflow at run time.  So it's more of trying to do the right thing in
more cases (in all languages) than some specific functionality.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]