lkml.org 
[lkml]   [2002]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] C undefined behavior fix
    On Tue, 1 Jan 2002, Tom Rini wrote:

    > 3) We could also try turning off this particular optimization
    > (-fno-builtin perhaps) on this file, and not worry about it.

    In particular, it would probably make sense for the kernel to use
    -ffreestanding (which implies -fno-builtin) throughout then selectively
    enable the built-in functions that are wanted with macros such as

    #define strcpy(d, s) __builtin_strcpy((d), (s))

    in an appropriate header, then #undef these macros in the files that
    shouldn't use the built-in functions.

    --
    Joseph S. Myers
    jsm28@cam.ac.uk

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:15    [W:4.596 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site