Bug 46988 - gcc/cp/cfns.h is modified even when the object directory is out of tree
Summary: gcc/cp/cfns.h is modified even when the object directory is out of tree
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 03:39 UTC by Khem Raj
Modified: 2010-12-17 06:48 UTC (History)
0 users

See Also:
Host: i686-pc-linux-gnu
Target: i586-none-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khem Raj 2010-12-17 03:39:33 UTC
when building cross compiler for i586 it ends up modifying gcc/cp/cfns.h

Here is diff

diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
index 62cdfab..72aaf77 100644
--- a/gcc/cp/cfns.h
+++ b/gcc/cp/cfns.h
@@ -1,5 +1,5 @@
 /* ANSI-C code produced by gperf version 3.0.3 */
-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C cfns.gperf  */
+/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C /home/kraj/work/cross/i586-none-linux-gnu/../../gcc.git/gcc/cp/cfns.gperf  */

 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
       && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
@@ -28,7 +28,7 @@
 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
 #endif

-#line 1 "cfns.gperf"
+#line 1 "/home/kraj/work/cross/i586-none-linux-gnu/../../gcc.git/gcc/cp/cfns.gperf"

 /* Copyright (C) 2000, 2003 Free Software Foundation, Inc.



The compiler is configured as below

Using built-in specs.
COLLECT_GCC=i586-none-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/home/kraj/work/cross/i586-none-linux-gnu/tools/libexec/gcc/i586-none-linux-gnu/4.6.0/lto-wrapper
Target: i586-none-linux-gnu
Configured with: /home/kraj/work/cross/i586-none-linux-gnu/../../gcc.git/configure --target=i586-none-linux-gnu --prefix=/home/kraj/work/cross/i586-none-linux-gnu/tools --with-sysroot=/home/kraj/work/cross/i586-none-linux-gnu/sysroot --enable-__cxa_atexit --disable-libssp --disable-libgomp --disable-libmudflap --enable-languages=c,c++ --with-arch=i586
Thread model: posix
gcc version 4.6.0 20101212 (experimental) (GCC)
Comment 1 Andrew Pinski 2010-12-17 06:48:45 UTC
The diff is fine there is no differences really because it is just path.  It just means the timestamp on gcc/cp/cfns.h is earlier than gcc/cp/cfns.gperf.  This happens when you don't use gcc_update --touch after doing an "git pull".