~ubuntu-branches/ubuntu/quantal/gcc-defaults/quantal-proposed

« back to all changes in this revision

Viewing changes to .svn/text-base/c99.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-09-21 17:35:36 UTC
  • mfrom: (1.1.39 sid)
  • Revision ID: package-import@ubuntu.com-20120921173536-rjpjgfdab0oljrpr
Tags: 1.117ubuntu2
Bump versions to 4.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
# Call the appropriate C compiler with options to accept ANSI/ISO C
4
 
# The following options are the same (as of gcc-3.3):
5
 
#       -std=c99
6
 
#       -std=c9x
7
 
#       -std=iso9899:1999
8
 
#       -std=iso9899:199x
9
 
 
10
 
extra_flag=-std=c99
11
 
 
12
 
for i; do
13
 
    case "$i" in
14
 
        -std=c9[9x]|-std=iso9899:199[9x])
15
 
            extra_flag=
16
 
            ;;
17
 
        -std=*|-ansi)
18
 
            echo >&2 "`basename $0` called with non ISO C99 option $i"
19
 
            exit 1
20
 
            ;;
21
 
    esac
22
 
done
23
 
 
24
 
exec gcc $extra_flag ${1+"$@"}