This is the mail archive of the gcc@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]

Re: About behavior of -save-temps=obj option on GCC 4.5


Sorry, I miss. follow it:

2010/4/3 Tadashi Koike <tadashiee@gmail.com>:
> Hi Mike,
>
> I'm sorry to spend a week to response your replay, and thank you
> for explanation of -save-temps=obj specifications.
>
>> I tend to agree with Richard, that if there are multiple source inputs, it
>> should be an error to use -save-temps=obj without the -c/-S option.
>
> I reached a true understanding, and this explanation should help
> my project.
>

This quotation is forgotten

>> Though it might be friendlier to allow:
>>
>>        gcc -o dir/exe a.c b.c c.c
>>
>> and put the temp files in:
>>
>>        dir/a.{s,i}
>>        dir/b.{s,i}
>>        dir/c.{s,i}
>>
>> But it would fail for doing:
>>
>>        gcc -o exe dir1/a.c dir2/a.c
>>
>> where the names overlap.  Let me look at it.

> Certainly this case is not god. In this case(= multiple input
> files that have same filename), compiling should became failure
> neither by -save-temps=cwd nor by -save-temps=obj. It is difficult ...
ãã:

Best regards,
Tadashi Koike


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