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: Gcc copies of system headers.




Sent from my iPhone

On Mar 24, 2009, at 2:50 PM, Aran Clauson <aran@100acres.us> wrote:

Description:
Gcc "fixes" some system header files and keeps its own
copies in the install directory.  This causes serious
problems when upgrading NetBSD.  In these situations, gcc's
copies need to be edited by hand.  On NetBSD, these headers
don't need fixing.

When upgrading the system headers you are supposed to rerun fixincludes like most other smart systems do. But yes these can be bypassed too which fixes only part of the problem.




NOTE: This patch includes a change for sys/types.h specific
to NetBSD and a change to math.h for all targets.  I can't
exhaustively  test the math.h as I don't have all targets.
Please take a closer look at that part of the patch.

Test Cases
A test case would involve an os upgrade and reboot.  I think
this is outside the scope of DejaGnu.

Change Log
Removed unnecessary fixes to NetBSD's sys/types.h and
math.h.

Bootstrap & test
Target/Host: i386-unknown-netbsdelf5.99.7
gcc tests are identical between the patched and unpatched
builds.

<inclhack.patch>


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