[patch sdbout]: Fix ICE on -debug testsuite test const2.C for coff

2014-11-06 Thread Kai Tietz
Hi, This fixes recent fallout of debug-tests on Windows target for sdbout (coff) caused by an ICE. ChangeLog 2014-11-06 Kai Tietz kti...@redhat.com * sdbout.c (sdbout_symbol): Eliminate register only if decl isn't a global variable. Tested for i686-w64-mingw32, and x86_64-w64

Re: [patch sdbout]: Fix ICE on -debug testsuite test const2.C for coff

2014-11-08 Thread Kai Tietz
Hi Jeff, 2014-11-07 21:03 GMT+01:00 Jeff Law l...@redhat.com: On 11/06/14 12:37, Kai Tietz wrote: Hi, This fixes recent fallout of debug-tests on Windows target for sdbout (coff) caused by an ICE. ChangeLog 2014-11-06 Kai Tietz kti...@redhat.com * sdbout.c (sdbout_symbol

Re: [ping*3] fix build failure of x86_64-mingw32, missing crtbegin/crtend.o

2014-09-17 Thread Kai Tietz
Hello Oliver, Sorry for the delay in review. Patch looks ok. Have you just tested -pc- variant, or also -w64- one? Thanks, Kai

Re: [ping*3] fix build failure of x86_64-mingw32, missing crtbegin/crtend.o

2014-09-17 Thread Kai Tietz
2014-09-17 12:38 GMT+02:00 Olivier Hainque hain...@adacore.com: Hello Kai, On Sep 17, 2014, at 10:52 , Kai Tietz ktiet...@googlemail.com wrote: Sorry for the delay in review. No problem at all. Thanks for your feedback :) Patch looks ok. Have you just tested -pc- variant, or also -w64

Re: [patch i386]: Sibcall tail-call improvement and partial fix PR/60104

2014-09-18 Thread Kai Tietz
Hi, it isn't true that I didn't replied to Iant. I did this on IRC. As I explained there already, this hunk about thunks is more consolidation of code-paths in that function, and not really part of a feature. As this code-path isn't prominent mark being Darwin-code - and please don't take me

Re: [patch i386]: Sibcall tail-call improvement and partial fix PR/60104

2014-09-18 Thread Kai Tietz
2014-09-18 23:35 GMT+02:00 FX fxcoud...@gmail.com: Dear Kai, it isn't true that I didn't replied to Iant. I did this on IRC. Good. I simply did not see any recent comment from you on the list, or bugzilla. As this code-path isn't prominent mark being Darwin-code - and please don't take

Re: [patch i386]: Sibcall tail-call improvement and partial fix PR/60104

2014-09-18 Thread Kai Tietz
Here it is. Hope I didn't made here typos. Kai Index: config/i386/predicates.md === --- config/i386/predicates.md (Revision 215364) +++ config/i386/predicates.md (Arbeitskopie) @@ -73,8 +73,15 @@ ;; Return true if OP is a

Re: [patch i386]: Sibcall tail-call improvement and partial fix PR/60104

2014-09-20 Thread Kai Tietz
Hi FX, I missed that op points still on the memory here. So corrected patch is inlined below. Kai Index: predicates.md === --- predicates.md (Revision 215364) +++ predicates.md (Arbeitskopie) @@ -73,9 +73,18 @@ ;;

[patch c/c++]: Fix for PR c/52991 issue about ignored packed-attribute for ms-structure-layout

2012-12-11 Thread Kai Tietz
Hello, This fixes an old regression about ms-structure-layout in combination with packed-attribute. ChangeLog 2012-12-11 Kai Tietz PR c/52991 * stor-layout.c (start_record_layout): Handle packed-attribute for ms-structure-layout. (update_alignment_for_field

Re: [patch c/c++]: Fix for PR c/52991 issue about ignored packed-attribute for ms-structure-layout

2012-12-12 Thread Kai Tietz
2012/12/12 Richard Biener richard.guent...@gmail.com: On Wed, Dec 12, 2012 at 4:11 PM, Richard Henderson r...@redhat.com wrote: On 12/12/2012 02:57 AM, Richard Biener wrote: That looks wrong. Having both TYPE_PACKED and TYPE_ALIGN != BITS_PER_UNIT is inconsistent, so this part of the patch

Re: [patch c/c++]: Fix for PR c/52991 issue about ignored packed-attribute for ms-structure-layout

2012-12-12 Thread Kai Tietz
Hi, I added two testcases to this patch. So that we might detect regressions about this issue later more easily. 2012-12-12 Kai Tietz PR c/52991 * stor-layout.c (start_record_layout): Handle packed-attribute for ms-structure-layout. (update_alignment_for_field

Re: [patch c/c++]: Fix for PR c/52991 issue about ignored packed-attribute for ms-structure-layout

2012-12-13 Thread Kai Tietz
and padding happens. But I agree that I didn't intended to change sysv_abi here by this patch. So I added to the change in start_record_layout a check to ms-bitfields use. 2012-12-13 Kai Tietz PR c/52991 * stor-layout.c (start_record_layout): Handle packed-attribute for ms

[patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
Hello, this patch fixes some remaining issues with pointer-sizes for llp64 abi in libstdc++. ChangeLog 2012-12-21 Kai Tietz * config/os/mingw32/os_defines.h (_GLIBCXX_LLP64): Define if llp64 abi is used. * config/os/mingw32-w64/os_defines.h: Likewise. * libsupc

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
2012/12/21 Paolo Carlini paolo.carl...@oracle.com: Hi, On 12/21/2012 08:59 AM, Kai Tietz wrote: Index: libsupc++/cxxabi.h === --- libsupc++/cxxabi.h (Revision 194655) +++ libsupc++/cxxabi.h (Arbeitskopie) @@ -356,7 +356,7

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
2012/12/21 Paolo Carlini paolo.carl...@oracle.com: Hi, On 12/21/2012 10:16 AM, Kai Tietz wrote: Well, I thought it is always present for gcc due gstdint.h header, As far as I know, that project isn't finished yet, there are still targets which neither provide the header, neither GCC

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
2012/12/21 Paolo Carlini paolo.carl...@oracle.com: On 12/21/2012 10:36 AM, Kai Tietz wrote: well, issue isn't that 'long' is always 'ptrdiff_t'. But then, if we just change the type without paying attention to size (and alignment) aren't we looking for BIG ABI trouble?!? Huh? We have ABI

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
Hello, I changed type in __base_class_type_info to wide-enough type only for llp64 target. By this we have no (new) side-effects to other targets. ChangeLog 2012-12-21 Kai Tietz * config/os/mingw32/os_defines.h (_GLIBCXX_LLP64): Define if llp64 abi is used. * config/os

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
2012/12/21 Uros Bizjak ubiz...@gmail.com: Hello! 2012-12-21 Kai Tietz * config/os/mingw32/os_defines.h (_GLIBCXX_LLP64): Define if llp64 abi is used. * config/os/mingw32-w64/os_defines.h: Likewise. * libsupc++/cxxabi.h (__base_class_type_info): Adjust type

[patch c++]: Fix type_info struct for llp64 targets

2012-12-21 Thread Kai Tietz
, if pointer is larger then scalar-size of 'long' type. ChangeLog 2012-12-21 Kai Tietz * rtti.c (LONGPTR_T): New helper-macro. (get_pseudo_ti_init): Initialize offset_type by LONGPTR_T type instead of 'long' type. (create_tinfo_types): Use for offset/flags field

Re: [patch libstdc++]: Fix LLP64 pointer-size issues for cxxabi, eh_alloc, and hash_bytes

2012-12-21 Thread Kai Tietz
2012/12/21 Gabriel Dos Reis g...@integrable-solutions.net: On Fri, Dec 21, 2012 at 3:48 AM, Kai Tietz ktiet...@googlemail.com wrote: 2012/12/21 Paolo Carlini paolo.carl...@oracle.com: On 12/21/2012 10:36 AM, Kai Tietz wrote: well, issue isn't that 'long' is always 'ptrdiff_t

Re: [patch c++]: Fix type_info struct for llp64 targets

2012-12-27 Thread Kai Tietz
Ping 2012/12/21 Kai Tietz ktiet...@googlemail.com: Hello, this patch fixes the layout of the info_type-s for llp64 target. We used here 'long' type instead of pointer-scalar-witdth type. That's an issue for llp64 targets. I introduced for that the LONGPTR_T helper-macro, which has either

Re: [PATCH]: Fix for PR 55707 bootstrap fails in gcc/graphite-dependences.c error cast loses precision

2013-01-03 Thread Kai Tietz
Hi Rainer, applied at rev 194859. Thanks, Kai

[patch libbacktrace]: Fix undeclared-symbols warning for SjLj-targets

2013-01-18 Thread Kai Tietz
Hi, this patch cleans up a undeclared-symbol issue in libbacktrace. ChangeLog 2013-01-18 Kai Tietz kti...@redhat.com * backtrace.c (_Unwind_GetIPInfo): Add prototype. * simple.c (_Unwind_GetIPInfo): Likewise. Tested for x86_64-w64-mingw32, and i686-w64-mingw32. Ok for apply

[patch libstdc++]: Fix tests trying to override symbols in shared-library for mingw targets

2013-01-18 Thread Kai Tietz
Hi, this patch addresses some of libstdc++'s testsuite regressions on pe-coff targets due none-overridable symbols in DLL files. ChangeLog * 18_support/50594.cc: Force use of static libstdc++ for mingw targets. * 19_diagnostics/error_category/operators/equal.cc: Likewise.

Re: [patch libbacktrace]: Fix undeclared-symbols warning for SjLj-targets

2013-01-18 Thread Kai Tietz
/18 Jakub Jelinek ja...@redhat.com: On Fri, Jan 18, 2013 at 11:05:11AM +0100, Kai Tietz wrote: this patch cleans up a undeclared-symbol issue in libbacktrace. It is prototyped in unwind.h, at least should be. 2013-01-18 Kai Tietz kti...@redhat.com * backtrace.c (_Unwind_GetIPInfo

Re: [patch libstdc++]: Fix tests trying to override symbols in shared-library for mingw targets

2013-01-18 Thread Kai Tietz
2013/1/18 Jonathan Wakely jwakely@gmail.com: On 18 January 2013 10:17, Kai Tietz wrote: Hi, this patch addresses some of libstdc++'s testsuite regressions on pe-coff targets due none-overridable symbols in DLL files. ChangeLog * 18_support/50594.cc: Force use of static libstdc

[patch libiberty's include]: Fixes PR 39064 and partial PR 54620

2013-01-30 Thread Kai Tietz
Hi, this patch fixes for targets with sys/types.h the issue that wrong assumptions about pointer-sizes are used. Instead it uses uintptr_t/intptr_t. ChangeLog /include 2013-01-30 Kai Tietz kti...@redhat.com PR other/54620 PR target/39064 * md5.h: Include sys/types.h

Re: [patch libiberty's include]: Fixes PR 39064 and partial PR 54620

2013-01-30 Thread Kai Tietz
2013/1/30 Ian Lance Taylor i...@google.com: On Wed, Jan 30, 2013 at 2:53 AM, Kai Tietz ktiet...@googlemail.com wrote: this patch fixes for targets with sys/types.h the issue that wrong assumptions about pointer-sizes are used. Instead it uses uintptr_t/intptr_t. ChangeLog /include 2013-01

Re: [patch libiberty's include]: Fixes PR 39064 and partial PR 54620

2013-01-30 Thread Kai Tietz
Hmm, I see ... so we need an new condition. Is it ok to apply? Thanks, Kai Index: md5.h === --- md5.h (Revision 195572) +++ md5.h (Arbeitskopie) @@ -40,6 +40,11 @@ # include sys/types.h typedef u_int32_t md5_uint32;

[patch libiberty]: Fix PR 54620

2013-01-30 Thread Kai Tietz
Hi, this patch fixes wrong handling of cases that bitness of size_t is wider as 32-bit. ChangeLog 2013-01-30 Kai Tietz kti...@redhat.com PR other/54620 * sha1.c (sha1_process_block): Handle case that size_t is a wider-integer-scalar as a 32-bit unsigned integer

[patch libiberty]: Fix PR 53285 on 4.7 branch

2013-01-30 Thread Kai Tietz
Hi, this patch backports a fix from trunk ChangeLog 2013-01-30 Kai Tietz kti...@redhat.com 2012-07-31 Mike Frysinger vap...@gentoo.org Merged from trunk. PR other/53285 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output to swap_bytes

[patch i386]: Fix PR target/56186

2013-02-04 Thread Kai Tietz
Hello, this patch fixes reported regression about 128-bit return-type for x64 ABI. ChangeLog 2013-02-04 Kai Tietz kti...@redhat.com PR target/56186 * i386.c (function_value_64): Add additional valtype argument and improve checking of return-argument types for 16-byte

Re: [patch i386]: Fix PR target/56186

2013-02-04 Thread Kai Tietz
2013/2/4 Jakub Jelinek ja...@redhat.com: On Mon, Feb 04, 2013 at 02:38:23PM +0100, Kai Tietz wrote: Tested for x86_64-w64-mingw32, and for x86_64-unknown-linux-gnu. Ok for apply? Please make sure to also test with a 4.7 based compiler (assuming it is gcc47 and g++47) using make check

Re: [PATCH] Port Jason's r195550 varasm.c change also to mingw/cygwin/solaris private copies (PR libstdc++/54314)

2013-02-04 Thread Kai Tietz
2013/2/4 Jakub Jelinek ja...@redhat.com: Hi! In http://gcc.gnu.org/viewcvs?root=gccview=revrev=195550 Jason changed the default assemble_visibility target hook to avoid complaining on DECL_ARTIFICIAL decls, even when they have some visibility set (the C++ FE now sets visibility of

[patch libada]: PR target/52122

2013-02-06 Thread Kai Tietz
Hi, this patch fixes an issue about recursice LN_S for mingw-host. The issue was already addressed by autotools, but an upgrade of version isn't suitable right now. For further information see the bug-report PR 52122. ChangeLog libada/ PR target/52122 * Makefile.in

Re: [PATCH, bootstrap]: Fix PR56227, bootstrap failure on MinGW.

2013-02-07 Thread Kai Tietz
2013/2/7 Uros Bizjak ubiz...@gmail.com: Hello! Attached (trivial) patch substitutes a bunch of ll conversion types with HOST_LONG_LONG_FORMAT defines. Additionally, it fixes wrong usage of HOST_WIDE_INT_PRINT_HEX_PURE in the argument of internal_error. The patch reportedly fixes bootstrap

Re: [patch libiberty include]: Add additional helper functions for directory-separator searching

2011-03-08 Thread Kai Tietz
2011/3/8 Eli Zaretskii e...@gnu.org: Date: Tue, 8 Mar 2011 11:56:45 +0100 From: Kai Tietz ktiet...@googlemail.com +@deftypefn Extension int filename_dirchr (const char *@var{p}) + +The returned value is similar to what @code{strchr} would return for +searching for a directory separator

Re: [patch libiberty include]: Add additional helper functions for directory-separator searching

2011-03-08 Thread Kai Tietz
2011/3/8 Pedro Alves pe...@codesourcery.com: On Tuesday 08 March 2011 12:48:11, Kai Tietz wrote: Well, a better example is elfstab_offset_sections() in elfread.c.  /* The ELF symbol info doesn't include path names, so strip the path     (if any) from the psymtab filename.  */  while (0

[patch libcpp]: Improve handling of DOS-filenames and -paths

2011-03-14 Thread Kai Tietz
Hello, this patch fixes some DOS-filename comparision and directory-separator checks. Changelog libcpp 2011-03-14 Kai Tietz * files.c (file_hash_eq): Use filename_cmp instead of strcmp. (nonexistent_file_hash_eq): Likewise. (remap_filename): Likewise

Re: [patch gcc c++ c-family java fortan lto]: Fix DOS-filesystem issues

2011-03-15 Thread Kai Tietz
2011/3/15 Pedro Alves pe...@codesourcery.com: Thanks. This looks like lbasename-able as well, getting rid of that HAVE_DOS...-ish foo: Thanks. Yes, that one I missed. Attached updated version of patch. Kai Index: gcc/gcc/c-family/c-ada-spec.c

Re: [patch i386,c,c++]: PR/12171 - calling convention omitted in error message

2011-03-17 Thread Kai Tietz
PING, ok for 4.7? 2011/1/4 Jason Merrill ja...@redhat.com: On 01/01/2011 01:07 PM, Kai Tietz wrote: Well, as here no further agreement was found, I post here the alternative suggested by Joseph. I am open-minded which approach will be chosen. I just want to fix this long pending issue. I

Re: [patch i386,c,c++]: PR/12171 - calling convention omitted in error message

2011-03-17 Thread Kai Tietz
2011/3/17 Jason Merrill ja...@redhat.com: On 03/17/2011 04:46 AM, Kai Tietz wrote: PING, ok for 4.7? Did you have a response to my comment below? 2011/1/4 Jason Merrillja...@redhat.com: On 01/01/2011 01:07 PM, Kai Tietz wrote: Well, as here no further agreement was found, I post here

Re: [patch i386,c,c++]: PR/12171 - calling convention omitted in error message

2011-03-17 Thread Kai Tietz
2011/3/17 Jason Merrill ja...@redhat.com: On 03/17/2011 12:08 PM, Kai Tietz wrote: I thought to use here instead of on_diagnostic (which is IMHO fine too as it indicates for now only that attribute shall be displayed on diagnostics) affects_abi. I think it makes sense to keep that name

Re: [patch i386,c,c++]: PR/12171 - calling convention omitted in error message

2011-03-21 Thread Kai Tietz
2011/3/18 Jason Merrill ja...@redhat.com: OK. Jason Applied first part at rev. 171209. Second part at rev. 171210. Kai

Re: [patch libcpp]: Improve handling of DOS-filenames and -paths

2011-03-21 Thread Kai Tietz
PING 2011/3/14 Kai Tietz ktiet...@googlemail.com: Hello, this patch fixes some DOS-filename comparision and directory-separator checks. Changelog libcpp 2011-03-14  Kai Tietz        * files.c (file_hash_eq): Use filename_cmp        instead of strcmp.        (nonexistent_file_hash_eq

Re: Fix typo on cygming.h

2011-03-22 Thread Kai Tietz
2011/3/22 Nick Clifton ni...@redhat.com: Hi Guys,  I am applying the patch below as an obvious fix.  The definition of  SUBTARGET_OVERRIDE_OPTIONS in the i386/cygming.h header file has a  trailing backslash at the end of the macro, leading it to include the  line that follows.  Fortunately

RFC: Issue about assumption of DOSish file-system for cygwin

2011-03-22 Thread Kai Tietz
Hello, I noticed this issue while working on those directory-separator thing for DOSish file-systems, and somehow this looks odd to me. For some reason the filenames.h header assumes for cygwin DOSish file-system, but in fact cygwin uses POSIXish file-system. I assume this definition was caused

Re: RFC: Issue about assumption of DOSish file-system for cygwin

2011-03-22 Thread Kai Tietz
2011/3/22 Pedro Alves pe...@codesourcery.com: On Tuesday 22 March 2011 18:11:28, Kai Tietz wrote: Ok, thanks for explaining it. I am just a bit concerned here about the ABSOLUTE path detection. As then for cygwin this will be for UNIXish path never true.   So it might be necessary here

Re: [patch middle-end c c++]: Optimize cost of comp_type_attributes

2011-03-24 Thread Kai Tietz
2011/3/24 Jason Merrill ja...@redhat.com: On 03/21/2011 06:36 PM, Kai Tietz wrote: +      attr = lookup_attribute (IDENTIFIER_POINTER (TREE_PURPOSE (a)), +                              CONST_CAST_TREE (a2)); I might use as-name for the name, and change lookup_attribute to take a const_tree

Re: [patch middle-end c c++]: Optimize cost of comp_type_attributes

2011-03-24 Thread Kai Tietz
Kai Tietz * decl.c (decls_match): Replace target hook call of comp_type_attributes by version in tree.c file. * search.c (check_final_overrider): Likewise. * typeck.c (structural_comptypes): Likewise. Regards, Kai Index: gcc/gcc/c-typeck.c

[patch i386 windows]: Introduce call-abi for 32-bit mingw and make callee_pop_aggregate_return attribute by default on for 32-bit mingw target

2011-03-24 Thread Kai Tietz
of callee_pop_aggregate_return for any x86_64 target. I didn't changed here by intention the default settings of cygwin-target. But of course, if wished this change could be done as follow-up patch. ChangeLog gcc/ 2011-03-24 Kai Tietz * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust

[PING^2]: For unreviewed patches

2011-03-25 Thread Kai Tietz
Ping for following patches [patch libcpp]: Improve handling of DOS-filenames and -paths http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00742.html [patch gcc c++ c-family java fortan lto]: Fix DOS-filesystem issues http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00824.html Kai

Re: [patch middle-end c c++]: Optimize cost of comp_type_attributes

2011-03-25 Thread Kai Tietz
2011/3/25 Jason Merrill ja...@redhat.com: On 03/24/2011 08:44 PM, Kai Tietz wrote: +static bool +attribute_value_equal (const_tree attr1, const_tree attr2) +{ +  if (attr1 == attr2) +    return true; I still think this test should be comparing TREE_VALUEs. Jason Ok, it makes sense

Re: [patch middle-end c c++]: Optimize cost of comp_type_attributes

2011-03-25 Thread Kai Tietz
2011/3/25 Jason Merrill ja...@redhat.com: OK. Jason Committed at revision 171445. Thanks, Kai

Re: [PING^2]: For unreviewed patches

2011-03-25 Thread Kai Tietz
2011/3/25 Jeff Law l...@redhat.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/25/11 02:48, Kai Tietz wrote: Ping for following patches [patch libcpp]: Improve handling of DOS-filenames and -paths http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00742.html [patch gcc c++ c-family

[patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets

2011-03-28 Thread Kai Tietz
Hello, this patch fixes some nits about MSG_WAITALL for mingw(-w64) targets. Additionally it improves multilib configury for windows native targets. ChangeLog gcc/ada 2011-03-28 Kai Tietz * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to prevent warning. * g

Re: [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets

2011-03-28 Thread Kai Tietz
is a completely different patch. Hello Arno, I split patch into two. ada_w_multi.txt contains just the gcc-interface/Makefile.in change and the ada_wt.txt the MSG_WAITALL patch. ChangeLog gcc/ada (ada_wt.txt) 2011-03-28 Kai Tietz * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype

Re: [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets

2011-03-28 Thread Kai Tietz
2011/3/28 Kai Tietz ktiet...@googlemail.com: ChangeLog gcc/ada (ada_wt.txt) 2011-03-28  Kai Tietz        * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to        prevent warning.        * g-socthi-mingw.adb (C_Recvmsg): Handle MSG_WAITALL for        windows native targets

[patch ada]: Prevent warning about PERSONALITY_FUNCTION in raise-gcc.c

2011-03-28 Thread Kai Tietz
Hello, Split submitted patch from thread [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets into separate ones. ChangeLog gcc/ada 2011-03-28 Kai Tietz * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to prevent

[patch ada]: Fix MSG_WAITALL handling for windows native targets

2011-03-28 Thread Kai Tietz
Hello, Split submitted patch from thread [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets into separate ones. ChangeLog gcc/ada (ada_wt.txt) 2011-03-28 Kai Tietz * g-socthi-mingw.adb (C_Recvmsg): Handle MSG_WAITALL

[patch ada]: Fix issues about multilib build of native windows

2011-03-28 Thread Kai Tietz
Hello, Split submitted patch from thread [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets into separate ones. ChangeLog gcc/ada (ada_w_multi.txt) 2011-03-28 Kai Tietz * gcc-interface/Makefile.in (SO_LIB): Handle multilib

Re: [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets

2011-03-28 Thread Kai Tietz
2011/3/28 Arnaud Charlet char...@adacore.com: I split patch into two. ada_w_multi.txt contains just the gcc-interface/Makefile.in change and the ada_wt.txt the MSG_WAITALL patch. Thanks. Actually raise-gcc.c is yet another issue. Could you please resubmit under three different

Re: [patch ada]: Prevent warning about PERSONALITY_FUNCTION in raise-gcc.c

2011-03-28 Thread Kai Tietz
2011/3/28 Arnaud Charlet char...@adacore.com: Split submitted patch from thread [patch ada]: Fix issues about multilib build of native windows and handle MSG_WAITALL for windows native targets into separate ones. ChangeLog gcc/ada 2011-03-28  Kai Tietz       * raise-gcc.c

Re: [patch ada]: Fix MSG_WAITALL handling for windows native targets

2011-03-28 Thread Kai Tietz
(ada_wt.txt) 2011-03-28  Kai Tietz       * g-socthi-mingw.adb (C_Recvmsg): Handle MSG_WAITALL for       windows native targets.       * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows       targets to flag value.        Fill  : constant Boolean := -                (C.unsigned (Flags

Re: [patch mingw]: Enable optional thread-model posix for mingw-targets

2011-04-01 Thread Kai Tietz
2011/3/31 Ralf Wildenhues ralf.wildenh...@gmx.de: * Kai Tietz wrote on Thu, Mar 31, 2011 at 12:19:51PM CEST: --- gcc.orig/gcc/config.gcc   2011-03-23 21:15:32.0 +0100 +++ gcc/gcc/config.gcc        2011-03-31 10:50:05.559129000 +0200 @@ -1420,6 +1420,10 @@ i[34567]86-*-mingw* | x86_64

Re: [patch i386]: Set for method-functions default calling-convention to thiscall for 32-bit msabi

2011-04-01 Thread Kai Tietz
2011/4/1 Nathan Froyd froy...@codesourcery.com: On Fri, Apr 01, 2011 at 07:39:13PM +0200, Kai Tietz wrote: this patch sets for c++ methods, which are not stdarg ones, the default calling-convention to thiscall for ms_abi 32-bit, as vendor specific compiler does. I think it might

Re: [patch i386]: Set for method-functions default calling-convention to thiscall for 32-bit msabi

2011-04-01 Thread Kai Tietz
2011/4/1 Richard Henderson r...@redhat.com: On 04/01/2011 11:10 AM, Kai Tietz wrote:       * i386.c (ix86_is_msabi_thiscall): New helper function.       (ix86_is_type_thiscall): New helper function.       (ix86_comp_type_attributes): Handle thiscall for method-functions       special

Re: [patch i386]: Set for method-functions default calling-convention to thiscall for 32-bit msabi

2011-04-02 Thread Kai Tietz
2011/4/1 Richard Henderson r...@redhat.com: On 04/01/2011 11:36 AM, Kai Tietz wrote: It might be a good thing to extract those call-abi lookups into a specific function, which returns numbers for the selected on. By this we can avoid double lookup of attributes here. But I would like to do

Re: [patch i386]: Set for method-functions default calling-convention to thiscall for 32-bit msabi

2011-04-02 Thread Kai Tietz
2011/4/2 H.J. Lu hjl.to...@gmail.com: On Sat, Apr 2, 2011 at 10:09 AM, Kai Tietz ktiet...@googlemail.com wrote: 2011/4/1 Richard Henderson r...@redhat.com: On 04/01/2011 11:36 AM, Kai Tietz wrote: It might be a good thing to extract those call-abi lookups into a specific function, which

Re: [patch ada]: Fix MSG_WAITALL handling for windows native targets

2011-04-04 Thread Kai Tietz
2011/4/4 Thomas Quinot qui...@adacore.com: * Kai Tietz, 2011-04-04 : So here is the patch without the part in g-socthi-mingw.adb. Thanks, OK for me. -- Thomas Quinot, Ph.D. ** qui...@adacore.com ** Senior Software Engineer               AdaCore -- Paris, France -- New York, USA

[patch ada]: Last fix for PR ada/47163 on windows native hosts

2011-04-04 Thread Kai Tietz
Hello, as described in PR, there is a failure to copy adainclude/adalib libraries in MSYS. This is caused by LN_S set to cp -p for MSYS. This option for cp is not suitable to copy folder to folder in MSYS, and the additional option -r is necessary. ChangeLog 2011-04-04 Kai Tietz PR

Re: [patch ada]: Last fix for PR ada/47163 on windows native hosts

2011-04-05 Thread Kai Tietz
2011/4/5 Arnaud Charlet char...@adacore.com: as described in PR, there is a failure to copy adainclude/adalib libraries in MSYS. The PR does not give any details as to what exact error message you are getting, at which step, and what Makefile rule/line is causing this behavior. I'm

Re: [patch ada]: Last fix for PR ada/47163 on windows native hosts

2011-04-05 Thread Kai Tietz
2011/4/5 Arnaud Charlet char...@adacore.com: I agree, and I read the threads about that there on mingw.org.  I don't see a good chance that it get fixed soon there.  Nevertheless is the msys-environment the only way to do a full bootstrap of native gcc toolchain, so I would simply love to have

Re: [patch libjava]: Do some fixes for windows native targets

2011-04-06 Thread Kai Tietz
2011/4/5 Tom Tromey tro...@redhat.com: Kai == Kai Tietz ktiet...@googlemail.com writes: Kai this patch fixes some issues in libjava for windows targets.  It Kai addresses for now only 32-bit target, but for JNICALL definition I Kai introduced already logic for 64-bit windows target too

Re: [patch libjava]: Do some fixes for windows native targets

2011-04-06 Thread Kai Tietz
2011/4/6 Kai Tietz ktiet...@googlemail.com: 2011/4/5 Tom Tromey tro...@redhat.com: Kai == Kai Tietz ktiet...@googlemail.com writes: Kai this patch fixes some issues in libjava for windows targets.  It Kai addresses for now only 32-bit target, but for JNICALL definition I Kai introduced

[patch i386]: Cleanup calling convention handling in i386.c and fix PR target/9601 and PR target/11772

2011-04-07 Thread Kai Tietz
function calls nowadays the linker is able to do the stdcall fixup successful (avoiding warning via -Wl,--enable-stdcall-fixup). So we emit for this case just the undecorated function's symbol name. ChangeLog 2011-04-07 Kai Tietz PR target/9601 PR target/11772 * config/i386

Re: [patch libjava]: Do some fixes for windows native targets

2011-04-08 Thread Kai Tietz
2011/4/8 Tom Tromey tro...@redhat.com: Kai == Kai Tietz ktiet...@googlemail.com writes: Kai I added to headers.txt the changes and regenerate headers.  Btw it is Kai a bit tricky to enable for libjava the maintainer-mode and then have a Kai successful configure for it ... [...] Kai Sorry

Re: [patch i386]: Cleanup calling convention handling in i386.c and fix PR target/9601 and PR target/11772

2011-04-09 Thread Kai Tietz
supposed to have any other bits set, but we shouldn't have to constantly think about which is which. Not just here in netware.c, where I noticed, but elsewhere as well. Ok, changed comparison by bit-tests. 2011-04-09 Kai Tietz PR target/9601 PR target/11772 * config

Re: [patch i386]: Cleanup calling convention handling in i386.c and fix PR target/9601 and PR target/11772

2011-04-10 Thread Kai Tietz
I had introduced an const issue by recent patch. Attached patch fixes that. Kai Index: gcc/gcc/config/i386/i386-protos.h === --- gcc.orig/gcc/config/i386/i386-protos.h 2011-04-08 16:00:16.264411500 +0200 +++

Re: [patch i386]: Cleanup calling convention handling in i386.c and fix PR target/9601 and PR target/11772

2011-04-11 Thread Kai Tietz
2011/4/11 Richard Henderson r...@redhat.com: On 04/10/2011 12:01 AM, Kai Tietz wrote: I had introduced an const issue by recent patch. Attached patch fixes that. Patch is ok. Applied at revision 172268. Thanks, Kai

Re: [patch i386 mingw g++.dg gcc.dg]: Set -mms-bitfields as default for native windows targets

2011-04-12 Thread Kai Tietz
2011/4/12 Richard Henderson r...@redhat.com: On 04/12/2011 05:47 AM, Kai Tietz wrote: ChangeLog gcc/       * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add       MASK_MS_BITFIELD_LAYOUT bit. ChangeLog gcc/testsuite       * g++.dg/ext/bitfield2.C: Add for i?86/x86_64-*-mingw

Re: [patch i386 mingw g++.dg gcc.dg]: Set -mms-bitfields as default for native windows targets

2011-04-13 Thread Kai Tietz
2011/4/13 Pedro Alves pe...@codesourcery.com: On Tuesday 12 April 2011 19:53:42, Kai Tietz wrote: 2011/4/12 Richard Henderson r...@redhat.com: On 04/12/2011 05:47 AM, Kai Tietz wrote: ChangeLog gcc/       * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add

Re: [patch tree-optimization]: Improve reassociation pass for bitwise-operations

2011-09-21 Thread Kai Tietz
. (execute_reassoc): Add call for repropagate_bitwise function. ChangeLog gcc/testsuite 2011-09-21 Kai Tietz kti...@redhat.com * gcc.dg/tree-ssa/reassoc-26.c: New test. * gcc.dg/tree-ssa/reassoc-27.c: New test. * gcc.dg/tree-ssa/reassoc-28.c: New test. * gcc.dg/tree-ssa/reassoc

Re: [Mingw-users] [patch] --enable-dynamic-string default for mingw-w64

2011-09-25 Thread Kai Tietz
2011/9/25 Paolo Carlini paolo.carl...@oracle.com: On 09/25/2011 05:14 PM, Cesar Strauss wrote: I quote my reasoning: On 09/20/2011 11:56 PM, Cesar Strauss wrote: On the one hand, according to comment 4 of [1], by using --enable-fully-dynamic-string, all other users will miss a very good

Re: [google] Add SECTION_EXCLUDE flag and exclude .gnu.callgraph sections (issue5126041)

2011-09-27 Thread Kai Tietz
2011/9/27 Richard Henderson r...@redhat.com: On 09/23/2011 04:45 PM, Sriraman Tallam wrote: I also want the SECTION_EXCLUDE part alone to be considered for trunk. This is ok for trunk. Kai, is there a similar flag for pe-coff?  I.e. is there something reasonable that we can add to

[patch windows]: Support SECTION_EXCLUDE for pe-coff targets

2011-09-27 Thread Kai Tietz
Hi, this patch enables same feature as in thread [google] Add SECTION_EXCLUDE flag and exclude .gnu.callgraph sections (issue5126041) for pe-coff x86 and x64 targets. ChangeLog 2011-09-27 Kai Tietz kti...@redhat.com * configure.ac: Add test for new section attribute specifier

Re: [patch windows]: Support SECTION_EXCLUDE for pe-coff targets

2011-09-27 Thread Kai Tietz
2011/9/27 Richard Henderson r...@redhat.com: On 09/27/2011 12:58 PM, Kai Tietz wrote: +#ifdef HAVE_GAS_SECTION_EXCLUDE +  if ((flags SECTION_EXCLUDE) != 0) +    *f++ = 'e'; +#endif If 'e' is not supported, I wonder if we should emit 'n'? Otherwise ok. r~ This sounds fair. At least

Re: [patch] --enable-dynamic-string default for mingw-w64 v2

2011-10-01 Thread Kai Tietz
2011/10/1 Pedro Alves pe...@codesourcery.com: On Saturday 01 October 2011 12:15:42, JonY wrote: On 10/1/2011 18:33, Pedro Alves wrote: On Saturday 01 October 2011 07:03:35, JonY wrote: Hi, I followed Paolo's suggestion with the os_defines.h trick. I duplicated os/mingw32/ to

Re: [PATCH] [mingw] fix typo: s/_REENTRANCE/_REENTRANT/

2011-10-03 Thread Kai Tietz
2011/10/3 Ozkan Sezer seze...@gmail.com: PING? On Thu, Sep 22, 2011 at 2:28 PM, Ozkan Sezer seze...@gmail.com wrote: Hi: Unless I'm missing something, the mingw CPP_SPEC changes introduced in r171833 have a typo: -D_REENTRANCE should read -D_REENTRANT . Patchlet below.  Please review, and

[patch tree-optimization]: 1 of 2: Add normalization of bitwise-operations to tree-ssa-reassoc pass

2011-10-04 Thread Kai Tietz
Hello, This patch (one of two) adds to tree-ssa-reassociation code for expansion of packed bitwise-binary operations - like (X | Y) == 0, etc. Also it normalizes bitwise-not operations on bitwise-binary tree chains - like ~(X | Y) - ~X ~Y. ChangeLog 2011-10-04 Kai Tietz kti...@redhat.com

Re: [PATCH] [mingw] fix typo: s/_REENTRANCE/_REENTRANT/

2011-10-04 Thread Kai Tietz
2011/10/3 Ozkan Sezer seze...@gmail.com: On Mon, Oct 3, 2011 at 5:56 PM, Kai Tietz ktiet...@googlemail.com wrote: 2011/10/3 Ozkan Sezer seze...@gmail.com: PING? On Thu, Sep 22, 2011 at 2:28 PM, Ozkan Sezer seze...@gmail.com wrote: Hi: Unless I'm missing something, the mingw CPP_SPEC

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
-effects, and doesn't trap, then try to convert expression to a TRUTH_(AND|OR)_EXPR, if left-hand operand is a simple operand, and has no side-effects. ChangeLog 2011-10-06 Kai Tietz kti...@redhat.com * fold-const.c (fold_truth_andor): Convert TRUTH_(AND|OR)IF_EXPR

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
2011/10/6 Richard Guenther richard.guent...@gmail.com: On Thu, Oct 6, 2011 at 11:28 AM, Kai Tietz kti...@redhat.com wrote: Hello, Sorry attached non-updated change.  Here with proper attached patch. This patch improves in fold_truth_andor the generation of branch-conditions for targets

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
Hi, I modified the patch so, that it always just converts two leafs of a TRUTH(AND|OR)IF chain into a TRUTH_(AND|OR) expression, if branch costs are high and leafs are simple without side-effects. Additionally I added some testcases for it. 2011-10-06 Kai Tietz kti...@redhat.com

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
2011/10/6 Michael Matz m...@suse.de: Hi, On Thu, 6 Oct 2011, Richard Guenther wrote: +       ((TREE_CODE_CLASS (TREE_CODE (arg1)) != tcc_comparison +           TREE_CODE (arg1) != TRUTH_NOT_EXPR) +         || !FLOAT_TYPE_P (TREE_TYPE (TREE_OPERAND (arg1, 0) ?  simple_operand_p

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
2011/10/6 Michael Matz m...@suse.de: Hi, On Thu, 6 Oct 2011, Kai Tietz wrote: That's not the hole story.  The difference between TRUTH_(AND|OR)IF_EXPR and TRUTH_(AND|OR)_EXPR are, that for TRUTH_(AND|OR)IF_EXPR gimplifier creates a COND expression, but for TRUTH_(AND|OR)_EXPR it doesn't

Re: [patch tree-optimization]: Improve handling of conditional-branches on targets with high branch costs

2011-10-06 Thread Kai Tietz
2011/10/6 Michael Matz m...@suse.de: Hi, On Thu, 6 Oct 2011, Kai Tietz wrote: at which point this association doesn't make sense anymore, as Sorry, exactly this doesn't happen, due an ANDIF isn't simple, and therefore it isn't transformed into and AND. Right ...  ((W AND X) AND Y

[patch tree-optimization]: 2 of 6 Improve reassoc for bitwise operations

2011-10-07 Thread Kai Tietz
Hello, This patch adds the repropagation of expanded bitwise-not expressions. ChangeLog 2011-10-07 Kai Tietz kti...@redhat.com * tree-ssa-reassoc.c (walk_bitwise_stmt_elems): Helper to collect different kinds of operands of a bitwise-binary expression chain

[patch tree-optimization]: 1 of 6 Improve reassoc for bitwise operations

2011-10-07 Thread Kai Tietz
Hello, This patch adds to the break-up pass the facility to sink bitwise-not operations into bitwise-binary expressions. Additionally it handles special cases for ~(~X), and ~(X cmp Y). ChangeLog 2011-10-07 Kai Tietz kti...@redhat.com * tree-ssa-reassoc.c (remove_stmt_chain): Helper

[patch tree-optimization]: 3 of 6 Improve reassoc for bitwise operations

2011-10-07 Thread Kai Tietz
Hello, This patch adds to the break-up pass the facility to expand (X | Y) ==/!= 0 expression. This enables in later reassociation pass better results. ChangeLog 2011-10-07 Kai Tietz kti...@redhat.com * tree-ssa-reassoc.c (expand_cmp_ior): Helper for expanding (X | Y

<    1   2   3   4   5   6   7   8   >