• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/7.2.0/0900-remove-selftests.patch
Thomas PetazzoniThomas Petazzoni committed 80546e97fa616 Aug 2017
Raw file
Source viewDiff to previous
 
1
From 63f0917d90eb83d267dc517fdfb6523a74b1917c Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@gmail.com>
3
Date: Wed, 3 May 2017 00:37:06 +0200
4
Subject: [PATCH] remove selftests
5
​
6
When the gcc archive is extracted by the gcc.mk, the gcc/testsuite
7
is excluded:
8
​
9
HOST_GCC_EXCLUDES = \
10
    libjava/* libgo/* \
11
    gcc/testsuite/* libstdc++-v3/testsuite/*
12
​
13
The new Makefile target from the "Selftest framework" [1] added a dependency
14
on the gcc/testsuite/Makefile.
15
Revert partially the commit [1] to allow building gcc without selftest.
16
​
17
[1] https://github.com/gcc-mirror/gcc/commit/99b4f3a2d5bf2c137de9731e27b483eb6b462fd9
18
​
19
Signed-off-by: Romain Naour <romain.naour@gmail.com>
20
---
21
 gcc/Makefile.in | 46 +++++-----------------------------------------
22
 1 file changed, 5 insertions(+), 41 deletions(-)
23
​
24
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
25
index 74d1912..652a554 100644
26
--- a/gcc/Makefile.in
27
+++ b/gcc/Makefile.in
28
@@ -1581,14 +1581,13 @@ OBJS = \
29
 OBJS-libcommon = diagnostic.o diagnostic-color.o diagnostic-show-locus.o \
30
    edit-context.o \
31
    pretty-print.o intl.o \
32
-   vec.o input.o version.o hash-table.o ggc-none.o memory-block.o \
33
-   selftest.o
34
+   vec.o input.o version.o hash-table.o ggc-none.o memory-block.o
35
 
36
 # Objects in libcommon-target.a, used by drivers and by the core
37
 # compiler and containing target-dependent code.
38
 OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \
39
    opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \
40
-   hash-table.o file-find.o spellcheck.o selftest.o
41
+   hash-table.o file-find.o spellcheck.o
42
 
43
 # This lists all host objects for the front ends.
44
 ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS))
45
@@ -1865,10 +1864,10 @@ config.status: $(srcdir)/configure $(srcdir)/config.gcc
46
 quickstrap: all
47
    cd $(toplevel_builddir) && $(MAKE) all-target-libgcc
48
 
49
-all.internal: start.encap rest.encap doc selftest
50
+all.internal: start.encap rest.encap doc
51
 # This is what to compile if making a cross-compiler.
52
 all.cross: native gcc-cross$(exeext) cpp$(exeext) specs \
53
-   libgcc-support lang.all.cross doc selftest @GENINSRC@ srcextra
54
+   libgcc-support lang.all.cross doc @GENINSRC@ srcextra
55
 # This is what must be made before installing GCC and converting libraries.
56
 start.encap: native xgcc$(exeext) cpp$(exeext) specs \
57
    libgcc-support lang.start.encap @GENINSRC@ srcextra
58
@@ -1888,41 +1887,6 @@ endif
59
 # This does the things that can't be done on the host machine.
60
 rest.cross: specs
61
 
62
-# GCC's selftests.
63
-# Specify a dummy input file to placate the driver.
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.