This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcc-in-cxx] Merged trunk to gcc-in-cxx branch


On Sun, 27 Jul 2008, Ian Lance Taylor wrote:

> > Besides the remaining C++ keywords used in the sources, would you please
> > comment on what's left before one could bootstrap using a C++ compiler?
>
> The biggest issue other than reserved works (and note that by that I
> include the C++ operators like "and" and "or", which are not actually
> treated as keywords) is certainly enum usage.  E.g., g++ won't compile
> lines like
>
> bt-load.c:1461:  enum reg_class klass = targetm.branch_target_register_class ();
> (invalid conversion from âintâ to âreg_classâ)
>
> df-scan.c:2107:	      df_uses_record (&collection_rec,
>                			      &XEXP (note, 0), DF_REF_REG_USE,
>                			      bb, insn_info, DF_REF_IN_NOTE, -1, -1, 0);
> (invalid conversion from âintâ to âmachine_modeâ (in the last argument))
> Ian

If you put a warning for this in -Wc++-compat, I'd help fix them. :-)

		--Kaveh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]