public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 4.7.0RC: Mangled names in cc1
@ 2012-03-09  9:51 Ludovic Courtès
  2012-03-09  9:54 ` Andrew Pinski
  0 siblings, 1 reply; 45+ messages in thread
From: Ludovic Courtès @ 2012-03-09  9:51 UTC (permalink / raw)
  To: gcc

Hi,

In a build of GCC 4.7.0-RC-20120302 with --enable-languages=c,c++ [0],
I’m seeing C++-mangled name for common functions, like:

  $ objdump -T cc1 | grep build1_stat_loc
  0000000000640a00 g    DF .text  000000000000007a  Base        _Z20fold_build1_stat_locj9tree_codeP9tree_nodeS1_

Indeed, ‘tree.c’, for instance, eventually gets built with g++, not gcc:

  /tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/./prev-gcc/g++ -B/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/./prev-gcc/ -B/nix/store/glikf0cfxhhswagdh7wdwgmp20n9bfcl-gcc-debug-4.7.0rc20120302/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/gcc-4.7.0-RC-20120302/libstdc++-v3/libsupc++ -L/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/nix-build-djlxw37gcj9gy88ya1550crn49fpzqck-gcc-debug-4.7.0rc20120302.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c   -O2 -g -I/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/include -B/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/lib/ -idirafter /nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/include -idirafter /nix/store/fghwm2dz41sz9b2l87ffgv11zadq7dxr-gcc-4.6.3/lib/gcc/*/*/include-fixed  -Wl,-L/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/lib -Wl,-rpath -Wl,/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/lib -Wl,-L/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/lib -Wl,-dynamic-linker -Wl,/nix/store/6cgraa4mxbg1gfi95a4yhxq6yzb56s4v-glibc-2.13/lib/ld-linux-x86-64.so.2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7.0-RC-20120302/gcc -I../../gcc-4.7.0-RC-20120302/gcc/. -I../../gcc-4.7.0-RC-20120302/gcc/../include -I../../gcc-4.7.0-RC-20120302/gcc/../libcpp/include -I/nix/store/z5hcwkvzbzhy85lm3ibxzqmal22jgjwj-gmp-5.0.3/include -I/nix/store/xjks1ifzrh9ylnsjj15sy267r30b1ca5-mpfr-3.1.0/include -I/nix/store/36b2ghjhi40gyzfqx0qqqc034mc3ziii-mpc-0.9/include  -I../../gcc-4.7.0-RC-20120302/gcc/../libdecnumber -I../../gcc-4.7.0-RC-20120302/gcc/../libdecnumber/bid -I../libdecnumber -I/nix/store/3fk4lylmhsyqkq2vna2gqwssgfr51ynd-ppl-0.11.2/include  -I/nix/store/gq2pi083kf1vkl48j0wigpqzhga0bx9v-cloog-0.16.3/include -DCLOOG_INT_GMP -DCLOOG_ORG  ../../gcc-4.7.0-RC-20120302/gcc/tree.c -o tree.o

I believe this is not intentional, right?

What am I doing wrong?

Thanks,
Ludo’.

[0] Full log at <http://hydra.nixos.org/build/2267886/nixlog/1/raw>.

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2012-03-20 12:07 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-09  9:51 GCC 4.7.0RC: Mangled names in cc1 Ludovic Courtès
2012-03-09  9:54 ` Andrew Pinski
2012-03-09 10:00   ` Jakub Jelinek
2012-03-09 10:41   ` Ludovic Courtès
2012-03-09 13:26     ` Ludovic Courtès
2012-03-09 14:17       ` Duncan Sands
2012-03-09 14:57     ` Ian Lance Taylor
2012-03-09 15:42       ` Ludovic Courtès
2012-03-09 16:01         ` Ian Lance Taylor
2012-03-09 17:00           ` Ludovic Courtès
2012-03-09 18:08             ` Ian Lance Taylor
2012-03-12  8:56               ` Ludovic Courtès
2012-03-12 12:11                 ` Richard Guenther
2012-03-12 12:31                   ` Gabriel Dos Reis
2012-03-16 11:04                   ` Ludovic Courtès
2012-03-16 11:05                     ` Richard Guenther
2012-03-16 13:04                       ` Ludovic Courtès
2012-03-16 13:08                         ` Richard Guenther
2012-03-16 15:17                           ` Ludovic Courtès
2012-03-16 18:48                             ` GCC 5? (was Re: GCC 4.7.0RC: Mangled names in cc1) David Malcolm
2012-03-16 19:03                               ` Diego Novillo
2012-03-16 19:29                               ` Gabriel Dos Reis
2012-03-16 19:42                               ` Joseph S. Myers
2012-03-18 16:56                                 ` GCC 5 & modularity Basile Starynkevitch
2012-03-18 17:11                                   ` Robert Dewar
2012-03-18 17:53                                     ` Basile Starynkevitch
2012-03-18 20:49                                   ` Jonathan Wakely
2012-03-19  5:57                                     ` Basile Starynkevitch
2012-03-19 10:04                                       ` Jonathan Wakely
2012-03-19 10:57                                       ` Gabriel Dos Reis
2012-03-16 20:22                               ` GCC 5? (was Re: GCC 4.7.0RC: Mangled names in cc1) Jonathan Wakely
2012-03-19 10:08                               ` Richard Guenther
2012-03-19 15:37                                 ` Ludovic Courtès
2012-03-19 15:58                                   ` Richard Guenther
2012-03-20 11:47                                     ` Ludovic Courtès
2012-03-20 12:07                                       ` Richard Guenther
2012-03-19 18:04                                   ` Gabriel Dos Reis
2012-03-16 13:24                         ` GCC 4.7.0RC: Mangled names in cc1 Basile Starynkevitch
2012-03-16 17:40                         ` Gabriel Dos Reis
2012-03-19  9:57                           ` Ludovic Courtès
2012-03-19 10:54                             ` Gabriel Dos Reis
2012-03-19 15:46                       ` Ludovic Courtès
2012-03-16 17:35                     ` Gabriel Dos Reis
2012-03-12 12:30                 ` Gabriel Dos Reis
2012-03-10  1:25     ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).