Community
Participate
Working Groups
I'm investigating using the eclipse jdt compiler as the .java front end for gcc -- i.e., replacing the java-parsing parts of gcj. One issue that come up while looking into this is the formatting of the batch compiler's error messages. gcc requires messages to follow the GNU coding standards: http://www.gnu.org/prep/standards/html_node/Errors.html#Errors (Note that gcj extends this to show the actual source line as well, similar to how eclipse's batch compiler does.) I've written a patch to add this output style. It is enabled by passing the '-Xemacs' flag to the batch compiler. Without this flag, output remains as it is today. I'll attach the patch shortly.
Created attachment 33911 [details] patch to add -Xemacs flag
Oops... I just realized that I forgot to remove the .settings change I made for bug #125953 -- it is still in the patch. Sorry about that.
Fixed and released in HEAD. Tom, I made minor changes to facilitate the addition of other kind of logging. I replaced the existing boolean with a tagBits field and constants. Let me know if the released version works as expected. From my testing I would say yes.
Your contribution has been included under the EPL term. Let me know if this is fine.
The EPL is fine. Thanks for checking this in! I tried it out here and it works great.
I'm reopening this because the output is not quite right. I ran it again today and noticed this, sorry for not noticing earlier. I get this output: t.java:4: warning: The local variable y is never read (at line 4) int y; ^ But I think the text "(at line 4)" is redundant. I haven't looked at patching this yet.
I'll fix it.
Fixed and released in HEAD.
Fixed.
Looks great, thanks!
Verified for 3.2 M5 using build I20060215-0010