Option on gcc.c, Comment Correction and License addition.

2014-02-22 Thread Alangi Derick

Index: gcc/gcc.c
===
--- gcc/gcc.c	(revision 208009)
+++ gcc/gcc.c	(working copy)
@@ -3108,8 +3108,21 @@
   fputs (_("  -specs=Override built-in specs with the contents of \n"), stdout);
   fputs (_("  -std=  Assume that the input sources are for \n"), stdout);
   fputs (_("\
+  -combineCompiling multiple source files telling the driver to pass\n\
+     all the source files to the compiler at once (allowing IMA).\n\
+     Currently, the only language supported is C.\n"), stdout);
+  fputs (_("  -ansi   In C mode, support all ISO C90 programs. In C++ mode, \n\
+  			  remove GNU extensions that conflict with ISO C++. Turns \n\
+  			  off certain features of GCC that are incompatible with ISO C90 \n\
+  			  of standard C++ such as 'asm' and 'typeof' keyword and predefined\n\
+  			   macros such as 'unix' and 'var' that identify the type of system you are using.\n"), stdout);
+  fputs (_("\
   --sysroot=Use  as the root directory for headers\n\
and libraries\n"), stdout);
+  fputs (_("  -w Inhibit all warning messages.\n"), stdout);
+  fputs (_("\
+  -Q   Makes the compiler print out each function name as it is compiled,\n\
+  			 and print some statistics about each pass when it finishes.\n"), stdout);
   fputs (_("  -BAdd  to the compiler's search paths\n"), stdout);
   fputs (_("  -v   Display the programs invoked by the compiler\n"), stdout);
   fputs (_("  -### Like -v but options quoted and commands not executed\n"), stdout);
   

Index: gcc/version.h
===
--- gcc/version.h	(revision 208009)
+++ gcc/version.h	(working copy)
@@ -1,3 +1,24 @@
+/* Version of GCC compiler.
+	Copyright (C) 2004-2014 Free Software Foundation, Inc.
+   Contributed by Nathan Sidwell 
+   Re-implemented in C++ by Diego Novillo 
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 3, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3.  If not see
+.  */
+
 #ifndef GCC_VERSION_H
 #define GCC_VERSION_H
 extern const char version_string[];
 

Index: gcc/calls.h
===
--- gcc/calls.h	(revision 208009)
+++ gcc/calls.h	(working copy)
@@ -1,4 +1,4 @@
-/* Declarations anda data types for RTL call insn generation.
+/* Declarations and data types for RTL call insn generation.
Copyright (C) 2013-2014 Free Software Foundation, Inc.
 
 This file is part of GCC.


Addition of options in GCC

2014-02-24 Thread Alangi Derick
Hi
When looking at the gcc/gcc.c file, i noticed that some basic
options were not added to notify the user of gcc to be able to use it
and its essence. So due to this, i added some of the options like the
-ansi option. This file contains some other options like the -w and -Q
options.
  Thanks.
Index: gcc/gcc.c
===
--- gcc/gcc.c	(revision 208009)
+++ gcc/gcc.c	(working copy)
@@ -3108,8 +3108,21 @@
   fputs (_("  -specs=Override built-in specs with the contents of \n"), stdout);
   fputs (_("  -std=  Assume that the input sources are for \n"), stdout);
   fputs (_("\
+  -combineCompiling multiple source files telling the driver to pass\n\
+     all the source files to the compiler at once (allowing IMA).\n\
+     Currently, the only language supported is C.\n"), stdout);
+  fputs (_("  -ansi   In C mode, support all ISO C90 programs. In C++ mode, \n\
+  			  remove GNU extensions that conflict with ISO C++. Turns \n\
+  			  off certain features of GCC that are incompatible with ISO C90 \n\
+  			  of standard C++ such as 'asm' and 'typeof' keyword and predefined\n\
+  			   macros such as 'unix' and 'var' that identify the type of system you are using.\n"), stdout);
+  fputs (_("\
   --sysroot=Use  as the root directory for headers\n\
and libraries\n"), stdout);
+  fputs (_("  -w Inhibit all warning messages.\n"), stdout);
+  fputs (_("\
+  -Q   Makes the compiler print out each function name as it is compiled,\n\
+  			 and print some statistics about each pass when it finishes.\n"), stdout);
   fputs (_("  -BAdd  to the compiler's search paths\n"), stdout);
   fputs (_("  -v   Display the programs invoked by the compiler\n"), stdout);
   fputs (_("  -### Like -v but options quoted and commands not executed\n"), stdout);


Licensed and Unlicensed file

2014-02-24 Thread Alangi Derick
Hello
  I found out that the gcc/version.h the license comment on the
file was missing so i had to add it for the uniformity of the files
and understanding of the coding conventions.
   Thanks
Index: gcc/version.h
===
--- gcc/version.h	(revision 208009)
+++ gcc/version.h	(working copy)
@@ -1,3 +1,24 @@
+/* Version of GCC compiler.
+	Copyright (C) 2004-2014 Free Software Foundation, Inc.
+   Contributed by Nathan Sidwell 
+   Re-implemented in C++ by Diego Novillo 
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 3, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3.  If not see
+.  */
+
 #ifndef GCC_VERSION_H
 #define GCC_VERSION_H
 extern const char version_string[];


Re [Patch]: Fixed Typo

2014-02-24 Thread Alangi Derick
Hi
Fixed a typo in the call.h header file in gcc
  Thanks
Index: gcc/calls.h
===
--- gcc/calls.h	(revision 208009)
+++ gcc/calls.h	(working copy)
@@ -1,4 +1,4 @@
-/* Declarations anda data types for RTL call insn generation.
+/* Declarations and data types for RTL call insn generation.
Copyright (C) 2013-2014 Free Software Foundation, Inc.
 
 This file is part of GCC.


[Patch] Added Comment

2014-02-25 Thread Alangi Derick
Hi
 I added a comment to cpplib.h file for understanding.
   Thanks.


[Patch] Added Comment

2014-02-25 Thread Alangi Derick
Added a comment to cpplib.h file.
Index: cpplib.h
===
--- cpplib.h	(revision 208118)
+++ cpplib.h	(working copy)
@@ -103,7 +103,7 @@
   OP(SEMICOLON,		";")	/* structure */\
   OP(ELLIPSIS,		"...")		\
   OP(PLUS_PLUS,		"++")	/* increment */\
-  OP(MINUS_MINUS,	"--")		\
+  OP(MINUS_MINUS,	"--")	/* decrement */	\
   OP(DEREF,		"->")	/* accessors */\
   OP(DOT,		".")		\
   OP(SCOPE,		"::")		\