Jim Michaels | 25 Jul 13:16 2014
Picon

__int128 literals don't work

__int128.cpp:4:16: warning: integer constant is too large for its type
     __int128 i=170141183460469231731687303715884105727LL;
                ^
__int128.cpp:5:25: warning: integer constant is too large for its type
     unsigned __int128 u=340282366920938463463374607431768211455ULL;
                         ^
__int128.cpp:4:16: warning: integer constant is too large for its type
     __int128 i=170141183460469231731687303715884105727;
                ^
__int128.cpp:5:25: warning: integer constant is too large for its type
     unsigned __int128 u=340282366920938463463374607431768211455U;
                         ^
__int128.cpp:4:16: error: unable to find numeric literal operator 'operator""LLL'
     __int128 i=170141183460469231731687303715884105727LLL;
                ^
__int128.cpp:4:16: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
__int128.cpp:5:25: error: unable to find numeric literal operator 'operator""ULLL'
     unsigned __int128 u=340282366920938463463374607431768211455ULLL;
                         ^

no way to win with __int128 even though it's supposed to be supported. there's not even a stdint.h type for it.


 
-------------
Jim Michaels
Jmichae3-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
JimM <at> RenewalComputerServices.com
http:&#x2F;&#x2F;RenewalComputerServices.com
http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming)

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Jim Michaels | 25 Jul 13:10 2014
Picon

problem using printf with __int128 in 4.9.0

#include <stdio.h>
#include <_mingw.h>
int main(void) {
    __int128 i=170141183460469231731687303715884105727LLL;
    unsigned __int128 u=340282366920938463463374607431768211455ULLL;
    //printf("i=%I128d\n", i);
    printf("%*d", 128/8, i);
    printf("  170141183460469231731687303715884105727LLL\n");

    //printf("u=%I128u\n", u);
    printf("%*u", 128/8, u);
    printf("%lu", u);
    printf("%llu", u);
    printf("%lllu", u);
    printf("%I128u", u);
    printf("  340282366920938463463374607431768211455ULLL\n");
    return 0;
}
/*

__int128.cpp: In function 'int main()':
__int128.cpp:4:16: error: unable to find numeric literal operator 'operator""LLL'
     __int128 i=170141183460469231731687303715884105727LLL;
                ^
__int128.cpp:4:16: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
__int128.cpp:5:25: error: unable to find numeric literal operator 'operator""ULLL'
     unsigned __int128 u=340282366920938463463374607431768211455ULLL;
                         ^
__int128.cpp:5:25: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
__int128.cpp:7:24: warning: format '%d' expects argument of type 'int', but argument 3 has type '__int128' [-Wformat=]
  printf("%*d", 128/8, i);
                        ^
__int128.cpp:11:24: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type '__int128 unsigned' [-Wformat=]
  printf("%*u", 128/8, u);
                        ^
__int128.cpp:12:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type '__int128 unsigned' [-Wformat=]
  printf("%lu", u);
                 ^
__int128.cpp:13:18: warning: unknown conversion type character 'l' in format [-Wformat=]
  printf("%llu", u);
                  ^
__int128.cpp:13:18: warning: too many arguments for format [-Wformat-extra-args]
__int128.cpp:14:19: warning: unknown conversion type character 'l' in format [-Wformat=]
  printf("%lllu", u);
                   ^
__int128.cpp:14:19: warning: too many arguments for format [-Wformat-extra-args]
__int128.cpp:15:20: warning: unknown conversion type character '1' in format [-Wformat=]
  printf("%I128u", u);
                    ^
__int128.cpp:15:20: warning: too many arguments for format [-Wformat-extra-args]

Fri 07/25/2014  4:07:36.01|d:\prj\test\mingw-w64\__int128|>call beepifexists.cmd __int128.exe
EXISTS: __int128.exe
-----failure-----

Fri 07/25/2014  4:07:37.04|d:\prj\test\mingw-w64\__int128|>if exist __int128.exe __int128.exe

Fri 07/25/2014  4:07:37.04|d:\prj\test\mingw-w64\__int128|>

*/
Using built-in specs.
COLLECT_GCC=f:\x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-4.9.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysr
oot=/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64 --with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared --enabl
e-static --enable-targets=all --enable-multilib --enable-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=yes --enable-threads=posix --enabl
e-libgomp --enable-libatomic --enable-libitm --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-ru
ntime-libs --enable-sjlj-exceptions --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstr
ap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686 --with-arch-64=noco
na --with-tune-32=generic --with-tune-64=core2 --with-libiconv --with-system-zlib --with-gmp=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-stati
c --with-mpfr=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static --with-mpc=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-stat
ic --with-isl=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static --with-cloog=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-st
atic --enable-cloog-backend=isl --with-pkgversion='x86_64-posix-sjlj-rev2, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 C
FLAGS='-O2 -pipe -I/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/opt/include -I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-zlib-st
atic/include -I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix
-sjlj-rt_v3-rev2/mingw64/opt/include -I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-zlib-static/include -I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64
-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/opt/lib -L/home/nixman/mingw-gcc-4
.9.0/prerequisites/x86_64-zlib-static/lib -L/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static/lib'
Thread model: posix
gcc version 4.9.0 (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-static' '-fopenmp' '-O2' '-fno-strict-aliasing' '-fwrapv' '-ftree-parallelize-loops=12' '-floop-parallelize-all' '-ftre
e-loop-vectorize' '-ftree-slp-vectorize' '-O2' '-fprefetch-loop-arrays' '-Wall' '-Wextra' '-std=c++11' '-o' '__int128.exe' '-mtune=core2' '-march=nocona' '-mthr
eads' '-pthread'
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe -E -quiet -v -iprefix f:/x86_64-4.9.0-release-pos
ix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/ -D_MT -D_REENTRANT -U_REENTRANT __int128.cpp -mtune=core2 -march=nocona -mthreads -std=c++11
 -Wall -Wextra -fopenmp -fno-strict-aliasing -fwrapv -ftree-parallelize-loops=12 -floop-parallelize-all -ftree-loop-vectorize -ftree-slp-vectorize -fprefetch-lo
op-arrays -O2 -O2 -fpch-preprocess -o __int128.ii
ignoring duplicate directory "f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include"
ignoring nonexistent directory "C:/Users/nixman/msys64/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64C:/Users/nixman/msys64/mingw64/lib/gc
c/x86_64-w64-mingw32/4.9.0/../../../../include"
ignoring duplicate directory "f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed"
ignoring duplicate directory "f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw3
2/include"
ignoring nonexistent directory "C:/Users/nixman/msys64/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/include
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/include
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-static' '-fopenmp' '-O2' '-fno-strict-aliasing' '-fwrapv' '-ftree-parallelize-loops=12' '-floop-parallelize-all' '-ftre
e-loop-vectorize' '-ftree-slp-vectorize' '-O2' '-fprefetch-loop-arrays' '-Wall' '-Wextra' '-std=c++11' '-o' '__int128.exe' '-mtune=core2' '-march=nocona' '-mthr
eads' '-pthread'
 f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe -fpreprocessed __int128.ii -quiet -dumpbase __int
128.cpp -mtune=core2 -march=nocona -mthreads -auxbase __int128 -O2 -O2 -Wall -Wextra -std=c++11 -version -fopenmp -fno-strict-aliasing -fwrapv -ftree-paralleliz
e-loops=12 -floop-parallelize-all -ftree-loop-vectorize -ftree-slp-vectorize -fprefetch-loop-arrays -o __int128.s
GNU C++ (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project) version 4.9.0 (x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 3.1.2-p8, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project) version 4.9.0 (x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 3.1.2-p8, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 227ce3fddb39dd1a7e6d71261ccfa602

 
-------------
Jim Michaels
Jmichae3-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
JimM-dExGzSK/FjWKhL9zcARy50K8FDhVFA20QQ4Iyu8u01E@public.gmane.org
http:&#x2F;&#x2F;RenewalComputerServices.com
http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming)

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Dongsheng Song | 25 Jul 06:36 2014
Picon

Re: r212448 - in /trunk: gcc/ChangeLog gcc/Makefile...

This just fix the ftw issue. But still have "%lld", mkdir, "GCC poison
strerror" issue on gcov.
You can following the build instructions at:

http://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-doc/howto-build/mingw-w64-howto-build.txt

Regards,
Dongsheng

On Thu, Jul 24, 2014 at 2:38 AM, Rong Xu <xur@...> wrote:
> +cc honza
>
> Here is the patch I created to fix the issue. The problem is I don't
> know how to test it. Can you give me the instructions for you build,
> or you can test it for me (at least the build part).
>
> Thanks,
>
> -Rong
>
> On Wed, Jul 16, 2014 at 2:44 AM, Dongsheng Song
> <dongsheng.song@...> wrote:
>> On Wed, Jul 16, 2014 at 12:37 AM, Rong Xu <xur@...> wrote:
>>> On Mon, Jul 14, 2014 at 11:02 PM, Dongsheng Song
>>> <dongsheng.song@...> wrote:
>>>> Hi Rong,
>>>>
>>>> Your commit r212448 broken Windows target 4 days.
>>>> Since windows target no ftw.h, this caused the following errors:
>>>
>>> Sorry for this. Do you know if there is a similar API in windows?
>>> If the answer is no, I will have to disable gcov-tool in windows.
>>>
>>
>> Windows have FindFirstFile/FindNextFile/FindClose.
>>
>> PS: The ftw() function is marked obsolescent.
>> http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftw.html
>>
>>> Thanks,
>>>
>>> -Rong
>>>
>>>>
>>>> make[2]: Entering directory
>>>> `/home/cauchy/obj/native/gcc-4.10-win64/gcc/libdecnumber'
>>>> make[2]: Nothing to be done for `all'.
>>>> make[2]: Leaving directory
>>>> `/home/cauchy/obj/native/gcc-4.10-win64/gcc/libdecnumber'
>>>> make[2]: Entering directory `/home/cauchy/obj/native/gcc-4.10-win64/gcc/gcc'
>>>> x86_64-w64-mingw32-g++ -c   -g -O2 -DIN_GCC    -fno-exceptions
>>>> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
>>>> -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
>>>> -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
>>>> -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I.
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc/.
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc/../include
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc/../libcpp/include
>>>> -I/home/cauchy/obj/native/gcc-4.10-win64/gcc/./gmp
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gmp
>>>> -I/home/cauchy/obj/native/gcc-4.10-win64/gcc/./mpfr/src
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/mpfr/src
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/mpc/src
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc/../libdecnumber
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/gcc/../libdecnumber/bid
>>>> -I../libdecnumber -I/home/cauchy/vcs/svn/gcc/trunk/gcc/../libbacktrace
>>>> -DCLOOG_INT_GMP
>>>> -I/home/cauchy/obj/native/gcc-4.10-win64/gcc/./cloog/include
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/cloog/include
>>>> -I/home/cauchy/obj/native/gcc-4.10-win64/gcc/./isl/include
>>>> -I/home/cauchy/vcs/svn/gcc/trunk/isl/include  -o gcov-tool.o -MT
>>>> gcov-tool.o -MMD -MP -MF ./.deps/gcov-tool.TPo
>>>> /home/cauchy/vcs/svn/gcc/trunk/gcc/gcov-tool.c
>>>> /home/cauchy/vcs/svn/gcc/trunk/gcc/gcov-tool.c:38:17: fatal error:
>>>> ftw.h: No such file or directory
>>>>  #include <ftw.h>
>>>>                  ^
>>>> compilation terminated.
>>>> make[2]: *** [gcov-tool.o] Error 1
>>>> make[2]: Leaving directory `/home/cauchy/obj/native/gcc-4.10-win64/gcc/gcc'
>>>> make[1]: *** [all-gcc] Error 2
>>>> make[1]: Leaving directory `/home/cauchy/obj/native/gcc-4.10-win64/gcc'
>>>> make: *** [all] Error 2
>>>>
>>>> Regards,
>>>> Dongsheng
>>>>
>>>> On Fri, Jul 11, 2014 at 1:48 PM,  <xur@...> wrote:
>>>>> Author: xur
>>>>> Date: Fri Jul 11 05:48:07 2014
>>>>> New Revision: 212448
>>>>>
>>>>> URL: https://gcc.gnu.org/viewcvs?rev=212448&root=gcc&view=rev
>>>>> Log:
>>>>> 2014-07-10  Rong Xu  <xur@...>
>>>>>
>>>>>         Add gcov-tool: an offline gcda profile processing tool
>>>>>         Support.
>>>>>         * gcc/gcov-io.c (gcov_position): Make avaialble to gcov-tool.
>>>>>         (gcov_is_error): Ditto.
>>>>>         (gcov_read_string): Ditto.
>>>>>         (gcov_read_sync): Ditto.
>>>>>         * gcc/gcov-io.h: Move counter defines to gcov-counter.def.
>>>>>         * gcc/gcov-dump.c (tag_counters): Use gcov-counter.def.
>>>>>         * gcc/coverage.c: Ditto.
>>>>>         * gcc/gcov-tool.c: Offline gcda profile processing tool.
>>>>>         (unlink_gcda_file): Remove one gcda file.
>>>>>         (unlink_profile_dir): Remove gcda files from the profile path.
>>>>>         (gcov_output_files): Output gcda files to an output dir.
>>>>>         (profile_merge): Merge two profiles in directory.
>>>>>         (print_merge_usage_message): Print merge usage.
>>>>>         (merge_usage): Print merge usage and exit.
>>>>>         (do_merge): Driver for profile merge sub-command.
>>>>>         (profile_rewrite): Rewrite profile.
>>>>>         (print_rewrite_usage_message): Print rewrite usage.
>>>>>         (rewrite_usage): Print rewrite usage and exit.
>>>>>         (do_rewrite): Driver for profile rewrite sub-command.
>>>>>         (print_usage): Print gcov-info usage and exit.
>>>>>         (print_version): Print gcov-info version.
>>>>>         (process_args): Process arguments.
>>>>>         (main): Main routine for gcov-tool.
>>>>>         * gcc/Makefile.in: Build and install gcov-tool.
>>>>>         * gcc/gcov-counter.def: New file split from gcov-io.h.
>>>>>         * libgcc/libgcov-driver.c (gcov_max_filename): Make available
>>>>>         to gcov-tool.
>>>>>         * libgcc/libgcov-merge.c (__gcov_merge_add): Replace
>>>>>         gcov_read_counter() with a Macro.
>>>>>         (__gcov_merge_ior): Ditto.
>>>>>         (__gcov_merge_time_profile): Ditto.
>>>>>         (__gcov_merge_single): Ditto.
>>>>>         (__gcov_merge_delta): Ditto.
>>>>>         * libgcc/libgcov-util.c (void gcov_set_verbose): Set the verbose flag
>>>>>         in the utility functions.
>>>>>         (set_fn_ctrs): Utility function for reading gcda files to in-memory
>>>>>         gcov_list object link lists.
>>>>>         (tag_function): Ditto.
>>>>>         (tag_blocks): Ditto.
>>>>>         (tag_arcs): Ditto.
>>>>>         (tag_lines): Ditto.
>>>>>         (tag_counters): Ditto.
>>>>>         (tag_summary): Ditto.
>>>>>         (read_gcda_finalize): Ditto.
>>>>>         (read_gcda_file): Ditto.
>>>>>         (ftw_read_file): Ditto.
>>>>>         (read_profile_dir_init): Ditto.
>>>>>         (gcov_read_profile_dir): Ditto.
>>>>>         (gcov_read_counter_mem): Ditto.
>>>>>         (gcov_get_merge_weight): Ditto.
>>>>>         (merge_wrapper): A wrapper function that calls merging handler.
>>>>>         (gcov_merge): Merge two gcov_info objects with weights.
>>>>>         (find_match_gcov_info): Find the matched gcov_info in the list.
>>>>>         (gcov_profile_merge): Merge two gcov_info object lists.
>>>>>         (__gcov_add_counter_op): Process edge profile counter values.
>>>>>         (__gcov_ior_counter_op): Process IOR profile counter values.
>>>>>         (__gcov_delta_counter_op): Process delta profile counter values.
>>>>>         (__gcov_single_counter_op): Process single  profile counter values.
>>>>>         (fp_scale): Callback function for float-point scaling.
>>>>>         (int_scale): Callback function for integer fraction scaling.
>>>>>         (gcov_profile_scale): Scaling profile counters.
>>>>>         (gcov_profile_normalize): Normalize profile counters.
>>>>>         * libgcc/libgcov.h: Add headers and functions for gcov-tool use.
>>>>>         (gcov_get_counter): New.
>>>>>         (gcov_get_counter_target): Ditto.
>>>>>         (struct gcov_info): Make the functions field mutable in gcov-tool
>>>>>         compilation.
>>>>>         * gcc/doc/gcc.texi: Include gcov-tool.texi.
>>>>>         * gcc/doc/gcov-tool.texi: Document for gcov-tool.
>>>>>
>>>>> Added:
>>>>>     trunk/gcc/doc/gcov-tool.texi
>>>>>     trunk/gcc/gcov-counter.def
>>>>>     trunk/gcc/gcov-tool.c
>>>>>     trunk/libgcc/libgcov-util.c
>>>>> Modified:
>>>>>     trunk/gcc/ChangeLog
>>>>>     trunk/gcc/Makefile.in
>>>>>     trunk/gcc/coverage.c
>>>>>     trunk/gcc/doc/gcc.texi
>>>>>     trunk/gcc/gcov-dump.c
>>>>>     trunk/gcc/gcov-io.c
>>>>>     trunk/gcc/gcov-io.h
>>>>>     trunk/libgcc/ChangeLog
>>>>>     trunk/libgcc/libgcov-driver.c
>>>>>     trunk/libgcc/libgcov-merge.c
>>>>>     trunk/libgcc/libgcov.h
>>>>>

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
klo uo | 25 Jul 05:53 2014
Picon

4.9.1. fails to compile project while 4.8.1 succeeds


Hi,

I upgraded from 4.8.1 to 4.9.1  (x86_64-4.9.1-release-win32-seh-rt_v3-rev0) and noticed that the package I used to build successfully, now fails.

The package is latest hunspell-1.3.3 and it fails with libtool error (failing to match some quote on line 7000 or so).

Removing 4.9.1 and installing back 4.8.1 `x86_64-4.8.1-release-posix-seh-rt_v3-rev2` indeed compiled fine again.

Any ideas what may be wrong?
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ray Donnelly | 22 Jul 23:37 2014
Picon

fork is an inbuilt function?

Hello,

While porting msysGit to MSYS2/MinGW-w64 we ran into this:

$ PATH=/mingw64/bin:"$PATH" gcc --version
gcc.exe (Rev1, Built by MSYS2 project) 4.9.1

$ cat test.c
#include <unistd.h>
static inline pid_t fork(void);
void main() {}

$ PATH=/mingw64/bin:"$PATH" gcc test.c
test.c:2:21: warning: conflicting types for built-in function 'fork'
 static inline pid_t fork(void);
                     ^

Anyone got any ideas about this?

Best regards,

Ray.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Massimo | 22 Jul 16:25 2014
Picon

possible use seh for 32 bit migw-w63 GCC-4.9.1 :

regarding last MinGW-W64 based on GCC-4.9.1 
will be possible use seh for 32 bit: 
Thanks in advance

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Alexey Pavlov | 22 Jul 17:13 2014
Picon

Missing GUIDs in libuuid

I have error described here:
http://www.qtcentre.org/threads/38060-How-to-fix-this-error-undefined-reference-to-IID_IMultiLanguage

Seems some GUIDs are missing in mingw-w64.

Regards,
Alexey.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Baruch Burstein | 22 Jul 14:31 2014
Picon

MSYS2 issues

Hi,

I (think I) found a bug in msys2. Here is a simple demo case:

main.c:
int main() { return 42; }

Makefile:
CC = gcc
CC2 = $(shell which $(CC))
out_1: clean main.c
$(CC) main.c -o /home/username/out.exe
out_2: clean main.c
$(CC) /home/username/main.c -o out.exe
out_3: clean main.c
$(CC) main.c -o out.exe
out_4: clean main.c
$(CC2) main.c -o /home/username/out.exe
out_5: clean main.c
$(CC2) main.c -o out.exe
clean:
rm -f out.exe

All 5 targets in the makefile should do the same thing, right?

If I try to run target #1, I get:
C:/Users/username/progs/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file /home/username/out.exe: No such file or directory

For #2 I get:
gcc: error: /home/username/main.c: No such file or directory

The other 3 work correctly.

If I run the command in #1 or #2 manually from the msys bash prompt, it works fine. It only fails using the makefile.
When checking with Process Monitor, I found that in the first 2 cases, it was trying to access the folder at C:\home\username\ , or in other words - it was not translating the msys path to the real windows path.

I am using:
msys2-base-x86_64-20140704
x86_64-4.9.1-release-posix-seh-rt_v3-rev0

The make I am using is the mingw32-make included with the compiler version above.

--
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ozkan Sezer | 20 Jul 11:18 2014
Picon

_lrotl and _lrotr

Regarding gcc PR target/61662:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61662
http://gcc.gnu.org/viewcvs/gcc?view=revision&sortby=date&revision=212826

In our intrin.h (and stdlib.h), we are overriding the definitions
from ia32intrin.h possibly the original definition from gcc used
to be wrong with relation to _LLP64?  Even if that were the case,
what we have is wrong because _lrotl and _lrotr accept and return
unsigned long for both win32 _and_ win64, and for windows that is
strictly 32 bits.  We need to fix this.

--
O.S.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
niXman | 18 Jul 11:29 2014

[Project News | New Builds]


Hi,

Builds of MinGW-W64 based on GCC-4.9.1 is uploaded.

Links:
32-bit:
      posix-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/sjlj/i686-4.9.1-release-posix-sjlj-rt_v3-rev0.7z
      posix-dwarf: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/dwarf/i686-4.9.1-release-posix-dwarf-rt_v3-rev0.7z
      win32-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/sjlj/i686-4.9.1-release-win32-sjlj-rt_v3-rev0.7z
      win32-dwarf: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/i686-4.9.1-release-win32-dwarf-rt_v3-rev0.7z

64-bit:
      posix-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-posix/sjlj/x86_64-4.9.1-release-posix-sjlj-rt_v3-rev0.7z
      posix-seh: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-posix/seh/x86_64-4.9.1-release-posix-seh-rt_v3-rev0.7z
      win32-sjlj: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-win32/sjlj/x86_64-4.9.1-release-win32-sjlj-rt_v3-rev0.7z
      win32-seh: 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-win32/seh/x86_64-4.9.1-release-win32-seh-rt_v3-rev0.7z

The online installer is also available:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe

--

-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
mity | 17 Jul 12:19 2014

gcc sanitizers

Hi,

I tried to use gcc 4.9.0 with -fsanitize=address or -fsantize=undefined.
However linker then failed, as the options imply -lasan or -lubsan
respectivelly.

Are these supposed to work in mingw-w64? If not, then perhaps the options
should fail early and tell they are not supported rather then lead to a
link error.

Martin

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

Gmane