Also preprocess when user explicitly askes for it through -c.i
This commit is contained in:
parent
64ce6b0ef4
commit
1af5c80b1b
2 changed files with 18 additions and 8 deletions
|
@ -314,8 +314,8 @@ other arguments as far as possible.
|
||||||
.IP \-g
|
.IP \-g
|
||||||
Instruct the front-end and back-end to produce symbolic debugger information
|
Instruct the front-end and back-end to produce symbolic debugger information
|
||||||
for \fIgrind\fP(1). This is currently supported by the following front-ends:
|
for \fIgrind\fP(1). This is currently supported by the following front-ends:
|
||||||
ANSI-C, Pascal, Modula-2, and the following back-ends: Motorola M68020,
|
C, ANSI-C, Pascal, Modula-2, and the following back-ends: Motorola M68020,
|
||||||
Sparc, Vax.
|
Sparc, Vax, Intel 80386.
|
||||||
.PP
|
.PP
|
||||||
All arguments without a suffix or with an unrecognized suffix
|
All arguments without a suffix or with an unrecognized suffix
|
||||||
are passed to the loaders, as for flags.
|
are passed to the loaders, as for flags.
|
||||||
|
|
|
@ -325,21 +325,31 @@ int startrf(first) trf *first ; {
|
||||||
|
|
||||||
phase=first ;
|
phase=first ;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
int do_preprocess = 0;
|
||||||
|
int only_prep = 0;
|
||||||
|
|
||||||
switch ( phase->t_prep ) {
|
switch ( phase->t_prep ) {
|
||||||
/* BEWARE, sign extension */
|
/* BEWARE, sign extension */
|
||||||
|
case NO : break ;
|
||||||
default : if ( !mayprep() ) break ;
|
default : if ( !mayprep() ) break ;
|
||||||
case YES: if ( !transform(cpp_trafo) ) {
|
case YES: do_preprocess = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ( cpp_trafo && stopsuffix &&
|
||||||
|
strcmp(cpp_trafo->t_out,stopsuffix)==0 ) {
|
||||||
|
/* user explicitly asked for preprocessing */
|
||||||
|
do_preprocess = 1;
|
||||||
|
only_prep = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (do_preprocess && !transform(cpp_trafo) ) {
|
||||||
n_error++ ;
|
n_error++ ;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
vprint("Pre-processor failed\n") ;
|
vprint("Pre-processor failed\n") ;
|
||||||
#endif
|
#endif
|
||||||
return 0 ;
|
return 0 ;
|
||||||
}
|
|
||||||
case NO :
|
|
||||||
break ;
|
|
||||||
}
|
}
|
||||||
if ( cpp_trafo && stopsuffix &&
|
if ( only_prep ) {
|
||||||
strcmp(cpp_trafo->t_out,stopsuffix)==0 ) {
|
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
if ( !transform(phase) ) {
|
if ( !transform(phase) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue