On Sep 13, 2011, at 3:43 AM, Joerg Sonnenberger wrote: > On Mon, Sep 12, 2011 at 10:43:01PM -0000, Chad Rosier wrote: >> Author: mcrosier >> Date: Mon Sep 12 17:43:01 2011 >> New Revision: 139551 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=139551&view=rev >> Log: >> [driver] Ignore the '--' option, rather then fail. Do so to match gcc's >> behavior. >> rdar://10110352 and PR10908 > > I don't think this is a good idea. It violates POLA. Proper behavior > would at the very least ignore it silently. I'd suggest to start by > reverting this and committing some like the attached patch. It still > doesn't handle input file names starting with - (e.g. -c.c) correctly, > but that's a question of passing down the input correctly to internal > tools.
gcc emitting a warning as well. rosier:llvm-clean mcrosier$ gcc -- test.c llvm-gcc-4.2: ambiguous abbreviation -- Thus, I didn't silence the warning for compatibility reasons. Chad > Joerg > <handling-dashdash.diff>_______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
