gcc version
yeti
Posts: 819
(yeti@aurora:2)~/wrk/propeller/propgcc-hg/propgcc$ hg branch
default
(yeti@aurora:2)~/wrk/propeller/propgcc-hg/propgcc$ hg branches | awk -vb=$(hg branch) '{ print ($1==b?"--> ":" ") $0 }'
p2test 2020:5e17601baf1b
--> default 1910:32126e5fb797
binutils-base 1907:7d2695d7a850
performance 1793:0fb8f05ee847
compressedcode 1688:955aeee6df73 (inactive)
(yeti@aurora:2)~/wrk/propeller/propgcc-hg/propgcc$ /opt/parallax/bin/propeller-elf-gcc -v
Using built-in specs.
COLLECT_GCC=/opt/parallax/bin/propeller-elf-gcc
COLLECT_LTO_WRAPPER=/opt/parallax/libexec/gcc/propeller-elf/4.6.1/lto-wrapper
Target: propeller-elf
Configured with: ../../propgcc/gcc/configure --target=propeller-elf --prefix=/opt/parallax --disable-nls --disable-libssp --disable-lto --disable-shared --with-pkgversion=propellergcc_v0_3_5_2020 --with-bugurl=http://code.google.com/p/propgcc/issues
Thread model: single
gcc version 4.6.1 (propellergcc_v0_3_5_2020)
I seem not to understand gcc's versioning (-v option), hg or something else......because building propgcc with default as active branch, I would expect 1910 instead of 2020 in gcc's version string...
That propgcc was built by jbuild.sh with rm-all arg...

Comments
user@desktop:~/Downloads/propgcc-source/propgcc$ hg branch p2test user@desktop:~/Downloads/propgcc-source/propgcc$ hg branches | awk -vb=$(hg branch) '{ print ($1==b?"--> ":" ") $0 }' --> p2test 1996:0cae4a169973 performance 1794:0fb8f05ee847 default 1747:32126e5fb797 binutils-base 4:7d2695d7a850 compressedcode 1689:955aeee6df73 (inactive) user@desktop:~/Downloads/propgcc-source/propgcc$ propeller-elf-g++ -v Using built-in specs. COLLECT_GCC=propeller-elf-g++ COLLECT_LTO_WRAPPER=/opt/parallax/libexec/gcc/propeller-elf/4.6.1/lto-wrapper Target: propeller-elf Configured with: ../../propgcc/gcc/configure --target=propeller-elf --prefix=/opt/parallax --disable-nls --disable-libssp --disable-lto --disable-shared --with-pkgversion=propellergcc_v0_3_5_1996 --with-bugurl=http://code.google.com/p/propgcc/issues Thread model: single gcc version 4.6.1 (propellergcc_v0_3_5_1996)Maybe you somehow got the p2test branch? On my machine with the build of the p2test branch, I can use the -mp2 switch:
ps: In case you didn't know, if you want the most recent version of PropGCC you should build the p2test branch (it works with Propeller 1 as well).
(yeti@aurora:1)~/wrk/propeller/propgcc-hg/propgcc$ ( PATH="/opt/parallax/bin:$PATH" ; echo 'main(){}' | propeller-elf-g++ -mp2 -xc -) cc1: error: unrecognized command line option '-mp2'...so I think I really compiled the "default" branch.(yeti@aurora:1)~/wrk/propeller/propgcc-hg/propgcc$ ( PATH="/opt/parallax/bin:$PATH" ; echo 'main(){}' | propeller-elf-g++ -xc -) (yeti@aurora:1)~/wrk/propeller/propgcc-hg/propgcc$ ls -l a.out -rwxr-xr-x 1 yeti yeti 7319 29. Apr 22:29 a.out...did what I expected without "-mp2".