Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 435206 | Differences between
and this patch

Collapse All | Expand All

(-)gcc-4.6.3/config-ml.in (+17 lines)
Lines 351-356 Link Here
351
	    esac
351
	    esac
352
	  done
352
	  done
353
	fi
353
	fi
354
	case "${host}" in
355
	  *-*-mint*)
356
	    case "${srcdir}" in
357
	      */libgcc ) : ;;
358
	      *)
359
	        old_multidirs="${multidirs}"
360
	        multidirs=""
361
	        for x in ${old_multidirs}; do
362
		  case "$x" in
363
		    *mshort ) : ;;
364
		    *) multidirs="${multidirs} ${x}" ;;
365
		  esac
366
		done
367
		;;
368
	    esac
369
	    ;;
370
	esac
354
	;;
371
	;;
355
mips*-*-*)
372
mips*-*-*)
356
	if [ x$enable_single_float = xno ]
373
	if [ x$enable_single_float = xno ]
(-)gcc-4.6.3/configure (+6 lines)
Lines 3077-3082 Link Here
3077
    *-*-freebsd*)
3077
    *-*-freebsd*)
3078
        # Enable libmudflap by default in FreeBSD.
3078
        # Enable libmudflap by default in FreeBSD.
3079
	;;
3079
	;;
3080
    *-*-mint*)
3081
        # Enable libmudflap by default in MiNT.
3082
	;;
3080
    *)
3083
    *)
3081
        # Disable it by default everywhere else.
3084
        # Disable it by default everywhere else.
3082
	noconfigdirs="$noconfigdirs target-libmudflap"
3085
	noconfigdirs="$noconfigdirs target-libmudflap"
Lines 3449-3454 Link Here
3449
  m68k-*-coff*)
3452
  m68k-*-coff*)
3450
    noconfigdirs="$noconfigdirs ${libgcj}"
3453
    noconfigdirs="$noconfigdirs ${libgcj}"
3451
    ;;
3454
    ;;
3455
  m68k-*-mint*)
3456
    noconfigdirs="$noconfigdirs target-libiberty ${libgcj}"
3457
    ;;
3452
  m68*-*-* | fido-*-*)
3458
  m68*-*-* | fido-*-*)
3453
    libgloss_dir=m68k
3459
    libgloss_dir=m68k
3454
    ;;
3460
    ;;
(-)gcc-4.6.3/configure.ac (+6 lines)
Lines 523-528 Link Here
523
    *-*-freebsd*)
523
    *-*-freebsd*)
524
        # Enable libmudflap by default in FreeBSD.
524
        # Enable libmudflap by default in FreeBSD.
525
	;;
525
	;;
526
    *-*-mint*)
527
        # Enable libmudflap by default in MiNT.
528
	;;
526
    *)
529
    *)
527
        # Disable it by default everywhere else.
530
        # Disable it by default everywhere else.
528
	noconfigdirs="$noconfigdirs target-libmudflap"
531
	noconfigdirs="$noconfigdirs target-libmudflap"
Lines 895-900 Link Here
895
  m68k-*-coff*)
898
  m68k-*-coff*)
896
    noconfigdirs="$noconfigdirs ${libgcj}"
899
    noconfigdirs="$noconfigdirs ${libgcj}"
897
    ;;
900
    ;;
901
  m68k-*-mint*)
902
    noconfigdirs="$noconfigdirs target-libiberty ${libgcj}"
903
    ;;
898
  m68*-*-* | fido-*-*)
904
  m68*-*-* | fido-*-*)
899
    libgloss_dir=m68k
905
    libgloss_dir=m68k
900
    ;;
906
    ;;
(-)gcc-4.6.3/gcc/config/m68k/lb1sf68.asm (+4 lines)
Lines 666-672 Link Here
666
	.globl SYM (__negdf2)
666
	.globl SYM (__negdf2)
667
	.globl SYM (__cmpdf2)
667
	.globl SYM (__cmpdf2)
668
	.globl SYM (__cmpdf2_internal)
668
	.globl SYM (__cmpdf2_internal)
669
#ifdef __ELF__
669
	.hidden SYM (__cmpdf2_internal)
670
	.hidden SYM (__cmpdf2_internal)
671
#endif
670
672
671
	.text
673
	.text
672
	.even
674
	.even
Lines 2581-2587 Link Here
2581
	.globl SYM (__negsf2)
2583
	.globl SYM (__negsf2)
2582
	.globl SYM (__cmpsf2)
2584
	.globl SYM (__cmpsf2)
2583
	.globl SYM (__cmpsf2_internal)
2585
	.globl SYM (__cmpsf2_internal)
2586
#ifdef __ELF__
2584
	.hidden SYM (__cmpsf2_internal)
2587
	.hidden SYM (__cmpsf2_internal)
2588
#endif
2585
2589
2586
| These are common routines to return and signal exceptions.	
2590
| These are common routines to return and signal exceptions.	
2587
2591
(-)gcc-4.6.3/gcc/config/m68k/m68k.h (-1 / +4 lines)
Lines 138-144 Link Here
138
	}								\
138
	}								\
139
									\
139
									\
140
      if (TARGET_68881)							\
140
      if (TARGET_68881)							\
141
	builtin_define ("__HAVE_68881__");				\
141
	{								\
142
	  builtin_define ("__HAVE_68881__");				\
143
	  builtin_define ("__M68881__"); /* Non-standard */		\
144
	}								\
142
									\
145
									\
143
      if (TARGET_COLDFIRE)						\
146
      if (TARGET_COLDFIRE)						\
