View | Details | Raw Unified | Return to bug 174568
Collapse All | Expand All

(-)devel/gdb/files/fbsd-threads.c (-1 / +1 lines)
Lines 1-4 Link Here
1
/* $FreeBSD: ports/devel/gdb/files/fbsd-threads.c,v 1.8 2012/11/17 05:55:44 svnexp Exp $ */
1
/* $FreeBSD$ */
2
/* FreeBSD libthread_db assisted debugging support.
2
/* FreeBSD libthread_db assisted debugging support.
3
   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
3
   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
4
4
(-)devel/gdb/files/patch-bfd-coffcode.h (+11 lines)
Line 0 Link Here
1
--- bfd/coffcode.h.orig	2012-12-18 14:22:56.000000000 +0100
2
+++ bfd/coffcode.h	2012-12-18 14:23:11.000000000 +0100
3
@@ -3442,7 +3442,7 @@
4
 	 incremented in coff_set_section_contents.  This is right for
5
 	 SVR3.2.  */
6
       if (strcmp (current->name, _LIB) == 0)
7
-	bfd_set_section_vma (abfd, current, 0);
8
+	(void)bfd_set_section_vma (abfd, current, 0);
9
 #endif
10
 
11
 #ifdef ALIGN_SECTIONS_IN_FILE
(-)devel/gdb/files/patch-bfd-configure (-17 lines)
Lines 1-17 Link Here
1
--- bfd/configure.orig	2011-03-28 13:18:25.000000000 +0200
2
+++ bfd/configure	2012-01-12 16:58:05.000000000 +0100
3
@@ -12177,7 +12177,13 @@
4
 
5
 # Enable -Werror by default when using gcc
6
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7
-    ERROR_ON_WARNING=yes
8
+    if test "${CC}" = clang ; then
9
+	echo "clang compiler - disabling -Werror"
10
+	ERROR_ON_WARNING=no
11
+    else
12
+	echo "gcc compiler - enabling -Werror"
13
+	ERROR_ON_WARNING=yes
14
+    fi
15
 fi
16
 
17
 NO_WERROR=
(-)devel/gdb/files/patch-bfd-opncls.c (+11 lines)
Line 0 Link Here
1
--- bfd/opncls.c.orig	2012-12-18 14:18:47.000000000 +0100
2
+++ bfd/opncls.c	2012-12-18 14:19:18.000000000 +0100
3
@@ -254,7 +254,7 @@
4
      then it may have been opened with special flags that make it
5
      unsafe to close and reopen the file.  */
6
   if (fd == -1)
7
-    bfd_set_cacheable (nbfd, TRUE);
8
+    (void)bfd_set_cacheable (nbfd, TRUE);
9
 
10
   return nbfd;
11
 }
(-)devel/gdb/files/patch-bfd-peicode.h (+11 lines)
Line 0 Link Here
1
--- bfd/peicode.h.orig	2012-12-18 14:22:02.000000000 +0100
2
+++ bfd/peicode.h	2012-12-18 14:22:21.000000000 +0100
3
@@ -602,7 +602,7 @@
4
 
5
   bfd_set_section_flags (vars->abfd, sec, flags | extra_flags);
6
 
7
-  bfd_set_section_alignment (vars->abfd, sec, 2);
8
+  (void)bfd_set_section_alignment (vars->abfd, sec, 2);
9
 
10
   /* Check that we will not run out of space.  */
11
   BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size);
(-)devel/gdb/files/patch-opcodes-configure (-17 lines)
Lines 1-17 Link Here
1
--- opcodes/configure.orig	2012-04-27 10:20:25.000000000 +0200
2
+++ opcodes/configure	2012-04-27 10:24:01.000000000 +0200
3
@@ -11525,7 +11525,13 @@
4
 
5
 # Enable -Werror by default when using gcc
6
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7
-    ERROR_ON_WARNING=yes
8
+    if test "${CC}" = clang ; then
9
+	echo "clang compiler - disabling -Werror"
10
+	ERROR_ON_WARNING=no
11
+    else
12
+	echo "gcc compiler - enabling -Werror"
13
+    	ERROR_ON_WARNING=yes
14
+    fi
15
 fi
16
 
17
 NO_WERROR=
(-)devel/gdb/files/patch-opcodes-i386-dis.c (+59 lines)
Line 0 Link Here
1
--- opcodes/i386-dis.c.orig	2012-07-16 14:58:29.000000000 +0200
2
+++ opcodes/i386-dis.c	2012-12-18 15:22:10.000000000 +0100
3
@@ -11991,7 +11991,7 @@
4
 static void
5
 OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
6
 {
7
-  oappend ("%st" + intel_syntax);
8
+  oappend (&"%st"[(short)intel_syntax]);
9
 }
10
 
11
 static void
12
@@ -12520,32 +12520,32 @@
13
   if (prefixes & PREFIX_CS)
14
     {
15
       used_prefixes |= PREFIX_CS;
16
-      oappend ("%cs:" + intel_syntax);
17
+      oappend (&"%cs:"[(short)intel_syntax]);
18
     }
19
   if (prefixes & PREFIX_DS)
20
     {
21
       used_prefixes |= PREFIX_DS;
22
-      oappend ("%ds:" + intel_syntax);
23
+      oappend (&"%ds:"[(short)intel_syntax]);
24
     }
25
   if (prefixes & PREFIX_SS)
26
     {
27
       used_prefixes |= PREFIX_SS;
28
-      oappend ("%ss:" + intel_syntax);
29
+      oappend (&"%ss:"[(short)intel_syntax]);
30
     }
31
   if (prefixes & PREFIX_ES)
32
     {
33
       used_prefixes |= PREFIX_ES;
34
-      oappend ("%es:" + intel_syntax);
35
+      oappend (&"%es:"[(short)intel_syntax]);
36
     }
37
   if (prefixes & PREFIX_FS)
38
     {
39
       used_prefixes |= PREFIX_FS;
40
-      oappend ("%fs:" + intel_syntax);
41
+      oappend (&"%fs:"[(short)intel_syntax]);
42
     }
43
   if (prefixes & PREFIX_GS)
44
     {
45
       used_prefixes |= PREFIX_GS;
46
-      oappend ("%gs:" + intel_syntax);
47
+      oappend (&"%gs:"[(short)intel_syntax]);
48
     }
49
 }
50
 
51
@@ -13876,7 +13876,7 @@
52
 	  intel_operand_size (b_mode, sizeflag);
53
 	}
54
     }
55
-  oappend ("%es:" + intel_syntax);
56
+  oappend (&"%es:"[(short)intel_syntax]);
57
   ptr_reg (code, sizeflag);
58
 }
59

Return to bug 174568