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]

Re: [PATCH] pass @-files to collect2 and beyond, take 2


> The gcc/ parts of this look good.  I've CC'd the libiberty
> maintainers; they may not have spotted this patch.

Nope, missed it.

My only comment is that writeargv() should be passed a FILE*, not a
file name, so that the application can do better error handling if the
file cannot be opened.  The proposed implementation has no way to tell
what caused the call to fail, just that it failed.  Also, the fclose()
isn't checked for errors.

Alternately, pass a name *and* a FILE*, requiring one to be NULL, and
have writeargv() do the right thing.


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