144
	{								\
147
	{								\
(-)gcc-4.6.3/gcc/config/m68k/math-68881.h (-30 / +40 lines)
Lines 44-49 Link Here
44
44
45
#include <errno.h>
45
#include <errno.h>
46
46
47
/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
48
   inline semantics, unless -fgnu89-inline is used.  */
49
#ifdef __cplusplus
50
# define __MATH_68881_INLINE inline
51
#elif defined __GNUC_STDC_INLINE__
52
# define __MATH_68881_INLINE extern __inline __attribute__ ((__gnu_inline__))
53
#else
54
# define __MATH_68881_INLINE extern __inline
55
#endif
56
47
#undef HUGE_VAL
57
#undef HUGE_VAL
48
#ifdef __sun__
58
#ifdef __sun__
49
/* The Sun assembler fails to handle the hex constant in the usual defn.  */
59
/* The Sun assembler fails to handle the hex constant in the usual defn.  */
Lines 64-70 Link Here
64
})
74
})
65
#endif
75
#endif
66
76
67
__inline extern double
77
__MATH_68881_INLINE double
68
sin (double x)
78
sin (double x)
69
{
79
{
70
  double value;
80
  double value;
Lines 75-81 Link Here
75
  return value;
85
  return value;
76
}
86
}
77
87
78
__inline extern double
88
__MATH_68881_INLINE double
79
cos (double x)
89
cos (double x)
80
{
90
{
81
  double value;
91
  double value;
Lines 86-92 Link Here
86
  return value;
96
  return value;
87
}
97
}
88
98
89
__inline extern double
99
__MATH_68881_INLINE double
90
tan (double x)
100
tan (double x)
91
{
101
{
92
  double value;
102
  double value;
Lines 97-103 Link Here
97
  return value;
107
  return value;
98
}
108
}
99
109
100
__inline extern double
110
__MATH_68881_INLINE double
101
asin (double x)
111
asin (double x)
102
{
112
{
103
  double value;
113
  double value;
Lines 108-114 Link Here
108
  return value;
118
  return value;
109
}
119
}
110
120
111
__inline extern double
121
__MATH_68881_INLINE double
112
acos (double x)
122
acos (double x)
113
{
123
{
114
  double value;
124
  double value;
Lines 119-125 Link Here
119
  return value;
129
  return value;
120
}
130
}
121
131
122
__inline extern double
132
__MATH_68881_INLINE double
123
atan (double x)
133
atan (double x)
124
{
134
{
125
  double value;
135
  double value;
Lines 130-136 Link Here
130
  return value;
140
  return value;
131
}
141
}
132
142
133
__inline extern double
143
__MATH_68881_INLINE double
134
atan2 (double y, double x)
144
atan2 (double y, double x)
135
{
145
{
136
  double pi, pi_over_2;
146
  double pi, pi_over_2;
Lines 187-193 Link Here
187
    }
197
    }
188
}
198
}
189
199
190
__inline extern double
200
__MATH_68881_INLINE double
191
sinh (double x)
201
sinh (double x)
192
{
202
{
193
  double value;
203
  double value;
Lines 198-204 Link Here
198
  return value;
208
  return value;
199
}
209
}
200
210
201
__inline extern double
211
__MATH_68881_INLINE double
202
cosh (double x)
212
cosh (double x)
203
{
213
{
204
  double value;
214
  double value;
Lines 209-215 Link Here
209
  return value;
219
  return value;
210
}
220
}
211
221
212
__inline extern double
222
__MATH_68881_INLINE double
213
tanh (double x)
223
tanh (double x)
214
{
224
{
215
  double value;
225
  double value;
Lines 220-226 Link Here
220
  return value;
230
  return value;
221
}
231
}
222
232
223
__inline extern double
233
__MATH_68881_INLINE double
224
atanh (double x)
234
atanh (double x)
225
{
235
{
226
  double value;
236
  double value;
Lines 231-237 Link Here
231
  return value;
241
  return value;
232
}
242
}
233
243
234
__inline extern double
244
__MATH_68881_INLINE double
235
exp (double x)
245
exp (double x)
236
{
246
{
237
  double value;
247
  double value;
Lines 242-248 Link Here
242
  return value;
252
  return value;
243
}
253
}
244
254
245
__inline extern double
255
__MATH_68881_INLINE double
246
expm1 (double x)
256
expm1 (double x)
247
{
257
{
248
  double value;
258
  double value;
Lines 253-259 Link Here
253
  return value;
263
  return value;
254
}
264
}
255
265
256
__inline extern double
266
__MATH_68881_INLINE double
257
log (double x)
267
log (double x)
258
{
268
{
259
  double value;
269
  double value;
Lines 264-270 Link Here
264
  return value;
274
  return value;
265
}
275
}
266
276
267
__inline extern double
277
__MATH_68881_INLINE double
268
log1p (double x)
278
log1p (double x)
269
{
279
{
270
  double value;
280
  double value;
Lines 275-281 Link Here
275
  return value;
285
  return value;
276
}
286
}
277
287
278
__inline extern double
288
__MATH_68881_INLINE double
279
log10 (double x)
289
log10 (double x)
280
{
290
{
281
  double value;
291
  double value;
Lines 286-292 Link Here
286
  return value;
296
  return value;
287
}
297
}
288
298
289
__inline extern double
299
__MATH_68881_INLINE double
290
sqrt (double x)
300
sqrt (double x)
291
{
301
{
292
  double value;
302
  double value;
Lines 297-309 Link Here
297
  return value;
307
  return value;
298
}
308
}
299
309
300
__inline extern double
310
__MATH_68881_INLINE double
301
hypot (double x, double y)
311
hypot (double x, double y)
302
{
312
{
303
  return sqrt (x*x + y*y);
313
  return sqrt (x*x + y*y);
304
}
314
}
305
315
306
__inline extern double
316
__MATH_68881_INLINE double
307
pow (double x, double y)
317
pow (double x, double y)
308
{
318
{
309
  if (x > 0)
319
  if (x > 0)
Lines 352-358 Link Here
352
    }
362
    }
353
}
363
}
354
364
355
__inline extern double
365
__MATH_68881_INLINE double
356
fabs (double x)
366
fabs (double x)
357
{
367
{
358
  double value;
368
  double value;
Lines 363-369 Link Here
363
  return value;
373
  return value;
364
}
374
}
365
375
366
__inline extern double
376
__MATH_68881_INLINE double
367
ceil (double x)
377
ceil (double x)
368
{
378
{
369
  int rounding_mode, round_up;
379
  int rounding_mode, round_up;
Lines 385-391 Link Here
385
  return value;
395
  return value;
386
}
396
}
387
397
388
__inline extern double
398
__MATH_68881_INLINE double
389
floor (double x)
399
floor (double x)
390
{
400
{
391
  int rounding_mode, round_down;
401
  int rounding_mode, round_down;
Lines 408-414 Link Here
408
  return value;
418
  return value;
409
}
419
}
410
420
411
__inline extern double
421
__MATH_68881_INLINE double
412
rint (double x)
422
rint (double x)
413
{
423
{
414
  int rounding_mode, round_nearest;
424
  int rounding_mode, round_nearest;
Lines 430-436 Link Here
430
  return value;
440
  return value;
431
}
441
}
432
442
433
__inline extern double
443
__MATH_68881_INLINE double
434
fmod (double x, double y)
444
fmod (double x, double y)
435
{
445
{
436
  double value;
446
  double value;
Lines 442-448 Link Here
442
  return value;
452
  return value;
443
}
453
}
444
454
445
__inline extern double
455
__MATH_68881_INLINE double
446
drem (double x, double y)
456
drem (double x, double y)
447
{
457
{
448
  double value;
458
  double value;
Lines 454-460 Link Here
454
  return value;
464
  return value;
455
}
465
}
456
466
457
__inline extern double
467
__MATH_68881_INLINE double
458
scalb (double x, int n)
468
scalb (double x, int n)
459
{
469
{
460
  double value;
470
  double value;
Lines 466-472 Link Here
466
  return value;
476
  return value;
467
}
477
}
468
478
469
__inline extern double
479
__MATH_68881_INLINE double
470
logb (double x)
480
logb (double x)
471
{
481
{
472
  double exponent;
482
  double exponent;
Lines 477-483 Link Here
477
  return exponent;
487
  return exponent;
478
}
488
}
479
489
480
__inline extern double
490
__MATH_68881_INLINE double
481
ldexp (double x, int n)
491
ldexp (double x, int n)
482
{
492
{
483
  double value;
493
  double value;
Lines 489-495 Link Here
489
  return value;
499
  return value;
490
}
500
}
491
501
492
__inline extern double
502
__MATH_68881_INLINE double
493
frexp (double x, int *exp)
503
frexp (double x, int *exp)
494
{
504
{
495
  double float_exponent;
505
  double float_exponent;
Lines 514-520 Link Here
514
  return mantissa;
524
  return mantissa;
515
}
525
}
516
526
517
__inline extern double
527
__MATH_68881_INLINE double
518
modf (double x, double *ip)
528
modf (double x, double *ip)
519
{
529
{
520
  double temp;
530
  double temp;
(-)gcc-4.6.3/gcc/config/m68k/mint.h (+176 lines)
Line 0 Link Here
1
/* Definitions of target machine for GNU compiler.
2
   Atari ST TOS/MiNT.
3
   Copyright (C) 1994, 1995, 2007, 2008, 2009, 2010, 2011
4
   Free Software Foundation, Inc.
5
6
This file is part of GCC.
7
8
GCC is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 3, or (at your option)
11
any later version.
12
13
GCC is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
22
/* Here are four prefixes that are used by asm_fprintf to
23
   facilitate customization for alternate assembler syntaxes.
24
   Machines with no likelihood of an alternate syntax need not
25
   define these and need not use asm_fprintf.  */
26
27
/* The prefix for register names.  Note that REGISTER_NAMES
28
   is supposed to include this prefix. Also note that this is NOT an
29
   fprintf format string, it is a literal string */
30
31
#undef REGISTER_PREFIX
32
#define REGISTER_PREFIX "%"
33
34
/* The prefix for local (compiler generated) labels.
35
   These labels will not appear in the symbol table.  */
36
37
#undef LOCAL_LABEL_PREFIX
38
#define LOCAL_LABEL_PREFIX "."
39
40
#undef ASM_COMMENT_START
41
#define ASM_COMMENT_START "|"
42
43
#undef WCHAR_TYPE
44
#define WCHAR_TYPE "short unsigned int"
45
46
#undef WCHAR_TYPE_SIZE
47
#define WCHAR_TYPE_SIZE SHORT_TYPE_SIZE
48
49
#undef TARGET_OS_CPP_BUILTINS
50
#define TARGET_OS_CPP_BUILTINS()		\
51
  do						\
52
    {						\
53
      builtin_define ("__MINT__");		\
54
      builtin_define_std ("atarist");		\
55
      builtin_assert ("machine=atari");		\
56
      builtin_assert ("system=mint");		\
57
    }						\
58
  while (0)
59
60
/* The following defines are nonstandard
61
   and are kept only for compatibility
62
   with older versions of GCC for MiNT.  */
63
64
#undef CPP_SPEC
65
#define CPP_SPEC			\
66
  "%{m68000:-D__M68000__} "		\
67
  "%{mc68020:-D__M68020__} "		\
68
  "%{m68020:-D__M68020__} "		\
69
  "%{m68030:-D__M68020__} "		\
70
  "%{m68040:-D__M68020__} "		\
71
  "%{m68060:-D__M68020__} "		\
72
  "%{m68020-40:-D__M68020__} "		\
73
  "%{m68020-60:-D__M68020__} "		\
74
  "%{!m680*:%{!mc680*:-D__M68000__}} "	\
75
  "%{mshort:-D__MSHORT__}"
76
77
#define STARTFILE_SPEC	"%{pg|p|profile:gcrt0.o%s;:crt0.o%s}"
78
#define LIB_SPEC	"-lc"
79
80
/* Every structure or union's size must be a multiple of 2 bytes.  */
81
#define STRUCTURE_SIZE_BOUNDARY 16
82
83
/* The -g option generates stabs debug information.  */
84
#define DBX_DEBUGGING_INFO 1
85
86
/* This is the assembler directive to equate two values.  */
87
#undef SET_ASM_OP
88
#define SET_ASM_OP		"\t.set\t"
89
90
/* This is how we tell the assembler that a symbol is weak.  */
91
#undef ASM_WEAKEN_LABEL
92
#define ASM_WEAKEN_LABEL(FILE,NAME) \
93
  do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
94
       fputc ('\n', FILE); } while (0)
95
96
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
97
   we want to retain compatibility with older gcc versions.  */
98
#define DEFAULT_PCC_STRUCT_RETURN 0
99
100
/* The system headers are C++-aware.  */
101
#define NO_IMPLICIT_EXTERN_C
102
103
/* By default, the vtable entries are void pointers, the so the alignment
104
   is the same as pointer alignment.  The value of this macro specifies
105
   the alignment of the vtable entry in bits.  It should be defined only
106
   when special alignment is necessary.
107
108
   MiNT: The default value of 32 is too much and unsupported by a.out-mintprg.
109
*/
110
#define TARGET_VTABLE_ENTRY_ALIGN 16
111
112
/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
113
   the rest of the DWARF 2 frame unwind support is also provided.
114
   
115
   MiNT: DWARF 2 frame unwind is not supported by a.out-mint.
116
*/
117
#define DWARF2_UNWIND_INFO 0
118
119
/* config/m68k.md has an explicit reference to the program counter,
120
   prefix this by the register prefix.  */
121
122
#define ASM_RETURN_CASE_JUMP				\
123
  do {							\
124
    if (TARGET_COLDFIRE)				\
125
      {							\
126
	if (ADDRESS_REG_P (operands[0]))		\
127
	  return "jmp %%pc@(2,%0:l)";			\
128
	else						\
129
	  return "ext%.l %0\n\tjmp %%pc@(2,%0:l)";	\
130
      }							\
131
    else						\
132
      return "jmp %%pc@(2,%0:w)";			\
133
  } while (0)
134
135
/* The ADDR_DIFF_VEC must exactly follow the previous instruction.  */
136
137
#undef ADDR_VEC_ALIGN
138
#define ADDR_VEC_ALIGN(ADDR_VEC) 0
139
140
/* If defined, a C expression whose value is a string containing the
141
   assembler operation to identify the following data as uninitialized global
142
   data.  */
143
144
#define BSS_SECTION_ASM_OP "\t.bss"
145
146
/* A C statement (sans semicolon) to output to the stdio stream
147
   FILE the assembler definition of uninitialized global DECL named
148
   NAME whose size is SIZE bytes and alignment is ALIGN bytes.
149
   Try to use asm_output_aligned_bss to implement this macro.  */
150
151
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
152
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
153
154
/* Disable -fpic and -fPIC since bsr.l _label@PLTPC
155
   is unsupported by the assembler.  */
156
157
#undef  SUBTARGET_OVERRIDE_OPTIONS
158
#define SUBTARGET_OVERRIDE_OPTIONS					\
159
do {									\
160
  if (flag_pic && !TARGET_PCREL)					\
161
      error ("-f%s is not supported on this target",			\
162
	       (flag_pic > 1) ? "PIC" : "pic");				\
163
} while (0)
164
165
166
/* Workaround for GCC bug #35067 about multiple thunks.  */
167
168
#undef MAKE_DECL_ONE_ONLY
169
#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
170
171
/* Avoid requiring -static with -fmudflap like in config/bfin/uclinux.h */
172
#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \
173
 --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\
174
 --wrap=mmap --wrap=munmap --wrap=alloca\
175
 %{fmudflapth: --wrap=pthread_create\
176
}} %{fmudflap|fmudflapth: --wrap=main}"
(-)gcc-4.6.3/gcc/config/m68k/t-mint (+27 lines)
Line 0 Link Here
1
# 
2
# Use multiple libraries
3
# 
4
5
MULTILIB_OPTIONS = m68020-60 mshort
6
7
MULTILIB_DIRNAMES = m68020-60 mshort
8
9
MULTILIB_MATCHES = \
10
	m68020-60=m68881 \
11
	m68020-60=m68020 \
12
	m68020-60=m68020-40 \
13
	m68020-60=mc68020 \
14
	m68020-60=m68030 \
15
	m68020-60=m68040 \
16
	m68020-60=m68060 \
17
	m68020-60=mcpu?68020 \
18
	m68020-60=mcpu?68030 \
19
	m68020-60=mcpu?68040 \
20
	m68020-60=mcpu?68060 \
21
	m68020-60=march?68020 \
22
	m68020-60=march?68030 \
23
	m68020-60=march?68040 \
24
	m68020-60=march?68060
25
26
LIBGCC = stmp-multilib
27
INSTALL_LIBGCC = install-multilib
(-)gcc-4.6.3/gcc/config.gcc (+9 lines)
Lines 1805-1810 Link Here
1805
	    tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1805
	    tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1806
	fi
1806
	fi
1807
	;;
1807
	;;
1808
m68k-*-mint*)
1809
	default_m68k_cpu=68000
1810
	default_cf_cpu=5475
1811
	tm_file="${tm_file} m68k/mint.h"
1812
	tm_defines="${tm_defines} MOTOROLA=1"
1813
	tmake_file="m68k/t-floatlib m68k/t-mint"
1814
	gas=yes
1815
	gnu_ld=yes
1816
	;;
1808
m68k-*-rtems*)
1817
m68k-*-rtems*)
1809
	default_m68k_cpu=68020
1818
	default_m68k_cpu=68020
1810
	default_cf_cpu=5206
1819
	default_cf_cpu=5206
(-)gcc-4.6.3/gcc/df-problems.c (-2 / +9 lines)
Lines 4024-4030 Link Here
4024
	  if (bitmap_intersect_p (merge_set, test_use)
4024
	  if (bitmap_intersect_p (merge_set, test_use)
4025
	      || bitmap_intersect_p (merge_use, test_set))
4025
	      || bitmap_intersect_p (merge_use, test_set))
4026
	    break;
4026
	    break;
4027
	  max_to = insn;
4027
#ifdef HAVE_cc0
4028
	  if (!sets_cc0_p (insn))
4029
#endif
4030
	    max_to = insn;
4028
	}
4031
	}
4029
      next = NEXT_INSN (insn);
4032
      next = NEXT_INSN (insn);
4030
      if (insn == to)
4033
      if (insn == to)
Lines 4061-4067 Link Here
4061
    {
4064
    {
4062
      if (NONDEBUG_INSN_P (insn))
4065
      if (NONDEBUG_INSN_P (insn))
4063
	{
4066
	{
4064
	  if (!bitmap_intersect_p (test_set, local_merge_live))
4067
	  if (!bitmap_intersect_p (test_set, local_merge_live)
4068
#ifdef HAVE_cc0
4069
	      && !sets_cc0_p (insn)
4070
#endif
4071
	      )
4065
	    {
4072
	    {
4066
	      max_to = insn;
4073
	      max_to = insn;
4067
	      break;
4074
	      break;
(-)gcc-4.6.3/libdecnumber/decNumberLocal.h (-1 / +1 lines)
Lines 188-194 Link Here
188
  #if (DECNUMMAXE != DEC_MAX_EMAX)
188
  #if (DECNUMMAXE != DEC_MAX_EMAX)
189
    #error Maximum exponent mismatch
189
    #error Maximum exponent mismatch
190
  #endif
190
  #endif
191
  #if (DECNUMMINE != DEC_MIN_EMIN)
191
  #if !(DECNUMMINE == DEC_MIN_EMIN) /* gcc 2.95.3 has bug in '!=' operator for negative constants */
192
    #error Minimum exponent mismatch
192
    #error Minimum exponent mismatch
193
  #endif
193
  #endif
194
194
(-)gcc-4.6.3/libgcc/config.host (+2 lines)
Lines 387-392 Link Here
387
				# with ELF format using glibc 2
387
				# with ELF format using glibc 2
388
				# aka the GNU/Linux C library 6.
388
				# aka the GNU/Linux C library 6.
389
	;;
389
	;;
390
m68k-*-mint*)
391
	;;
390
m68k-*-rtems*)
392
m68k-*-rtems*)
391
	;;
393
	;;
392
mcore-*-elf)
394
mcore-*-elf)
(-)gcc-4.6.3/libiberty/configure (+1 lines)
Lines 4850-4855 Link Here
4850
if [ "${shared}" = "yes" ]; then
4850
if [ "${shared}" = "yes" ]; then
4851
  case "${host}" in
4851
  case "${host}" in
4852
    *-*-cygwin*)	;;
4852
    *-*-cygwin*)	;;
4853
    *-*-mint*)		;;
4853
    alpha*-*-linux*)	PICFLAG=-fPIC ;;
4854
    alpha*-*-linux*)	PICFLAG=-fPIC ;;
4854
    arm*-*-*)		PICFLAG=-fPIC ;;
4855
    arm*-*-*)		PICFLAG=-fPIC ;;
4855
    hppa*-*-*)		PICFLAG=-fPIC ;;
4856
    hppa*-*-*)		PICFLAG=-fPIC ;;
(-)gcc-4.6.3/libiberty/configure.ac (+1 lines)
Lines 201-206 Link Here
201
if [[ "${shared}" = "yes" ]]; then
201
if [[ "${shared}" = "yes" ]]; then
202
  case "${host}" in
202
  case "${host}" in
203
    *-*-cygwin*)	;;
203
    *-*-cygwin*)	;;
204
    *-*-mint*)		;;
204
    alpha*-*-linux*)	PICFLAG=-fPIC ;;
205
    alpha*-*-linux*)	PICFLAG=-fPIC ;;
205
    arm*-*-*)		PICFLAG=-fPIC ;;
206
    arm*-*-*)		PICFLAG=-fPIC ;;
206
    hppa*-*-*)		PICFLAG=-fPIC ;;
207
    hppa*-*-*)		PICFLAG=-fPIC ;;
(-)gcc-4.6.3/libiberty/hex.c (-1 / +1 lines)
Lines 24-30 Link Here
24
#include "libiberty.h"
24
#include "libiberty.h"
25
#include "safe-ctype.h" /* for HOST_CHARSET_ASCII */
25
#include "safe-ctype.h" /* for HOST_CHARSET_ASCII */
26
26
27
#if EOF != -1
27
#if !(EOF == -1)	/* gcc 2.95.3 has bug in '!=' operator for negative constants */
28
 #error "hex.c requires EOF == -1"
28
 #error "hex.c requires EOF == -1"
29
#endif
29
#endif
30
30
(-)gcc-4.6.3/libiberty/safe-ctype.c (-1 / +1 lines)
Lines 119-125 Link Here
119
#include <safe-ctype.h>
119
#include <safe-ctype.h>
120
#include <stdio.h>  /* for EOF */
120
#include <stdio.h>  /* for EOF */
121
121
122
#if EOF != -1
122
#if !(EOF == -1)	/* gcc 2.95.3 has bug in '!=' operator for negative constants */
123
 #error "<safe-ctype.h> requires EOF == -1"
123
 #error "<safe-ctype.h> requires EOF == -1"
124
#endif
124
#endif
125
125
(-)gcc-4.6.3/libmudflap/mf-hooks2.c (+4 lines)
Lines 1668-1673 Link Here
1668
}
1668
}
1669
1669
1670
1670
1671
#ifdef HAVE_DLFCN_H
1672
1671
WRAPPER2(void *, dlopen, const char *path, int flags)
1673
WRAPPER2(void *, dlopen, const char *path, int flags)
1672
{
1674
{
1673
  void *p;
1675
  void *p;
Lines 1735-1740 Link Here
1735
  return p;
1737
  return p;
1736
}
1738
}
1737
1739
1740
#endif /* HAVE_DLFCN_H */
1741
1738
1742
1739
#if defined (HAVE_SYS_IPC_H) && defined (HAVE_SYS_SEM_H) && defined (HAVE_SYS_SHM_H)
1743
#if defined (HAVE_SYS_IPC_H) && defined (HAVE_SYS_SEM_H) && defined (HAVE_SYS_SHM_H)
1740
1744
(-)gcc-4.6.3/libmudflap/mf-runtime.h (+136 lines)
Lines 97-102 Link Here
97
   instrumented modules are meant to be affected.  */
97
   instrumented modules are meant to be affected.  */
