什么样的情况下会怀孕| 化疗期间吃什么升白细胞快| 人生只剩归途什么意思| 鼻头发黑是什么原因| 美人尖是什么| 国师代表什么生肖| aml是什么病| 做梦梦到捡钱是什么征兆| hf是什么| 内秀是什么性格的人| 节食是什么意思| 白带长什么样| 雪蛤是什么| 吃牛肉不能吃什么| 知己什么意思| 降血糖吃什么药| 梦见小老虎是什么预兆| 思想感情是什么意思| 婳是什么意思| 突兀什么| 麝香对孕妇有什么危害性| 流清鼻涕是什么原因| 嘈杂是什么意思| 手指发麻是什么原因| 小ck属于什么档次| 长痘要忌口什么东西| 上海话册那什么意思| 糖化血糖是什么意思| 什么药可以帮助睡眠| 韩墨池是什么电视剧| 油碟是什么| 阴囊湿疹是什么原因造成的| 杠杆炒股是什么意思| 诡异是什么意思| 梗是什么意思| 胃底腺息肉什么意思| 排骨炖山药有什么功效| 胃疼吃什么药好得最快最有效| 必承其重上一句是什么| 什么人不能吃石斛| 引体向上练什么肌肉| 紫外线过敏吃什么药| 梦见买棺材是什么征兆| 胆汁反流吃什么药| 饭后腹胀是什么原因| 转氨酶高吃什么好得快| 总胆固醇是什么意思| 爱是什么颜色| kpi是什么意思| 被口是什么感觉| 缺碘会有什么症状| 发烧时不宜喝什么饮料| 嘴碎什么意思| 骨质疏松检查什么项目| 菠萝不能和什么一起吃| kalenji是什么品牌| 马刺是什么意思| 尿无力是什么原因| 妇科衣原体是什么病| 肛门溃烂用什么药膏| 慕字五行属什么| 什么叫弱视| 很难怀孕是什么原因| 电器发生火灾用什么灭火器| 神经内科看什么病的| 考试什么的都去死吧歌曲| 肾造瘘是什么意思| 衾怎么读什么意思| 带牙套是什么意思| 右眼皮跳是什么原因| 扁桃体2度是什么意思| 身体发抖是什么病| 什么情况下需要打破伤风| 小儿疝气挂什么科| amp是什么意思| 吃什么下奶| 杨柳代表什么生肖| 为什么会流鼻血| 什么是临床医学| 格列卫是什么药| 人为什么会死| 孕妇吃蓝莓对胎儿有什么好处| 契丹族现在是什么族| 什么是b站| 胎儿打嗝是什么原因| 年薪10万算什么水平| 次日是什么意思| 梦见被熊追是什么意思| 爱被蚊子咬是什么原因| 四肢无力是什么病| 犬吠是什么意思| 女性阴道长什么样| 没有什么| 身份证照片穿什么颜色衣服| 机智如你是什么意思| 什么叫尿毒症| 什么病才吃阿昔洛韦片| 智齿一般长在什么位置| visa是什么| 胡汉三回来了什么意思| 取环后吃什么恢复子宫| 载脂蛋白b偏低是什么意思| 偏头疼是什么症状| 单纯性苔藓是什么病| 点痣后要注意什么| 粉碎性骨折是什么意思| 尔昌尔炽什么意思| 底线是什么意思| 肾精亏虚吃什么药最好| 断头路是什么意思| 海马用什么呼吸| 8月12号是什么星座| 什么手组词| 一什么影子| 从良是什么意思| 什么是甲母痣| 706代血浆又叫什么| 卖腐是什么意思| 花心大萝卜是什么意思| 儿童过敏性咳嗽吃什么药| 胎盘0级是什么意思啊| 狗为什么喜欢吃屎| 什么食物可以降血糖| 什么体质不易怀孕| 五字五行属什么| 失眠可以吃什么药| 掉头发是缺什么| 干什么一天能挣1000元| 女子胞指的是什么| 白矾是什么| 重症医学科是干什么的| 腺样体肥大吃什么药| 吃什么补津液| 五更是什么时辰| 心服口服是什么意思| 逢九年应该注意什么有什么禁忌| 直销是什么意思| 卫生湿巾是干什么用的| 感冒引起的喉咙痛吃什么药| 屙是什么意思| 皮肤过敏涂什么药膏| 脂肪肝看什么指标| 睡莲什么时候开花| 宫内孕和宫外孕有什么区别| 白龙马叫什么| 什么伤医院不能治| 加字五行属什么| 双肺结节是什么病| 懦弱什么意思| 乙肝两对半245阳性是什么意思| 膀胱ca是什么意思| 皮肤容易晒黑是什么原因| 2月3号是什么星座| 眼睛模糊用什么药好| 羊绒和羊毛有什么区别| 胃糜烂吃什么药可以根治| 背疼挂什么科室最好| 大人是什么意思| 长辈生日送什么花| 孩子注意力不集中是什么原因| 什么是逆商| 男孩取什么名字好| 嘴唇周围长痘痘是什么原因导致| 甲钴胺是什么药| 风湿性关节炎挂什么科| 盈字五行属什么| 未成年改名字需要什么手续| 鬼玺是什么| 什么情况下需要做肠镜检查| 波罗蜜多什么意思| 条件反射是什么意思| 做梦梦见下大雨是什么意思| 打喷嚏头疼是什么原因| 咨询是什么意思| 什么是主观什么是客观| 授课是什么意思| 同比增长是什么意思| 森达属于什么档次的鞋| 海豚吃什么| 史努比是什么品牌| 真空是什么意思| 小狗能吃什么| 调岗是什么意思| 妹控是什么意思| 泌尿科看什么病| 一什么千什么| 北京西单附近有什么好玩的| 鸡胗是什么器官| 嗓子有异物感吃什么药| 喉咙痛感冒吃什么药| 一年四季是什么生肖| 舅舅的舅舅叫什么| 外感风寒吃什么药| 2018年生肖属什么| 女人吃什么提高性激素| vodka是什么酒| 男士圆脸适合什么发型| 什么叫钙化| 3.2号是什么星座| 大米有什么营养| 打磨工为什么没人干| 无能为力是什么意思| 宝宝积食吃什么药| 眼神迷离什么意思| 中管干部是什么级别| 插班生是什么意思| 我行我素的人什么性格| 外阴有白色的东西是什么| 女人鼻子大代表什么| 乐松是什么药| 拉肚子发热是什么情况| 特需门诊是什么意思| 生姜红糖水有什么作用| 竖起中指是什么意思| 男人鼻头有痣代表什么| 屁眼疼是什么原因| 夜盲吃什么维生素| 豆浆和豆奶有什么区别| 献血有什么危害| 小青蛙吃什么| 奔富红酒属于什么档次| 肋骨神经痛吃什么药| 孙武和孙膑是什么关系| 婴儿吐奶是什么原因| 什么时候容易怀孕| 梦见动物是什么意思| 豆沫是什么做的| 视网膜脱落有什么症状| 跟腱炎吃什么药效果好| 六味地黄丸什么时候吃最好| 软著有什么用| 什么什么多彩| 路上遇到蛇是什么征兆| 食是代表什么生肖| 什么馅的包子好吃| 痔疮是什么样子的| 大黄是什么药材| 黄芪可以和什么一起泡水喝| 吃山楂片有什么好处| xswl什么意思| 什么头什么发| 甲状旁腺分泌什么激素| 气郁症是什么症状| 凌晨三点是什么时辰| 蜂王浆有什么好处| 有机奶粉是什么意思| 胎儿头偏小是什么原因引起的| 可惜是什么意思| 二个月不来月经是什么原因| 原来是什么意思| 桑叶泡水喝有什么功效和作用| 什么水果下火| 农业户口和非农业户口有什么区别| 左室高电压什么意思| 大姨妈量少什么原因| 梦见买鞋子是什么意思| 什么药可降尿酸| 常吃生花生有什么好处| 6月20号什么星座| 草字头占读什么| 血管瘤是什么症状| 牛油果是什么季节的水果| 化验血能查出什么项目| 便黑色大便是什么情况| 百度

西北地区首家大型海洋馆落户鄂尔多斯动物园

百度   毋须讳言,《芳华》是一部高质量的致青春,它比以往任何一部公映的青春题材电影都更加接近青春的本质。

Now that GCC is configured, you are ready to build the compiler and runtime libraries.

Some commands executed when making the compiler may fail (return a nonzero status) and be ignored by make. These failures, which are often due to files that were not found, are expected, and can safely be ignored.

It is normal to have compiler warnings when compiling certain files. Unless you are a GCC developer, you can generally ignore these warnings unless they cause compilation to fail. Developers should attempt to fix any warnings encountered, however they can temporarily continue past warnings-as-errors by specifying the configure flag --disable-werror.

On certain old systems, defining certain environment variables such as CC can interfere with the functioning of make.

If you encounter seemingly strange errors when trying to build the compiler in a directory other than the source directory, it could be because you have previously configured the compiler in the source directory. Make sure you have done all the necessary preparations.

If you build GCC on a BSD system using a directory stored in an old System V file system, problems may occur in running fixincludes if the System V file system doesn’t support symbolic links. These problems result in a failure to fix the declaration of size_t in sys/types.h. If you find that size_t is a signed type and that type mismatches occur, this could be the cause.

The solution is not to use such a directory for building GCC.

Similarly, when building from the source repository or snapshots, or if you modify *.l files, you need the Flex lexical analyzer generator installed. If you do not modify *.l files, releases contain the Flex-generated files and you do not need Flex installed to build them. There is still one Flex-based lexical analyzer (part of the build machinery, not of GCC itself) that is used even if you only build the C front end.

When building from the source repository or snapshots, or if you modify Texinfo documentation, you need version 4.7 or later of Texinfo installed if you want Info documentation to be regenerated. Releases contain Info documentation pre-built for the unmodified documentation in the release.

Building a native compiler

For a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked. This will build the entire GCC system and ensure that it compiles itself correctly. It can be disabled with the --disable-bootstrap parameter to ‘configure’, but bootstrapping is suggested because the compiler will be tested more completely and could also have better performance.

The bootstrapping process will complete the following steps:

If you are short on disk space you might consider ‘make bootstrap-lean’ instead. The sequence of compilation is the same described above, but object files from the stage1 and stage2 of the 3-stage bootstrap of the compiler are deleted as soon as they are no longer needed.

If you wish to use non-default GCC flags when compiling the stage2 and stage3 compilers, set BOOT_CFLAGS on the command line when doing ‘make’. For example, if you want to save additional space during the bootstrap and in the final installation as well, you can build the compiler binaries without debugging information as in the following example. This will save roughly 40% of disk space both for the bootstrap and the final installation. (Libraries will still contain debugging information.)

make BOOT_CFLAGS='-O' bootstrap

You can place non-default optimization flags into BOOT_CFLAGS; they are less well tested here than the default of ‘-g -O2’, but should still work. In a few cases, you may find that you need to specify special flags such as -msoft-float here to complete the bootstrap; or, if the native compiler miscompiles the stage1 compiler, you may need to work around this, by choosing BOOT_CFLAGS to avoid the parts of the stage1 compiler that were miscompiled, or by using ‘make bootstrap4’ to increase the number of stages of bootstrap.

BOOT_CFLAGS does not apply to bootstrapped target libraries. Since these are always compiled with the compiler currently being bootstrapped, you can use CFLAGS_FOR_TARGET to modify their compilation flags, as for non-bootstrapped target libraries. Again, if the native compiler miscompiles the stage1 compiler, you may need to work around this by avoiding non-working parts of the stage1 compiler. Use STAGE1_TFLAGS to this end.

If you used the flag --enable-languages=… to restrict the compilers to be built, only those you’ve actually enabled will be built. This will of course only build those runtime libraries, for which the particular compiler has been built. Please note, that re-defining LANGUAGES when calling ‘makedoes not work anymore!

If the comparison of stage2 and stage3 fails, this normally indicates that the stage2 compiler has compiled GCC incorrectly, and is therefore a potentially serious bug which you should investigate and report. (On a few systems, meaningful comparison of object files is impossible; they always appear “different”. If you encounter this problem, you will need to disable comparison in the Makefile.)

If you do not want to bootstrap your compiler, you can configure with --disable-bootstrap. In particular cases, you may want to bootstrap your compiler even if the target system is not the same as the one you are building on: for example, you could build a powerpc-unknown-linux-gnu toolchain on a powerpc64-unknown-linux-gnu host. In this case, pass --enable-bootstrap to the configure script.

BUILD_CONFIG can be used to bring in additional customization to the build. It can be set to a whitespace-separated list of names. For each such NAME, top-level config/NAME.mk will be included by the top-level Makefile, bringing in any settings it contains. The default BUILD_CONFIG can be set using the configure option --with-build-config=NAME.... Some examples of supported build configurations are:

bootstrap-O1

Removes any -O-started option from BOOT_CFLAGS, and adds -O1 to it. ‘BUILD_CONFIG=bootstrap-O1’ is equivalent to ‘BOOT_CFLAGS='-g -O1'’.

bootstrap-O3
bootstrap-Og

Analogous to bootstrap-O1.

bootstrap-native
bootstrap-native

Optimize the compiler code for the build host, if supported by the architecture. Note this only affects the compiler, not the targeted code. If you want the later, choose options suitable to the target you are looking for. For example ‘--with-cpu’ would be a good starting point.

bootstrap-lto

Enables Link-Time Optimization for host tools during bootstrapping. ‘BUILD_CONFIG=bootstrap-lto’ is equivalent to adding -flto to ‘BOOT_CFLAGS’. This option assumes that the host supports the linker plugin (e.g. GNU ld version 2.21 or later or GNU gold version 2.21 or later).

bootstrap-lto-noplugin

This option is similar to bootstrap-lto, but is intended for hosts that do not support the linker plugin. Without the linker plugin static libraries are not compiled with link-time optimizations. Since the GCC middle end and back end are in libbackend.a this means that only the front end is actually LTO optimized.

bootstrap-lto-lean

This option is similar to bootstrap-lto, but is intended for faster build by only using LTO in the final bootstrap stage. With ‘make profiledbootstrap’ the LTO frontend is trained only on generator files.

bootstrap-debug

Verifies that the compiler generates the same executable code, whether or not it is asked to emit debug information. To this end, this option builds stage2 host programs without debug information, and uses contrib/compare-debug to compare them with the stripped stage3 object files. If BOOT_CFLAGS is overridden so as to not enable debug information, stage2 will have it, and stage3 won’t. This option is enabled by default when GCC bootstrapping is enabled, if strip can turn object files compiled with and without debug info into identical object files. In addition to better test coverage, this option makes default bootstraps faster and leaner.

bootstrap-debug-big

Rather than comparing stripped object files, as in bootstrap-debug, this option saves internal compiler dumps during stage2 and stage3 and compares them as well, which helps catch additional potential problems, but at a great cost in terms of disk space. It can be specified in addition to ‘bootstrap-debug’.

bootstrap-debug-lean

This option saves disk space compared with bootstrap-debug-big, but at the expense of some recompilation. Instead of saving the dumps of stage2 and stage3 until the final compare, it uses -fcompare-debug to generate, compare and remove the dumps during stage3, repeating the compilation that already took place in stage2, whose dumps were not saved.

bootstrap-debug-lib

This option tests executable code invariance over debug information generation on target libraries, just like bootstrap-debug-lean tests it on host programs. It builds stage3 libraries with -fcompare-debug, and it can be used along with any of the bootstrap-debug options above.

There aren’t -lean or -big counterparts to this option because most libraries are only build in stage3, so bootstrap compares would not get significant coverage. Moreover, the few libraries built in stage2 are used in stage3 host programs, so we wouldn’t want to compile stage2 libraries with different options for comparison purposes.

bootstrap-debug-ckovw

Arranges for error messages to be issued if the compiler built on any stage is run without the option -fcompare-debug. This is useful to verify the full -fcompare-debug testing coverage. It must be used along with bootstrap-debug-lean and bootstrap-debug-lib.

bootstrap-cet

This option enables Intel CET for host tools during bootstrapping. ‘BUILD_CONFIG=bootstrap-cet’ is equivalent to adding -fcf-protection to ‘BOOT_CFLAGS’. This option assumes that the host supports Intel CET (e.g. GNU assembler version 2.30 or later).

bootstrap-time

Arranges for the run time of each program started by the GCC driver, built in any stage, to be logged to time.log, in the top level of the build tree.

bootstrap-asan

Compiles GCC itself using Address Sanitization in order to catch invalid memory accesses within the GCC code.

bootstrap-hwasan

Compiles GCC itself using HWAddress Sanitization in order to catch invalid memory accesses within the GCC code. This option is only available on AArch64 systems that are running Linux kernel version 5.4 or later.

bootstrap-ubsan

Compiles GCC itself using Undefined Behavior Sanitization in order to catch undefined behavior within the GCC code. Note that it does not abort on errors by default. UBSAN_OPTIONS can be set to change this, like ‘UBSAN_OPTIONS='abort_on_error=1:halt_on_error=1:print_summary=1:print_stacktrace=1'’.

Building a cross compiler

When building a cross compiler, it is not generally possible to do a 3-stage bootstrap of the compiler. This makes for an interesting problem as parts of GCC can only be built with GCC.

To build a cross compiler, we recommend first building and installing a native compiler. You can then use the native GCC compiler to build the cross compiler. The installed native compiler needs to be GCC version 2.95 or later.

Assuming you have already installed a native copy of GCC and configured your cross compiler, issue the command make, which performs the following steps:

Note that if an error occurs in any step the make process will exit.

If you are not building GNU binutils in the same source tree as GCC, you will need a cross-assembler and cross-linker installed before configuring GCC. Put them in the directory prefix/target/bin. Here is a table of the tools you should put in this directory:

as

This should be the cross-assembler.

ld

This should be the cross-linker.

ar

This should be the cross-archiver: a program which can manipulate archive files (linker libraries) in the target machine’s format.

ranlib

This should be a program to construct a symbol table in an archive file.

The installation of GCC will find these programs in that directory, and copy or link them to the proper place to for the cross-compiler to find them when run later.

The easiest way to provide these files is to build the Binutils package. Configure it with the same --host and --target options that you use for configuring GCC, then build and install them. They install their executables automatically into the proper directory. Alas, they do not support all the targets that GCC supports.

If you are not building a C library in the same source tree as GCC, you should also provide the target libraries and headers before configuring GCC, specifying the directories with --with-sysroot or --with-headers and --with-libs. Many targets also require “start files” such as crt0.o and crtn.o which are linked into each executable. There may be several alternatives for crt0.o, for use with profiling or other compilation options. Check your target’s definition of STARTFILE_SPEC to find out what start files it uses.

Building in parallel

GNU Make 3.80 and above, which is necessary to build GCC, support building in parallel. To activate this, you can use ‘make -j 2’ instead of ‘make’. You can also specify a bigger number, and in most cases using a value greater than the number of processors in your machine will result in fewer and shorter I/O latency hits, thus improving overall throughput; this is especially true for slow drives and network filesystems.

Building the Ada compiler

GNAT prerequisites.

Building the D compiler

GDC prerequisites.

Building with profile feedback

It is possible to use profile feedback to optimize the compiler itself. This should result in a faster compiler binary. Experiments done on x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C programs. To bootstrap the compiler with profile feedback, use make profiledbootstrap.

When ‘make profiledbootstrap’ is run, it will first build a stage1 compiler. This compiler is used to build a stageprofile compiler instrumented to collect execution counts of instruction and branch probabilities. Training run is done by building stagetrain compiler. Finally a stagefeedback compiler is built using the information collected.

Unlike standard bootstrap, several additional restrictions apply. The compiler used to build stage1 needs to support a 64-bit integral type. It is recommended to only use GCC for this.

On Linux/x86_64 hosts with some restrictions (no virtualization) it is also possible to do autofdo build with ‘make autoprofiledbootstrap’. This uses Linux perf to sample branches in the binary and then rebuild it with feedback derived from the profile. Linux perf and the autofdo toolkit needs to be installed for this.

Only the profile from the current build is used, so when an error occurs it is recommended to clean before restarting. Otherwise the code quality may be much worse.


Return to the GCC Installation page


湿疹抹什么药膏 拿什么拯救你我的爱人演员表 心脏早搏什么症状 看书有什么好处 吃生花生有什么好处
摩羯男喜欢什么类型的女生 降钙素原高是什么原因 吃什么补钙 杜甫是什么主义诗人 发烧适合吃什么水果
什么是象限 4月9号是什么星座 胃出血大便是什么颜色 鼻子上长痘是什么原因 微信被拉黑后显示什么
什么是扁平足图片 胆囊结石挂什么科 巴宝莉是什么品牌 什么叫suv车 夜宵吃什么好
神经过敏是什么意思hcv8jop4ns0r.cn 什么是高hcv8jop5ns9r.cn 小米不能和什么一起吃hcv9jop1ns7r.cn 球拍状胎盘对胎儿有什么影响hcv9jop3ns1r.cn 女人更年期吃什么药调理最好hcv8jop9ns5r.cn
木瓜有什么功效hcv8jop1ns8r.cn 孙俪什么学历hcv9jop1ns1r.cn 9月25是什么星座hcv8jop5ns9r.cn 一什么阳光hcv8jop3ns0r.cn sanag是什么牌子hcv8jop7ns4r.cn
血压正常头晕是什么原因hcv9jop5ns8r.cn 浅表性胃炎吃什么中成药最好hcv7jop6ns0r.cn 夜里咳嗽是什么原因huizhijixie.com 碳水化合物是什么意思hcv7jop9ns9r.cn 放我鸽子是什么意思hcv8jop9ns3r.cn
桔色搭配什么颜色好看wzqsfys.com hb是什么意思hcv9jop5ns2r.cn 什么叫桑黄hcv9jop6ns6r.cn 血压偏低有什么症状hcv7jop9ns5r.cn 衣原体阳性是什么病hcv9jop4ns6r.cn
百度