WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 5.x gcc crash if the end of .c file is not newline.  (Read 3108 times)

Offline magicloud

  • Newbie
  • *
  • Posts: 30
5.x gcc crash if the end of .c file is not newline.
« on: December 16, 2013, 09:08:24 PM »
{standard input}: Assembler messages:
{standard input}:3983: Warning: end of file not at end of a line; newline inserted
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #1 on: December 16, 2013, 10:22:05 PM »
Hi magicloud
This does not sound like a bug to me. The compiler identified it did not like that the file did not end with a
newline and terminated compilation.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #2 on: December 16, 2013, 10:38:31 PM »
One could call it a bug in the source ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline magicloud

  • Newbie
  • *
  • Posts: 30
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #3 on: December 18, 2013, 04:17:57 AM »
I think it is an issue of this gcc. The source is linux kernel 3.7.9. And it compiled very well with other version or build of gcc.

Forgot to mention, I am using 32 bit of 5.x.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #4 on: December 18, 2013, 05:02:24 AM »
this version of gcc compiles linux-3.8.13 without similar problems...

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #5 on: December 18, 2013, 10:13:53 AM »
Hi magicloud
On second thought, that was just a warning about a missing  linefeed  which it said it fixed. Maybe you just ran
out of memory.

Offline magicloud

  • Newbie
  • *
  • Posts: 30
Re: 5.x gcc crash if the end of .c file is not newline.
« Reply #6 on: December 18, 2013, 10:09:33 PM »
Hi magicloud
On second thought, that was just a warning about a missing  linefeed  which it said it fixed. Maybe you just ran
out of memory.
Let me check that.