98
98
99
#ifdef _MUDFLAP
99
#ifdef _MUDFLAP
100
#ifndef __USER_LABEL_PREFIX__
100
#pragma redefine_extname memcpy __mfwrap_memcpy
101
#pragma redefine_extname memcpy __mfwrap_memcpy
101
#pragma redefine_extname memmove __mfwrap_memmove
102
#pragma redefine_extname memmove __mfwrap_memmove
102
#pragma redefine_extname memset __mfwrap_memset
103
#pragma redefine_extname memset __mfwrap_memset
Lines 230-235 Link Here
230
#pragma redefine_extname getprotoent __mfwrap_getprotoent
231
#pragma redefine_extname getprotoent __mfwrap_getprotoent
231
#pragma redefine_extname getprotobyname __mfwrap_getprotobyname
232
#pragma redefine_extname getprotobyname __mfwrap_getprotobyname
232
#pragma redefine_extname getprotobynumber __mfwrap_getprotobynumber
233
#pragma redefine_extname getprotobynumber __mfwrap_getprotobynumber
234
#else
235
#pragma redefine_extname memcpy ___mfwrap_memcpy
236
#pragma redefine_extname memmove ___mfwrap_memmove
237
#pragma redefine_extname memset ___mfwrap_memset
238
#pragma redefine_extname memcmp ___mfwrap_memcmp
239
#pragma redefine_extname memchr ___mfwrap_memchr
240
#pragma redefine_extname memrchr ___mfwrap_memrchr
241
#pragma redefine_extname strcpy ___mfwrap_strcpy
242
#pragma redefine_extname strncpy ___mfwrap_strncpy
243
#pragma redefine_extname strcat ___mfwrap_strcat
244
#pragma redefine_extname strncat ___mfwrap_strncat
245
#pragma redefine_extname strcmp ___mfwrap_strcmp
246
#pragma redefine_extname strcasecmp ___mfwrap_strcasecmp
247
#pragma redefine_extname strncmp ___mfwrap_strncmp
248
#pragma redefine_extname strncasecmp ___mfwrap_strncasecmp
249
#pragma redefine_extname strdup ___mfwrap_strdup
250
#pragma redefine_extname strndup ___mfwrap_strndup
251
#pragma redefine_extname strchr ___mfwrap_strchr
252
#pragma redefine_extname strrchr ___mfwrap_strrchr
253
#pragma redefine_extname strstr ___mfwrap_strstr
254
#pragma redefine_extname memmem ___mfwrap_memmem
255
#pragma redefine_extname strlen ___mfwrap_strlen
256
#pragma redefine_extname strnlen ___mfwrap_strnlen
257
#pragma redefine_extname bzero ___mfwrap_bzero
258
#pragma redefine_extname bcopy ___mfwrap_bcopy
259
#pragma redefine_extname bcmp ___mfwrap_bcmp
260
#pragma redefine_extname index ___mfwrap_index
261
#pragma redefine_extname rindex ___mfwrap_rindex
262
#pragma redefine_extname asctime ___mfwrap_asctime
263
#pragma redefine_extname ctime ___mfwrap_ctime
264
#pragma redefine_extname gmtime ___mfwrap_gmtime
265
#pragma redefine_extname localtime ___mfwrap_localtime
266
#pragma redefine_extname time ___mfwrap_time
267
#pragma redefine_extname strerror ___mfwrap_strerror
268
#pragma redefine_extname fopen ___mfwrap_fopen
269
#pragma redefine_extname fdopen ___mfwrap_fdopen
270
#pragma redefine_extname freopen ___mfwrap_freopen
271
#pragma redefine_extname fclose ___mfwrap_fclose
272
#pragma redefine_extname fread ___mfwrap_fread
273
#pragma redefine_extname fwrite ___mfwrap_fwrite
274
#pragma redefine_extname fgetc ___mfwrap_fgetc
275
#pragma redefine_extname fgets ___mfwrap_fgets
276
#pragma redefine_extname getc ___mfwrap_getc
277
#pragma redefine_extname gets ___mfwrap_gets
278
#pragma redefine_extname ungetc ___mfwrap_ungetc
279
#pragma redefine_extname fputc ___mfwrap_fputc
280
#pragma redefine_extname fputs ___mfwrap_fputs
281
#pragma redefine_extname putc ___mfwrap_putc
282
#pragma redefine_extname puts ___mfwrap_puts
283
#pragma redefine_extname clearerr ___mfwrap_clearerr
284
#pragma redefine_extname feof ___mfwrap_feof
285
#pragma redefine_extname ferror ___mfwrap_ferror
286
#pragma redefine_extname fileno ___mfwrap_fileno
287
#pragma redefine_extname printf ___mfwrap_printf
288
#pragma redefine_extname fprintf ___mfwrap_fprintf
289
#pragma redefine_extname sprintf ___mfwrap_sprintf
290
#pragma redefine_extname snprintf ___mfwrap_snprintf
291
#pragma redefine_extname vprintf ___mfwrap_vprintf
292
#pragma redefine_extname vfprintf ___mfwrap_vfprintf
293
#pragma redefine_extname vsprintf ___mfwrap_vsprintf
294
#pragma redefine_extname vsnprintf ___mfwrap_vsnprintf
295
#pragma redefine_extname access ___mfwrap_access
296
#pragma redefine_extname remove ___mfwrap_remove
297
#pragma redefine_extname fflush ___mfwrap_fflush
298
#pragma redefine_extname fseek ___mfwrap_fseek
299
#pragma redefine_extname ftell ___mfwrap_ftell
300
#pragma redefine_extname rewind ___mfwrap_rewind
301
#pragma redefine_extname fgetpos ___mfwrap_fgetpos
302
#pragma redefine_extname fsetpos ___mfwrap_fsetpos
303
#pragma redefine_extname stat ___mfwrap_stat
304
#pragma redefine_extname fstat ___mfwrap_fstat
305
#pragma redefine_extname lstat ___mfwrap_lstat
306
#pragma redefine_extname mkfifo ___mfwrap_mkfifo
307
#pragma redefine_extname setvbuf ___mfwrap_setvbuf
308
#pragma redefine_extname setbuf ___mfwrap_setbuf
309
#pragma redefine_extname setbuffer ___mfwrap_setbuffer
310
#pragma redefine_extname setlinebuf ___mfwrap_setlinebuf
311
#pragma redefine_extname opendir ___mfwrap_opendir
312
#pragma redefine_extname closedir ___mfwrap_closedir
313
#pragma redefine_extname readdir ___mfwrap_readdir
314
#pragma redefine_extname recv ___mfwrap_recv
315
#pragma redefine_extname recvfrom ___mfwrap_recvfrom
316
#pragma redefine_extname recvmsg ___mfwrap_recvmsg
317
#pragma redefine_extname send ___mfwrap_send
318
#pragma redefine_extname sendto ___mfwrap_sendto
319
#pragma redefine_extname sendmsg ___mfwrap_sendmsg
320
#pragma redefine_extname setsockopt ___mfwrap_setsockopt
321
#pragma redefine_extname getsockopt ___mfwrap_getsockopt
322
#pragma redefine_extname accept ___mfwrap_accept
323
#pragma redefine_extname bind ___mfwrap_bind
324
#pragma redefine_extname connect ___mfwrap_connect
325
#pragma redefine_extname gethostname ___mfwrap_gethostname
326
#pragma redefine_extname sethostname ___mfwrap_sethostname
327
#pragma redefine_extname gethostbyname ___mfwrap_gethostbyname
328
#pragma redefine_extname wait ___mfwrap_wait
329
#pragma redefine_extname waitpid ___mfwrap_waitpid
330
#pragma redefine_extname popen ___mfwrap_popen
331
#pragma redefine_extname pclose ___mfwrap_pclose
332
#pragma redefine_extname execve ___mfwrap_execve
333
#pragma redefine_extname execv ___mfwrap_execv
334
#pragma redefine_extname execvp ___mfwrap_execvp
335
#pragma redefine_extname system ___mfwrap_system
336
#pragma redefine_extname dlopen ___mfwrap_dlopen
337
#pragma redefine_extname dlerror ___mfwrap_dlerror
338
#pragma redefine_extname dlsym ___mfwrap_dlsym
339
#pragma redefine_extname dlclose ___mfwrap_dlclose
340
#pragma redefine_extname fopen64 ___mfwrap_fopen64
341
#pragma redefine_extname freopen64 ___mfwrap_freopen64
342
#pragma redefine_extname stat64 ___mfwrap_stat64
343
#pragma redefine_extname fseeko64 ___mfwrap_fseeko64
344
#pragma redefine_extname ftello64 ___mfwrap_ftello64
345
#pragma redefine_extname semop ___mfwrap_semop
346
#pragma redefine_extname semctl ___mfwrap_semctl
347
#pragma redefine_extname shmctl ___mfwrap_shmctl
348
#pragma redefine_extname shmat ___mfwrap_shmat
349
#pragma redefine_extname shmdt ___mfwrap_shmdt
350
#pragma redefine_extname __ctype_b_loc ___mfwrap___ctype_b_loc
351
#pragma redefine_extname __ctype_toupper_loc ___mfwrap___ctype_toupper_loc
352
#pragma redefine_extname __ctype_tolower_loc ___mfwrap___ctype_tolower_loc
353
#pragma redefine_extname getlogin ___mfwrap_getlogin
354
#pragma redefine_extname cuserid ___mfwrap_cuserid
355
#pragma redefine_extname getpwnam ___mfwrap_getpwnam
356
#pragma redefine_extname getpwuid ___mfwrap_getpwuid
357
#pragma redefine_extname getgrnam ___mfwrap_getgrnam
358
#pragma redefine_extname getgrgid ___mfwrap_getgrgid
359
#pragma redefine_extname getservent ___mfwrap_getservent
360
#pragma redefine_extname getservbyname ___mfwrap_getservbyname
361
#pragma redefine_extname getservbyport ___mfwrap_getservbyport
362
#pragma redefine_extname gai_strerror ___mfwrap_gai_strerror
363
#pragma redefine_extname getmntent ___mfwrap_getmntent
364
#pragma redefine_extname inet_ntoa ___mfwrap_inet_ntoa
365
#pragma redefine_extname getprotoent ___mfwrap_getprotoent
366
#pragma redefine_extname getprotobyname ___mfwrap_getprotobyname
367
#pragma redefine_extname getprotobynumber ___mfwrap_getprotobynumber
368
#endif
233
369
234
/* Disable glibc macros.  */
370
/* Disable glibc macros.  */
235
#define __NO_STRING_INLINES
371
#define __NO_STRING_INLINES
(-)gcc-4.6.3/libssp/ssp.c (+10 lines)
Lines 63-68 Link Here
63
#ifdef HAVE_SYSLOG_H
63
#ifdef HAVE_SYSLOG_H
64
# include <syslog.h>
64
# include <syslog.h>
65
#endif
65
#endif
66
#ifdef __MINT__
67
#include <mint/osbind.h>
68
#endif
66
69
67
void *__stack_chk_guard = 0;
70
void *__stack_chk_guard = 0;
68
71
Lines 98-103 Link Here
98
{
101
{
99
#ifdef __GNU_LIBRARY__
102
#ifdef __GNU_LIBRARY__
100
  extern char * __progname;
103
  extern char * __progname;
104
#elif defined (__MINT__)
105
  extern char * program_invocation_short_name;
106
  #define __progname program_invocation_short_name
101
#else
107
#else
102
  static const char __progname[] = "";
108
  static const char __progname[] = "";
103
#endif
109
#endif
Lines 139-144 Link Here
139
    syslog (LOG_CRIT, msg3);
145
    syslog (LOG_CRIT, msg3);
140
#endif /* HAVE_SYSLOG_H */
146
#endif /* HAVE_SYSLOG_H */
141
147
148
#ifdef __MINT__
149
    Pterm(127);
150
#else
142
  /* Try very hard to exit.  Note that signals may be blocked preventing
151
  /* Try very hard to exit.  Note that signals may be blocked preventing
143
     the first two options from working.  The use of volatile is here to
152
     the first two options from working.  The use of volatile is here to
144
     prevent optimizers from "knowing" that __builtin_trap is called first,
153
     prevent optimizers from "knowing" that __builtin_trap is called first,
Lines 160-165 Link Here
160
          break;
169
          break;
161
        }
170
        }
162
  }
171
  }
172
#endif
163
}
173
}
164
174
165
void
175
void
(-)gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_base.h (+59 lines)
Line 0 Link Here
1
// Locale support -*- C++ -*-
2
3
// Copyright (C) 1997, 1998, 1999, 2003, 2009, 2010
4
// Free Software Foundation, Inc.
5
//
6
// This file is part of the GNU ISO C++ Library.  This library is free
7
// software; you can redistribute it and/or modify it under the
8
// terms of the GNU General Public License as published by the
9
// Free Software Foundation; either version 3, or (at your option)
10
// any later version.
11
12
// This library is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
// GNU General Public License for more details.
16
17
// Under Section 7 of GPL version 3, you are granted additional
18
// permissions described in the GCC Runtime Library Exception, version
19
// 3.1, as published by the Free Software Foundation.
20
21
// You should have received a copy of the GNU General Public License and
22
// a copy of the GCC Runtime Library Exception along with this program;
23
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24
// <http://www.gnu.org/licenses/>.
25
26
//
27
// ISO C++ 14882: 22.1  Locales
28
//
29
30
// Mint C types, taken from mintlib-0.57.3/include/ctype.h
31
32
namespace std _GLIBCXX_VISIBILITY(default)
33
{
34
_GLIBCXX_BEGIN_NAMESPACE_VERSION
35
36
  /// @brief  Base class for ctype.
37
  struct ctype_base
38
  {
39
    // Non-standard typedefs.
40
    typedef const int* 		__to_type;
41
42
    // NB: Offsets into ctype<char>::_M_table force a particular size
43
    // on the mask type. Because of this, we don't use an enum.
44
    typedef unsigned int 	mask;
45
    static const mask upper    	= _CTu;
46
    static const mask lower 	= _CTl;
47
    static const mask alpha 	= _CTu | _CTl;
48
    static const mask digit 	= _CTd;
49
    static const mask xdigit 	= _CTx;
50
    static const mask space 	= _CTs;
51
    static const mask print 	= _CTP;
52
    static const mask graph 	= _CTg;
53
    static const mask cntrl 	= _CTc;
54
    static const mask punct 	= _CTp;
55
    static const mask alnum 	= _CTd | _CTu | _CTl ;
56
  };
57
58
_GLIBCXX_END_NAMESPACE_VERSION
59
} // namespace
(-)gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_inline.h (+76 lines)
Line 0 Link Here
1
// Locale support -*- C++ -*-
2
3
// Copyright (C) 2000, 2003, 2009, 2010 Free Software Foundation, Inc.
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
7
// terms of the GNU General Public License as published by the
8
// Free Software Foundation; either version 3, or (at your option)
9
// any later version.
10
11
// This library is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
// GNU General Public License for more details.
15
16
// Under Section 7 of GPL version 3, you are granted additional
17
// permissions described in the GCC Runtime Library Exception, version
18
// 3.1, as published by the Free Software Foundation.
19
20
// You should have received a copy of the GNU General Public License and
21
// a copy of the GCC Runtime Library Exception along with this program;
22
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23
// <http://www.gnu.org/licenses/>.
24
25
/** @file bits/ctype_inline.h
26
 *  This is an internal header file, included by other library headers.
27
 *  Do not attempt to use it directly. @headername{locale}
28
 */
29
30
//
31
// ISO C++ 14882: 22.1  Locales
32
//
33
  
34
// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
35
// functions go in ctype.cc
36
  
37
// Mint C types, taken from mintlib-0.57.3/include/ctype.h
38
39
namespace std _GLIBCXX_VISIBILITY(default)
40
{
41
_GLIBCXX_BEGIN_NAMESPACE_VERSION
42
43
  bool
44
  ctype<char>::
45
  is(mask __m, char __c) const
46
  { return _ctype[(unsigned char)((__c) + 1)] & __m; }
47
48
  const char*
49
  ctype<char>::
50
  is(const char* __low, const char* __high, mask* __vec) const
51
  {
52
    while (__low < __high)
53
      *__vec++ = _ctype[(*__low++) + 1] ;
54
    return __high;
55
  }
56
57
  const char*
58
  ctype<char>::
59
  scan_is(mask __m, const char* __low, const char* __high) const
60
  {
61
    while (__low < __high && !this->is(__m, *__low))
62
      ++__low;
63
    return __low;
64
  }
65
66
  const char*
67
  ctype<char>::
68
  scan_not(mask __m, const char* __low, const char* __high) const
69
  {
70
    while (__low < __high && this->is(__m, *__low) != 0)
71
      ++__low;
72
    return __low;
73
  }
74
75
_GLIBCXX_END_NAMESPACE_VERSION
76
} // namespace
(-)gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_noninline.h (+92 lines)
Line 0 Link Here
1
// Locale support -*- C++ -*-
2
3
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009, 2010
4
//  Free Software Foundation, Inc.
5
//
6
// This file is part of the GNU ISO C++ Library.  This library is free
7
// software; you can redistribute it and/or modify it under the
8
// terms of the GNU General Public License as published by the
9
// Free Software Foundation; either version 3, or (at your option)
10
// any later version.
11
12
// This library is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
// GNU General Public License for more details.
16
17
// Under Section 7 of GPL version 3, you are granted additional
18
// permissions described in the GCC Runtime Library Exception, version
19
// 3.1, as published by the Free Software Foundation.
20
21
// You should have received a copy of the GNU General Public License and
22
// a copy of the GCC Runtime Library Exception along with this program;
23
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24
// <http://www.gnu.org/licenses/>.
25
26
/** @file bits/ctype_noninline.h
27
 *  This is an internal header file, included by other library headers.
28
 *  Do not attempt to use it directly. @headername{locale}
29
 */
30
31
//
32
// ISO C++ 14882: 22.1  Locales
33
//
34
  
35
// Information as gleaned from /usr/include/ctype.h
36
37
  const ctype_base::mask*
38
  ctype<char>::classic_table() throw()
39
  { return 0; }
40
41
  ctype<char>::ctype(__c_locale, const mask* __table, bool __del, 
42
		     size_t __refs) 
43
  : facet(__refs), _M_del(__table != 0 && __del), 
44
  _M_toupper(NULL), _M_tolower(NULL), 
45
  _M_table(__table ? __table : classic_table()) 
46
  { 
47
    memset(_M_widen, 0, sizeof(_M_widen));
48
    _M_widen_ok = 0;
49
    memset(_M_narrow, 0, sizeof(_M_narrow));
50
    _M_narrow_ok = 0;
51
  }
52
53
  ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) 
54
  : facet(__refs), _M_del(__table != 0 && __del), 
55
  _M_toupper(NULL), _M_tolower(NULL), 
56
  _M_table(__table ? __table : classic_table())
57
  { 
58
    memset(_M_widen, 0, sizeof(_M_widen));
59
    _M_widen_ok = 0;
60
    memset(_M_narrow, 0, sizeof(_M_narrow));
61
    _M_narrow_ok = 0;
62
  }
63
64
  char
65
  ctype<char>::do_toupper(char __c) const
66
  { return ::toupper((int) __c); }
67
68
  const char*
69
  ctype<char>::do_toupper(char* __low, const char* __high) const
70
  {
71
    while (__low < __high)
72
      {
73
	*__low = ::toupper((int) *__low);
74
	++__low;
75
      }
76
    return __high;
77
  }
78
79
  char
80
  ctype<char>::do_tolower(char __c) const
81
  { return ::tolower((int) __c); }
82
83
  const char* 
84
  ctype<char>::do_tolower(char* __low, const char* __high) const
85
  {
86
    while (__low < __high)
87
      {
88
	*__low = ::tolower((int) *__low);
89
	++__low;
90
      }
91
    return __high;
92
  }
(-)gcc-4.6.3/libstdc++-v3/config/os/mint/os_defines.h (+36 lines)
Line 0 Link Here
1
// Specific definitions for generic platforms  -*- C++ -*-
2
3
// Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc.
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
7
// terms of the GNU General Public License as published by the
8
// Free Software Foundation; either version 3, or (at your option)
9
// any later version.
10
11
// This library is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
// GNU General Public License for more details.
15
16
// Under Section 7 of GPL version 3, you are granted additional
17
// permissions described in the GCC Runtime Library Exception, version
18
// 3.1, as published by the Free Software Foundation.
19
20
// You should have received a copy of the GNU General Public License and
21
// a copy of the GCC Runtime Library Exception along with this program;
22
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23
// <http://www.gnu.org/licenses/>.
24
25
/** @file bits/os_defines.h
26
 *  This is an internal header file, included by other library headers.
27
 *  Do not attempt to use it directly. @headername{iosfwd}
28
 */
29
30
#ifndef _GLIBCXX_OS_DEFINES
31
#define _GLIBCXX_OS_DEFINES 1
32
33
// System-specific #define, typedefs, corrections, etc, go here.  This
34
// file will come before all others.
35
36
#endif
(-)gcc-4.6.3/libstdc++-v3/configure (-1 / +1 lines)
Lines 44640-44646 Link Here
44640
	;;
44640
	;;
44641
    esac
44641
    esac
44642
    ;;
44642
    ;;
44643
  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
44643
  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*)
44644
44644
44645
  # All these tests are for C++; save the language and the compiler flags.
44645
  # All these tests are for C++; save the language and the compiler flags.
44646
  # The CXXFLAGS thing is suspicious, but based on similar bits previously
44646
  # The CXXFLAGS thing is suspicious, but based on similar bits previously
(-)gcc-4.6.3/libstdc++-v3/configure.host (+4 lines)
Lines 258-263 Link Here
258
    error_constants_dir="os/mingw32"
258
    error_constants_dir="os/mingw32"
259
    OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
259
    OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
260
    ;;
260
    ;;
261
  mint*)
262
    SECTION_FLAGS="${SECTION_FLAGS} -D_GNU_SOURCE"
263
    os_include_dir="os/mint"
264
    ;;
261
  netbsd*)
265
  netbsd*)
262
    os_include_dir="os/bsd/netbsd"
266
    os_include_dir="os/bsd/netbsd"
263
    ;;
267
    ;;
(-)gcc-4.6.3/libstdc++-v3/crossconfig.m4 (-1 / +1 lines)
Lines 141-147 Link Here
141
	;;
141
	;;
142
    esac
142
    esac
143
    ;;
143
    ;;
144
  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
144
  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*)
145
    GLIBCXX_CHECK_COMPILER_FEATURES
145
    GLIBCXX_CHECK_COMPILER_FEATURES
146
    GLIBCXX_CHECK_LINKER_FEATURES
146
    GLIBCXX_CHECK_LINKER_FEATURES
147
    GLIBCXX_CHECK_MATH_SUPPORT
147
    GLIBCXX_CHECK_MATH_SUPPORT

Return to bug 435206