|
From: Philipp K. K. <pk...@sp...> - 2025-12-16 11:40:33
|
Am 09.12.25 um 16:27 schrieb Joel Holdsworth via sdcc-devel: >>> >>> 1. Problems with "#define B" in ucsim. >> >> I had run into this when cross-compiling myself, buthadn't tracked it >> down yet. I wonder if it would be sufficient to change the order of >> #include, so standard headers (and thus GCC includes) come before the >> #define B instead of changing B everywhere. I guess ultimately Daniel >> will have to make this decision (and maybe we'll want to complain to >> GCC, too). > > I think it would be a problem no matter which order the #includes occur. > So long as "B" is #define'd somewhere, then "B" cannot be used anywhere > without being replaced. > The B is used as parameter name in the GCC header. So if the #define B happens after the #include that brings that header in, there will be no problem. Anyway, Daniel has dealt with it on the uCsim side, an I'll file a GCC bug report later today. Philipp |