[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    Re: [RFC] [PATCH] Implement -ffortify for C/C++
From:       Ulrich Drepper <drepper () redhat ! com>
Date:       2007-02-21 16:59:05
Message-ID: 45DC7A59.2000202 () redhat ! com
[Download RAW message or body]


This is the wrong approach for a simple set of reasons:

- gcc will not be able to handle all functions which need to be
  protected:

  - POSIX functions not in ISO C/C++
  - non-standard functions

- hence gcc will have to be extended to include support to write
  wrappers outside of gcc to protect the functions for C++ as well

- but once you have such support in the compiler there is no reason to
  add any bloat to gcc by making the built-ins more complicated, the
  same thing could be implemented more transparently and with at least
  the same functionality in the system library headers


I.e., adding this new option does not solve the problem and the real
solution makes this patch unnecessary.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic