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] | |
Hi,
The problem here is that we call make_tree with a pointer type (which I
am still deciding is ok to do or not) in std_expand_builtin_va_start. This
patch changes it to be sizetype instead and then do a conversion to the
pointer type. Since we are expanding right away, not much is needed to be
done for std_expand_builtin_va_start anyways.
This fixes some (if not all) of the testcases for sparc-elf, I cannot
fully test the sparc-elf, I can only test the compile tests.
Committed to the branch after a build for sparc-elf. I did not fully test
the patch but it is obviously correct and did test it for
powerpc64-linux-gnu to make sure I did not introduce any warnings.
Thanks,
Andrew Pinski
ChangeLog:
* builtins.c (std_expand_builtin_va_start): Use
sizetype for the call to make_tree and then convert
to the pointer type.
Attachment:
fixsparcelf.diff.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |