SConstruct (9537:ad5b3252dcc6) SConstruct (9551:f867e530f39b)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 514 unchanged lines hidden (view full) ---

523 print 'Error: gcc version 4.4 or newer required.'
524 print ' Installed version:', gcc_version
525 Exit(1)
526
527 main['GCC_VERSION'] = gcc_version
528 main.Append(CCFLAGS=['-pipe'])
529 main.Append(CCFLAGS=['-fno-strict-aliasing'])
530 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 514 unchanged lines hidden (view full) ---

523 print 'Error: gcc version 4.4 or newer required.'
524 print ' Installed version:', gcc_version
525 Exit(1)
526
527 main['GCC_VERSION'] = gcc_version
528 main.Append(CCFLAGS=['-pipe'])
529 main.Append(CCFLAGS=['-fno-strict-aliasing'])
530 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
531 main.Append(CXXFLAGS=['-Wmissing-field-initializers'])
531 main.Append(CXXFLAGS=['-std=c++0x'])
532
533 # Check for versions with bugs
534 if not compareVersions(gcc_version, '4.4.1') or \
535 not compareVersions(gcc_version, '4.4.2'):
536 print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'
537 main.Append(CCFLAGS=['-fno-tree-vectorize'])
538

--- 33 unchanged lines hidden (view full) ---

572 main.Append(CCFLAGS=['-pipe'])
573 main.Append(CCFLAGS=['-fno-strict-aliasing'])
574 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
575 main.Append(CCFLAGS=['-Wno-tautological-compare'])
576 main.Append(CCFLAGS=['-Wno-self-assign'])
577 # Ruby makes frequent use of extraneous parantheses in the printing
578 # of if-statements
579 main.Append(CCFLAGS=['-Wno-parentheses'])
532 main.Append(CXXFLAGS=['-std=c++0x'])
533
534 # Check for versions with bugs
535 if not compareVersions(gcc_version, '4.4.1') or \
536 not compareVersions(gcc_version, '4.4.2'):
537 print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'
538 main.Append(CCFLAGS=['-fno-tree-vectorize'])
539

--- 33 unchanged lines hidden (view full) ---

573 main.Append(CCFLAGS=['-pipe'])
574 main.Append(CCFLAGS=['-fno-strict-aliasing'])
575 main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
576 main.Append(CCFLAGS=['-Wno-tautological-compare'])
577 main.Append(CCFLAGS=['-Wno-self-assign'])
578 # Ruby makes frequent use of extraneous parantheses in the printing
579 # of if-statements
580 main.Append(CCFLAGS=['-Wno-parentheses'])
581 main.Append(CXXFLAGS=['-Wmissing-field-initializers'])
580 main.Append(CXXFLAGS=['-std=c++0x'])
581 # On Mac OS X/Darwin we need to also use libc++ (part of XCode) as
582 # opposed to libstdc++ to make the transition from TR1 to
583 # C++11. See http://libcxx.llvm.org. However, clang has chosen a
584 # strict implementation of the C++11 standard, and does not allow
585 # incomplete types in template arguments (besides unique_ptr and
586 # shared_ptr), and the libc++ STL containers create problems in
587 # combination with the current gem5 code. For now, we stick with

--- 598 unchanged lines hidden ---
582 main.Append(CXXFLAGS=['-std=c++0x'])
583 # On Mac OS X/Darwin we need to also use libc++ (part of XCode) as
584 # opposed to libstdc++ to make the transition from TR1 to
585 # C++11. See http://libcxx.llvm.org. However, clang has chosen a
586 # strict implementation of the C++11 standard, and does not allow
587 # incomplete types in template arguments (besides unique_ptr and
588 # shared_ptr), and the libc++ STL containers create problems in
589 # combination with the current gem5 code. For now, we stick with

--- 598 unchanged lines hidden ---