This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make mixed C/C++ LTO testcases possible
- From: Diego Novillo <dnovillo at google dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 3 Jun 2010 11:23:44 -0400
- Subject: Re: [PATCH] Make mixed C/C++ LTO testcases possible
- References: <alpine.LNX.2.00.1006031717010.1429@zhemvz.fhfr.qr>
On Thu, Jun 3, 2010 at 11:19, Richard Guenther <rguenther@suse.de> wrote:
> Â Â Âset compiler_conditional_xfail_data $xfaildata
> !
> ! Â Â # Allow C source files to mix freely with other languages
> ! Â Â if [ string match "*.c" $source ] then {
> ! Â Â Â set comp_output [gcc_target_compile "$source" "$dest" object $options]
> ! Â Â } else {
> ! Â Â Â set comp_output [${tool}_target_compile "$source" "$dest" object $options]
> ! Â Â }
This would not allow mixing fortran and c++, but we can always add
more as needed.
Patch is OK.
Diego.