This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Recent change in the way options are given to cpp
Thanks for you reply :)
Neil Booth writes:
> Olivier Hainque wrote:-
>
> > ... the order of %{U*} and %{D*} in the cpp_options specs has changed
> >
> > Was there a strong reason for this ?
>
> I remember something about this 3 or 4 wks ago.
AFAICS, it has been introduced by one of the changes change in gcc.c
between 1.162 and 1.163, 21 days ago :) :
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -c -r1.162 -r1.163
*** gcc.c 2000/09/05 00:34:02 1.162
--- gcc.c 2000/09/07 00:37:09 1.163
***************
*** 567,573 ****
%{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\\ unsigned\\ int}\
%{fshow-column} %{fno-show-column}\
%{fleading-underscore} %{fno-leading-underscore}\
! %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z %i\
%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}";
static const char *cc1_options =
--- 567,573 ----
%{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\\ unsigned\\ int}\
%{fshow-column} %{fno-show-column}\
%{fleading-underscore} %{fno-leading-underscore}\
! %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{U*} %{D*} %{i*} %Z %i\
%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}";
static const char *cc1_options =
> I believe it fixed a message about redefining a macro. It is not the
> correct fix, though -
>
At least, it might generate behaviors very different from the "traditional"
ones on some platforms since the integrated cpp cares about the order.
> gcc needs to be taught how to forward the options in the order they
> appear.
>
> Patches welcome!
>
Well, I may not be the right person for this since my current knowledge
about how specs are handled internally is pretty limited. By the way, if
nobody else volonteers, I could give a try but some initial directions
would then be very welcome :)
Thanks again for your help,
Olivier