This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch i386] Fix detection of va_list type for w64.


Hello,

In the function ix86_canonical_va_list_type returns for 'char *' va_list 
one of the two possible values ms_va_list_type_node, or va_list_type_node. 
In the methods ix86_va_start and ix86_gimplify_va_arg was wrongly just 
checked for ms_va_list_type_node. I solved this by introducing a compare 
method is_va_list_pointer_char.

ChangeLog

2008-07-07  Kai Tietz  <kai.tietz@onevision.com>

        * config/i386.c (is_va_list_pointer_char): New.
        (ix86_va_start): Replace compare with ms_va_list_type_node
        by call of is_va_list_pointer_char.
        (ix86_gimplify_va_arg): Likewise.

Bootstraped on x86_64-pc-linux64 and x86_64-pc-mingw32 without 
regressions.
Ok for apply?

Cheers,
Kai



|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.

Attachment: chk32w64.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]