[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4429: gcc argument validation could be better



Bruce Perens writes:
> Package: gcc
> Version: 2.7.2.1-1
> 
> > echo > foo.c
> > gcc -Aa foo.c
> *Initialization*:1: missing token-sequence in `#assert'
> 
> I guess this is worth forwarding to the upstream maintainer.
> 
> GCC could validate the format of the -A flag better. The message
> currently generated by a badly-formatted argument is less than
> informative.

Well, it's kind of hard to validate the free-form argument to the -A
flag, since any error will look the same as any other, obscure, syntax
error.  I'll pass you suggestion along anyway, though.

David
-- 
David Engel                        Optical Data Systems, Inc.
david@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081



Reply to: