Debian Automated Code Analysis

checkbashisms analysis of gcc-4.3-source_4.3.5-4_all.deb

possible bashism in ./usr/src/gcc-4.3/patches/ada-symbolic-tracebacks.dpatch line 111 ('((' should be '$(('):
-#if defined (CROSS_DIRECTORY_STRUCTURE)  \
-  || (! ((defined (sparc) || defined (i386)) && defined (sun) \
-      && defined (__SVR4)) \
-      && ! (defined (linux) && (defined (i386) || defined (__x86_64__))) \
-      && ! (defined (linux) && defined (__ia64__)) \
-      && ! defined (__FreeBSD__) \
-      && ! defined (__hpux__) \
-      && ! defined (__APPLE__) \
-      && ! defined (_AIX) \
-      && ! (defined (__alpha__)  && defined (__osf__)) \
-      && ! defined (VMS) \
-      && ! defined (__MINGW32__) \
-      && ! (defined (__mips) && defined (__sgi)))
possible bashism in ./usr/src/gcc-4.3/patches/ada-symbolic-tracebacks.dpatch line 113 ('function' is useless):
-/* Dummy function to satisfy g-trasym.o. See the preprocessor conditional
possible bashism in ./usr/src/gcc-4.3/patches/ada-symbolic-tracebacks.dpatch line 207 ('((' should be '$(('):
+      if ((child = fork()) < 0) {
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 34 ('((' should be '$(('):
@@ -16,6 +16,7 @@ float f1 __attribute__ ((aligned));
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 99 ('((' should be '$(('):
   } __attribute__ ((__packed__)) foo;
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 114 (function names should only contain [a-z0-9_]):
 _Deque_base::~_Deque_base() {
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 120 (function names should only contain [a-z0-9_]):
 _Deque_base::_M_initialize_map()
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 337 (function names should only contain [a-z0-9_]):
@@ -54,14 +54,14 @@ Sim_Event_Manager::Sim_Event_Manager ()
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 338 (function names should only contain [a-z0-9_]):
 void Sim_Event_Manager::post_event () {
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 364 (function names should only contain [a-z0-9_]):
-  ~Y () { printf("~Y()           this: %x\n", this); }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 366 (function names should only contain [a-z0-9_]):
+  ~Y () { printf("~Y()           this: %p\n", (void*)this); }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 387 (function names should only contain [a-z0-9_]):
-  ~X () { printf("~X()           this: %x\n", this); --num_x; }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 388 (function names should only contain [a-z0-9_]):
+  ~X () { printf("~X()           this: %p\n", (void*)this); --num_x; }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 432 (function names should only contain [a-z0-9_]):
 foo::foo ()
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 447 (function names should only contain [a-z0-9_]):
 foo::~foo ()
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 459 (function names should only contain [a-z0-9_]):
    virtual ~B() {}
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 477 (function names should only contain [a-z0-9_]):
   virtual ~foo () {
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 525 (function names should only contain [a-z0-9_]):
-  ~T() { printf("~T() at %x\n", this); }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 526 (function names should only contain [a-z0-9_]):
+  ~T() { printf("~T() at %p\n", (void*)this); }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 539 (function names should only contain [a-z0-9_]):
-   ~Foo() { printf("~Foo() 0x%08lx\n", (__SIZE_TYPE__)this); ++d; }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 542 (function names should only contain [a-z0-9_]):
+   ~Foo() { printf("~Foo() %p\n", (void*)this); ++d; }
possible bashism in ./usr/src/gcc-4.3/patches/testsuite-hardening-printf-types.dpatch line 620 (function names should only contain [a-z0-9_]):
 void frob<T>::print () {
possible bashism in ./usr/src/gcc-4.3/patches/svn-updates.dpatch line 702 ('((' should be '$(('):
 typedef struct machine_function GTY(())
possible bashism in ./usr/src/gcc-4.3/patches/pr35965.dpatch line 42 ('function' is useless):
 	  /* Play games to avoid marking the function as needing pic
possible bashism in ./usr/src/gcc-4.3/patches/pr35965.dpatch line 52 ('function' is useless):
 	  /* Play games to avoid marking the function as needing pic
possible bashism in ./usr/src/gcc-4.3/patches/hppa-atomic-builtins.dpatch line 104 ('function' is useless):
+/* Determine kernel LWS function call (0=32-bit, 1=64-bit userspace).  */
possible bashism in ./usr/src/gcc-4.3/patches/hppa-atomic-builtins.dpatch line 135 ('((' should be '$(('):
+#define HIDDEN __attribute__ ((visibility ("hidden")))
possible bashism in ./usr/src/gcc-4.3/patches/pr30740.dpatch line 51 ('((' should be '$(('):
                    ((Is_Integer_Type (Etype (L)) and then R = N)
possible bashism in ./usr/src/gcc-4.3/patches/pr35020.dpatch line 57 ('((' should be '$(('):
+      System.out.println((new int[7]).getClass().getSimpleName());
possible bashism in ./usr/src/gcc-4.3/patches/pr35020.dpatch line 58 ('((' should be '$(('):
+      System.out.println((new Object[1][1][1][1][1][1][1][1]).getClass().getSimpleName());
possible bashism in ./usr/src/gcc-4.3/patches/pr35020.dpatch line 59 (function names should only contain [a-z0-9_]):
+      System.out.println((new java.security.PrivilegedAction() 
possible bashism in ./usr/src/gcc-4.3/patches/gdc-4.3.dpatch line 508 ('function' is useless):
+ /* Operand 0 is the FUNC_DECL of the outer function for
possible bashism in ./usr/src/gcc-4.3/patches/pr37447-revert.dpatch line 46 ('function' is useless):
-/* The function returns nonzero if X is an address containg VALUE.  */
possible bashism in ./usr/src/gcc-4.3/patches/pr37447-revert.dpatch line 57 ('function' is useless):
-/* The function returns nonzero if X is a stack address.  */
possible bashism in ./usr/src/gcc-4.3/patches/pr30827.dpatch line 67 ('function' is useless):
    function Version return String is
possible bashism in ./usr/src/gcc-4.3/patches/ada-gnatvsn.dpatch line 31 ('function' is useless):
    function Gnat_Version_String return String is
possible bashism in ./usr/src/gcc-4.3/patches/pr39431.dpatch line 27 (brace expansion):
sync_double_compare_and_swap{,_cc}di_pic insn patterns need %eax, %edx, %ecx
possible bashism in ./usr/src/gcc-4.3/patches/pr39431.dpatch line 32 (brace expansion):
but if it is a base + index{,*scale}, there aren't enough registers to
possible bashism in ./usr/src/gcc-4.3/patches/gcc-pascal-lang.dpatch line 171 ('function' is useless):
+Warn when when assigning objects or declaring them as value parameters or function results (default)
possible bashism in ./usr/src/gcc-4.3/patches/gcc-pascal-lang.dpatch line 379 ('function' is useless):
+Do not complain when a function is called like a procedure
possible bashism in ./usr/src/gcc-4.3/patches/pr17985.dpatch line 77 ('function' is useless):
+      function make return T is
possible bashism in ./usr/src/gcc-4.3/patches/pr17985.dpatch line 96 ('function' is useless):
+      function make return T;
possible bashism in ./usr/src/gcc-4.3/patches/armel-atomic-builtins.dpatch line 101 ('((' should be '$(('):
+#define HIDDEN __attribute__ ((visibility ("hidden")))
possible bashism in ./usr/src/gcc-4.3/patches/libobjc-armel.dpatch line 227 ('function' is useless):
+     function and LSDA pointers.  The ARM implementation caches these in
possible bashism in ./usr/src/gcc-4.3/patches/rename-info-files.dpatch line 249 (brace expansion):
-constructors will be called; @pxref{Collect2,,@code{collect2}, gccint,
possible bashism in ./usr/src/gcc-4.3/patches/rename-info-files.dpatch line 250 (brace expansion):
+constructors will be called; @pxref{Collect2,,@code{collect2}, @value{fngccint},
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 71 ('((' should be '$(('):
   __attribute__((__malloc__));
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 78 ('((' should be '$(('):
   ::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::lang::Object)))) loadedClasses;
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 304 (;;& and ;& special case operators):
MP,AXAHV[384=&=*:I_H[F;&$@=O37@`S\@]IP%T.,X'0,ER*QC?1QSRUW6N"
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 328 (should be >word 2>&1):
M<3"GD,TT;E*@;/BU"7<&PB<H(%M'@EMU`9U0"#,$?)/(&X4^G4XJA#FUBUHU
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 334 (should be >word 2>&1):
M;XKW@2D6QLG#4MJX-TGPEENNNFN2Z:E*I0*&>SH,:=!$0,`E+UVIY/I['V)F
possible bashism in ./usr/src/gcc-4.3/patches/libjava-loading-constraints.dpatch line 385 (alternative test command ([[ foo ]] should be [ foo ])):
M+;X`!(-#C<P5L,$!.T!*V-:K9J9`Q-/(YIG7X5:6&,I*B+EP4;[[KS2E<4;R
possible bashism in ./usr/src/gcc-4.3/patches/cell-branch-doc.dpatch line 130 ('function' is useless):
+Define this to return a pointer to a function that generates the RTL for
possible bashism in ./usr/src/gcc-4.3/patches/gcc-default-relro.dpatch line 46 (brace expansion):
+@option{-Wl,-z,relro} is used.  To disable, use @option{-Wl,-z,norelro}.
possible bashism in ./usr/src/gcc-4.3/patches/kbsd-gnu-ada.dpatch line 44 ('function' is useless):
    function sysconf (name : int) return long;
possible bashism in ./usr/src/gcc-4.3/patches/kbsd-gnu-ada.dpatch line 55 ('function' is useless):
    function To_Target_Priority
possible bashism in ./usr/src/gcc-4.3/patches/kbsd-gnu-ada.dpatch line 68 ('function' is useless):
    function Thread_Body_Access is new
possible bashism in ./usr/src/gcc-4.3/patches/kbsd-gnu-ada.dpatch line 76 ('function' is useless):
    function pthread_key_create
possible bashism in ./usr/src/gcc-4.3/patches/pr16086.dpatch line 129 ('function' is useless):
+      function Get return Integer;
possible bashism in ./usr/src/gcc-4.3/patches/pr16086.dpatch line 139 ('function' is useless):
+      function Get return Integer is
possible bashism in ./usr/src/gcc-4.3/patches/pr16086.dpatch line 147 ('function' is useless):
+      with function Get return Integer is Prot.Get;
possible bashism in ./usr/src/gcc-4.3/patches/pr16086.dpatch line 149 ('function' is useless):
+      function Add2_Get return Integer;
possible bashism in ./usr/src/gcc-4.3/patches/pr16086.dpatch line 153 ('function' is useless):
+      function Add2_Get return Integer is
possible bashism in ./usr/src/gcc-4.3/patches/gcc-unwind-debug-hook.dpatch line 39 ('((' should be '$(('):
+static void _Unwind_DebugHook (void *, void *) __attribute__ ((__noinline__));
possible bashism in ./usr/src/gcc-4.3/patches/gcc-unwind-debug-hook.dpatch line 41 ('function' is useless):
+/* This function is called during unwinding.  It is intended as a hook
possible bashism in ./usr/src/gcc-4.3/patches/gcc-unwind-debug-hook.dpatch line 46 ('((' should be '$(('):
+_Unwind_DebugHook (void *cfa __attribute__ ((__unused__)),
possible bashism in ./usr/src/gcc-4.3/patches/gcc-unwind-debug-hook.dpatch line 47 ('((' should be '$(('):
+		   void *handler __attribute__ ((__unused__)))
possible bashism in ./usr/src/gcc-4.3/patches/gcc-unwind-debug-hook.dpatch line 71 ('((' should be '$(('):
-#define uw_install_context(CURRENT, TARGET)				 \
-  do									 \
-    {									 \
-      long offset = uw_install_context_1 ((CURRENT), (TARGET));		 \
-      void *handler = __builtin_frob_return_addr ((TARGET)->ra);	 \
-      __builtin_eh_return (offset, handler);				 \
-    }									 \
+#define uw_install_context(CURRENT, TARGET)				\
+  do									\
+    {									\
+      long offset = uw_install_context_1 ((CURRENT), (TARGET));		\
+      void *handler = __builtin_frob_return_addr ((TARGET)->ra);	\
+      _Unwind_DebugHook ((TARGET)->cfa, handler);			\
+      __builtin_eh_return (offset, handler);				\
+    }									\
   while (0)
possible bashism in ./usr/src/gcc-4.3/patches/pr15915.dpatch line 96 ('function' is useless):
+   function Denotes_Variable (N : Node_Id) return Boolean is
possible bashism in ./usr/src/gcc-4.3/patches/pr15915.dpatch line 112 ('function' is useless):
+   function Denotes_Variable (N : Node_Id) return Boolean;
possible bashism in ./usr/src/gcc-4.3/patches/pr15915.dpatch line 115 ('function' is useless):
    function Depends_On_Discriminant (N : Node_Id) return Boolean;
possible bashism in ./usr/src/gcc-4.3/patches/pr24170.dpatch line 84 ('((' should be '$(('):
   while ((d = readdir (dir)) != NULL)
possible bashism in ./usr/src/gcc-4.3/patches/pr16098.dpatch line 65 ('function' is useless):
       function Find_Lib_Unit_Name return Entity_Id;
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 130 ('function' is useless):
+   * Simple function that takes the given {@link Reader}, treats it like
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 146 ('((' should be '$(('):
+        while ((line = breader.readLine()) != null)
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 356 ($"foo" should be eval_gettext "foo"):
M$@$"NW60$IA94"H"<%TWJA=GVSR5LR2/`8.?GW(T6JC1^AY$=[D*L#`4:`*!
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 388 (should be >word 2>&1):
MV@W.<:`N[WX>&TGY?;R:A,9!=6SLD.!RP3^A#TYL@(AF&UVK8"I\4++@P`Y:
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 398 (should be >word 2>&1):
MP%$>A;>RN\H%O$_?@Q#XE_V>9PWX`U!]1F=RA\UP2T2V2LH%#S'D>'.>&[A$
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 441 (alternative test command ([[ foo ]] should be [ foo ])):
M`%;$Q&LCF)#>N,E'QY`+7]TD\$:3_L?1//'A3@&Y]P-VJ_ENQ3;;\JU?%5H\
M9N0$OC<A$N!Y``J[1`+(0W.3:Y_B-F%IFD,5^,VI[[AZ@"PG9-C$QDTN`N0(
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 453 (alternative test command ([[ foo ]] should be [ foo ])):
MO/]./Q!DORD=?O/L_!U[[B-NU>7WE5/>IIUK40D[*CM?E/LMV\PA:=3IY>@7
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 454 (;;& and ;& special case operators):
MXJN381<JM;*?;7BER[/OY:K33)0N9C?(FI&FHX;&TN/JK97.ZIO^;37S-*J*
possible bashism in ./usr/src/gcc-4.3/patches/libjava-file-support.dpatch line 466 (should be >word 2>&1):
M&'%KWJQ3P/D>)+=*K-NE7,..->/-_?Z69![Y;>&%7WK.LS%X*(OIBK,59KF"
possible bashism in ./usr/src/gcc-4.3/patches/libjava-javah-bridge-tgts.dpatch line 107 (should be >word 2>&1):
M[V@.*+3_-(^G-_.>24?VI:4W$``.GP=\9P54WJ<9;)5WEK/?$B92>&S,QL.&
possible bashism in ./usr/src/gcc-4.3/patches/gcc-default-ssp.dpatch line 205 ('function' is useless):
 when a function is entered and then checked when the function exits.

This report was generated on Sat, 18 Dec 2010 00:52:54 +0000, based on results by checkbashisms 2.10.65git5