PATCH to use cpplib's source_location for location_t
Aaron W. LaFramboise
aaronavay62@aaronwl.com
Thu Jul 1 03:44:00 GMT 2004
Per Bothner wrote:
> Index: final.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/final.c,v
> retrieving revision 1.315
> diff -u -p -r1.315 final.c
> --- final.c 15 Jun 2004 18:02:19 -0000 1.315
> +++ final.c 30 Jun 2004 16:25:50 -0000
> @@ -1520,8 +1520,13 @@ final (rtx first, FILE *file, int optimi
> if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0)
> {
> if (last != 0
> +#ifdef USE_MAPPED_LOCATION
> + && NOTE_SOURCE_LOCATION (insn) == NOTE_SOURCE_LOCATION (last)
> +#else
> && NOTE_LINE_NUMBER (insn) == NOTE_LINE_NUMBER (last)
> - && NOTE_SOURCE_FILE (insn) == NOTE_SOURCE_FILE (last))
> + && NOTE_SOURCE_FILE (insn) == NOTE_SOURCE_FILE (last)
> +#endif)
> + )
> {
> delete_insn (insn); /* Use delete_note. */
> continue;
I don't think the ) is supposed to be after #endif. HEAD compiles fine
after I remove it.
Aaron W. LaFramboise
More information about the Gcc-patches
mailing list